(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _eject
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[20])
                  op: Equal
                  spids: [20]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[22])
                  op: Equal
                  spids: [22]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[24])
                  op: Equal
                  spids: [24]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[26])
                  op: Equal
                  spids: [26]
                )
              ]
              spids: [18]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [
                    {(-h)}
                    {(--help)}
                    {(-V)}
                    {(--version)}
                    {(-c)}
                    {(--changerslot)}
                    {(-x)}
                    {(--cdspeed)}
                  ]
                  action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                  spids: [44 59 65 16777215]
                )
                (case_arm
                  pat_list: [{(-a)} {(--auto)} {(-i)} {(--manualeject)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[78])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [81 97]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [78]
                        )
                      ]
                      spids: [78]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [68 75 105 16777215]
                )
              ]
              spids: [37 41 108]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_DollarName '$cur')}
                              right: {(-) (Lit_Other '*')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY spids:[129])
                          op: Equal
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [132 148]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [129]
                        )
                      ]
                      spids: [129]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                  spids: [16777215 126]
                )
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_DollarName '$prev')}
                              right: 
                                {
                                  (word_part.ExtGlobPart
                                    op: <ExtGlob_At '@('>
                                    arms: [{(-d)} {(--default)}]
                                    spids: [164 168]
                                  )
                                }
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                  spids: [156 173]
                )
              ]
              spids: [16777215 179]
            )
            (C {(_cd_devices)})
            (C {(_dvd_devices)})
          ]
          spids: [15]
        )
      spids: [11 14]
    )
    (C {(complete)} {(-F)} {(_eject)} {(eject)})
  ]
)