(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _ipv6calc
          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
                  children: [
                    (C {(_init_completion)} {(-s)})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {(DQ ($ VSub_Name '$prev'))}
                  arms: [
                    (case_arm
                      pat_list: [{(-d)} {(--debug)}]
                      action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [43 46 54 16777215]
                    )
                    (case_arm
                      pat_list: [{(-I)} {(--in)} {(-O)} {(--out)} {(-A)} {(--action)}]
                      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: [
                                                                      {($ VSub_Number '$1')}
                                                                      {(DQ ($ VSub_Name '$prev'))}
                                                                      {(-h)}
                                                                    ]
                                                                    redirects: [
                                                                      (Redir
                                                                        op_id: Redir_GreatAnd
                                                                        fd: 2
                                                                        arg_word: {(1)}
                                                                        spids: [95]
                                                                      )
                                                                    ]
                                                                  )
                                                                  (C {(sed)} {(-ne)} 
                                                                    {
                                                                      (SQ 
                                                                        <
's/^[[:space:]]\\{1,\\}\\([^[:space:]:]\\{1,\\}\\)[[:space:]]*:.*/\\1/p'
                                                                        >
                                                                      )
                                                                    }
                                                                  )
                                                                ]
                                                                negated: False
                                                              )
                                                            ]
                                                          )
                                                        left_token: <Left_CommandSub '$('>
                                                        spids: [85 110]
                                                      )
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [78 121]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [75]
                            )
                          ]
                          spids: [75]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [57 68 131 16777215]
                    )
                    (case_arm
                      pat_list: [{(--db-geoip)} {(--db-ip2location-ipv4)} {(--db-ip2location-ipv6)}]
                      action: [
                        (C {(_filedir)})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [134 139 150 16777215]
                    )
                    (case_arm
                      pat_list: [{(--printstart)} {(--printend)}]
                      action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [153 156 164 16777215]
                    )
                  ]
                  spids: [34 40 167]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  op_id: Op_DAmp
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_Name '$cur'))}
                                  right: {(-) (Lit_Other '*')}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      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 
                                                      <
'--help --debug --quiet --in --out --action\n'
                                                      > <'            --examples --showinfo --show_types --machine_readable --db-geoip\n'> 
                                                      <
'            --db-geoip-default --db-ip2location-ipv4 --db-ip2location-ipv6\n'
                                                      > <'            --lowercase --uppercase --printprefix --printsuffix --maskprefix\n'> 
                                                      <
'            --masksuffix --printstart --printend --printcompressed\n'
                                                      > <'            --printuncompressed --printfulluncompressed --printmirrored'>
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [203 226]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [200]
                            )
                          ]
                          spids: [200]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [16777215 197]
                    )
                  ]
                  spids: [16777215 236]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_ipv6calc)} {(ipv6calc)})
      ]
      op_id: Op_DAmp
    )
  ]
)