(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _cfrun
      body: 
        (command.BraceGroup
          children: [
            (C {(local)} {(cur)} {(prev)} {(words)} {(cword)})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow
                  token: (Token id:Id.ControlFlow_Return val:return span_id:26)
                )
              ]
            )
            (C {(local)} {(i)} {(Id.Lit_VarLike 'section=') (1)})
            (command.ForExpr
              init: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: (sh_lhs_expr.Name name:i)
                  right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)})
                )
              cond: 
                (arith_expr.Binary
                  op_id: Id.Arith_Less
                  left: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:i span_id:47))
                  right: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:cword span_id:51))
                )
              update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:(sh_lhs_expr.Name name:i))
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: 
                                        {
                                          (DQ 
                                            (braced_var_sub
                                              token: (Token id:Id.VSub_Name val:words span_id:70)
                                              bracket_op: 
                                                (bracket_op.ArrayIndex
                                                  expr: 
                                                    (arith_expr.VarRef
                                                      token: 
                                                        (Token
                                                          id: Id.Lit_ArithVarLike
                                                          val: i
                                                          span_id: 72
                                                        )
                                                    )
                                                )
                                            )
                                          )
                                        }
                                      right: {(--)}
                                    )
                                )
                              terminator: (Token id:Id.Op_Semi val:';' span_id:82)
                            )
                          ]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:section)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (word_part.ArithSub
                                        anode: 
                                          (arith_expr.Binary
                                            op_id: Id.Arith_Plus
                                            left: 
                                              (arith_expr.VarRef
                                                token: 
                                                  (Token
                                                    id: Id.Lit_ArithVarLike
                                                    val: section
                                                    span_id: 89
                                                  )
                                              )
                                            right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)})
                                          )
                                      )
                                    }
                                  spids: [87]
                                )
                              ]
                            )
                          ]
                          spids: [64 84]
                        )
                      ]
                    )
                  ]
                )
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$section')}
              arms: [
                (case_arm
                  pat_list: [{(1)}]
                  action: [
                    (command.Case
                      to_match: {($ Id.VSub_DollarName '$prev')}
                      arms: [
                        (case_arm
                          pat_list: [{(-f)}]
                          action: [
                            (C {(_filedir)})
                            (command.ControlFlow
                              token: (Token id:Id.ControlFlow_Return val:return span_id:130)
                              arg_word: {(0)}
                            )
                          ]
                          spids: [123 124 135 -1]
                        )
                      ]
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                      right: {(-) (Id.Lit_Other '*')}
                                    )
                                )
                              terminator: (Token id:Id.Op_Semi val:';' span_id:156)
                            )
                          ]
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:COMPREPLY)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (sh_array_literal
                                        left: (Token id:Id.Op_LParen val:'(' span_id:162)
                                        words: [
                                          {
                                            (command_sub
                                              left_token: 
                                                (Token
                                                  id: Id.Left_DollarParen
                                                  val: '$('
                                                  span_id: 164
                                                )
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {
                                                        (SQ 
                                                          (Token
                                                            id: Id.Lit_Chars
                                                            val: '-f -h -d -S -T -v'
                                                            span_id: 171
                                                          )
                                                        )
                                                      } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [161]
                                )
                              ]
                            )
                          ]
                          spids: [142 158]
                        )
                      ]
                      else_action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:hostfile)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (braced_var_sub
                                    token: (Token id:Id.VSub_Name val:CFINPUTS span_id:190)
                                    suffix_op: 
                                      (suffix_op.Unary
                                        op_id: Id.VTest_ColonHyphen
                                        arg_word: 
                                          {(Id.Lit_Slash /) (var) (Id.Lit_Slash /) (lib) 
                                            (Id.Lit_Slash /) (cfengine) (Id.Lit_Slash /) (inputs)
                                          }
                                      )
                                  ) (/cfrun.hosts)
                                }
                              spids: [188]
                            )
                          ]
                        )
                        (command.ForExpr
                          init: 
                            (arith_expr.BinaryAssign
                              op_id: Id.Arith_Equal
                              left: (sh_lhs_expr.Name name:i)
                              right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)})
                            )
                          cond: 
                            (arith_expr.Binary
                              op_id: Id.Arith_Less
                              left: 
                                (arith_expr.VarRef
                                  token: (Token id:Id.Lit_ArithVarLike val:i span_id:213)
                                )
                              right: 
                                (arith_expr.VarRef
                                  token: (Token id:Id.Lit_ArithVarLike val:cword span_id:217)
                                )
                            )
                          update: 
                            (arith_expr.UnaryAssign
                              op_id: Id.Node_PostDPlus
                              child: (sh_lhs_expr.Name name:i)
                            )
                          body: 
                            (command.DoGroup
                              children: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobDEqual
                                                  left: 
                                                    {
                                                      (DQ 
                                                        (braced_var_sub
                                                          token: 
                                                            (Token
                                                              id: Id.VSub_Name
                                                              val: words
                                                              span_id: 236
                                                            )
                                                          bracket_op: 
                                                            (bracket_op.ArrayIndex
                                                              expr: 
                                                                (arith_expr.VarRef
                                                                  token: 
                                                                    (Token
                                                                      id: Id.Lit_ArithVarLike
                                                                      val: i
                                                                      span_id: 238
                                                                    )
                                                                )
                                                            )
                                                        )
                                                      )
                                                    }
                                                  right: {(Id.BoolUnary_f -f)}
                                                )
                                            )
                                          terminator: (Token id:Id.Op_Semi val:';' span_id:248)
                                        )
                                      ]
                                      action: [
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: (sh_lhs_expr.Name name:hostfile)
                                              op: assign_op.Equal
                                              rhs: 
                                                {
                                                  (braced_var_sub
                                                    token: 
                                                      (Token
                                                        id: Id.VSub_Name
                                                        val: words
                                                        span_id: 255
                                                      )
                                                    bracket_op: 
                                                      (bracket_op.ArrayIndex
                                                        expr: 
                                                          (arith_expr.Binary
                                                            op_id: Id.Arith_Plus
                                                            left: 
                                                              (arith_expr.VarRef
                                                                token: 
                                                                  (Token
                                                                    id: Id.Lit_ArithVarLike
                                                                    val: i
                                                                    span_id: 257
                                                                  )
                                                              )
                                                            right: 
                                                              (arith_expr.ArithWord
                                                                w: {(Id.Lit_Digits 1)}
                                                              )
                                                          )
                                                      )
                                                  )
                                                }
                                              spids: [253]
                                            )
                                          ]
                                        )
                                        (command.ControlFlow
                                          token: 
                                            (Token
                                              id: Id.ControlFlow_Break
                                              val: break
                                              span_id: 264
                                            )
                                        )
                                      ]
                                      spids: [230 250]
                                    )
                                  ]
                                )
                              ]
                            )
                        )
                        (command.AndOr
                          ops: [Id.Op_DAmp]
                          children: [
                            (command.DBracket
                              expr: 
                                (bool_expr.LogicalNot
                                  child: 
                                    (bool_expr.Unary
                                      op_id: Id.BoolUnary_f
                                      child: {($ Id.VSub_DollarName '$hostfile')}
                                    )
                                )
                            )
                            (command.ControlFlow
                              token: (Token id:Id.ControlFlow_Return val:return span_id:285)
                              arg_word: {(0)}
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:COMPREPLY)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (sh_array_literal
                                    left: (Token id:Id.Op_LParen val:'(' span_id:292)
                                    words: [
                                      {
                                        (command_sub
                                          left_token: 
                                            (Token
                                              id: Id.Left_DollarParen
                                              val: '$('
                                              span_id: 294
                                            )
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {
                                                    (DQ 
                                                      (command_sub
                                                        left_token: 
                                                          (Token
                                                            id: Id.Left_DollarParen
                                                            val: '$('
                                                            span_id: 300
                                                          )
                                                        command_list: 
                                                          (command.CommandList
                                                            children: [
                                                              (C {(command)} {(grep)} {(-v)} {(-E)} 
                                                                {
                                                                  (SQ 
                                                                    (Token
                                                                      id: Id.Lit_Chars
                                                                      val: '(=|^$|^#)'
                                                                      span_id: 313
                                                                    )
                                                                  )
                                                                } {($ Id.VSub_DollarName '$hostfile')}
                                                              )
                                                            ]
                                                          )
                                                      )
                                                    )
                                                  } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                )
                                              ]
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [291]
                            )
                          ]
                        )
                      ]
                    )
                  ]
                  spids: [112 113 335 -1]
                )
                (case_arm
                  pat_list: [{(2)}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: (Token id:Id.Op_LParen val:'(' span_id:343)
                                words: [
                                  {
                                    (command_sub
                                      left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:345)
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (SQ 
                                                  (Token
                                                    id: Id.Lit_Chars
                                                    val: '$( _parse_help cfagent )'
                                                    span_id: 352
                                                  )
                                                )
                                              } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [342]
                        )
                      ]
                    )
                  ]
                  spids: [338 339 366 -1]
                )
              ]
            )
          ]
        )
    )
    (C {(complete)} {(-F)} {(_cfrun)} {(cfrun)})
  ]
)