(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _larch
      body: 
        (command.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.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.LogicalOr
                              left: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_eq
                                  left: {($ Id.VSub_DollarName '$cword')}
                                  right: {<1>}
                                )
                              right: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(DQ ($ Id.VSub_DollarName '$prev'))}
                                  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 '$('>
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {<compgen>} {<-W>} 
                                              {
                                                (SQ <' \\\n'> 
                                                  <
'            my-id my-default-archive register-archive whereis-archive archives \\\n'
                                                  > <'            init-tree tree-root tree-version set-tree-version inventory \\\n'> 
                                                  <
'            tagging-method tree-lint missing-tags add delete \\\n'
                                                  > <'            move explicit-default set-manifest manifest check-manifest mkpatch \\\n'> 
                                                  <
'            dopatch patch-report empty-patch make-archive make-category \\\n'
                                                  > <'            make-branch make-version categories branches versions revisions \\\n'> 
                                                  <
'            cat-archive-log archive-cache-revision archive-cached-revisions \\\n'
                                                  > <'            archive-uncache-revision category-readme branch-readme \\\n'> 
                                                  <
'            version-readme make-log logs add-log log-ls cat-log \\\n'
                                                  > <'            log-header-field changelog log-for-merge merge-points \\\n'> 
                                                  <
'            new-on-branch import commit get get-patch lock-branch \\\n'
                                                  > <'            lock-revision push-mirror build-config update-config replay-config \\\n'> 
                                                  <
'            record-config show-config config-history update replay delta-patch \\\n'
                                                  > <'            star-merge tag prepare-branch finish-branch join-branch \\\n'> 
                                                  <
'            whats-missing what-changed file-diffs pristines lock-pristine \\\n'
                                                  > <'            my-revision-library library-find library-add library-remove \\\n'> 
                                                  <
'            library-archives library-categories library-branches \\\n'
                                                  > <'            library-versions library-revisions library-log library-file \\\n'> 
                                                  <
'            touched-files-prereqs patch-set-web update-distributions \\\n'
                                                  > <'            distribution-name notify my-notifier mail-new-categories \\\n'> 
                                                  <
'            mail-new-branches mail-new-versions mail-new-revisions \\\n'
                                                  > <'            notify-library notify-browser push-new-revisions sendmail-mailx'>
                                                )
                                              } {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                          ]
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [60]
                        )
                      ]
                    )
                  ]
                  spids: [33 57]
                )
              ]
            )
            (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
        )
    )
    (C {<complete>} {<-F>} {<_larch>} {<-o>} {<default>} {<larch>})
  ]
)