(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _feh
      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)
                (assign_pair lhs:(lhs_expr.LhsName name:split) op:Equal)
              ]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)} {(-s)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {(DQ ($ VSub_DollarName '$prev'))}
              arms: [
                (case_arm
                  pat_list: [{(-B)} {(--image-bg)}]
                  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 <'checks white black'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [
                    {(-f)}
                    {(--filelist)}
                    {(-o)}
                    {(--output)}
                    {(-O)}
                    {(--output-only)}
                    {(-) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\|'>)}
                    {(--start-at)}
                  ]
                  action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)]
                )
                (case_arm
                  pat_list: [{(-K)} {(--caption-path)} {(-C)} {(--fontpath)} {(-j)} {(--output-dir)}]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [
                    {(-e)}
                    {(--font)}
                    {(-M)}
                    {(--menu-font)}
                    {(-) (Lit_Other '@')}
                    {(--title-font)}
                  ]
                  action: [
                    (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 '*') (/) (Lit_Other '*')}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          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)} {(-P)} 
                                                      {(DQ ($ VSub_DollarName '$cur'))} {(-W)} {(SQ <'{0..9}'>)}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                            )
                                          }
                                        ]
                                      )
                                    }
                                )
                              ]
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                            (command.ControlFlow
                              token: <ControlFlow_Return return>
                            )
                          ]
                        )
                      ]
                    )
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [(assign_pair lhs:(lhs_expr.LhsName name:font_path) op:Equal)]
                    )
                    (command.ForExpr
                      init: 
                        (arith_expr.BinaryAssign
                          op_id: Arith_Equal
                          left: (lhs_expr.LhsName name:i)
                          right: 
                            (arith_expr.ArithBinary
                              op_id: Arith_Minus
                              left: 
                                (arith_expr.ArithWord
                                  w: 
                                    {
                                      (word_part.BracedVarSub
                                        token: <VSub_Name words>
                                        prefix_op: VSub_Pound
                                        bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                                      )
                                    }
                                )
                              right: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                            )
                        )
                      cond: 
                        (arith_expr.ArithBinary
                          op_id: Arith_Great
                          left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>)
                          right: (arith_expr.ArithWord w:{(Lit_Digits 0)})
                        )
                      update: 
                        (arith_expr.UnaryAssign
                          op_id: Node_PostDMinus
                          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: 
                                                {
                                                  (word_part.BracedVarSub
                                                    token: <VSub_Name words>
                                                    bracket_op: 
                                                      (bracket_op.ArrayIndex
                                                        expr: 
                                                          (arith_expr.ArithVarRef
                                                            token: <Lit_ArithVarLike i>
                                                          )
                                                      )
                                                  )
                                                }
                                              right: 
                                                {(-) 
                                                  (word_part.ExtGlobPart
                                                    op: <ExtGlob_At '@('>
                                                    arms: [{(C)} {(-fontpath)}]
                                                  )
                                                }
                                            )
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [
                                    (command.Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (lhs_expr.LhsName name:font_path)
                                          op: Equal
                                          rhs: 
                                            {
                                              (DQ 
                                                (word_part.BracedVarSub
                                                  token: <VSub_Name words>
                                                  bracket_op: 
                                                    (bracket_op.ArrayIndex
                                                      expr: 
                                                        (arith_expr.ArithBinary
                                                          op_id: Arith_Plus
                                                          left: 
                                                            (arith_expr.ArithVarRef
                                                              token: <Lit_ArithVarLike i>
                                                            )
                                                          right: 
                                                            (arith_expr.ArithWord
                                                              w: {(Lit_Digits 1)}
                                                            )
                                                        )
                                                    )
                                                )
                                              )
                                            }
                                        )
                                      ]
                                    )
                                    (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: [
                                                            (command.Sentence
                                                              child: 
                                                                (command.SimpleCommand
                                                                  words: [
                                                                    {(cd)}
                                                                    {
                                                                      (DQ 
                                                                        ($ VSub_DollarName 
'$font_path'
                                                                        )
                                                                      )
                                                                    }
                                                                  ]
                                                                  redirects: [
                                                                    (redir.Redir
                                                                      op: <Redir_Great '2>'>
                                                                      fd: 2
                                                                      arg_word: {(/dev/null)}
                                                                    )
                                                                  ]
                                                                )
                                                              terminator: <Op_Semi ';'>
                                                            )
                                                            (C {(compgen)} {(-f)} {(-X)} 
                                                              {(DQ ('!*.@([tT][tT][fF])'))} {(-S)} {(/)} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                            )
                                                          ]
                                                        )
                                                      left_token: <Left_CommandSub '$('>
                                                    )
                                                  }
                                                ]
                                              )
                                            }
                                        )
                                      ]
                                    )
                                  ]
                                )
                              ]
                            )
                          ]
                        )
                    )
                    (C {(compopt)} {(-o)} {(nospace)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [{(-T)} {(--theme)}]
                  action: [
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:conf_path)
                          op: Equal
                          rhs: 
                            {(word_part.TildeSubPart token:<Lit_TildeLike '~'>) (/.config/feh/themes)}
                        )
                      ]
                    )
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:theme_name)
                          op: Equal
                        )
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:theme_opts)
                          op: Equal
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Op_DPipe]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolUnary
                              op_id: BoolUnary_r
                              child: {($ VSub_DollarName '$conf_path')}
                            )
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                    )
                    (command.WhileUntil
                      keyword: <KW_While while>
                      cond: [
                        (command.Sentence
                          child: (C {(read)} {(theme_name)} {(theme_opts)})
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      body: 
                        (command.DoGroup
                          children: [
                            (command.If
                              arms: [
                                (if_arm
                                  cond: [
                                    (command.Sentence
                                      child: 
                                        (command.DBracket
                                          expr: 
                                            (bool_expr.LogicalOr
                                              left: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$theme_name'))}
                                                  right: {(SQ <'#'>) (Lit_Other '*')}
                                                )
                                              right: 
                                                (bool_expr.BoolBinary
                                                  op_id: BoolBinary_GlobDEqual
                                                  left: {(DQ ($ VSub_DollarName '$theme_name'))}
                                                  right: {(DQ )}
                                                )
                                            )
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [(command.ControlFlow token:<ControlFlow_Continue continue>)]
                                )
                              ]
                            )
                            (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)} 
                                                      {(DQ ($ VSub_DollarName '$theme_name'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                            )
                                          }
                                        ]
                                      )
                                    }
                                )
                              ]
                            )
                          ]
                        )
                      redirects: [
                        (redir.Redir
                          op: <Redir_Less '<'>
                          fd: 16777215
                          arg_word: {(DQ ($ VSub_DollarName '$conf_path'))}
                        )
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [{(-S)} {(--sort)}]
                  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 <'name filename mtime width height\n'> 
                                                  <'                pixels size format'>
                                                )
                                              } {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [
                    {(-R)}
                    {(--reload)}
                    {(-H)}
                    {(--limit-height)}
                    {(-W)}
                    {(--limit-width)}
                    {(-E)}
                    {(--thumb-height)}
                    {(-y)}
                    {(--thumb-width)}
                    {(-J)}
                    {(--thumb-redraw)}
                    {(--magick-timeout)}
                  ]
                  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 <'{0..9}'>)})]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (C {(compopt)} {(-o)} {(nospace)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [{(--zoom)}]
                  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 <'max fill'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.LogicalOr
                                      left: 
                                        (bool_expr.LogicalNot
                                          child: (bool_expr.WordTest w:{($ VSub_DollarName '$cur')})
                                        )
                                      right: 
                                        (bool_expr.LogicalNot
                                          child: 
                                            (bool_expr.WordTest
                                              w: {($ VSub_DollarName '$COMPREPLY')}
                                            )
                                        )
                                    )
                                )
                              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 <'{0..9}'>)})]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                            )
                                          }
                                        ]
                                      )
                                    }
                                )
                              ]
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                          ]
                        )
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [{(-a)} {(--alpha)}]
                  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 <'{0..255}'>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [{(-b)} {(--bg)}]
                  action: [
                    (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 <trans>)} {(--)} 
                                              {(DQ ($ VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [{(-g)} {(--geometry)} {(--max-dimension)} {(--min-dimension)}]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.LogicalAnd
                                      left: (bool_expr.WordTest w:{($ VSub_DollarName '$cur')})
                                      right: 
                                        (bool_expr.BoolBinary
                                          op_id: BoolBinary_GlobNEqual
                                          left: {(DQ ($ VSub_DollarName '$cur'))}
                                          right: {(Lit_Other '*') (x) (Lit_Other '*')}
                                        )
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: {(word_part.ArrayLiteralPart words:[{(x)}])}
                                )
                              ]
                            )
                          ]
                        )
                      ]
                    )
                    (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)} {(DQ ('{0..9}'))})]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                    )
                                  }
                                ]
                              )
                            }
                        )
                      ]
                    )
                    (C {(compopt)} {(-o)} {(nospace)})
                    (command.ControlFlow token:<ControlFlow_Return return>)
                  ]
                )
                (case_arm
                  pat_list: [
                    {(-L)}
                    {(--customlist)}
                    {(--index-info)}
                    {(--info)}
                    {(-D)}
                    {(--slideshow-delay)}
                    {(-) (Lit_TildeLike '~')}
                    {(--thumb-title)}
                    {(-) (Lit_Other '^')}
                    {(--title)}
                  ]
                  action: [(command.ControlFlow token:<ControlFlow_Return return>)]
                )
              ]
            )
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (C {($ VSub_DollarName '$split')})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (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 '*')}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  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 <'$( _parse_help "$1" --help )'>)} 
                                              {(--)} {(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)})
                      ]
                    )
                    (command.AndOr
                      ops: [Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: (bool_expr.WordTest w:{($ VSub_DollarName '$COMPREPLY')})
                        )
                        (command.ControlFlow
                          token: <ControlFlow_Return return>
                        )
                      ]
                    )
                  ]
                )
              ]
            )
            (C {(_filedir)} 
              {
                (SQ 
                  <
'xpm|tif?(f)|png|p[npgba]m|iff|?(i)lbm|jp?(e)g|jfi?(f)|gif|bmp|arg?(b)|tga|xcf|ani|ico|?(e)ps|pdf|dvi|txt|svg?(z)|cdr|[ot]tf'
                  >
                )
              }
            )
          ]
        )
    )
    (C {(complete)} {(-F)} {(_feh)} {(feh)})
  ]
)