(command.CommandList
  children: [
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.DBracket
          expr: 
            (bool_expr.Binary
              op_id: Id.BoolBinary_GlobDEqual
              left: {($ Id.VSub_DollarName '$OSTYPE')}
              right: {(Id.Lit_Other '*') (freebsd) (Id.Lit_Other '*')}
            )
        )
        (command.ControlFlow
          token: (Token id:Id.ControlFlow_Return val:return span_id:18)
          arg_word: {(1)}
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.ShFunction
          name: _kldunload
          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:45)
                    )
                  ]
                )
                (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:50)
                            words: [
                              {
                                (command_sub
                                  left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:52)
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (command.Pipeline
                                          children: [
                                            (C {(kldstat)})
                                            (C {(sed)} {(-ne)} 
                                              {
                                                (DQ ('s/^.*[ ') (Id.Lit_Other '$') ("'") 
                                                  (Id.Lit_Other '\\') ("t']") (Id.Lit_Other '\\') ('{1,') (Id.Lit_Other '\\') ('}') (Id.Lit_Other '\\') ('(') 
                                                  ($ Id.VSub_DollarName '$cur') ('[a-z_]') (Id.Lit_Other '\\') ('{1,') (Id.Lit_Other '\\') ('}') (Id.Lit_Other '\\') (').ko') 
                                                  (Id.Lit_Other '$') (/) (Id.Lit_Other '\\') (1/p)
                                                )
                                              }
                                            )
                                          ]
                                          negated: F
                                        )
                                      ]
                                    )
                                )
                              }
                            ]
                          )
                        }
                      spids: [49]
                    )
                  ]
                )
              ]
            )
        )
        (C {(complete)} {(-F)} {(_kldunload)} {(kldunload)})
      ]
    )
  ]
)