(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _xhost
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[14])
                  op: Equal
                  spids: [14]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[16])
                  op: Equal
                  spids: [16]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[18])
                  op: Equal
                  spids: [18]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[20])
                  op: Equal
                  spids: [20]
                )
              ]
              spids: [12]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$cur')}
              arms: [
                (case_arm
                  pat_list: [{(Lit_Other '+') (Lit_Other '*')}]
                  action: [
                    (C {(_known_hosts_real)} {(-p) (Lit_Other '+')} 
                      {
                        (DQ 
                          (word_part.BracedVarSub
                            token: <VSub_Name cur>
                            suffix_op: (suffix_op.Slice begin:(arith_expr.ArithWord w:{(Lit_Digits 1)}))
                            spids: [48 52]
                          )
                        )
                      }
                    )
                  ]
                  spids: [38 40 55 16777215]
                )
                (case_arm
                  pat_list: [{(-) (Lit_Other '*')}]
                  action: [
                    (C {(_known_hosts_real)} {(-p-)} 
                      {
                        (DQ 
                          (word_part.BracedVarSub
                            token: <VSub_Name cur>
                            suffix_op: (suffix_op.Slice begin:(arith_expr.ArithWord w:{(Lit_Digits 1)}))
                            spids: [67 71]
                          )
                        )
                      }
                    )
                  ]
                  spids: [58 60 74 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [(C {(_known_hosts_real)} {(DQ ($ VSub_DollarName '$cur'))})]
                  spids: [77 78 86 16777215]
                )
              ]
              spids: [31 35 89]
            )
          ]
          spids: [9]
        )
      spids: [4 8]
    )
    (C {(complete)} {(-F)} {(_xhost)} {(xhost)})
  ]
)