(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _fbgs
      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: {(DQ ($ Id.VSub_DollarName '$prev'))}
              arms: [
                (case_arm
                  pat_list: [{<-f>} {<--font>}]
                  action: [
                    (C {<local>} 
                      {<Id.Lit_VarLike 'IFS='> 
                        (single_quoted
                          left: <Id.Left_SingleQuoteC '$\''>
                          tokens: [<Id.Char_OneChar '\\n'>]
                        )
                      }
                    )
                    (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 <'$( fc-list 2>/dev/null )'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [53]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [39 42 80 -1]
                )
                (case_arm
                  pat_list: [{<-m>} {<--mode>}]
                  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 <'$( sed \\\n'> 
                                              <
'                -n "/^mode/{s/^mode \\{1,\\}\\"\\([^\\"]\\{1,\\}\\)\\"/\\1/g;p}" \\\n'
                                              > <'                /etc/fb.modes 2> /dev/null )'>
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [89]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [83 86 118 -1]
                )
                (case_arm
                  pat_list: [{<-d>} {<--device>}]
                  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>} {<-f>} {<-d>} {<-->} 
                                          {
                                            (DQ 
                                              (braced_var_sub
                                                token: <Id.VSub_Name cur>
                                                suffix_op: 
                                                  (suffix_op.Unary
                                                    op_id: Id.VTest_ColonHyphen
                                                    arg_word: 
                                                      {<Id.Lit_Slash '/'> <dev> <Id.Lit_Slash '/'>}
                                                  )
                                              )
                                            )
                                          }
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [127]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [121 124 158 -1]
                )
                (case_arm
                  pat_list: [
                    {<-fp>}
                    {<--firstpage>}
                    {<-lp>}
                    {<--lastpage>}
                    {<-r>}
                    {<--resolution>}
                    {<-s>}
                    {<--scroll>}
                    {<-t>}
                    {<--timeout>}
                  ]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          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 <'{0..9}'>)})
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [189]
                        )
                      ]
                    )
                    (C {<compopt>} {<-o>} {<nospace>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [161 182 217 -1]
                )
                (case_arm
                  pat_list: [{<-T>} {<--vt>} {<-p>} {<--password>} {<-g>} {<--gamma>}]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)]
                  spids: [220 231 241 -1]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.Binary
                              op_id: Id.BoolBinary_GlobDEqual
                              left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                              right: {<-> <Id.Lit_Other '*'>}
                            )
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} 
                                          {
                                            (SQ <'--bell --help --password -fp --firstpage\n'> 
                                              <
'            -lp --lastpage --color -l -xl -xxl --resolution --autozoom\n'
                                              > <'            --{,no}autoup --{,no}autodown --{,no}fitwidth --{,no}verbose\n'> 
                                              <
'            --{,no}random --vt --scroll --timeout --{,no}once --gamma --font\n'
                                              > <'            --device --mode'>
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [267]
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$COMPREPLY')})
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                        )
                      ]
                    )
                  ]
                  spids: [248 264]
                )
              ]
            )
            (C {<_filedir>} {(SQ <'?(e)ps|pdf'>)})
          ]
        )
    )
    (C {<complete>} {<-F>} {<_fbgs>} {<fbgs>})
  ]
)