(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:PATH)
          op: Equal
          rhs: {(/sbin) (Lit_Other ":") (/bin) (Lit_Other ":") (/usr/sbin) (Lit_Other ":") (/usr/bin)}
          spids: [40]
        )
      ]
      spids: [40]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:DESC)
          op: Equal
          rhs: {(DQ ("Avahi mDNS/DNS-SD Daemon"))}
          spids: [49]
        )
      ]
      spids: [49]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:NAME) op:Equal rhs:{(DQ (avahi-daemon))} spids:[54])]
      spids: [54]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:DAEMON)
          op: Equal
          rhs: {(DQ (/usr/sbin/) ($ VSub_Name "$NAME"))}
          spids: [59]
        )
      ]
      spids: [59]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:SCRIPTNAME)
          op: Equal
          rhs: {(/etc/init.d/) ($ VSub_Name "$NAME")}
          spids: [65]
        )
      ]
      spids: [65]
    )
    (AndOr
      children: [(C {(test)} {(-x)} {($ VSub_Name "$DAEMON")}) (C {(exit)} {(0)})]
      op_id: Op_DPipe
    )
    (C {(.)} {(/lib/lsb/init-functions)})
    (AndOr
      children: [
        (C {(test)} {(-f)} {(/etc/default/avahi-daemon)})
        (C {(.)} {(/etc/default/avahi-daemon)})
      ]
      op_id: Op_DAmp
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:DISABLE_TAG)
          op: Equal
          rhs: {(DQ (/var/run/avahi-daemon/disabled-for-unicast-local))}
          spids: [107]
        )
      ]
      spids: [107]
    )
    (FuncDef
      name: d_start
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {($ VSub_Name "$DAEMON")} {(-c)})
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
              op_id: Op_DAmp
            )
            (Sentence
              child: 
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (C {(Lit_Other "[")} {(-e)} {($ VSub_Name "$DISABLE_TAG")} {(-a)} 
                              {(DQ ($ VSub_Name "$AVAHI_DAEMON_DETECT_LOCAL"))} {(KW_Bang "!") (Lit_Other "=")} {(DQ (0))} {(Lit_Other "]")}
                            )
                          terminator: <Op_Semi ";">
                        )
                      ]
                      action: [
                        (C {(log_warning_msg)} 
                          {(DQ ("avahi-daemon disabled because there is a unicast .local domain"))}
                        )
                        (Sentence
                          child: (C {(exit)} {(0)})
                          terminator: <Op_Semi ";">
                        )
                      ]
                      spids: [-1 165]
                    )
                  ]
                  spids: [-1 185]
                )
              terminator: <Op_Semi ";">
            )
            (C {($ VSub_Name "$DAEMON")} {(-D)})
          ]
          spids: [126]
        )
      spids: [122 125]
    )
    (FuncDef
      name: d_stop
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {($ VSub_Name "$DAEMON")} {(-c)})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {($ VSub_Name "$DAEMON")} {(-k)})]
                  spids: [-1 221]
                )
              ]
              spids: [-1 229]
            )
          ]
          spids: [210]
        )
      spids: [206 209]
    )
    (FuncDef
      name: d_reload
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [(C {($ VSub_Name "$DAEMON")} {(-c)}) (C {($ VSub_Name "$DAEMON")} {(-r)})]
              op_id: Op_DAmp
            )
          ]
          spids: [247]
        )
      spids: [243 246]
    )
    (FuncDef
      name: d_status
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {($ VSub_Name "$DAEMON")} {(-c)})
                (AndOr
                  children: [
                    (BraceGroup
                      children: [
                        (Sentence
                          child: (C {(echo)} {(DQ ($ VSub_Name "$DESC") (" is running"))})
                          terminator: <Op_Semi ";">
                        )
                        (Sentence
                          child: (C {(exit)} {(0)})
                          terminator: <Op_Semi ";">
                        )
                      ]
                      spids: [285]
                    )
                    (BraceGroup
                      children: [
                        (Sentence
                          child: (C {(echo)} {(DQ ($ VSub_Name "$DESC") (" is not running"))})
                          terminator: <Op_Semi ";">
                        )
                        (Sentence
                          child: (C {(exit)} {(3)})
                          terminator: <Op_Semi ";">
                        )
                      ]
                      spids: [304]
                    )
                  ]
                  op_id: Op_DPipe
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [276]
        )
      spids: [272 275]
    )
    (Case
      to_match: {(DQ ($ VSub_Number "$1"))}
      arms: [
        (case_arm
          pat_list: [{(start)}]
          action: [
            (C {(log_daemon_msg)} {(DQ ("Starting ") ($ VSub_Name "$DESC"))} {(DQ ($ VSub_Name "$NAME"))})
            (C {(d_start)})
            (C {(log_end_msg)} {($ VSub_QMark "$?")})
          ]
          spids: [333 334 357 -1]
        )
        (case_arm
          pat_list: [{(stop)}]
          action: [
            (C {(log_daemon_msg)} {(DQ ("Stopping ") ($ VSub_Name "$DESC"))} {(DQ ($ VSub_Name "$NAME"))})
            (C {(d_stop)})
            (C {(log_end_msg)} {($ VSub_QMark "$?")})
          ]
          spids: [360 361 384 -1]
        )
        (case_arm
          pat_list: [{(reload)} {(force-reload)}]
          action: [
            (C {(log_daemon_msg)} {(DQ ("Reloading services for ") ($ VSub_Name "$DESC"))} 
              {(DQ ($ VSub_Name "$NAME"))}
            )
            (C {(d_reload)})
            (C {(log_end_msg)} {($ VSub_QMark "$?")})
          ]
          spids: [387 390 413 -1]
        )
        (case_arm
          pat_list: [{(restart)}]
          action: [
            (C {(log_daemon_msg)} {(DQ ("Restarting ") ($ VSub_Name "$DESC"))} 
              {(DQ ($ VSub_Name "$NAME"))}
            )
            (C {(d_stop)})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other "[")} {(DQ ($ VSub_QMark "$?"))} {(-eq)} {(0)} {(Lit_Other "]")})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(d_start)}) (C {(log_end_msg)} {($ VSub_QMark "$?")})]
                  spids: [-1 450]
                )
              ]
              else_action: [(C {(log_end_msg)} {(1)})]
              spids: [461 469]
            )
          ]
          spids: [416 417 472 -1]
        )
        (case_arm pat_list:[{(status)}] action:[(C {(d_status)})] spids:[475476482-1])
        (case_arm
          pat_list: [{(Lit_Other "*")}]
          action: [
            (SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ ("Usage: ") ($ VSub_Name "$SCRIPTNAME") 
                    (" {start|stop|restart|force-reload|reload|status}")
                  )
                }
              ]
              redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[497])]
            )
            (C {(exit)} {(3)})
          ]
          spids: [485 486 506 -1]
        )
      ]
      spids: [324 330 508]
    )
    (C {(exit)} {(0)})
  ]
)