(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _cpio
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<cur>} {<prev>} {<words>} {<cword>} {<split>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<_init_completion>} {<-s>} {<-n>} {<Id.Lit_Colon ':'>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [{<-H>} {<--format>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} 
                                          {(SQ <'bin odc newc crc tar ustar hpbin hpodc'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [55]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [49 52 86 -1]
                )
                (case_arm
                  pat_list: [{<-E>} {<-F>} {<-I>} {<--file>} {<--pattern-file>}]
                  action: [
                    (C {<_filedir>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [89 98 109 -1]
                )
                (case_arm
                  pat_list: [{<-R>} {<--owner>}]
                  action: [
                    (C {<_usergroup>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [112 115 126 -1]
                )
                (case_arm
                  pat_list: [{<--rsh-command>}]
                  action: [
                    (C {<compopt>} {<-o>} {<filenames>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-c>} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))})
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [140]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [129 130 165 -1]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {($ Id.VSub_DollarName '$split')})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<0>}
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_eq
                                  left: {($ Id.VSub_DollarName '$cword')}
                                  right: {<1>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} 
                                          {
                                            (SQ <'-o --create -i --extract -p --pass-through\n'> 
                                              <'            -? --help --license --usage --version'>
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [198]
                        )
                      ]
                    )
                  ]
                  spids: [182 195]
                )
              ]
              else_action: [
                (command.Case
                  to_match: 
                    {
                      (braced_var_sub
                        token: <Id.VSub_Name words>
                        bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 1>})
                      )
                    }
                  arms: [
                    (case_arm
                      pat_list: [{<-o>} {<--create>}]
                      action: [
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.Binary
                                              op_id: Id.BoolBinary_GlobDEqual
                                              left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                              right: {<-> <Id.Lit_Other '*'>}
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:COMPREPLY)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (sh_array_literal
                                            left: <Id.Op_LParen _>
                                            words: [
                                              {
                                                (command_sub
                                                  left_token: <Id.Left_DollarParen '$('>
                                                  child: 
                                                    (C {<compgen>} {<-W>} 
                                                      {
                                                        (SQ <'-0 -a -c -v -A -B -L -V -C -H -M\n'> 
                                                          <
'                        -O -F --file --format --message --null\n'
                                                          > <'                        --reset-access-time --verbose --dot --append\n'> 
                                                          <
'                        --block-size --dereference --io-size --quiet\n'
                                                          > <'                        --force-local --rsh-command --help --version'>
                                                        )
                                                      } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                    )
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [263]
                                    )
                                  ]
                                )
                              ]
                              spids: [244 260]
                            )
                          ]
                        )
                      ]
                      spids: [238 241 296 -1]
                    )
                    (case_arm
                      pat_list: [{<-i>} {<--extract>}]
                      action: [
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.Binary
                                              op_id: Id.BoolBinary_GlobDEqual
                                              left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                              right: {<-> <Id.Lit_Other '*'>}
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:COMPREPLY)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (sh_array_literal
                                            left: <Id.Op_LParen _>
                                            words: [
                                              {
                                                (command_sub
                                                  left_token: <Id.Left_DollarParen '$('>
                                                  child: 
                                                    (C {<compgen>} {<-W>} 
                                                      {
                                                        (SQ <'-b -c -d -f -m -n -r -t -s -u -v\n'> 
                                                          <
'                        -B -S -V -C -E -H -M -R -I -F --file --make-directories\n'
                                                          > <'                        --nonmatching --preserve-modification-time\n'> 
                                                          <
'                        --numeric-uid-gid --rename --list --swap-bytes --swap\n'
                                                          > <'                        --dot --unconditional --verbose --block-size\n'> 
                                                          <
'                        --swap-halfwords --io-size --pattern-file --format\n'
                                                          > <'                        --owner --no-preserve-owner --message --force-local\n'> 
                                                          <
'                        --no-absolute-filenames --sparse --only-verify-crc\n'
                                                          > <'                        --quiet --rsh-command --help --to-stdout --version'>
                                                        )
                                                      } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                    )
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [324]
                                    )
                                  ]
                                )
                              ]
                              spids: [305 321]
                            )
                          ]
                        )
                      ]
                      spids: [299 302 361 -1]
                    )
                    (case_arm
                      pat_list: [{<-p> <Id.Lit_Star '*'>} {<--pass-through>}]
                      action: [
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.Binary
                                              op_id: Id.BoolBinary_GlobDEqual
                                              left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                              right: {<-> <Id.Lit_Other '*'>}
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:COMPREPLY)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (sh_array_literal
                                            left: <Id.Op_LParen _>
                                            words: [
                                              {
                                                (command_sub
                                                  left_token: <Id.Left_DollarParen '$('>
                                                  child: 
                                                    (C {<compgen>} {<-W>} 
                                                      {
                                                        (SQ <'-0 -a -d -l -m -u -v -L -V -R\n'> 
                                                          <
'                        --null --reset-access-time --make-directories --link\n'
                                                          > <'                        --quiet --preserve-modification-time --unconditional\n'> 
                                                          <
'                        --verbose --dot --dereference --owner\n'
                                                          > <'                        --no-preserve-owner --sparse --help --version'>
                                                        )
                                                      } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                    )
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [390]
                                    )
                                  ]
                                )
                              ]
                              spids: [371 387]
                            )
                          ]
                          else_action: [(C {<_filedir>} {<-d>})]
                        )
                      ]
                      spids: [364 368 431 -1]
                    )
                  ]
                )
              ]
            )
          ]
        )
    )
    (C {<complete>} {<-F>} {<_cpio>} {<cpio>})
  ]
)