(CommandList
  children: [
    (AndOr
      ops: [Op_DAmp]
      children: [
        (FuncDef
          name: _mysql
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[13])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[15])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[17])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[19])
                    (assign_pair lhs:(LhsName name:split) op:Equal spids:[21])
                  ]
                  spids: [11]
                )
                (AndOr
                  ops: [Op_DPipe]
                  children: [
                    (C {(_init_completion)} {(-s)})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (Case
                  to_match: {($ VSub_Name '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-u)} {(--user)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-u)} {(--)} {(DQ ($ VSub_Name '$cur'))})
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [50 62]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [47]
                            )
                          ]
                          spids: [47]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [41 44 72 16777215]
                    )
                    (case_arm
                      pat_list: [{(-D)} {(--database)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {
                                                    (DQ 
                                                      (CommandSubPart
                                                        command_list: 
                                                          (CommandList
                                                            children: [
                                                              (Pipeline
                                                                children: [
                                                                  (SimpleCommand
                                                                    words: [{(mysqlshow)}]
                                                                    redirects: [
                                                                      (Redir
                                                                        op_id: Redir_Great
                                                                        fd: 2
                                                                        arg_word: {(/dev/null)}
                                                                        spids: [94]
                                                                      )
                                                                    ]
                                                                  )
                                                                  (C {(sed)} {(-ne)} {(SQ <2d>)} {(-e)} 
                                                                    {
                                                                      (SQ 
                                                                        <
's/^|.\\([^|]*\\)|.*/\\1/p'
                                                                        >
                                                                      )
                                                                    }
                                                                  )
                                                                ]
                                                                negated: F
                                                              )
                                                            ]
                                                          )
                                                        left_token: <Left_CommandSub '$('>
                                                        spids: [91 110]
                                                      )
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [84 119]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [81]
                            )
                          ]
                          spids: [81]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [75 78 129 16777215]
                    )
                    (case_arm
                      pat_list: [{(-h)} {(--host)}]
                      action: [
                        (C {(_known_hosts_real)} {(DQ ($ VSub_Name '$cur'))})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [133 136 151 16777215]
                    )
                    (case_arm
                      pat_list: [{(--default-character-set)}]
                      action: [
                        (AndOr
                          ops: [Op_DAmp]
                          children: [
                            (DBracket
                              expr: (BoolUnary op_id:BoolUnary_d child:{(/usr/share/mysql/charsets)})
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (CommandSubPart
                                              command_list: 
                                                (CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {
                                                        (DQ 
                                                          (CommandSubPart
                                                            command_list: 
                                                              (CommandList
                                                                children: [
                                                                  (Pipeline
                                                                    children: [
                                                                      (C {(command)} {(ls)} 
                                                                        {
                                                                          (
/usr/share/mysql/charsets
                                                                          )
                                                                        }
                                                                      )
                                                                      (C {(sed)} {(-e)} 
                                                                        {
                                                                          (SQ 
                                                                            <
'/^\\(README\\|Index\\.xml\\)$/d'
                                                                            >
                                                                          )
                                                                        } {(-e)} {(SQ <'s/.xml$//'>)}
                                                                      )
                                                                    ]
                                                                    negated: F
                                                                  )
                                                                ]
                                                              )
                                                            left_token: <Left_CommandSub '$('>
                                                            spids: [180 200]
                                                          ) (' utf8')
                                                        )
                                                      } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [173 210]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [170]
                                )
                              ]
                              spids: [170]
                            )
                          ]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [154 155 220 16777215]
                    )
                    (case_arm
                      pat_list: [{(--character-sets-dir)} {(--ssl-capath)}]
                      action: [
                        (C {(_filedir)} {(-d)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [224 227 240 16777215]
                    )
                    (case_arm
                      pat_list: [{(-S)} {(--socket)}]
                      action: [
                        (C {(_filedir)} {(sock)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [243 246 259 16777215]
                    )
                    (case_arm
                      pat_list: [{(--protocol)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <'tcp socket pipe memory'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [269 285]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [266]
                            )
                          ]
                          spids: [266]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [262 263 295 16777215]
                    )
                    (case_arm
                      pat_list: [{(--defaults-file)} {(--defaults-extra-file)} {(--tee)}]
                      action: [
                        (C {(_filedir)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [298 303 314 16777215]
                    )
                    (case_arm
                      pat_list: [
                        {(--default-character-set)}
                        {(-P)}
                        {(--port)}
                        {(--set-variable)}
                        {(--ssl-ca)}
                        {(--ssl-cert)}
                        {(--ssl-cipher)}
                        {(--ssl-key)}
                        {(--connect_timeout)}
                        {(--max_allowed_packet)}
                        {(--prompt)}
                        {(--net_buffer_length)}
                        {(--select_limit)}
                        {(--max_join_size)}
                        {(--server-arg)}
                        {(--debug)}
                        {(--delimiter)}
                        {(--execute)}
                        {(-e)}
                        {(--pager)}
                      ]
                      action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [317 364 376 16777215]
                    )
                    (case_arm
                      pat_list: [{(SQ <'-?'>)} {(-I)} {(--help)} {(-V)} {(--version)}]
                      action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [380 390 402 16777215]
                    )
                  ]
                  spids: [34 38 405]
                )
                (Case
                  to_match: {($ VSub_Name '$cur')}
                  arms: [
                    (case_arm
                      pat_list: [{(--) (Lit_Other '*')}]
                      action: [
                        (Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:help)
                              op: Equal
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [(C {(_parse_help)} {(DQ ($ VSub_Number '$1'))})]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [424 430]
                                  )
                                }
                              spids: [423]
                            )
                          ]
                          spids: [421]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:help)
                              op: PlusEqual
                              rhs: {(DQ (' --skip-comments --skip-ssl'))}
                              spids: [433]
                            )
                          ]
                          spids: [433]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(DQ ($ VSub_Name '$help'))} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [443 459]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [440]
                            )
                          ]
                          spids: [440]
                        )
                        (AndOr
                          ops: [Op_DAmp]
                          children: [
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$COMPREPLY')}
                                  right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                                )
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                          ]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [416 418 489 16777215]
                    )
                    (case_arm
                      pat_list: [{(-)}]
                      action: [
                        (C {(compopt)} {(-o)} {(nospace)})
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: {(ArrayLiteralPart words:[{(--)}])}
                              spids: [508]
                            )
                          ]
                          spids: [508]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [497 498 521 16777215]
                    )
                  ]
                  spids: [409 413 524]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(compgen)} {(-W)} 
                                          {
                                            (DQ 
                                              (CommandSubPart
                                                command_list: 
                                                  (CommandList
                                                    children: [
                                                      (Pipeline
                                                        children: [
                                                          (SimpleCommand
                                                            words: [{(mysqlshow)}]
                                                            redirects: [
                                                              (Redir
                                                                op_id: Redir_Great
                                                                fd: 2
                                                                arg_word: {(/dev/null)}
                                                                spids: [543]
                                                              )
                                                            ]
                                                          )
                                                          (C {(sed)} {(-ne)} {(SQ <2d>)} {(-e)} 
                                                            {(SQ <'s/^|.\\([^|]*\\)|.*/\\1/p'>)}
                                                          )
                                                        ]
                                                        negated: F
                                                      )
                                                    ]
                                                  )
                                                left_token: <Left_CommandSub '$('>
                                                spids: [540 559]
                                              )
                                            )
                                          } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [531 570]
                                )
                              }
                            ]
                          )
                        }
                      spids: [528]
                    )
                  ]
                  spids: [528]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_mysql)} {(mysql)})
      ]
    )
  ]
)