
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void gldelf_k1om_add_options
               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)

{
  undefined4 uVar1;
  char *pcVar2;
  option *poVar3;
  int iVar4;
  uint uVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  byte bVar8;
  
  bVar8 = 0;
  pcVar2 = (char *)xrealloc(*shortopts,ns + 5);
  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;
  *shortopts = pcVar2;
  *(undefined4 *)(pcVar2 + ns) = uVar1;
  pcVar2[ns + 4] = gldelf_k1om_add_options::xtra_short[4];
  poVar3 = (option *)xrealloc(*longopts,(nl + 0xe) * 0x10);
  *longopts = poVar3;
  poVar3 = poVar3 + nl;
  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;
  puVar7 = (undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc);
  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;
  iVar4 = (int)poVar3 - (int)puVar7;
  puVar6 = (undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4);
  for (uVar5 = iVar4 + 0xe0U >> 2; uVar5 != 0; uVar5 = uVar5 - 1) {
    *puVar7 = *puVar6;
    puVar6 = puVar6 + (uint)bVar8 * -2 + 1;
    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  byte bVar7;
  
  bVar7 = 0;
  iVar2 = xrealloc(*param_2,param_1 + 5);
  uVar1 = DAT_00192dd4;
  *param_2 = iVar2;
  *(undefined4 *)(iVar2 + param_1) = uVar1;
  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;
  iVar5 = (param_3 + 0xe) * 0x10;
  iVar2 = xrealloc(*param_4,iVar5);
  *param_4 = iVar2;
  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);
  *puVar6 = PTR_s_audit_001ccf60;
  puVar6[0x37] = DAT_001cd03c;
  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);
  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);
  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);
  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar6 = *puVar4;
    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;
    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x17f4b7
