(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _insmod
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[13])
                  op: Equal
                  spids: [13]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[15])
                  op: Equal
                  spids: [15]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[17])
                  op: Equal
                  spids: [17]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[19])
                  op: Equal
                  spids: [19]
                )
              ]
              spids: [11]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_eq
                              left: {($ VSub_DollarName '$cword')}
                              right: {(1)}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(_filedir)} {(SQ <'@(?(k)o?(.gz))'>)})]
                  spids: [16777215 47]
                )
              ]
              else_action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:COMPREPLY spids:[63])
                      op: Equal
                      rhs: 
                        {
                          (word_part.ArrayLiteralPart
                            words: [
                              {
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(compgen)} {(-W)} 
                                          {
                                            (DQ 
                                              (word_part.CommandSubPart
                                                command_list: 
                                                  (command.CommandList
                                                    children: [
                                                      (command.Pipeline
                                                        children: [
                                                          (command.SimpleCommand
                                                            words: [
                                                              {(modinfo)}
                                                              {(-p)}
                                                              {
                                                                (word_part.BracedVarSub
                                                                  token: <VSub_Name words>
                                                                  bracket_op: 
                                                                    (bracket_op.ArrayIndex
                                                                      expr: 
                                                                        (arith_expr.ArithWord
                                                                          w: {(Lit_Digits 1)}
                                                                        )
                                                                    )
                                                                  spids: [87 92]
                                                                )
                                                              }
                                                            ]
                                                            redirects: [
                                                              (redir.Redir
                                                                op: <Redir_Great '2>'>
                                                                fd: 2
                                                                arg_word: {(/dev/null)}
                                                              )
                                                            ]
                                                            more_env: [
                                                              (env_pair
                                                                name: PATH
                                                                val: 
                                                                  {
                                                                    (DQ ($ VSub_DollarName '$PATH') 
                                                                      (':/sbin')
                                                                    )
                                                                  }
                                                                spids: [75]
                                                              )
                                                            ]
                                                          )
                                                          (C {(cut)} {(-d) (Lit_Other ':')} {(-f1)})
                                                        ]
                                                        negated: F
                                                      )
                                                    ]
                                                  )
                                                left_token: <Left_CommandSub '$('>
                                                spids: [73 106]
                                              )
                                            )
                                          } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [66 115]
                                )
                              }
                            ]
                          )
                        }
                      spids: [63]
                    )
                  ]
                  spids: [63]
                )
              ]
              spids: [57 120]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (C {(complete)} {(-F)} {(_insmod)} {(insmod)} {(insmod.static)})
  ]
)