
STRINGLIST *
gen_progcomp_completions
          (char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,
          COMPSPEC **lastcs)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  COMPSPEC *cs;
  undefined4 uVar4;
  COMPSPEC *pCVar5;
  int iVar6;
  uint uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  
  cs = progcomp_search(ocmd);
  if (cs != (COMPSPEC *)0x0) {
    pCVar5 = *lastcs;
    if (pCVar5 == cs) {
      cs = (COMPSPEC *)0x0;
    }
    else {
      if (pCVar5 != (COMPSPEC *)0x0) {
        compspec_dispose(pCVar5);
      }
      puVar3 = PTR_pcomp_curcmd_00145840;
      puVar2 = PTR_pcomp_curcs_0014583c;
      puVar1 = PTR_pcomp_curtxt_00145798;
      cs->refcount = cs->refcount + 1;
      *lastcs = cs;
      pCVar5 = compspec_copy(cs);
      uVar4 = *(undefined4 *)puVar2;
      uVar9 = *(undefined4 *)puVar3;
      uVar8 = *(undefined4 *)puVar1;
      *(COMPSPEC **)puVar2 = pCVar5;
      *(char **)puVar3 = cmd;
      *(char **)puVar1 = word;
      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);
      iVar6 = *foundp;
      uVar7 = pCVar5->options;
      *(undefined4 *)puVar2 = uVar4;
      *(undefined4 *)puVar3 = uVar9;
      *(undefined4 *)puVar1 = uVar8;
      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;
      *foundp = *foundp & 0xfffffdffU | uVar7;
      compspec_dispose(pCVar5);
    }
  }
  return (STRINGLIST *)cs;
}



int * FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  uint uVar7;
  uint uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  
  piVar4 = (int *)progcomp_search();
  if (piVar4 != (int *)0x0) {
    if ((int *)*param_8 == piVar4) {
      piVar4 = (int *)0x0;
    }
    else {
      if ((int *)*param_8 != (int *)0x0) {
        compspec_dispose();
      }
      puVar3 = PTR_pcomp_curcmd_00145840;
      puVar2 = PTR_pcomp_curcs_0014583c;
      puVar1 = PTR_pcomp_curtxt_00145798;
      *piVar4 = *piVar4 + 1;
      *param_8 = (int)piVar4;
      iVar5 = compspec_copy(piVar4);
      uVar6 = *(undefined4 *)puVar2;
      uVar10 = *(undefined4 *)puVar3;
      uVar9 = *(undefined4 *)puVar1;
      *(int *)puVar2 = iVar5;
      *(undefined4 *)puVar3 = param_2;
      *(undefined4 *)puVar1 = param_3;
      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);
      uVar7 = *param_6;
      uVar8 = *(uint *)(iVar5 + 8);
      *(undefined4 *)puVar2 = uVar6;
      *(undefined4 *)puVar3 = uVar10;
      *(undefined4 *)puVar1 = uVar9;
      *param_7 = (uVar7 << 0x16) >> 0x1f;
      *param_6 = *param_6 & 0xfffffdff | uVar8;
      compspec_dispose(iVar5);
    }
  }
  return piVar4;
}