SUB ESP,0x14
MOV EBP,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x34]
LEA EAX,[EBP + 0x5]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x000163f0
MOV EDX,dword ptr [EBX + 0xfffc4dd4]
MOV dword ptr [EDI],EAX
MOV dword ptr [EAX + EBP*0x1],EDX
MOVZX EDX,byte ptr [EBX + 0xfffc4dd8]
MOV byte ptr [EAX + EBP*0x1 + 0x4],DL
MOV EAX,dword ptr [ESP + 0x38]
LEA EDI,[EAX + 0xe]
POP EAX
POP EDX
SHL EDI,0x4
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x000163f0
MOV dword ptr [ESI],EAX
LEA ECX,[EAX + EDI*0x1 + 0xffffff20]
MOV EAX,dword ptr [EBX + 0xffffef60]
LEA ESI,[EBX + 0xffffef60]
LEA EDI,[ECX + 0x4]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [EBX + 0xfffff03c]
AND EDI,0xfffffffc
MOV dword ptr [ECX + 0xdc],EAX
SUB ECX,EDI
SUB ESI,ECX
ADD ECX,0xe0
SHR ECX,0x2
MOVSD.REP ES:EDI,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)" identifier (parameter_list "(int param_1,int *param_2,int param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = xrealloc(*param_2,param_1 + 5);" (assignment_expression "iVar2 = xrealloc(*param_2,param_1 + 5)" identifier = (call_expression "xrealloc(*param_2,param_1 + 5)" identifier (argument_list "(*param_2,param_1 + 5)" ( (pointer_expression "*param_2" * identifier) , (binary_expression "param_1 + 5" identifier + number_literal) )))) ;) (expression_statement "uVar1 = DAT_00192dd4;" (assignment_expression "uVar1 = DAT_00192dd4" identifier = identifier) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + param_1) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + param_1) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + param_1)" * (cast_expression "(undefined4 *)(iVar2 + param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_1)" ( (binary_expression "iVar2 + param_1" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;" (assignment_expression "*(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8" (pointer_expression "*(undefined1 *)(iVar2 + 4 + param_1)" * (cast_expression "(undefined1 *)(iVar2 + 4 + param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + param_1)" ( (binary_expression "iVar2 + 4 + param_1" (binary_expression "iVar2 + 4" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "iVar5 = (param_3 + 0xe) * 0x10;" (assignment_expression "iVar5 = (param_3 + 0xe) * 0x10" identifier = (binary_expression "(param_3 + 0xe) * 0x10" (parenthesized_expression "(param_3 + 0xe)" ( (binary_expression "param_3 + 0xe" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar2 = xrealloc(*param_4,iVar5);" (assignment_expression "iVar2 = xrealloc(*param_4,iVar5)" identifier = (call_expression "xrealloc(*param_4,iVar5)" identifier (argument_list "(*param_4,iVar5)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "*param_4 = iVar2;" (assignment_expression "*param_4 = iVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);" (assignment_expression "puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5)" identifier = (cast_expression "(undefined4 *)(iVar2 + -0xe0 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xe0 + iVar5)" ( (binary_expression "iVar2 + -0xe0 + iVar5" (binary_expression "iVar2 + -0xe0" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar6 = PTR_s_audit_001ccf60;" (assignment_expression "*puVar6 = PTR_s_audit_001ccf60" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[0x37] = DAT_001cd03c;" (assignment_expression "puVar6[0x37] = DAT_001cd03c" (subscript_expression "puVar6[0x37]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc)" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(puVar6 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar6 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar6 + 1) & 0xfffffffc" (call_expression "(uint)(puVar6 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);" (assignment_expression "puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2)" identifier = (cast_expression "(undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&PTR_s_audit_001ccf60 - iVar2)" ( (binary_expression "(int)&PTR_s_audit_001ccf60 - iVar2" (cast_expression "(int)&PTR_s_audit_001ccf60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_s_audit_001ccf60" & identifier)) - identifier) )))) ;) (expression_statement "puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);" (assignment_expression "puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar6 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar6 + 1) & 0xfffffffc" (call_expression "(uint)(puVar6 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = iVar2 + 0xe0U >> 2" identifier = (binary_expression "iVar2 + 0xe0U >> 2" (binary_expression "iVar2 + 0xe0U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" { (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar7 * -2 + 1" (binary_expression "puVar4 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid gldelf_k1om_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  option *poVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  pcVar2 = (char *)xrealloc(*shortopts,ns + 5);\n  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;\n  *shortopts = pcVar2;\n  *(undefined4 *)(pcVar2 + ns) = uVar1;\n  pcVar2[ns + 4] = gldelf_k1om_add_options::xtra_short[4];\n  poVar3 = (option *)xrealloc(*longopts,(nl + 0xe) * 0x10);\n  *longopts = poVar3;\n  poVar3 = poVar3 + nl;\n  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;\n  puVar7 = (undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc);\n  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;\n  iVar4 = (int)poVar3 - (int)puVar7;\n  puVar6 = (undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4);\n  for (uVar5 = iVar4 + 0xe0U >> 2; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }\n  return;\n}\n\n" comment (function_definition "void gldelf_k1om_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  option *poVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  pcVar2 = (char *)xrealloc(*shortopts,ns + 5);\n  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;\n  *shortopts = pcVar2;\n  *(undefined4 *)(pcVar2 + ns) = uVar1;\n  pcVar2[ns + 4] = gldelf_k1om_add_options::xtra_short[4];\n  poVar3 = (option *)xrealloc(*longopts,(nl + 0xe) * 0x10);\n  *longopts = poVar3;\n  poVar3 = poVar3 + nl;\n  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;\n  puVar7 = (undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc);\n  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;\n  iVar4 = (int)poVar3 - (int)puVar7;\n  puVar6 = (undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4);\n  for (uVar5 = iVar4 + 0xe0U >> 2; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "gldelf_k1om_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)" identifier (parameter_list "(int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)" ( (parameter_declaration "int ns" primitive_type identifier) , (parameter_declaration "char **shortopts" primitive_type (pointer_declarator "**shortopts" * (pointer_declarator "*shortopts" * identifier))) , (parameter_declaration "int nl" primitive_type identifier) , (parameter_declaration "option **longopts" type_identifier (pointer_declarator "**longopts" * (pointer_declarator "*longopts" * identifier))) , (parameter_declaration "int nrl" primitive_type identifier) , (parameter_declaration "option **really_longopts" type_identifier (pointer_declarator "**really_longopts" * (pointer_declarator "*really_longopts" * identifier))) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  option *poVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  pcVar2 = (char *)xrealloc(*shortopts,ns + 5);\n  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;\n  *shortopts = pcVar2;\n  *(undefined4 *)(pcVar2 + ns) = uVar1;\n  pcVar2[ns + 4] = gldelf_k1om_add_options::xtra_short[4];\n  poVar3 = (option *)xrealloc(*longopts,(nl + 0xe) * 0x10);\n  *longopts = poVar3;\n  poVar3 = poVar3 + nl;\n  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;\n  puVar7 = (undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc);\n  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;\n  iVar4 = (int)poVar3 - (int)puVar7;\n  puVar6 = (undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4);\n  for (uVar5 = iVar4 + 0xe0U >> 2; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "option *poVar3;" type_identifier (pointer_declarator "*poVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = (char *)xrealloc(*shortopts,ns + 5);" (assignment_expression "pcVar2 = (char *)xrealloc(*shortopts,ns + 5)" identifier = (cast_expression "(char *)xrealloc(*shortopts,ns + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(*shortopts,ns + 5)" identifier (argument_list "(*shortopts,ns + 5)" ( (pointer_expression "*shortopts" * identifier) , (binary_expression "ns + 5" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;" (field_expression "uVar1 = gldelf_k1om_add_options::xtra_short._0_4_" (assignment_expression "uVar1 = gldelf_k1om_add_options" identifier = identifier) (ERROR "::xtra_short" : : identifier) . field_identifier) ;) (expression_statement "*shortopts = pcVar2;" (assignment_expression "*shortopts = pcVar2" (pointer_expression "*shortopts" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(pcVar2 + ns) = uVar1;" (assignment_expression "*(undefined4 *)(pcVar2 + ns) = uVar1" (pointer_expression "*(undefined4 *)(pcVar2 + ns)" * (cast_expression "(undefined4 *)(pcVar2 + ns)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + ns)" ( (binary_expression "pcVar2 + ns" identifier + identifier) )))) = identifier) ;) (expression_statement "pcVar2[ns + 4] = gldelf_k1om_add_options::xtra_short[4];" (subscript_expression "pcVar2[ns + 4] = gldelf_k1om_add_options::xtra_short[4]" (assignment_expression "pcVar2[ns + 4] = gldelf_k1om_add_options" (subscript_expression "pcVar2[ns + 4]" identifier [ (binary_expression "ns + 4" identifier + number_literal) ]) = identifier) (ERROR "::xtra_short" : : identifier) [ number_literal ]) ;) (expression_statement "poVar3 = (option *)xrealloc(*longopts,(nl + 0xe) * 0x10);" (assignment_expression "poVar3 = (option *)xrealloc(*longopts,(nl + 0xe) * 0x10)" identifier = (cast_expression "(option *)xrealloc(*longopts,(nl + 0xe) * 0x10)" ( (type_descriptor "option *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(*longopts,(nl + 0xe) * 0x10)" identifier (argument_list "(*longopts,(nl + 0xe) * 0x10)" ( (pointer_expression "*longopts" * identifier) , (binary_expression "(nl + 0xe) * 0x10" (parenthesized_expression "(nl + 0xe)" ( (binary_expression "nl + 0xe" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*longopts = poVar3;" (assignment_expression "*longopts = poVar3" (pointer_expression "*longopts" * identifier) = identifier) ;) (expression_statement "poVar3 = poVar3 + nl;" (assignment_expression "poVar3 = poVar3 + nl" identifier = (binary_expression "poVar3 + nl" identifier + identifier)) ;) (expression_statement "poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;" (field_expression "poVar3->name = gldelf_k1om_add_options::xtra_long[0].name" (subscript_expression "poVar3->name = gldelf_k1om_add_options::xtra_long[0]" (assignment_expression "poVar3->name = gldelf_k1om_add_options" (field_expression "poVar3->name" identifier -> field_identifier) = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "puVar7 = (undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc);" (assignment_expression "puVar7 = (undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)&poVar3->has_arg & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)&poVar3->has_arg & 0xfffffffc)" ( (binary_expression "(uint)&poVar3->has_arg & 0xfffffffc" (binary_expression "(uint)&poVar3->has_arg" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "poVar3->has_arg" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;" (field_expression "poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val" (subscript_expression "poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd]" (assignment_expression "poVar3[0xd].val = gldelf_k1om_add_options" (field_expression "poVar3[0xd].val" (subscript_expression "poVar3[0xd]" identifier [ number_literal ]) . field_identifier) = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "iVar4 = (int)poVar3 - (int)puVar7;" (assignment_expression "iVar4 = (int)poVar3 - (int)puVar7" identifier = (binary_expression "(int)poVar3 - (int)puVar7" (cast_expression "(int)poVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar6 = (undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4);" (assignment_expression "puVar6 = (undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4)" identifier = (cast_expression "(undefined4 *)((int)gldelf_k1om_add_options::xtra_long - iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)gldelf_k1om_add_options::xtra_long - iVar4)" ( (binary_expression "(int)gldelf_k1om_add_options::xtra_long - iVar4" (cast_expression "(int)gldelf_k1om_add_options" ( (type_descriptor "int" primitive_type) ) identifier) (ERROR "::xtra_long" : : identifier) - identifier) )))) ;) (for_statement "for (uVar5 = iVar4 + 0xe0U >> 2; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }" for ( (assignment_expression "uVar5 = iVar4 + 0xe0U >> 2" identifier = (binary_expression "iVar4 + 0xe0U >> 2" (binary_expression "iVar4 + 0xe0U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }" { (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar8 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar8 * -2 + 1" (binary_expression "puVar6 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar7 = puVar7 + (uint)bVar8 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "puVar7 + (uint)bVar8 * -2 + 1" (binary_expression "puVar7 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)" identifier (parameter_list "(int param_1,int *param_2,int param_3,int *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = xrealloc(*param_2,param_1 + 5);" (assignment_expression "iVar2 = xrealloc(*param_2,param_1 + 5)" identifier = (call_expression "xrealloc(*param_2,param_1 + 5)" identifier (argument_list "(*param_2,param_1 + 5)" ( (pointer_expression "*param_2" * identifier) , (binary_expression "param_1 + 5" identifier + number_literal) )))) ;) (expression_statement "uVar1 = DAT_00192dd4;" (assignment_expression "uVar1 = DAT_00192dd4" identifier = identifier) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + param_1) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + param_1) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + param_1)" * (cast_expression "(undefined4 *)(iVar2 + param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_1)" ( (binary_expression "iVar2 + param_1" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;" (assignment_expression "*(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8" (pointer_expression "*(undefined1 *)(iVar2 + 4 + param_1)" * (cast_expression "(undefined1 *)(iVar2 + 4 + param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + param_1)" ( (binary_expression "iVar2 + 4 + param_1" (binary_expression "iVar2 + 4" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "iVar5 = (param_3 + 0xe) * 0x10;" (assignment_expression "iVar5 = (param_3 + 0xe) * 0x10" identifier = (binary_expression "(param_3 + 0xe) * 0x10" (parenthesized_expression "(param_3 + 0xe)" ( (binary_expression "param_3 + 0xe" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar2 = xrealloc(*param_4,iVar5);" (assignment_expression "iVar2 = xrealloc(*param_4,iVar5)" identifier = (call_expression "xrealloc(*param_4,iVar5)" identifier (argument_list "(*param_4,iVar5)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "*param_4 = iVar2;" (assignment_expression "*param_4 = iVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);" (assignment_expression "puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5)" identifier = (cast_expression "(undefined4 *)(iVar2 + -0xe0 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xe0 + iVar5)" ( (binary_expression "iVar2 + -0xe0 + iVar5" (binary_expression "iVar2 + -0xe0" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar6 = PTR_s_audit_001ccf60;" (assignment_expression "*puVar6 = PTR_s_audit_001ccf60" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[0x37] = DAT_001cd03c;" (assignment_expression "puVar6[0x37] = DAT_001cd03c" (subscript_expression "puVar6[0x37]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc)" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(puVar6 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar6 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar6 + 1) & 0xfffffffc" (call_expression "(uint)(puVar6 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);" (assignment_expression "puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2)" identifier = (cast_expression "(undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&PTR_s_audit_001ccf60 - iVar2)" ( (binary_expression "(int)&PTR_s_audit_001ccf60 - iVar2" (cast_expression "(int)&PTR_s_audit_001ccf60" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&PTR_s_audit_001ccf60" & identifier)) - identifier) )))) ;) (expression_statement "puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);" (assignment_expression "puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar6 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar6 + 1) & 0xfffffffc" (call_expression "(uint)(puVar6 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = iVar2 + 0xe0U >> 2" identifier = (binary_expression "iVar2 + 0xe0U >> 2" (binary_expression "iVar2 + 0xe0U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" { (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar7 * -2 + 1" (binary_expression "puVar4 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004eb40(int param_1,int *param_2,int param_3,int *param_4)" (identifier "FUN_0004eb40") (parameter_list "(int param_1,int *param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  iVar2 = xrealloc(*param_2,param_1 + 5);\n  uVar1 = DAT_00192dd4;\n  *param_2 = iVar2;\n  *(undefined4 *)(iVar2 + param_1) = uVar1;\n  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;\n  iVar5 = (param_3 + 0xe) * 0x10;\n  iVar2 = xrealloc(*param_4,iVar5);\n  *param_4 = iVar2;\n  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);\n  *puVar6 = PTR_s_audit_001ccf60;\n  puVar6[0x37] = DAT_001cd03c;\n  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);\n  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);\n  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);\n  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = xrealloc(*param_2,param_1 + 5);" (assignment_expression "iVar2 = xrealloc(*param_2,param_1 + 5)" (identifier "iVar2") (= "=") (call_expression "xrealloc(*param_2,param_1 + 5)" (identifier "xrealloc") (argument_list "(*param_2,param_1 + 5)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (; ";")) (expression_statement "uVar1 = DAT_00192dd4;" (assignment_expression "uVar1 = DAT_00192dd4" (identifier "uVar1") (= "=") (identifier "DAT_00192dd4")) (; ";")) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + param_1) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + param_1) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + param_1)" (* "*") (cast_expression "(undefined4 *)(iVar2 + param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + param_1)" (( "(") (binary_expression "iVar2 + param_1" (identifier "iVar2") (+ "+") (identifier "param_1")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;" (assignment_expression "*(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8" (pointer_expression "*(undefined1 *)(iVar2 + 4 + param_1)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 4 + param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4 + param_1)" (( "(") (binary_expression "iVar2 + 4 + param_1" (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) (+ "+") (identifier "param_1")) () ")")))) (= "=") (identifier "DAT_00192dd8")) (; ";")) (expression_statement "iVar5 = (param_3 + 0xe) * 0x10;" (assignment_expression "iVar5 = (param_3 + 0xe) * 0x10" (identifier "iVar5") (= "=") (binary_expression "(param_3 + 0xe) * 0x10" (parenthesized_expression "(param_3 + 0xe)" (( "(") (binary_expression "param_3 + 0xe" (identifier "param_3") (+ "+") (number_literal "0xe")) () ")")) (* "*") (number_literal "0x10"))) (; ";")) (expression_statement "iVar2 = xrealloc(*param_4,iVar5);" (assignment_expression "iVar2 = xrealloc(*param_4,iVar5)" (identifier "iVar2") (= "=") (call_expression "xrealloc(*param_4,iVar5)" (identifier "xrealloc") (argument_list "(*param_4,iVar5)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "*param_4 = iVar2;" (assignment_expression "*param_4 = iVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);" (assignment_expression "puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(iVar2 + -0xe0 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xe0 + iVar5)" (( "(") (binary_expression "iVar2 + -0xe0 + iVar5" (binary_expression "iVar2 + -0xe0" (identifier "iVar2") (+ "+") (number_literal "-0xe0")) (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "*puVar6 = PTR_s_audit_001ccf60;" (assignment_expression "*puVar6 = PTR_s_audit_001ccf60" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "PTR_s_audit_001ccf60")) (; ";")) (expression_statement "puVar6[0x37] = DAT_001cd03c;" (assignment_expression "puVar6[0x37] = DAT_001cd03c" (subscript_expression "puVar6[0x37]" (identifier "puVar6") ([ "[") (number_literal "0x37") (] "]")) (= "=") (identifier "DAT_001cd03c")) (; ";")) (expression_statement "iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc)" (identifier "iVar2") (= "=") (binary_expression "(int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc)" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (- "-") (cast_expression "(int)((uint)(puVar6 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(puVar6 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar6 + 1) & 0xfffffffc" (call_expression "(uint)(puVar6 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar6 + 1)" (( "(") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))))) (; ";")) (expression_statement "puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);" (assignment_expression "puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&PTR_s_audit_001ccf60 - iVar2)" (( "(") (binary_expression "(int)&PTR_s_audit_001ccf60 - iVar2" (cast_expression "(int)&PTR_s_audit_001ccf60" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&PTR_s_audit_001ccf60" (& "&") (identifier "PTR_s_audit_001ccf60"))) (- "-") (identifier "iVar2")) () ")")))) (; ";")) (expression_statement "puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);" (assignment_expression "puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(puVar6 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar6 + 1) & 0xfffffffc" (call_expression "(uint)(puVar6 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar6 + 1)" (( "(") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = iVar2 + 0xe0U >> 2" (identifier "uVar3") (= "=") (binary_expression "iVar2 + 0xe0U >> 2" (binary_expression "iVar2 + 0xe0U" (identifier "iVar2") (+ "+") (number_literal "0xe0U")) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar6 = *puVar4;\n    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar7 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar7 * -2 + 1" (binary_expression "puVar4 + (uint)bVar7 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" (identifier "puVar6") (+ "+") (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void function_1
               (int var_2,char **shortopts,int var_4,type_1 **longopts,int nrl,type_1 **really_longopts)

{
  type_2 uVar1;
  char *var_3;
  type_1 *var_5;
  int var_6;
  type_3 var_7;
  type_2 *var_8;
  type_2 *var_9;
  type_4 bVar8;
  
  bVar8 = 0;
  var_3 = (char *)var_1(*shortopts,var_2 + 5);
  uVar1 = function_1::xtra_short._0_4_;
  *shortopts = var_3;
  *(type_2 *)(var_3 + var_2) = uVar1;
  var_3[var_2 + 4] = function_1::xtra_short[4];
  var_5 = (type_1 *)var_1(*longopts,(var_4 + 0xe) * 0x10);
  *longopts = var_5;
  var_5 = var_5 + var_4;
  var_5->name = function_1::xtra_long[0].name;
  var_9 = (type_2 *)((type_3)&var_5->has_arg & 0xfffffffc);
  var_5[0xd].val = function_1::xtra_long[0xd].val;
  var_6 = (int)var_5 - (int)var_9;
  var_8 = (type_2 *)((int)function_1::xtra_long - var_6);
  for (var_7 = var_6 + 0xe0U >> 2; var_7 != 0; var_7 = var_7 - 1) {
    *var_9 = *var_8;
    var_8 = var_8 + (type_3)bVar8 * -2 + 1;
    var_9 = var_9 + (type_3)bVar8 * -2 + 1;
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1,int *param_2,int param_3,int *param_4)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  byte bVar7;
  
  bVar7 = 0;
  iVar2 = xrealloc(*param_2,param_1 + 5);
  uVar1 = DAT_00192dd4;
  *param_2 = iVar2;
  *(undefined4 *)(iVar2 + param_1) = uVar1;
  *(undefined1 *)(iVar2 + 4 + param_1) = DAT_00192dd8;
  iVar5 = (param_3 + 0xe) * 0x10;
  iVar2 = xrealloc(*param_4,iVar5);
  *param_4 = iVar2;
  puVar6 = (undefined4 *)(iVar2 + -0xe0 + iVar5);
  *puVar6 = PTR_s_audit_001ccf60;
  puVar6[0x37] = DAT_001cd03c;
  iVar2 = (int)puVar6 - (int)((uint)(puVar6 + 1) & 0xfffffffc);
  puVar4 = (undefined4 *)((int)&PTR_s_audit_001ccf60 - iVar2);
  puVar6 = (undefined4 *)((uint)(puVar6 + 1) & 0xfffffffc);
  for (uVar3 = iVar2 + 0xe0U >> 2; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar6 = *puVar4;
    puVar4 = puVar4 + (uint)bVar7 * -2 + 1;
    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;
  }
  return;
}

