(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _cdrecord
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(lhs_expr.LhsName name:cur) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:prev) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:words) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:cword) op:Equal)
              ]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)} {(-n)} {(Lit_Other '=')})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(lhs_expr.LhsName name:i) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:generic_options) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:track_options) op:Equal)
                (assign_pair lhs:(lhs_expr.LhsName name:track_mode) op:Equal)
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_DollarName '$cur'))}
                              right: {(Lit_Other '*') (BoolBinary_GlobEqual '=') (Lit_Other '*')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:prev)
                          op: Equal
                          rhs: 
                            {
                              (word_part.BracedVarSub
                                token: <VSub_Name cur>
                                suffix_op: 
                                  (suffix_op.StringUnary
                                    op_id: VOp1_DPercent
                                    arg_word: {('=*')}
                                  )
                              )
                            }
                        )
                      ]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:cur)
                          op: Equal
                          rhs: 
                            {
                              (word_part.BracedVarSub
                                token: <VSub_Name cur>
                                suffix_op: (suffix_op.StringUnary op_id:VOp1_Pound arg_word:{('*=')})
                              )
                            }
                        )
                      ]
                    )
                    (command.Case
                      to_match: {($ VSub_DollarName '$prev')}
                      arms: [
                        (case_arm
                          pat_list: [{(textfile)} {(cuefile)} {(msifile)}]
                          action: [(C {(_filedir)})]
                        )
                        (case_arm
                          pat_list: [{(blank)}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {
                                                        (SQ 
                                                          <'help all fast track unreserve trtail\n'> <'                    unclose session'>
                                                        )
                                                      } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                            )
                                          }
                                        ]
                                      )
                                    }
                                )
                              ]
                            )
                          ]
                        )
                        (case_arm
                          pat_list: [{(driveropts)}]
                          action: [
                            (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 '*') (BoolBinary_GlobEqual '=') 
                                                  (Lit_Other '*')
                                                }
                                            )
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [
                                    (command.Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (lhs_expr.LhsName name:prev)
                                          op: Equal
                                          rhs: 
                                            {
                                              (word_part.BracedVarSub
                                                token: <VSub_Name cur>
                                                suffix_op: 
                                                  (suffix_op.StringUnary
                                                    op_id: VOp1_DPercent
                                                    arg_word: {('=*')}
                                                  )
                                              )
                                            }
                                        )
                                      ]
                                    )
                                    (command.Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (lhs_expr.LhsName name:cur)
                                          op: Equal
                                          rhs: 
                                            {
                                              (word_part.BracedVarSub
                                                token: <VSub_Name cur>
                                                suffix_op: 
                                                  (suffix_op.StringUnary
                                                    op_id: VOp1_Pound
                                                    arg_word: {('*=')}
                                                  )
                                              )
                                            }
                                        )
                                      ]
                                    )
                                    (command.Case
                                      to_match: {($ VSub_DollarName '$prev')}
                                      arms: [
                                        (case_arm
                                          pat_list: [{(varirec)}]
                                          action: [
                                            (command.Assignment
                                              keyword: Assign_None
                                              pairs: [
                                                (assign_pair
                                                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                                                  op: Equal
                                                  rhs: 
                                                    {
                                                      (word_part.ArrayLiteralPart
                                                        words: [
                                                          {
                                                            (word_part.CommandSubPart
                                                              command_list: 
                                                                (command.CommandList
                                                                  children: [
                                                                    (C {(compgen)} {(-W)} 
                                                                      {(DQ ('-2 -1 0 1 2'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                                    )
                                                                  ]
                                                                )
                                                              left_token: <Left_CommandSub '$('>
                                                            )
                                                          }
                                                        ]
                                                      )
                                                    }
                                                )
                                              ]
                                            )
                                          ]
                                        )
                                        (case_arm
                                          pat_list: [{(gigarec)}]
                                          action: [
                                            (command.Assignment
                                              keyword: Assign_None
                                              pairs: [
                                                (assign_pair
                                                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                                                  op: Equal
                                                  rhs: 
                                                    {
                                                      (word_part.ArrayLiteralPart
                                                        words: [
                                                          {
                                                            (word_part.CommandSubPart
                                                              command_list: 
                                                                (command.CommandList
                                                                  children: [
                                                                    (C {(compgen)} {(-W)} 
                                                                      {
                                                                        (DQ 
                                                                          (
'0.6 0.7 0.8 1.0 1.2 1.3\n'
                                                                          ) ('                                1.4')
                                                                        )
                                                                      } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                                    )
                                                                  ]
                                                                )
                                                              left_token: <Left_CommandSub '$('>
                                                            )
                                                          }
                                                        ]
                                                      )
                                                    }
                                                )
                                              ]
                                            )
                                          ]
                                        )
                                        (case_arm
                                          pat_list: [{(tattoofile)}]
                                          action: [(C {(_filedir)})]
                                        )
                                      ]
                                    )
                                  ]
                                )
                              ]
                              else_action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:COMPREPLY)
                                      op: Equal
                                      rhs: 
                                        {
                                          (word_part.ArrayLiteralPart
                                            words: [
                                              {
                                                (word_part.CommandSubPart
                                                  command_list: 
                                                    (command.CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} 
                                                          {
                                                            (SQ <'burnfree noburnfree varirec=\n'> 
                                                              <
'                        gigarec= audiomaster forcespeed noforcespeed speedread\n'
                                                              > <'                        nospeedread singlesession nosinglesession hidecdr\n'> 
                                                              <
'                        nohidecdr tattooinfo tattoofile='
                                                              >
                                                            )
                                                          } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                )
                                              }
                                            ]
                                          )
                                        }
                                    )
                                  ]
                                )
                                (command.AndOr
                                  ops: [Op_DAmp]
                                  children: [
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: {($ VSub_DollarName '$COMPREPLY')}
                                          right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                                        )
                                    )
                                    (C {(compopt)} {(-o)} {(nospace)})
                                  ]
                                )
                              ]
                            )
                          ]
                        )
                        (case_arm
                          pat_list: [{(driver)}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                                  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: [
                                                                          {($ VSub_Number '$1')}
                                                                          {(Lit_VarLike 'driver=') 
                                                                            (help)
                                                                          }
                                                                        ]
                                                                        redirects: [
                                                                          (redir.Redir
                                                                            op: 
                                                                              <Redir_GreatAnd '2>&'>
                                                                            fd: 2
                                                                            arg_word: {(1)}
                                                                          )
                                                                        ]
                                                                      )
                                                                      (C {(awk)} 
                                                                        {(SQ <'NR > 1 { print $1 }'>)}
                                                                      )
                                                                    ]
                                                                    negated: F
                                                                  )
                                                                ]
                                                              )
                                                            left_token: <Left_CommandSub '$('>
                                                          ) (' help')
                                                        )
                                                      } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                            )
                                          }
                                        ]
                                      )
                                    }
                                )
                              ]
                            )
                          ]
                        )
                        (case_arm
                          pat_list: [{(minbuf)}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} {(SQ <'{25..95}'>)} {(--)} 
                                                      {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                            )
                                          }
                                        ]
                                      )
                                    }
                                )
                              ]
                            )
                          ]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <ControlFlow_Return return>
                      arg_word: {(0)}
                    )
                  ]
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:generic_options)
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {(-version)}
                          {(-v)}
                          {(-V)}
                          {(-d)}
                          {(-silent)}
                          {(-force)}
                          {(-immed)}
                          {(-dummy)}
                          {(-clone)}
                          {(-dao)}
                          {(-sao)}
                          {(-tao)}
                          {(-raw)}
                          {(-raw96r)}
                          {(-raw96p)}
                          {(-raw16)}
                          {(-multi)}
                          {(-msinfo)}
                          {(-toc)}
                          {(-atip)}
                          {(-fix)}
                          {(-nofix)}
                          {(-waiti)}
                          {(-load)}
                          {(-lock)}
                          {(-eject)}
                          {(-format)}
                          {(-setdropts)}
                          {(-checkdrive)}
                          {(-prcap)}
                          {(-inq)}
                          {(-scanbus)}
                          {(--devices)}
                          {(-reset)}
                          {(-abort)}
                          {(-overburn)}
                          {(-ignsize)}
                          {(-useinfo)}
                          {(-packet)}
                          {(-noclose)}
                          {(-text)}
                          {(Lit_VarLike 'debug=')}
                          {(Lit_VarLike 'kdebug=')}
                          {(Lit_VarLike 'minbuf=')}
                          {(Lit_VarLike 'msifile=')}
                          {(Lit_VarLike 'speed=')}
                          {(Lit_VarLike 'blank=')}
                          {(Lit_VarLike 'fs=')}
                          {(Lit_VarLike 'ts=')}
                          {(Lit_VarLike 'dev=')}
                          {(Lit_VarLike 'gracetime=')}
                          {(Lit_VarLike 'timeout=')}
                          {(Lit_VarLike 'driver=')}
                          {(Lit_VarLike 'driveropts=')}
                          {(Lit_VarLike 'defpregap=')}
                          {(Lit_VarLike 'pktsize=')}
                          {(Lit_VarLike 'mcn=')}
                          {(Lit_VarLike 'textfile=')}
                          {(Lit_VarLike 'cuefile=')}
                        ]
                      )
                    }
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:track_options)
                  op: Equal
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {(-audio)}
                          {(-swab)}
                          {(-data)}
                          {(-mode2)}
                          {(-xa)}
                          {(-xa1)}
                          {(-xa2)}
                          {(-xamix)}
                          {(-cdi)}
                          {(-isosize)}
                          {(-pad)}
                          {(-nopad)}
                          {(-shorttrack)}
                          {(-noshorttrack)}
                          {(-preemp)}
                          {(-nopreemp)}
                          {(-copy)}
                          {(-nocopy)}
                          {(-scms)}
                          {(Lit_VarLike 'isrc=')}
                          {(Lit_VarLike 'index=')}
                          {(Lit_VarLike 'padsize=')}
                          {(Lit_VarLike 'pregap=')}
                          {(Lit_VarLike 'tsize=')}
                        ]
                      )
                    }
                )
              ]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(lhs_expr.LhsName name:track_mode) op:Equal rhs:{(0)})]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_gt
                              left: {($ VSub_DollarName '$cword')}
                              right: {(1)}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolUnary
                                      op_id: BoolUnary_f
                                      child: {($ VSub_DollarName '$prev')}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:track_mode)
                                  op: Equal
                                  rhs: {(1)}
                                )
                              ]
                            )
                          ]
                        )
                      ]
                      else_action: [
                        (command.ForExpr
                          init: 
                            (arith_expr.BinaryAssign
                              op_id: Arith_Equal
                              left: (lhs_expr.LhsName name:i)
                              right: (arith_expr.ArithWord w:{(Lit_Digits 0)})
                            )
                          cond: 
                            (arith_expr.ArithBinary
                              op_id: Arith_Less
                              left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>)
                              right: 
                                (arith_expr.ArithWord
                                  w: 
                                    {
                                      (word_part.BracedVarSub
                                        token: <VSub_Name track_options>
                                        prefix_op: VSub_Pound
                                        bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                                      )
                                    }
                                )
                            )
                          update: 
                            (arith_expr.UnaryAssign
                              op_id: Node_PostDPlus
                              child: (lhs_expr.LhsName name:i)
                            )
                          body: 
                            (command.DoGroup
                              children: [
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (command.Sentence
                                          child: 
                                            (command.DBracket
                                              expr: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: 
                                                    {
                                                      (DQ 
                                                        (word_part.BracedVarSub
                                                          token: <VSub_Name track_options>
                                                          bracket_op: 
                                                            (bracket_op.ArrayIndex
                                                              expr: 
                                                                (arith_expr.ArithVarRef
                                                                  token: <Lit_ArithVarLike i>
                                                                )
                                                            )
                                                        )
                                                      )
                                                    }
                                                  right: {(DQ ($ VSub_DollarName '$prev'))}
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (command.Assignment
                                          keyword: Assign_None
                                          pairs: [
                                            (assign_pair
                                              lhs: (lhs_expr.LhsName name:track_mode)
                                              op: Equal
                                              rhs: {(1)}
                                            )
                                          ]
                                        )
                                        (command.ControlFlow
                                          token: <ControlFlow_Break break>
                                        )
                                      ]
                                    )
                                  ]
                                )
                              ]
                            )
                        )
                      ]
                    )
                  ]
                )
              ]
            )
            (C {(_filedir)})
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                  op: PlusEqual
                  rhs: 
                    {
                      (word_part.ArrayLiteralPart
                        words: [
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(SQ <'${track_options[@]}'>)} {(--)} 
                                      {(DQ ($ VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                            )
                          }
                        ]
                      )
                    }
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_eq
                              left: {($ VSub_DollarName '$track_mode')}
                              right: {(0)}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:COMPREPLY)
                          op: PlusEqual
                          rhs: 
                            {
                              (word_part.ArrayLiteralPart
                                words: [
                                  {
                                    (word_part.CommandSubPart
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'${generic_options[@]}'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                  ]
                )
              ]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: {($ VSub_DollarName '$COMPREPLY')}
                      right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                    )
                )
                (C {(compopt)} {(-o)} {(nospace)})
              ]
            )
          ]
        )
    )
    (C {(complete)} {(-F)} {(_cdrecord)} {(cdrecord)} {(wodim)})
  ]
)