lui gp,0xa
addiu gp,gp,0x1d0
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x6e58(gp)
sw gp,0x18(sp)
sw s7,0x44(sp)
or s7,a3,zero
sw s6,0x40(sp)
or s6,a1,zero
sw s5,0x3c(sp)
or s5,a2,zero
sw s1,0x2c(sp)
sw s0,0x28(sp)
sw ra,0x4c(sp)
sw s8,0x48(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
lw s0,0x64(sp)
bal 0x000ad1ec
_lw s1,0x6c(sp)
beq v0,zero,0x000ac4b4
_lw gp,0x18(sp)
lw a0,0x0(s1)
beq a0,v0,0x000ac4e4
_nop
beq a0,zero,0x000ac3f4
_lw t9,-0x6d10(gp)
bal 0x000acc28
_sw v0,0x20(sp)
lw gp,0x18(sp)
lw v0,0x20(sp)
lw v1,0x0(v0)
or a0,v0,zero
lw t9,-0x6d08(gp)
lw s4,-0x6d04(gp)
addiu v1,v1,0x1
lw s3,-0x6d00(gp)
lw s2,-0x6da8(gp)
sw v1,0x0(v0)
bal 0x000acc5c
_sw v0,0x0(s1)
or a3,s7,zero
lw gp,0x18(sp)
or s1,v0,zero
lw v1,0x0(s4)
or a0,v0,zero
lw v0,0x60(sp)
or a2,s5,zero
lw s8,0x0(s3)
or a1,s6,zero
lw t9,-0x6cfc(gp)
lw s7,0x0(s2)
sw v1,0x24(sp)
sw s0,0x14(sp)
sw v0,0x10(sp)
sw s1,0x0(s4)
sw s6,0x0(s3)
bal 0x000ab42c
_sw s5,0x0(s2)
or a0,s1,zero
lw v1,0x24(sp)
lw a1,0x0(s0)
lw gp,0x18(sp)
lw a2,0x8(s1)
sw v1,0x0(s4)
ext a1,a1,0x9,0x1
sw s8,0x0(s3)
sw s7,0x0(s2)
lw v1,0x68(sp)
lw t9,-0x6d10(gp)
sw v0,0x20(sp)
sw a1,0x0(v1)
li a1,-0x201
lw v1,0x0(s0)
and v1,v1,a1
or v1,v1,a2
bal 0x000acc28
_sw v1,0x0(s0)
lw v0,0x20(sp)
lw ra,0x4c(sp)
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
b 0x000ac4b4
_or v0,zero,zero
(translation_unit "int * FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}\n\n" (function_definition "int * FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}" primitive_type (pointer_declarator "* FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" * (function_declarator "FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "uint *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (expression_statement "piVar4 = (int *)progcomp_search();" (assignment_expression "piVar4 = (int *)progcomp_search()" identifier = (cast_expression "(int *)progcomp_search()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "progcomp_search()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }" { (if_statement "if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" if (parenthesized_expression "((int *)*param_8 == piVar4)" ( (binary_expression "(int *)*param_8 == piVar4" (cast_expression "(int *)*param_8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_8" * identifier)) == identifier) )) (compound_statement "{\n      piVar4 = (int *)0x0;\n    }" { (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" else (compound_statement "{\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" { (if_statement "if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }" if (parenthesized_expression "((int *)*param_8 != (int *)0x0)" ( (binary_expression "(int *)*param_8 != (int *)0x0" (cast_expression "(int *)*param_8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_8" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        compspec_dispose();\n      }" { (expression_statement "compspec_dispose();" (call_expression "compspec_dispose()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = PTR_pcomp_curcmd_00145840;" (assignment_expression "puVar3 = PTR_pcomp_curcmd_00145840" identifier = identifier) ;) (expression_statement "puVar2 = PTR_pcomp_curcs_0014583c;" (assignment_expression "puVar2 = PTR_pcomp_curcs_0014583c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_pcomp_curtxt_00145798;" (assignment_expression "puVar1 = PTR_pcomp_curtxt_00145798" identifier = identifier) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "*param_8 = (int)piVar4;" (assignment_expression "*param_8 = (int)piVar4" (pointer_expression "*param_8" * identifier) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar5 = compspec_copy(piVar4);" (assignment_expression "iVar5 = compspec_copy(piVar4)" identifier = (call_expression "compspec_copy(piVar4)" identifier (argument_list "(piVar4)" ( identifier )))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar2;" (assignment_expression "uVar6 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar10 = *(undefined4 *)puVar3;" (assignment_expression "uVar10 = *(undefined4 *)puVar3" identifier = (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = *(undefined4 *)puVar1;" (assignment_expression "uVar9 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)puVar2 = iVar5;" (assignment_expression "*(int *)puVar2 = iVar5" (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar3 = param_2;" (assignment_expression "*(undefined4 *)puVar3 = param_2" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = param_3;" (assignment_expression "*(undefined4 *)puVar1 = param_3" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);" (assignment_expression "piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" identifier = (cast_expression "(int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(iVar5,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "uVar7 = *param_6;" (assignment_expression "uVar7 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar8 = *(uint *)(iVar5 + 8);" (assignment_expression "uVar8 = *(uint *)(iVar5 + 8)" identifier = (pointer_expression "*(uint *)(iVar5 + 8)" * (cast_expression "(uint *)(iVar5 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)puVar2 = uVar6;" (assignment_expression "*(undefined4 *)puVar2 = uVar6" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar3 = uVar10;" (assignment_expression "*(undefined4 *)puVar3 = uVar10" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = uVar9;" (assignment_expression "*(undefined4 *)puVar1 = uVar9" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*param_7 = (uVar7 << 0x16) >> 0x1f;" (assignment_expression "*param_7 = (uVar7 << 0x16) >> 0x1f" (pointer_expression "*param_7" * identifier) = (binary_expression "(uVar7 << 0x16) >> 0x1f" (parenthesized_expression "(uVar7 << 0x16)" ( (binary_expression "uVar7 << 0x16" identifier << number_literal) )) >> number_literal)) ;) (expression_statement "*param_6 = *param_6 & 0xfffffdff | uVar8;" (assignment_expression "*param_6 = *param_6 & 0xfffffdff | uVar8" (pointer_expression "*param_6" * identifier) = (binary_expression "*param_6 & 0xfffffdff | uVar8" (binary_expression "*param_6 & 0xfffffdff" (pointer_expression "*param_6" * identifier) & number_literal) | identifier)) ;) (expression_statement "compspec_dispose(iVar5);" (call_expression "compspec_dispose(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) }))) })) (return_statement "return piVar4;" return identifier ;) })))
(translation_unit "STRINGLIST *\ngen_progcomp_completions\n          (char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,\n          COMPSPEC **lastcs)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  COMPSPEC *cs;\n  undefined4 uVar4;\n  COMPSPEC *pCVar5;\n  int iVar6;\n  uint uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  cs = progcomp_search(ocmd);\n  if (cs != (COMPSPEC *)0x0) {\n    pCVar5 = *lastcs;\n    if (pCVar5 == cs) {\n      cs = (COMPSPEC *)0x0;\n    }\n    else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }\n  }\n  return (STRINGLIST *)cs;\n}\n\n" (function_definition "STRINGLIST *\ngen_progcomp_completions\n          (char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,\n          COMPSPEC **lastcs)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  COMPSPEC *cs;\n  undefined4 uVar4;\n  COMPSPEC *pCVar5;\n  int iVar6;\n  uint uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  cs = progcomp_search(ocmd);\n  if (cs != (COMPSPEC *)0x0) {\n    pCVar5 = *lastcs;\n    if (pCVar5 == cs) {\n      cs = (COMPSPEC *)0x0;\n    }\n    else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }\n  }\n  return (STRINGLIST *)cs;\n}" type_identifier (pointer_declarator "*\ngen_progcomp_completions\n          (char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,\n          COMPSPEC **lastcs)" * (function_declarator "gen_progcomp_completions\n          (char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,\n          COMPSPEC **lastcs)" identifier (parameter_list "(char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,\n          COMPSPEC **lastcs)" ( (parameter_declaration "char *ocmd" primitive_type (pointer_declarator "*ocmd" * identifier)) , (parameter_declaration "char *cmd" primitive_type (pointer_declarator "*cmd" * identifier)) , (parameter_declaration "char *word" primitive_type (pointer_declarator "*word" * identifier)) , (parameter_declaration "int start" primitive_type identifier) , (parameter_declaration "int end" primitive_type identifier) , (parameter_declaration "int *foundp" primitive_type (pointer_declarator "*foundp" * identifier)) , (parameter_declaration "int *retryp" primitive_type (pointer_declarator "*retryp" * identifier)) , (parameter_declaration "COMPSPEC **lastcs" type_identifier (pointer_declarator "**lastcs" * (pointer_declarator "*lastcs" * identifier))) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  COMPSPEC *cs;\n  undefined4 uVar4;\n  COMPSPEC *pCVar5;\n  int iVar6;\n  uint uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  cs = progcomp_search(ocmd);\n  if (cs != (COMPSPEC *)0x0) {\n    pCVar5 = *lastcs;\n    if (pCVar5 == cs) {\n      cs = (COMPSPEC *)0x0;\n    }\n    else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }\n  }\n  return (STRINGLIST *)cs;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "COMPSPEC *cs;" type_identifier (pointer_declarator "*cs" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "COMPSPEC *pCVar5;" type_identifier (pointer_declarator "*pCVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "cs = progcomp_search(ocmd);" (assignment_expression "cs = progcomp_search(ocmd)" identifier = (call_expression "progcomp_search(ocmd)" identifier (argument_list "(ocmd)" ( identifier )))) ;) (if_statement "if (cs != (COMPSPEC *)0x0) {\n    pCVar5 = *lastcs;\n    if (pCVar5 == cs) {\n      cs = (COMPSPEC *)0x0;\n    }\n    else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }\n  }" if (parenthesized_expression "(cs != (COMPSPEC *)0x0)" ( (binary_expression "cs != (COMPSPEC *)0x0" identifier != (cast_expression "(COMPSPEC *)0x0" ( (type_descriptor "COMPSPEC *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pCVar5 = *lastcs;\n    if (pCVar5 == cs) {\n      cs = (COMPSPEC *)0x0;\n    }\n    else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }\n  }" { (expression_statement "pCVar5 = *lastcs;" (assignment_expression "pCVar5 = *lastcs" identifier = (pointer_expression "*lastcs" * identifier)) ;) (if_statement "if (pCVar5 == cs) {\n      cs = (COMPSPEC *)0x0;\n    }\n    else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }" if (parenthesized_expression "(pCVar5 == cs)" ( (binary_expression "pCVar5 == cs" identifier == identifier) )) (compound_statement "{\n      cs = (COMPSPEC *)0x0;\n    }" { (expression_statement "cs = (COMPSPEC *)0x0;" (assignment_expression "cs = (COMPSPEC *)0x0" identifier = (cast_expression "(COMPSPEC *)0x0" ( (type_descriptor "COMPSPEC *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }" else (compound_statement "{\n      if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      cs->refcount = cs->refcount + 1;\n      *lastcs = cs;\n      pCVar5 = compspec_copy(cs);\n      uVar4 = *(undefined4 *)puVar2;\n      uVar9 = *(undefined4 *)puVar3;\n      uVar8 = *(undefined4 *)puVar1;\n      *(COMPSPEC **)puVar2 = pCVar5;\n      *(char **)puVar3 = cmd;\n      *(char **)puVar1 = word;\n      cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);\n      iVar6 = *foundp;\n      uVar7 = pCVar5->options;\n      *(undefined4 *)puVar2 = uVar4;\n      *(undefined4 *)puVar3 = uVar9;\n      *(undefined4 *)puVar1 = uVar8;\n      *retryp = (uint)(iVar6 << 0x16) >> 0x1f;\n      *foundp = *foundp & 0xfffffdffU | uVar7;\n      compspec_dispose(pCVar5);\n    }" { (if_statement "if (pCVar5 != (COMPSPEC *)0x0) {\n        compspec_dispose(pCVar5);\n      }" if (parenthesized_expression "(pCVar5 != (COMPSPEC *)0x0)" ( (binary_expression "pCVar5 != (COMPSPEC *)0x0" identifier != (cast_expression "(COMPSPEC *)0x0" ( (type_descriptor "COMPSPEC *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        compspec_dispose(pCVar5);\n      }" { (expression_statement "compspec_dispose(pCVar5);" (call_expression "compspec_dispose(pCVar5)" identifier (argument_list "(pCVar5)" ( identifier ))) ;) })) (expression_statement "puVar3 = PTR_pcomp_curcmd_00145840;" (assignment_expression "puVar3 = PTR_pcomp_curcmd_00145840" identifier = identifier) ;) (expression_statement "puVar2 = PTR_pcomp_curcs_0014583c;" (assignment_expression "puVar2 = PTR_pcomp_curcs_0014583c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_pcomp_curtxt_00145798;" (assignment_expression "puVar1 = PTR_pcomp_curtxt_00145798" identifier = identifier) ;) (expression_statement "cs->refcount = cs->refcount + 1;" (assignment_expression "cs->refcount = cs->refcount + 1" (field_expression "cs->refcount" identifier -> field_identifier) = (binary_expression "cs->refcount + 1" (field_expression "cs->refcount" identifier -> field_identifier) + number_literal)) ;) (expression_statement "*lastcs = cs;" (assignment_expression "*lastcs = cs" (pointer_expression "*lastcs" * identifier) = identifier) ;) (expression_statement "pCVar5 = compspec_copy(cs);" (assignment_expression "pCVar5 = compspec_copy(cs)" identifier = (call_expression "compspec_copy(cs)" identifier (argument_list "(cs)" ( identifier )))) ;) (expression_statement "uVar4 = *(undefined4 *)puVar2;" (assignment_expression "uVar4 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = *(undefined4 *)puVar3;" (assignment_expression "uVar9 = *(undefined4 *)puVar3" identifier = (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(COMPSPEC **)puVar2 = pCVar5;" (assignment_expression "*(COMPSPEC **)puVar2 = pCVar5" (pointer_expression "*(COMPSPEC **)puVar2" * (cast_expression "(COMPSPEC **)puVar2" ( (type_descriptor "COMPSPEC **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(char **)puVar3 = cmd;" (assignment_expression "*(char **)puVar3 = cmd" (pointer_expression "*(char **)puVar3" * (cast_expression "(char **)puVar3" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(char **)puVar1 = word;" (assignment_expression "*(char **)puVar1 = word" (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp);" (assignment_expression "cs = (COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp)" identifier = (cast_expression "(COMPSPEC *)gen_compspec_completions(pCVar5,cmd,word,start,end,foundp)" ( (type_descriptor "COMPSPEC *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gen_compspec_completions(pCVar5,cmd,word,start,end,foundp)" identifier (argument_list "(pCVar5,cmd,word,start,end,foundp)" ( identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "iVar6 = *foundp;" (assignment_expression "iVar6 = *foundp" identifier = (pointer_expression "*foundp" * identifier)) ;) (expression_statement "uVar7 = pCVar5->options;" (assignment_expression "uVar7 = pCVar5->options" identifier = (field_expression "pCVar5->options" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)puVar2 = uVar4;" (assignment_expression "*(undefined4 *)puVar2 = uVar4" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar3 = uVar9;" (assignment_expression "*(undefined4 *)puVar3 = uVar9" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = uVar8;" (assignment_expression "*(undefined4 *)puVar1 = uVar8" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*retryp = (uint)(iVar6 << 0x16) >> 0x1f;" (assignment_expression "*retryp = (uint)(iVar6 << 0x16) >> 0x1f" (pointer_expression "*retryp" * identifier) = (binary_expression "(uint)(iVar6 << 0x16) >> 0x1f" (call_expression "(uint)(iVar6 << 0x16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar6 << 0x16)" ( (binary_expression "iVar6 << 0x16" identifier << number_literal) ))) >> number_literal)) ;) (expression_statement "*foundp = *foundp & 0xfffffdffU | uVar7;" (assignment_expression "*foundp = *foundp & 0xfffffdffU | uVar7" (pointer_expression "*foundp" * identifier) = (binary_expression "*foundp & 0xfffffdffU | uVar7" (binary_expression "*foundp & 0xfffffdffU" (pointer_expression "*foundp" * identifier) & number_literal) | identifier)) ;) (expression_statement "compspec_dispose(pCVar5);" (call_expression "compspec_dispose(pCVar5)" identifier (argument_list "(pCVar5)" ( identifier ))) ;) }))) })) (return_statement "return (STRINGLIST *)cs;" return (cast_expression "(STRINGLIST *)cs" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "int * FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}\n\n" (function_definition "int * FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}" primitive_type (pointer_declarator "* FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" * (function_declarator "FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "uint *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (expression_statement "piVar4 = (int *)progcomp_search();" (assignment_expression "piVar4 = (int *)progcomp_search()" identifier = (cast_expression "(int *)progcomp_search()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "progcomp_search()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }" { (if_statement "if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" if (parenthesized_expression "((int *)*param_8 == piVar4)" ( (binary_expression "(int *)*param_8 == piVar4" (cast_expression "(int *)*param_8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_8" * identifier)) == identifier) )) (compound_statement "{\n      piVar4 = (int *)0x0;\n    }" { (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" else (compound_statement "{\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" { (if_statement "if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }" if (parenthesized_expression "((int *)*param_8 != (int *)0x0)" ( (binary_expression "(int *)*param_8 != (int *)0x0" (cast_expression "(int *)*param_8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_8" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        compspec_dispose();\n      }" { (expression_statement "compspec_dispose();" (call_expression "compspec_dispose()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = PTR_pcomp_curcmd_00145840;" (assignment_expression "puVar3 = PTR_pcomp_curcmd_00145840" identifier = identifier) ;) (expression_statement "puVar2 = PTR_pcomp_curcs_0014583c;" (assignment_expression "puVar2 = PTR_pcomp_curcs_0014583c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_pcomp_curtxt_00145798;" (assignment_expression "puVar1 = PTR_pcomp_curtxt_00145798" identifier = identifier) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "*param_8 = (int)piVar4;" (assignment_expression "*param_8 = (int)piVar4" (pointer_expression "*param_8" * identifier) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar5 = compspec_copy(piVar4);" (assignment_expression "iVar5 = compspec_copy(piVar4)" identifier = (call_expression "compspec_copy(piVar4)" identifier (argument_list "(piVar4)" ( identifier )))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar2;" (assignment_expression "uVar6 = *(undefined4 *)puVar2" identifier = (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar10 = *(undefined4 *)puVar3;" (assignment_expression "uVar10 = *(undefined4 *)puVar3" identifier = (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = *(undefined4 *)puVar1;" (assignment_expression "uVar9 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)puVar2 = iVar5;" (assignment_expression "*(int *)puVar2 = iVar5" (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar3 = param_2;" (assignment_expression "*(undefined4 *)puVar3 = param_2" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = param_3;" (assignment_expression "*(undefined4 *)puVar1 = param_3" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);" (assignment_expression "piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" identifier = (cast_expression "(int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(iVar5,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "uVar7 = *param_6;" (assignment_expression "uVar7 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar8 = *(uint *)(iVar5 + 8);" (assignment_expression "uVar8 = *(uint *)(iVar5 + 8)" identifier = (pointer_expression "*(uint *)(iVar5 + 8)" * (cast_expression "(uint *)(iVar5 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)puVar2 = uVar6;" (assignment_expression "*(undefined4 *)puVar2 = uVar6" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar3 = uVar10;" (assignment_expression "*(undefined4 *)puVar3 = uVar10" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)puVar1 = uVar9;" (assignment_expression "*(undefined4 *)puVar1 = uVar9" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*param_7 = (uVar7 << 0x16) >> 0x1f;" (assignment_expression "*param_7 = (uVar7 << 0x16) >> 0x1f" (pointer_expression "*param_7" * identifier) = (binary_expression "(uVar7 << 0x16) >> 0x1f" (parenthesized_expression "(uVar7 << 0x16)" ( (binary_expression "uVar7 << 0x16" identifier << number_literal) )) >> number_literal)) ;) (expression_statement "*param_6 = *param_6 & 0xfffffdff | uVar8;" (assignment_expression "*param_6 = *param_6 & 0xfffffdff | uVar8" (pointer_expression "*param_6" * identifier) = (binary_expression "*param_6 & 0xfffffdff | uVar8" (binary_expression "*param_6 & 0xfffffdff" (pointer_expression "*param_6" * identifier) & number_literal) | identifier)) ;) (expression_statement "compspec_dispose(iVar5);" (call_expression "compspec_dispose(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) }))) })) (return_statement "return piVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & LIT) | IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}" (primitive_type "int") (pointer_declarator "* FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" (* "*") (function_declarator "FUN_000ac370(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" (identifier "FUN_000ac370") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "uint *param_6" (type_identifier "uint") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) (, ",") (parameter_declaration "uint *param_7" (type_identifier "uint") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "int *param_8" (primitive_type "int") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  piVar4 = (int *)progcomp_search();\n  if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }\n  return piVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (expression_statement "piVar4 = (int *)progcomp_search();" (assignment_expression "piVar4 = (int *)progcomp_search()" (identifier "piVar4") (= "=") (cast_expression "(int *)progcomp_search()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "progcomp_search()" (identifier "progcomp_search") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar4 != (int *)0x0) {\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }" (if "if") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }\n  }" ({ "{") (if_statement "if ((int *)*param_8 == piVar4) {\n      piVar4 = (int *)0x0;\n    }\n    else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" (if "if") (parenthesized_expression "((int *)*param_8 == piVar4)" (( "(") (binary_expression "(int *)*param_8 == piVar4" (cast_expression "(int *)*param_8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_8" (* "*") (identifier "param_8"))) (== "==") (identifier "piVar4")) () ")")) (compound_statement "{\n      piVar4 = (int *)0x0;\n    }" ({ "{") (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" (identifier "piVar4") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" (else "else") (compound_statement "{\n      if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }\n      puVar3 = PTR_pcomp_curcmd_00145840;\n      puVar2 = PTR_pcomp_curcs_0014583c;\n      puVar1 = PTR_pcomp_curtxt_00145798;\n      *piVar4 = *piVar4 + 1;\n      *param_8 = (int)piVar4;\n      iVar5 = compspec_copy(piVar4);\n      uVar6 = *(undefined4 *)puVar2;\n      uVar10 = *(undefined4 *)puVar3;\n      uVar9 = *(undefined4 *)puVar1;\n      *(int *)puVar2 = iVar5;\n      *(undefined4 *)puVar3 = param_2;\n      *(undefined4 *)puVar1 = param_3;\n      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);\n      uVar7 = *param_6;\n      uVar8 = *(uint *)(iVar5 + 8);\n      *(undefined4 *)puVar2 = uVar6;\n      *(undefined4 *)puVar3 = uVar10;\n      *(undefined4 *)puVar1 = uVar9;\n      *param_7 = (uVar7 << 0x16) >> 0x1f;\n      *param_6 = *param_6 & 0xfffffdff | uVar8;\n      compspec_dispose(iVar5);\n    }" ({ "{") (if_statement "if ((int *)*param_8 != (int *)0x0) {\n        compspec_dispose();\n      }" (if "if") (parenthesized_expression "((int *)*param_8 != (int *)0x0)" (( "(") (binary_expression "(int *)*param_8 != (int *)0x0" (cast_expression "(int *)*param_8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_8" (* "*") (identifier "param_8"))) (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        compspec_dispose();\n      }" ({ "{") (expression_statement "compspec_dispose();" (call_expression "compspec_dispose()" (identifier "compspec_dispose") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = PTR_pcomp_curcmd_00145840;" (assignment_expression "puVar3 = PTR_pcomp_curcmd_00145840" (identifier "puVar3") (= "=") (identifier "PTR_pcomp_curcmd_00145840")) (; ";")) (expression_statement "puVar2 = PTR_pcomp_curcs_0014583c;" (assignment_expression "puVar2 = PTR_pcomp_curcs_0014583c" (identifier "puVar2") (= "=") (identifier "PTR_pcomp_curcs_0014583c")) (; ";")) (expression_statement "puVar1 = PTR_pcomp_curtxt_00145798;" (assignment_expression "puVar1 = PTR_pcomp_curtxt_00145798" (identifier "puVar1") (= "=") (identifier "PTR_pcomp_curtxt_00145798")) (; ";")) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_8 = (int)piVar4;" (assignment_expression "*param_8 = (int)piVar4" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4"))) (; ";")) (expression_statement "iVar5 = compspec_copy(piVar4);" (assignment_expression "iVar5 = compspec_copy(piVar4)" (identifier "iVar5") (= "=") (call_expression "compspec_copy(piVar4)" (identifier "compspec_copy") (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)puVar2;" (assignment_expression "uVar6 = *(undefined4 *)puVar2" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "uVar10 = *(undefined4 *)puVar3;" (assignment_expression "uVar10 = *(undefined4 *)puVar3" (identifier "uVar10") (= "=") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) (; ";")) (expression_statement "uVar9 = *(undefined4 *)puVar1;" (assignment_expression "uVar9 = *(undefined4 *)puVar1" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "*(int *)puVar2 = iVar5;" (assignment_expression "*(int *)puVar2 = iVar5" (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)puVar3 = param_2;" (assignment_expression "*(undefined4 *)puVar3 = param_2" (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)puVar1 = param_3;" (assignment_expression "*(undefined4 *)puVar1 = param_3" (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);" (assignment_expression "piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" (identifier "piVar4") (= "=") (cast_expression "(int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6)" (identifier "gen_compspec_completions") (argument_list "(iVar5,param_2,param_3,param_4,param_5,param_6)" (( "(") (identifier "iVar5") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))))) (; ";")) (expression_statement "uVar7 = *param_6;" (assignment_expression "uVar7 = *param_6" (identifier "uVar7") (= "=") (pointer_expression "*param_6" (* "*") (identifier "param_6"))) (; ";")) (expression_statement "uVar8 = *(uint *)(iVar5 + 8);" (assignment_expression "uVar8 = *(uint *)(iVar5 + 8)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(iVar5 + 8)" (* "*") (cast_expression "(uint *)(iVar5 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)puVar2 = uVar6;" (assignment_expression "*(undefined4 *)puVar2 = uVar6" (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "*(undefined4 *)puVar3 = uVar10;" (assignment_expression "*(undefined4 *)puVar3 = uVar10" (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "*(undefined4 *)puVar1 = uVar9;" (assignment_expression "*(undefined4 *)puVar1 = uVar9" (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*param_7 = (uVar7 << 0x16) >> 0x1f;" (assignment_expression "*param_7 = (uVar7 << 0x16) >> 0x1f" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (binary_expression "(uVar7 << 0x16) >> 0x1f" (parenthesized_expression "(uVar7 << 0x16)" (( "(") (binary_expression "uVar7 << 0x16" (identifier "uVar7") (<< "<<") (number_literal "0x16")) () ")")) (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "*param_6 = *param_6 & 0xfffffdff | uVar8;" (assignment_expression "*param_6 = *param_6 & 0xfffffdff | uVar8" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (binary_expression "*param_6 & 0xfffffdff | uVar8" (binary_expression "*param_6 & 0xfffffdff" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (& "&") (number_literal "0xfffffdff")) (| "|") (identifier "uVar8"))) (; ";")) (expression_statement "compspec_dispose(iVar5);" (call_expression "compspec_dispose(iVar5)" (identifier "compspec_dispose") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return piVar4;" (return "return") (identifier "piVar4") (; ";")) (} "}")))

type_1 *
function_1
          (char *ocmd,char *cmd,char *word,int start,int end,int *foundp,int *retryp,
          type_2 **lastcs)

{
  type_3 *puVar1;
  type_3 *puVar2;
  type_3 *puVar3;
  type_2 *var_2;
  type_4 uVar4;
  type_2 *var_3;
  int var_7;
  type_5 var_8;
  type_4 uVar8;
  type_4 uVar9;
  
  var_2 = var_1(ocmd);
  if (var_2 != (type_2 *)0x0) {
    var_3 = *lastcs;
    if (var_3 == var_2) {
      var_2 = (type_2 *)0x0;
    }
    else {
      if (var_3 != (type_2 *)0x0) {
        var_4(var_3);
      }
      puVar3 = PTR_pcomp_curcmd_00145840;
      puVar2 = PTR_pcomp_curcs_0014583c;
      puVar1 = PTR_pcomp_curtxt_00145798;
      var_2->refcount = var_2->refcount + 1;
      *lastcs = var_2;
      var_3 = var_5(var_2);
      uVar4 = *(type_4 *)puVar2;
      uVar9 = *(type_4 *)puVar3;
      uVar8 = *(type_4 *)puVar1;
      *(type_2 **)puVar2 = var_3;
      *(char **)puVar3 = cmd;
      *(char **)puVar1 = word;
      var_2 = (type_2 *)var_6(var_3,cmd,word,start,end,foundp);
      var_7 = *foundp;
      var_8 = var_3->options;
      *(type_4 *)puVar2 = uVar4;
      *(type_4 *)puVar3 = uVar9;
      *(type_4 *)puVar1 = uVar8;
      *retryp = (type_5)(var_7 << 0x16) >> 0x1f;
      *foundp = *foundp & 0xfffffdffU | var_8;
      var_4(var_3);
    }
  }
  return (type_1 *)var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (return_statement (identifier)))))

int * MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                  undefined4 param_5,uint *param_6,uint *param_7,int *param_8)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  uint uVar7;
  uint uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  
  piVar4 = (int *)progcomp_search();
  if (piVar4 != (int *)0x0) {
    if ((int *)*param_8 == piVar4) {
      piVar4 = (int *)0x0;
    }
    else {
      if ((int *)*param_8 != (int *)0x0) {
        compspec_dispose();
      }
      puVar3 = PTR_pcomp_curcmd_00145840;
      puVar2 = PTR_pcomp_curcs_0014583c;
      puVar1 = PTR_pcomp_curtxt_00145798;
      *piVar4 = *piVar4 + 1;
      *param_8 = (int)piVar4;
      iVar5 = compspec_copy(piVar4);
      uVar6 = *(undefined4 *)puVar2;
      uVar10 = *(undefined4 *)puVar3;
      uVar9 = *(undefined4 *)puVar1;
      *(int *)puVar2 = iVar5;
      *(undefined4 *)puVar3 = param_2;
      *(undefined4 *)puVar1 = param_3;
      piVar4 = (int *)gen_compspec_completions(iVar5,param_2,param_3,param_4,param_5,param_6);
      uVar7 = *param_6;
      uVar8 = *(uint *)(iVar5 + 8);
      *(undefined4 *)puVar2 = uVar6;
      *(undefined4 *)puVar3 = uVar10;
      *(undefined4 *)puVar1 = uVar9;
      *param_7 = (uVar7 << 0x16) >> 0x1f;
      *param_6 = *param_6 & 0xfffffdff | uVar8;
      compspec_dispose(iVar5);
    }
  }
  return piVar4;
}

