(CommandList
  children: [
    (AndOr
      children: [
        (DBracket
          expr: 
            (BoolBinary
              op_id: BoolBinary_GlobDEqual
              left: {($ VSub_Name '$OSTYPE')}
              right: {(Lit_Other '*') (freebsd) (Lit_Other '*')}
            )
        )
        (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
      ]
      op_id: Op_DPipe
    )
    (AndOr
      children: [
        (FuncDef
          name: _kldload
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[32])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[34])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[36])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[38])
                  ]
                  spids: [30]
                )
                (AndOr
                  children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
                  op_id: Op_DPipe
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:moddir)
                      op: Equal
                      rhs: {(/modules/)}
                      spids: [51]
                    )
                  ]
                  spids: [49]
                )
                (AndOr
                  children: [
                    (DBracket
                      expr: (BoolUnary op_id:BoolUnary_d child:{($ VSub_Name '$moddir')})
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:moddir)
                          op: Equal
                          rhs: {(/boot/kernel/)}
                          spids: [65]
                        )
                      ]
                      spids: [65]
                    )
                  ]
                  op_id: Op_DPipe
                )
                (C {(compopt)} {(-o)} {(filenames)})
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(compgen)} {(-f)} 
                                          {(DQ ($ VSub_Name '$moddir') ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [80 91]
                                )
                              }
                            ]
                          )
                        }
                      spids: [77]
                    )
                  ]
                  spids: [77]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (BracedVarSub
                                  token: <VSub_Name COMPREPLY>
                                  bracket_op: (WholeArray op_id:Lit_At)
                                  suffix_op: 
                                    (StringUnary
                                      op_id: VOp1_Pound
                                      arg_word: {($ VSub_Name '$moddir')}
                                    )
                                  spids: [99 106]
                                )
                              }
                            ]
                          )
                        }
                      spids: [96]
                    )
                  ]
                  spids: [96]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (BracedVarSub
                                  token: <VSub_Name COMPREPLY>
                                  bracket_op: (WholeArray op_id:Lit_At)
                                  suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(.ko)})
                                  spids: [114 121]
                                )
                              }
                            ]
                          )
                        }
                      spids: [111]
                    )
                  ]
                  spids: [111]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
              spids: [27]
            )
          spids: [23 26]
        )
        (C {(complete)} {(-F)} {(_kldload)} {(kldload)})
      ]
      op_id: Op_DAmp
    )
  ]
)