(command.CommandList
  children: [
    (command.ShFunction
      name: _adb_command_usage
      body: 
        (BraceGroup
          children: [
            (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 
                                      <
'$( "$1" help 2>&1 | command grep "^ *\\(adb \\)\\? *$2 " \\\n'
                                      > <'            | sed -e "s/[]|[]/\\n/g" | _parse_help - )'>
                                    )
                                  } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                )
                            )
                          }
                        ]
                      )
                    }
                  spids: [11]
                )
              ]
            )
          ]
        )
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.ShFunction
          name: _adb
          body: 
            (BraceGroup
              children: [
                (C {<local>} {<cur>} {<prev>} {<words>} {<cword>})
                (command.AndOr
                  ops: [Id.Op_DPipe]
                  children: [
                    (C {<_init_completion>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                )
                (command.Case
                  to_match: {($ Id.VSub_DollarName '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{<-s>} {<-p>} {<--algo>} {<--key>} {<--iv>}]
                      action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)]
                      spids: [73 82 88 -1]
                    )
                    (case_arm
                      pat_list: [{<-f>}]
                      action: [
                        (C {<_filedir>})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                        )
                      ]
                      spids: [91 92 101 -1]
                    )
                  ]
                )
                (C {<local>} {<cmd>} {<i>})
                (command.ForExpr
                  init: 
                    (arith_expr.BinaryAssign
                      op_id: Id.Arith_Equal
                      left: <Id.Lit_ArithVarLike i>
                      right: {<Id.Lit_Digits 1>}
                    )
                  cond: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Less
                      left: <Id.Lit_ArithVarLike i>
                      right: <Id.Lit_ArithVarLike cword>
                    )
                  update: 
                    (arith_expr.UnaryAssign
                      op_id: Id.Node_PostDPlus
                      child: <Id.Lit_ArithVarLike i>
                    )
                  body: 
                    (command.DoGroup
                      children: [
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.LogicalAnd
                                              left: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobNEqual
                                                  left: 
                                                    {
                                                      (DQ 
                                                        (braced_var_sub
                                                          token: <Id.VSub_Name words>
                                                          bracket_op: 
                                                            (bracket_op.ArrayIndex
                                                              expr: <Id.Lit_ArithVarLike i>
                                                            )
                                                        )
                                                      )
                                                    }
                                                  right: {<-> <Id.Lit_Other '*'>}
                                                )
                                              right: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobNEqual
                                                  left: 
                                                    {
                                                      (DQ 
                                                        (braced_var_sub
                                                          token: <Id.VSub_Name words>
                                                          bracket_op: 
                                                            (bracket_op.ArrayIndex
                                                              expr: 
                                                                (arith_expr.Binary
                                                                  op_id: Id.Arith_Minus
                                                                  left: <Id.Lit_ArithVarLike i>
                                                                  right: {<Id.Lit_Digits 1>}
                                                                )
                                                            )
                                                        )
                                                      )
                                                    }
                                                  right: 
                                                    {<-> <Id.Lit_Other '['> <sp> <Id.Lit_Other ']'>}
                                                )
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:cmd)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (DQ 
                                            (braced_var_sub
                                              token: <Id.VSub_Name words>
                                              bracket_op: 
                                                (bracket_op.ArrayIndex
                                                  expr: <Id.Lit_ArithVarLike i>
                                                )
                                            )
                                          )
                                        }
                                      spids: [185]
                                    )
                                  ]
                                )
                                (command.ControlFlow
                                  token: <Id.ControlFlow_Break break>
                                )
                              ]
                              spids: [141 182]
                            )
                          ]
                        )
                      ]
                    )
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.LogicalNot
                                      child: (bool_expr.WordTest w:{(DQ ($ Id.VSub_DollarName '$cmd'))})
                                    )
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (C {<local>} {<Id.Lit_VarLike 'tmp='> (sh_array_literal left:<Id.Op_LParen _>)})
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.LogicalOr
                                              left: 
                                                (bool_expr.LogicalNot
                                                  child: 
                                                    (bool_expr.WordTest
                                                      w: {($ Id.VSub_DollarName '$cur')}
                                                    )
                                                )
                                              right: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobDEqual
                                                  left: {($ Id.VSub_DollarName '$cur')}
                                                  right: {<-> <Id.Lit_Other '*'>}
                                                )
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:tmp)
                                      op: assign_op.PlusEqual
                                      rhs: 
                                        {
                                          (sh_array_literal
                                            left: <Id.Op_LParen _>
                                            words: [
                                              {
                                                (command_sub
                                                  left_token: <Id.Left_DollarParen '$('>
                                                  child: 
                                                    (C {<compgen>} {<-W>} 
                                                      {(SQ <'$( _parse_help "$1" help )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                    )
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [253]
                                    )
                                  ]
                                )
                              ]
                              spids: [230 250]
                            )
                          ]
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.LogicalOr
                                              left: 
                                                (bool_expr.LogicalNot
                                                  child: 
                                                    (bool_expr.WordTest
                                                      w: {($ Id.VSub_DollarName '$cur')}
                                                    )
                                                )
                                              right: 
                                                (bool_expr.Binary
                                                  op_id: Id.BoolBinary_GlobNEqual
                                                  left: {($ Id.VSub_DollarName '$cur')}
                                                  right: {<-> <Id.Lit_Other '*'>}
                                                )
                                            )
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:tmp)
                                      op: assign_op.PlusEqual
                                      rhs: 
                                        {
                                          (sh_array_literal
                                            left: <Id.Op_LParen _>
                                            words: [
                                              {
                                                (command_sub
                                                  left_token: <Id.Left_DollarParen '$('>
                                                  child: 
                                                    (command.Pipeline
                                                      children: [
                                                        (command.Simple
                                                          words: [{($ Id.VSub_Number '$1')} {<help>}]
                                                          redirects: [
                                                            (redir
                                                              op: <Id.Redir_GreatAnd '2>&'>
                                                              loc: (redir_loc.Fd fd:2)
                                                              arg: {<1>}
                                                            )
                                                          ]
                                                          do_fork: T
                                                        )
                                                        (C {<awk>} {(SQ <'$1 == "adb" { print $2 }'>)})
                                                      ]
                                                      negated: F
                                                    )
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [303]
                                    )
                                  ]
                                )
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:tmp)
                                      op: assign_op.PlusEqual
                                      rhs: 
                                        {
                                          (sh_array_literal
                                            left: <Id.Op_LParen _>
                                            words: [{<devices>} {<connect>} {<disconnect>} {<sideload>}]
                                          )
                                        }
                                      spids: [328]
                                    )
                                  ]
                                )
                              ]
                              spids: [280 300]
                            )
                          ]
                        )
                        (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 <'${tmp[@]}'>)} {<-->} 
                                              {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [345]
                            )
                          ]
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                        )
                      ]
                      spids: [207 220]
                    )
                  ]
                )
                (C {<_adb_command_usage>} {(DQ ($ Id.VSub_Number '$1'))} {($ Id.VSub_DollarName '$cmd')})
                (command.Case
                  to_match: {($ Id.VSub_DollarName '$cmd')}
                  arms: [
                    (case_arm
                      pat_list: [{<push>} {<restore>} {<sideload>}]
                      action: [(C {<_filedir>})]
                      spids: [398 403 409 -1]
                    )
                    (case_arm
                      pat_list: [{<forward>}]
                      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 
                                                  <
'$( "$1" help 2>&1 | sed -ne "s/^ *adb  *forward  *-/-/p" | \\\n'
                                                  > <'                    _parse_help - )'>
                                                )
                                              } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [416]
                            )
                          ]
                        )
                      ]
                      spids: [412 413 443 -1]
                    )
                    (case_arm
                      pat_list: [{<reboot>}]
                      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 <'bootloader recovery'>)} {<-->} 
                                              {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [450]
                            )
                          ]
                        )
                      ]
                      spids: [446 447 474 -1]
                    )
                  ]
                )
              ]
            )
        )
        (C {<complete>} {<-F>} {<_adb>} {<adb>})
      ]
    )
  ]
)