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

char * quotearg_style(quoting_style s,char *arg)

{
  int iVar1;
  int iVar2;
  uint buffersize;
  int *piVar3;
  slotvec *psVar4;
  size_t sVar5;
  char *buffer;
  char *left_quote;
  char *right_quote;
  int in_GS_OFFSET;
  uint local_6c;
  quoting_options o;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (s == custom_quoting_style) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  o.style = s;
  o.flags = 0;
  o.quote_these_too[0] = 0;
  o.quote_these_too[1] = 0;
  o.quote_these_too[2] = 0;
  o.quote_these_too[3] = 0;
  o.quote_these_too[4] = 0;
  o.quote_these_too[5] = 0;
  o.quote_these_too[6] = 0;
  o.quote_these_too[7] = 0;
  o.left_quote = (char *)0x0;
  o.right_quote = (char *)0x0;
  piVar3 = __errno_location();
  iVar2 = *piVar3;
  if (nslots < 1) {
    if (slotvec == &slotvec0) {
      psVar4 = (slotvec *)xrealloc((void *)0x0,8);
      sVar5 = slotvec0.size;
      slotvec = psVar4;
      psVar4->val = slotvec0.val;
      psVar4->size = sVar5;
    }
    else {
      psVar4 = (slotvec *)xrealloc(slotvec,8);
      slotvec = psVar4;
    }
    memset(psVar4 + nslots,0,(1 - nslots) * 8);
    nslots = 1;
    local_6c = o.flags | 1;
    left_quote = o.left_quote;
    right_quote = o.right_quote;
    s = o.style;
  }
  else {
    left_quote = (char *)0x0;
    right_quote = (char *)0x0;
    local_6c = 1;
    psVar4 = slotvec;
  }
  buffersize = psVar4->size;
  buffer = psVar4->val;
  sVar5 = quotearg_buffer_restyled
                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,
                     right_quote);
  if (buffersize <= sVar5) {
    sVar5 = sVar5 + 1;
    psVar4->size = sVar5;
    if (buffer != slot0) {
      free(buffer);
    }
    buffer = (char *)xmalloc(sVar5);
    psVar4->val = buffer;
    quotearg_buffer_restyled
              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,
               o.right_quote);
  }
  *piVar3 = iVar2;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return buffer;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined * FUN_0002d630(int param_1)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  uint *puVar4;
  uint uVar5;
  undefined *__ptr;
  undefined4 uVar6;
  undefined4 uVar7;
  int in_GS_OFFSET;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2d639;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 10) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  local_48 = 0;
  local_44 = 0;
  local_40 = 0;
  local_3c = 0;
  local_38 = 0;
  local_34 = 0;
  local_30 = 0;
  local_2c = 0;
  local_28 = 0;
  local_24 = 0;
  piVar3 = __errno_location();
  iVar1 = *piVar3;
  if (DAT_00048090 < 1) {
    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {
      puVar4 = (uint *)FUN_0002efd0(0,8);
      uVar2 = DAT_00048098;
      PTR_DAT_00048094 = (undefined *)puVar4;
      puVar4[1] = (uint)PTR_DAT_0004809c;
      *puVar4 = uVar2;
    }
    else {
      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);
      PTR_DAT_00048094 = (undefined *)puVar4;
    }
    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);
    DAT_00048090 = 1;
    uVar6 = local_28;
    uVar7 = local_24;
  }
  else {
    uVar6 = 0;
    uVar7 = 0;
    puVar4 = (uint *)PTR_DAT_00048094;
  }
  uVar2 = *puVar4;
  __ptr = (undefined *)puVar4[1];
  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);
  if (uVar2 <= uVar5) {
    *puVar4 = uVar5 + 1;
    if (__ptr != &DAT_0004c380) {
      free(__ptr);
    }
    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);
    puVar4[1] = (uint)__ptr;
    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);
  }
  *piVar3 = iVar1;
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return __ptr;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00038830();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000142a0
ADD EBX,0x1a7b3
SUB ESP,0x6c
MOV EAX,dword ptr [ESP + 0x84]
MOV EDX,dword ptr [ESP + 0x80]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x5c],EAX
XOR EAX,EAX
CMP EDX,0xa
JZ 0x000127ac
MOV dword ptr [ESP + 0x2c],EDX
MOV dword ptr [ESP + 0x80],EDX
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x3c],0x0
MOV dword ptr [ESP + 0x40],0x0
MOV dword ptr [ESP + 0x44],0x0
MOV dword ptr [ESP + 0x48],0x0
MOV dword ptr [ESP + 0x4c],0x0
MOV dword ptr [ESP + 0x50],0x0
MOV dword ptr [ESP + 0x54],0x0
MOV dword ptr [ESP + 0x58],0x0
CALL 0x00012450
MOV ECX,dword ptr [EBX + 0x2a4]
MOV ESI,dword ptr [EBX + 0x2a8]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [EAX]
TEST ECX,ECX
MOV EDX,dword ptr [ESP + 0x80]
MOV dword ptr [ESP + 0x18],EAX
JG 0x0002d830
LEA EAX,[EBX + 0x2ac]
CMP ESI,EAX
JZ 0x0002d800
SUB ESP,0x8
PUSH 0x8
PUSH ESI
CALL 0x0002efd0
ADD ESP,0x10
MOV dword ptr [EBX + 0x2a8],EAX
MOV ESI,EAX
MOV EDX,dword ptr [EBX + 0x2a4]
MOV EAX,0x1
SUB ESP,0x4
SUB EAX,EDX
LEA EDX,[ESI + EDX*0x8]
SHL EAX,0x3
PUSH EAX
PUSH 0x0
PUSH EDX
CALL 0x00012420
MOV EAX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x68]
MOV dword ptr [EBX + 0x2a4],0x1
MOV EDX,dword ptr [ESP + 0x3c]
OR EAX,0x1
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [ESP + 0x64]
ADD ESP,0x10
SUB ESP,0x8
MOV EBP,dword ptr [ESI]
MOV EDI,dword ptr [ESI + 0x4]
PUSH ECX
PUSH EAX
LEA EAX,[ESP + 0x44]
MOV dword ptr [ESP + 0x2c],EAX
PUSH EAX
MOV EAX,EDI
PUSH dword ptr [ESP + 0x24]
PUSH EDX
MOV EDX,EBP
PUSH -0x1
MOV ECX,dword ptr [ESP + 0x2c]
CALL 0x0002b790
ADD ESP,0x20
CMP EBP,EAX
JA 0x0002d7dc
LEA EBP,[EAX + 0x1]
LEA EAX,[EBX + 0x4594]
MOV dword ptr [ESI],EBP
CMP EDI,EAX
JZ 0x0002d7a6
SUB ESP,0xc
PUSH EDI
CALL 0x00012740
ADD ESP,0x10
SUB ESP,0xc
PUSH EBP
CALL 0x0002efa0
MOV dword ptr [ESI + 0x4],EAX
MOV EDI,EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x60]
MOV EDX,EBP
MOV EAX,EDI
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x44]
PUSH -0x1
MOV ECX,dword ptr [ESP + 0x2c]
CALL 0x0002b790
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],ECX
MOV EAX,EDI
MOV EDI,dword ptr [ESP + 0x5c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0002d841
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x8
PUSH 0x0
CALL 0x0002efd0
MOV EDX,dword ptr [EBX + 0x2b0]
ADD ESP,0x10
MOV ESI,EAX
MOV dword ptr [EBX + 0x2a8],EAX
MOV EAX,dword ptr [EBX + 0x2ac]
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI],EAX
JMP 0x0002d71a
XOR EAX,EAX
XOR ECX,ECX
MOV dword ptr [ESP + 0x10],0x1
JMP 0x0002d75d
CALL 0x00038830
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * FUN_0002d630(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00038830();\n}\n\n" comment (function_definition "undefined * FUN_0002d630(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00038830();\n}" type_identifier (pointer_declarator "* FUN_0002d630(int param_1)" * (function_declarator "FUN_0002d630(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00038830();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2d639;" (assignment_expression "uStack_14 = 0x2d639" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(param_1 == 10)" ( (binary_expression "param_1 == 10" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" if (parenthesized_expression "(DAT_00048090 < 1)" ( (binary_expression "DAT_00048090 < 1" identifier < number_literal) )) (compound_statement "{\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }" { (if_statement "if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" if (parenthesized_expression "((uint *)PTR_DAT_00048094 == &DAT_00048098)" ( (binary_expression "(uint *)PTR_DAT_00048094 == &DAT_00048098" (cast_expression "(uint *)PTR_DAT_00048094" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_00048098" & identifier)) )) (compound_statement "{\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }" { (expression_statement "puVar4 = (uint *)FUN_0002efd0(0,8);" (assignment_expression "puVar4 = (uint *)FUN_0002efd0(0,8)" identifier = (cast_expression "(uint *)FUN_0002efd0(0,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002efd0(0,8)" identifier (argument_list "(0,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar2 = DAT_00048098;" (assignment_expression "uVar2 = DAT_00048098" identifier = identifier) ;) (expression_statement "PTR_DAT_00048094 = (undefined *)puVar4;" (assignment_expression "PTR_DAT_00048094 = (undefined *)puVar4" identifier = (cast_expression "(undefined *)puVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar4[1] = (uint)PTR_DAT_0004809c;" (assignment_expression "puVar4[1] = (uint)PTR_DAT_0004809c" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (cast_expression "(uint)PTR_DAT_0004809c" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) (else_clause "else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" else (compound_statement "{\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" { (expression_statement "puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);" (assignment_expression "puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8)" identifier = (cast_expression "(uint *)FUN_0002efd0(PTR_DAT_00048094,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002efd0(PTR_DAT_00048094,8)" identifier (argument_list "(PTR_DAT_00048094,8)" ( identifier , number_literal ))))) ;) (expression_statement "PTR_DAT_00048094 = (undefined *)puVar4;" (assignment_expression "PTR_DAT_00048094 = (undefined *)puVar4" identifier = (cast_expression "(undefined *)puVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);" (call_expression "memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8)" identifier (argument_list "(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8)" ( (binary_expression "puVar4 + DAT_00048090 * 2" identifier + (binary_expression "DAT_00048090 * 2" identifier * number_literal)) , number_literal , (binary_expression "(1 - DAT_00048090) * 8" (parenthesized_expression "(1 - DAT_00048090)" ( (binary_expression "1 - DAT_00048090" number_literal - identifier) )) * number_literal) ))) ;) (expression_statement "DAT_00048090 = 1;" (assignment_expression "DAT_00048090 = 1" identifier = number_literal) ;) (expression_statement "uVar6 = local_28;" (assignment_expression "uVar6 = local_28" identifier = identifier) ;) (expression_statement "uVar7 = local_24;" (assignment_expression "uVar7 = local_24" identifier = identifier) ;) }) (else_clause "else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" else (compound_statement "{\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = (uint *)PTR_DAT_00048094;" (assignment_expression "puVar4 = (uint *)PTR_DAT_00048094" identifier = (cast_expression "(uint *)PTR_DAT_00048094" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "uVar2 = *puVar4;" (assignment_expression "uVar2 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "__ptr = (undefined *)puVar4[1];" (assignment_expression "__ptr = (undefined *)puVar4[1]" identifier = (cast_expression "(undefined *)puVar4[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);" (assignment_expression "uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" identifier = (call_expression "FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" identifier (argument_list "(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" ( number_literal , identifier , number_literal , (pointer_expression "&local_48" & identifier) , identifier , identifier )))) ;) (if_statement "if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }" if (parenthesized_expression "(uVar2 <= uVar5)" ( (binary_expression "uVar2 <= uVar5" identifier <= identifier) )) (compound_statement "{\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }" { (expression_statement "*puVar4 = uVar5 + 1;" (assignment_expression "*puVar4 = uVar5 + 1" (pointer_expression "*puVar4" * identifier) = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (if_statement "if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != &DAT_0004c380)" ( (binary_expression "__ptr != &DAT_0004c380" identifier != (pointer_expression "&DAT_0004c380" & identifier)) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "__ptr = (undefined *)FUN_0002efa0(uVar5 + 1);" (assignment_expression "__ptr = (undefined *)FUN_0002efa0(uVar5 + 1)" identifier = (cast_expression "(undefined *)FUN_0002efa0(uVar5 + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002efa0(uVar5 + 1)" identifier (argument_list "(uVar5 + 1)" ( (binary_expression "uVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = (uint)__ptr;" (assignment_expression "puVar4[1] = (uint)__ptr" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (cast_expression "(uint)__ptr" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);" (call_expression "FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24)" identifier (argument_list "(0xffffffff,param_1,1,&local_48,local_28,local_24)" ( number_literal , identifier , number_literal , (pointer_expression "&local_48" & identifier) , identifier , identifier ))) ;) })) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return __ptr;\n  }" { (return_statement "return __ptr;" return identifier ;) })) comment (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * quotearg_style(quoting_style s,char *arg)\n\n{\n  int iVar1;\n  int iVar2;\n  uint buffersize;\n  int *piVar3;\n  slotvec *psVar4;\n  size_t sVar5;\n  char *buffer;\n  char *left_quote;\n  char *right_quote;\n  int in_GS_OFFSET;\n  uint local_6c;\n  quoting_options o;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  o.style = s;\n  o.flags = 0;\n  o.quote_these_too[0] = 0;\n  o.quote_these_too[1] = 0;\n  o.quote_these_too[2] = 0;\n  o.quote_these_too[3] = 0;\n  o.quote_these_too[4] = 0;\n  o.quote_these_too[5] = 0;\n  o.quote_these_too[6] = 0;\n  o.quote_these_too[7] = 0;\n  o.left_quote = (char *)0x0;\n  o.right_quote = (char *)0x0;\n  piVar3 = __errno_location();\n  iVar2 = *piVar3;\n  if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }\n    else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n    local_6c = o.flags | 1;\n    left_quote = o.left_quote;\n    right_quote = o.right_quote;\n    s = o.style;\n  }\n  else {\n    left_quote = (char *)0x0;\n    right_quote = (char *)0x0;\n    local_6c = 1;\n    psVar4 = slotvec;\n  }\n  buffersize = psVar4->size;\n  buffer = psVar4->val;\n  sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote);\n  if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    psVar4->size = sVar5;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar5);\n    psVar4->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote);\n  }\n  *piVar3 = iVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buffer;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "char * quotearg_style(quoting_style s,char *arg)\n\n{\n  int iVar1;\n  int iVar2;\n  uint buffersize;\n  int *piVar3;\n  slotvec *psVar4;\n  size_t sVar5;\n  char *buffer;\n  char *left_quote;\n  char *right_quote;\n  int in_GS_OFFSET;\n  uint local_6c;\n  quoting_options o;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  o.style = s;\n  o.flags = 0;\n  o.quote_these_too[0] = 0;\n  o.quote_these_too[1] = 0;\n  o.quote_these_too[2] = 0;\n  o.quote_these_too[3] = 0;\n  o.quote_these_too[4] = 0;\n  o.quote_these_too[5] = 0;\n  o.quote_these_too[6] = 0;\n  o.quote_these_too[7] = 0;\n  o.left_quote = (char *)0x0;\n  o.right_quote = (char *)0x0;\n  piVar3 = __errno_location();\n  iVar2 = *piVar3;\n  if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }\n    else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n    local_6c = o.flags | 1;\n    left_quote = o.left_quote;\n    right_quote = o.right_quote;\n    s = o.style;\n  }\n  else {\n    left_quote = (char *)0x0;\n    right_quote = (char *)0x0;\n    local_6c = 1;\n    psVar4 = slotvec;\n  }\n  buffersize = psVar4->size;\n  buffer = psVar4->val;\n  sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote);\n  if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    psVar4->size = sVar5;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar5);\n    psVar4->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote);\n  }\n  *piVar3 = iVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buffer;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* quotearg_style(quoting_style s,char *arg)" * (function_declarator "quotearg_style(quoting_style s,char *arg)" identifier (parameter_list "(quoting_style s,char *arg)" ( (parameter_declaration "quoting_style s" type_identifier identifier) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint buffersize;\n  int *piVar3;\n  slotvec *psVar4;\n  size_t sVar5;\n  char *buffer;\n  char *left_quote;\n  char *right_quote;\n  int in_GS_OFFSET;\n  uint local_6c;\n  quoting_options o;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  o.style = s;\n  o.flags = 0;\n  o.quote_these_too[0] = 0;\n  o.quote_these_too[1] = 0;\n  o.quote_these_too[2] = 0;\n  o.quote_these_too[3] = 0;\n  o.quote_these_too[4] = 0;\n  o.quote_these_too[5] = 0;\n  o.quote_these_too[6] = 0;\n  o.quote_these_too[7] = 0;\n  o.left_quote = (char *)0x0;\n  o.right_quote = (char *)0x0;\n  piVar3 = __errno_location();\n  iVar2 = *piVar3;\n  if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }\n    else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n    local_6c = o.flags | 1;\n    left_quote = o.left_quote;\n    right_quote = o.right_quote;\n    s = o.style;\n  }\n  else {\n    left_quote = (char *)0x0;\n    right_quote = (char *)0x0;\n    local_6c = 1;\n    psVar4 = slotvec;\n  }\n  buffersize = psVar4->size;\n  buffer = psVar4->val;\n  sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote);\n  if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    psVar4->size = sVar5;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar5);\n    psVar4->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote);\n  }\n  *piVar3 = iVar2;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buffer;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint buffersize;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "slotvec *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *buffer;" primitive_type (pointer_declarator "*buffer" * identifier) ;) (declaration "char *left_quote;" primitive_type (pointer_declarator "*left_quote" * identifier) ;) (declaration "char *right_quote;" primitive_type (pointer_declarator "*right_quote" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_6c;" type_identifier identifier ;) (declaration "quoting_options o;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(s == custom_quoting_style)" ( (binary_expression "s == custom_quoting_style" identifier == identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "o.style = s;" (assignment_expression "o.style = s" (field_expression "o.style" identifier . field_identifier) = identifier) ;) (expression_statement "o.flags = 0;" (assignment_expression "o.flags = 0" (field_expression "o.flags" identifier . field_identifier) = number_literal) ;) (expression_statement "o.quote_these_too[0] = 0;" (assignment_expression "o.quote_these_too[0] = 0" (subscript_expression "o.quote_these_too[0]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[1] = 0;" (assignment_expression "o.quote_these_too[1] = 0" (subscript_expression "o.quote_these_too[1]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[2] = 0;" (assignment_expression "o.quote_these_too[2] = 0" (subscript_expression "o.quote_these_too[2]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[3] = 0;" (assignment_expression "o.quote_these_too[3] = 0" (subscript_expression "o.quote_these_too[3]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[4] = 0;" (assignment_expression "o.quote_these_too[4] = 0" (subscript_expression "o.quote_these_too[4]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[5] = 0;" (assignment_expression "o.quote_these_too[5] = 0" (subscript_expression "o.quote_these_too[5]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[6] = 0;" (assignment_expression "o.quote_these_too[6] = 0" (subscript_expression "o.quote_these_too[6]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[7] = 0;" (assignment_expression "o.quote_these_too[7] = 0" (subscript_expression "o.quote_these_too[7]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.left_quote = (char *)0x0;" (assignment_expression "o.left_quote = (char *)0x0" (field_expression "o.left_quote" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "o.right_quote = (char *)0x0;" (assignment_expression "o.right_quote = (char *)0x0" (field_expression "o.right_quote" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }\n    else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n    local_6c = o.flags | 1;\n    left_quote = o.left_quote;\n    right_quote = o.right_quote;\n    s = o.style;\n  }\n  else {\n    left_quote = (char *)0x0;\n    right_quote = (char *)0x0;\n    local_6c = 1;\n    psVar4 = slotvec;\n  }" if (parenthesized_expression "(nslots < 1)" ( (binary_expression "nslots < 1" identifier < number_literal) )) (compound_statement "{\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }\n    else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n    local_6c = o.flags | 1;\n    left_quote = o.left_quote;\n    right_quote = o.right_quote;\n    s = o.style;\n  }" { (if_statement "if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }\n    else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }" if (parenthesized_expression "(slotvec == &slotvec0)" ( (binary_expression "slotvec == &slotvec0" identifier == (pointer_expression "&slotvec0" & identifier)) )) (compound_statement "{\n      psVar4 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar5 = slotvec0.size;\n      slotvec = psVar4;\n      psVar4->val = slotvec0.val;\n      psVar4->size = sVar5;\n    }" { (expression_statement "psVar4 = (slotvec *)xrealloc((void *)0x0,8);" (assignment_expression "psVar4 = (slotvec *)xrealloc((void *)0x0,8)" identifier = (cast_expression "(slotvec *)xrealloc((void *)0x0,8)" ( (type_descriptor "slotvec *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc((void *)0x0,8)" identifier (argument_list "((void *)0x0,8)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))))) ;) (expression_statement "sVar5 = slotvec0.size;" (assignment_expression "sVar5 = slotvec0.size" identifier = (field_expression "slotvec0.size" identifier . field_identifier)) ;) (expression_statement "slotvec = psVar4;" (assignment_expression "slotvec = psVar4" identifier = identifier) ;) (expression_statement "psVar4->val = slotvec0.val;" (assignment_expression "psVar4->val = slotvec0.val" (field_expression "psVar4->val" identifier -> field_identifier) = (field_expression "slotvec0.val" identifier . field_identifier)) ;) (expression_statement "psVar4->size = sVar5;" (assignment_expression "psVar4->size = sVar5" (field_expression "psVar4->size" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }" else (compound_statement "{\n      psVar4 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar4;\n    }" { (expression_statement "psVar4 = (slotvec *)xrealloc(slotvec,8);" (assignment_expression "psVar4 = (slotvec *)xrealloc(slotvec,8)" identifier = (cast_expression "(slotvec *)xrealloc(slotvec,8)" ( (type_descriptor "slotvec *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(slotvec,8)" identifier (argument_list "(slotvec,8)" ( identifier , number_literal ))))) ;) (expression_statement "slotvec = psVar4;" (assignment_expression "slotvec = psVar4" identifier = identifier) ;) }))) (expression_statement "memset(psVar4 + nslots,0,(1 - nslots) * 8);" (call_expression "memset(psVar4 + nslots,0,(1 - nslots) * 8)" identifier (argument_list "(psVar4 + nslots,0,(1 - nslots) * 8)" ( (binary_expression "psVar4 + nslots" identifier + identifier) , number_literal , (binary_expression "(1 - nslots) * 8" (parenthesized_expression "(1 - nslots)" ( (binary_expression "1 - nslots" number_literal - identifier) )) * number_literal) ))) ;) (expression_statement "nslots = 1;" (assignment_expression "nslots = 1" identifier = number_literal) ;) (expression_statement "local_6c = o.flags | 1;" (assignment_expression "local_6c = o.flags | 1" identifier = (binary_expression "o.flags | 1" (field_expression "o.flags" identifier . field_identifier) | number_literal)) ;) (expression_statement "left_quote = o.left_quote;" (assignment_expression "left_quote = o.left_quote" identifier = (field_expression "o.left_quote" identifier . field_identifier)) ;) (expression_statement "right_quote = o.right_quote;" (assignment_expression "right_quote = o.right_quote" identifier = (field_expression "o.right_quote" identifier . field_identifier)) ;) (expression_statement "s = o.style;" (assignment_expression "s = o.style" identifier = (field_expression "o.style" identifier . field_identifier)) ;) }) (else_clause "else {\n    left_quote = (char *)0x0;\n    right_quote = (char *)0x0;\n    local_6c = 1;\n    psVar4 = slotvec;\n  }" else (compound_statement "{\n    left_quote = (char *)0x0;\n    right_quote = (char *)0x0;\n    local_6c = 1;\n    psVar4 = slotvec;\n  }" { (expression_statement "left_quote = (char *)0x0;" (assignment_expression "left_quote = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "right_quote = (char *)0x0;" (assignment_expression "right_quote = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_6c = 1;" (assignment_expression "local_6c = 1" identifier = number_literal) ;) (expression_statement "psVar4 = slotvec;" (assignment_expression "psVar4 = slotvec" identifier = identifier) ;) }))) (expression_statement "buffersize = psVar4->size;" (assignment_expression "buffersize = psVar4->size" identifier = (field_expression "psVar4->size" identifier -> field_identifier)) ;) (expression_statement "buffer = psVar4->val;" (assignment_expression "buffer = psVar4->val" identifier = (field_expression "psVar4->val" identifier -> field_identifier)) ;) (expression_statement "sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote);" (assignment_expression "sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote)" identifier = (call_expression "quotearg_buffer_restyled\n                    (buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote)" identifier (argument_list "(buffer,buffersize,arg,0xffffffff,s,local_6c,o.quote_these_too,left_quote,\n                     right_quote)" ( identifier , identifier , identifier , number_literal , identifier , identifier , (field_expression "o.quote_these_too" identifier . field_identifier) , identifier , identifier )))) ;) (if_statement "if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    psVar4->size = sVar5;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar5);\n    psVar4->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote);\n  }" if (parenthesized_expression "(buffersize <= sVar5)" ( (binary_expression "buffersize <= sVar5" identifier <= identifier) )) (compound_statement "{\n    sVar5 = sVar5 + 1;\n    psVar4->size = sVar5;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar5);\n    psVar4->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote);\n  }" { (expression_statement "sVar5 = sVar5 + 1;" (assignment_expression "sVar5 = sVar5 + 1" identifier = (binary_expression "sVar5 + 1" identifier + number_literal)) ;) (expression_statement "psVar4->size = sVar5;" (assignment_expression "psVar4->size = sVar5" (field_expression "psVar4->size" identifier -> field_identifier) = identifier) ;) (if_statement "if (buffer != slot0) {\n      free(buffer);\n    }" if (parenthesized_expression "(buffer != slot0)" ( (binary_expression "buffer != slot0" identifier != identifier) )) (compound_statement "{\n      free(buffer);\n    }" { (expression_statement "free(buffer);" (call_expression "free(buffer)" identifier (argument_list "(buffer)" ( identifier ))) ;) })) (expression_statement "buffer = (char *)xmalloc(sVar5);" (assignment_expression "buffer = (char *)xmalloc(sVar5)" identifier = (cast_expression "(char *)xmalloc(sVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5)" identifier (argument_list "(sVar5)" ( identifier ))))) ;) (expression_statement "psVar4->val = buffer;" (assignment_expression "psVar4->val = buffer" (field_expression "psVar4->val" identifier -> field_identifier) = identifier) ;) (expression_statement "quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote);" (call_expression "quotearg_buffer_restyled\n              (buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote)" identifier (argument_list "(buffer,sVar5,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,\n               o.right_quote)" ( identifier , identifier , identifier , number_literal , (field_expression "o.style" identifier . field_identifier) , identifier , (field_expression "o.quote_these_too" identifier . field_identifier) , (field_expression "o.left_quote" identifier . field_identifier) , (field_expression "o.right_quote" identifier . field_identifier) ))) ;) })) (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return buffer;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return buffer;\n  }" { (return_statement "return buffer;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined * FUN_0002d630(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    \n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    \n  FUN_00038830();\n}\n\n" (function_definition "undefined * FUN_0002d630(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    \n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    \n  FUN_00038830();\n}" type_identifier (pointer_declarator "* FUN_0002d630(int param_1)" * (function_declarator "FUN_0002d630(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    \n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    \n  FUN_00038830();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2d639;" (assignment_expression "uStack_14 = 0x2d639" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 10) {\n                    \n    abort();\n  }" if (parenthesized_expression "(param_1 == 10)" ( (binary_expression "param_1 == 10" identifier == number_literal) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" if (parenthesized_expression "(DAT_00048090 < 1)" ( (binary_expression "DAT_00048090 < 1" identifier < number_literal) )) (compound_statement "{\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }" { (if_statement "if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" if (parenthesized_expression "((uint *)PTR_DAT_00048094 == &DAT_00048098)" ( (binary_expression "(uint *)PTR_DAT_00048094 == &DAT_00048098" (cast_expression "(uint *)PTR_DAT_00048094" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_00048098" & identifier)) )) (compound_statement "{\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }" { (expression_statement "puVar4 = (uint *)FUN_0002efd0(0,8);" (assignment_expression "puVar4 = (uint *)FUN_0002efd0(0,8)" identifier = (cast_expression "(uint *)FUN_0002efd0(0,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002efd0(0,8)" identifier (argument_list "(0,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar2 = DAT_00048098;" (assignment_expression "uVar2 = DAT_00048098" identifier = identifier) ;) (expression_statement "PTR_DAT_00048094 = (undefined *)puVar4;" (assignment_expression "PTR_DAT_00048094 = (undefined *)puVar4" identifier = (cast_expression "(undefined *)puVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar4[1] = (uint)PTR_DAT_0004809c;" (assignment_expression "puVar4[1] = (uint)PTR_DAT_0004809c" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (cast_expression "(uint)PTR_DAT_0004809c" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) (else_clause "else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" else (compound_statement "{\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" { (expression_statement "puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);" (assignment_expression "puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8)" identifier = (cast_expression "(uint *)FUN_0002efd0(PTR_DAT_00048094,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002efd0(PTR_DAT_00048094,8)" identifier (argument_list "(PTR_DAT_00048094,8)" ( identifier , number_literal ))))) ;) (expression_statement "PTR_DAT_00048094 = (undefined *)puVar4;" (assignment_expression "PTR_DAT_00048094 = (undefined *)puVar4" identifier = (cast_expression "(undefined *)puVar4" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);" (call_expression "memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8)" identifier (argument_list "(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8)" ( (binary_expression "puVar4 + DAT_00048090 * 2" identifier + (binary_expression "DAT_00048090 * 2" identifier * number_literal)) , number_literal , (binary_expression "(1 - DAT_00048090) * 8" (parenthesized_expression "(1 - DAT_00048090)" ( (binary_expression "1 - DAT_00048090" number_literal - identifier) )) * number_literal) ))) ;) (expression_statement "DAT_00048090 = 1;" (assignment_expression "DAT_00048090 = 1" identifier = number_literal) ;) (expression_statement "uVar6 = local_28;" (assignment_expression "uVar6 = local_28" identifier = identifier) ;) (expression_statement "uVar7 = local_24;" (assignment_expression "uVar7 = local_24" identifier = identifier) ;) }) (else_clause "else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" else (compound_statement "{\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = (uint *)PTR_DAT_00048094;" (assignment_expression "puVar4 = (uint *)PTR_DAT_00048094" identifier = (cast_expression "(uint *)PTR_DAT_00048094" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "uVar2 = *puVar4;" (assignment_expression "uVar2 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "__ptr = (undefined *)puVar4[1];" (assignment_expression "__ptr = (undefined *)puVar4[1]" identifier = (cast_expression "(undefined *)puVar4[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);" (assignment_expression "uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" identifier = (call_expression "FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" identifier (argument_list "(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" ( number_literal , identifier , number_literal , (pointer_expression "&local_48" & identifier) , identifier , identifier )))) ;) (if_statement "if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }" if (parenthesized_expression "(uVar2 <= uVar5)" ( (binary_expression "uVar2 <= uVar5" identifier <= identifier) )) (compound_statement "{\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }" { (expression_statement "*puVar4 = uVar5 + 1;" (assignment_expression "*puVar4 = uVar5 + 1" (pointer_expression "*puVar4" * identifier) = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (if_statement "if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != &DAT_0004c380)" ( (binary_expression "__ptr != &DAT_0004c380" identifier != (pointer_expression "&DAT_0004c380" & identifier)) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "__ptr = (undefined *)FUN_0002efa0(uVar5 + 1);" (assignment_expression "__ptr = (undefined *)FUN_0002efa0(uVar5 + 1)" identifier = (cast_expression "(undefined *)FUN_0002efa0(uVar5 + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002efa0(uVar5 + 1)" identifier (argument_list "(uVar5 + 1)" ( (binary_expression "uVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = (uint)__ptr;" (assignment_expression "puVar4[1] = (uint)__ptr" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (cast_expression "(uint)__ptr" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);" (call_expression "FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24)" identifier (argument_list "(0xffffffff,param_1,1,&local_48,local_28,local_24)" ( number_literal , identifier , number_literal , (pointer_expression "&local_48" & identifier) , identifier , identifier ))) ;) })) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return __ptr;\n  }" { (return_statement "return __ptr;" return identifier ;) })) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) == (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + (binary_expression IDENT * LIT)) , LIT , (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT , (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined * FUN_0002d630(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    \n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    \n  FUN_00038830();\n}" (type_identifier "undefined") (pointer_declarator "* FUN_0002d630(int param_1)" (* "*") (function_declarator "FUN_0002d630(int param_1)" (identifier "FUN_0002d630") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint *puVar4;\n  uint uVar5;\n  undefined *__ptr;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2d639;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 10) {\n                    \n    abort();\n  }\n  local_48 = 0;\n  local_44 = 0;\n  local_40 = 0;\n  local_3c = 0;\n  local_38 = 0;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = 0;\n  local_28 = 0;\n  local_24 = 0;\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }\n  uVar2 = *puVar4;\n  __ptr = (undefined *)puVar4[1];\n  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);\n  if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }\n  *piVar3 = iVar1;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }\n                    \n  FUN_00038830();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined *__ptr;" (type_identifier "undefined") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2d639;" (assignment_expression "uStack_14 = 0x2d639" (identifier "uStack_14") (= "=") (number_literal "0x2d639")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 10) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "(param_1 == 10)" (( "(") (binary_expression "param_1 == 10" (identifier "param_1") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (DAT_00048090 < 1) {\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }\n  else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" (if "if") (parenthesized_expression "(DAT_00048090 < 1)" (( "(") (binary_expression "DAT_00048090 < 1" (identifier "DAT_00048090") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }\n    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);\n    DAT_00048090 = 1;\n    uVar6 = local_28;\n    uVar7 = local_24;\n  }" ({ "{") (if_statement "if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }\n    else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" (if "if") (parenthesized_expression "((uint *)PTR_DAT_00048094 == &DAT_00048098)" (( "(") (binary_expression "(uint *)PTR_DAT_00048094 == &DAT_00048098" (cast_expression "(uint *)PTR_DAT_00048094" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_00048094")) (== "==") (pointer_expression "&DAT_00048098" (& "&") (identifier "DAT_00048098"))) () ")")) (compound_statement "{\n      puVar4 = (uint *)FUN_0002efd0(0,8);\n      uVar2 = DAT_00048098;\n      PTR_DAT_00048094 = (undefined *)puVar4;\n      puVar4[1] = (uint)PTR_DAT_0004809c;\n      *puVar4 = uVar2;\n    }" ({ "{") (expression_statement "puVar4 = (uint *)FUN_0002efd0(0,8);" (assignment_expression "puVar4 = (uint *)FUN_0002efd0(0,8)" (identifier "puVar4") (= "=") (cast_expression "(uint *)FUN_0002efd0(0,8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002efd0(0,8)" (identifier "FUN_0002efd0") (argument_list "(0,8)" (( "(") (number_literal "0") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "uVar2 = DAT_00048098;" (assignment_expression "uVar2 = DAT_00048098" (identifier "uVar2") (= "=") (identifier "DAT_00048098")) (; ";")) (expression_statement "PTR_DAT_00048094 = (undefined *)puVar4;" (assignment_expression "PTR_DAT_00048094 = (undefined *)puVar4" (identifier "PTR_DAT_00048094") (= "=") (cast_expression "(undefined *)puVar4" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (; ";")) (expression_statement "puVar4[1] = (uint)PTR_DAT_0004809c;" (assignment_expression "puVar4[1] = (uint)PTR_DAT_0004809c" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)PTR_DAT_0004809c" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "PTR_DAT_0004809c"))) (; ";")) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" (else "else") (compound_statement "{\n      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);\n      PTR_DAT_00048094 = (undefined *)puVar4;\n    }" ({ "{") (expression_statement "puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);" (assignment_expression "puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8)" (identifier "puVar4") (= "=") (cast_expression "(uint *)FUN_0002efd0(PTR_DAT_00048094,8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002efd0(PTR_DAT_00048094,8)" (identifier "FUN_0002efd0") (argument_list "(PTR_DAT_00048094,8)" (( "(") (identifier "PTR_DAT_00048094") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "PTR_DAT_00048094 = (undefined *)puVar4;" (assignment_expression "PTR_DAT_00048094 = (undefined *)puVar4" (identifier "PTR_DAT_00048094") (= "=") (cast_expression "(undefined *)puVar4" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (; ";")) (} "}")))) (expression_statement "memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);" (call_expression "memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8)" (identifier "memset") (argument_list "(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8)" (( "(") (binary_expression "puVar4 + DAT_00048090 * 2" (identifier "puVar4") (+ "+") (binary_expression "DAT_00048090 * 2" (identifier "DAT_00048090") (* "*") (number_literal "2"))) (, ",") (number_literal "0") (, ",") (binary_expression "(1 - DAT_00048090) * 8" (parenthesized_expression "(1 - DAT_00048090)" (( "(") (binary_expression "1 - DAT_00048090" (number_literal "1") (- "-") (identifier "DAT_00048090")) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "DAT_00048090 = 1;" (assignment_expression "DAT_00048090 = 1" (identifier "DAT_00048090") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar6 = local_28;" (assignment_expression "uVar6 = local_28" (identifier "uVar6") (= "=") (identifier "local_28")) (; ";")) (expression_statement "uVar7 = local_24;" (assignment_expression "uVar7 = local_24" (identifier "uVar7") (= "=") (identifier "local_24")) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" (else "else") (compound_statement "{\n    uVar6 = 0;\n    uVar7 = 0;\n    puVar4 = (uint *)PTR_DAT_00048094;\n  }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (uint *)PTR_DAT_00048094;" (assignment_expression "puVar4 = (uint *)PTR_DAT_00048094" (identifier "puVar4") (= "=") (cast_expression "(uint *)PTR_DAT_00048094" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_00048094"))) (; ";")) (} "}")))) (expression_statement "uVar2 = *puVar4;" (assignment_expression "uVar2 = *puVar4" (identifier "uVar2") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "__ptr = (undefined *)puVar4[1];" (assignment_expression "__ptr = (undefined *)puVar4[1]" (identifier "__ptr") (= "=") (cast_expression "(undefined *)puVar4[1]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);" (assignment_expression "uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" (identifier "uVar5") (= "=") (call_expression "FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" (identifier "FUN_0002b790") (argument_list "(0xffffffff,param_1,1,&local_48,uVar6,uVar7)" (( "(") (number_literal "0xffffffff") (, ",") (identifier "param_1") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "uVar6") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (uVar2 <= uVar5) {\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }" (if "if") (parenthesized_expression "(uVar2 <= uVar5)" (( "(") (binary_expression "uVar2 <= uVar5" (identifier "uVar2") (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n    *puVar4 = uVar5 + 1;\n    if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);\n    puVar4[1] = (uint)__ptr;\n    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);\n  }" ({ "{") (expression_statement "*puVar4 = uVar5 + 1;" (assignment_expression "*puVar4 = uVar5 + 1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (__ptr != &DAT_0004c380) {\n      free(__ptr);\n    }" (if "if") (parenthesized_expression "(__ptr != &DAT_0004c380)" (( "(") (binary_expression "__ptr != &DAT_0004c380" (identifier "__ptr") (!= "!=") (pointer_expression "&DAT_0004c380" (& "&") (identifier "DAT_0004c380"))) () ")")) (compound_statement "{\n      free(__ptr);\n    }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (expression_statement "__ptr = (undefined *)FUN_0002efa0(uVar5 + 1);" (assignment_expression "__ptr = (undefined *)FUN_0002efa0(uVar5 + 1)" (identifier "__ptr") (= "=") (cast_expression "(undefined *)FUN_0002efa0(uVar5 + 1)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002efa0(uVar5 + 1)" (identifier "FUN_0002efa0") (argument_list "(uVar5 + 1)" (( "(") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "puVar4[1] = (uint)__ptr;" (assignment_expression "puVar4[1] = (uint)__ptr" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)__ptr" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "__ptr"))) (; ";")) (expression_statement "FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);" (call_expression "FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24)" (identifier "FUN_0002b790") (argument_list "(0xffffffff,param_1,1,&local_48,local_28,local_24)" (( "(") (number_literal "0xffffffff") (, ",") (identifier "param_1") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "local_28") (, ",") (identifier "local_24") () ")"))) (; ";")) (} "}"))) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return __ptr;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return __ptr;\n  }" ({ "{") (return_statement "return __ptr;" (return "return") (identifier "__ptr") (; ";")) (} "}"))) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" (identifier "FUN_00038830") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 var_2,char *arg)

{
  int var_17;
  int iVar2;
  type_2 var_11;
  int *piVar3;
  type_3 *var_9;
  size_t var_12;
  char *var_13;
  char *left_quote;
  char *right_quote;
  int var_1;
  type_2 local_6c;
  type_4 o;
  
  var_17 = *(int *)(var_1 + 0x14);
  if (var_2 == var_3) {
                    /* WARNING: Subroutine does not return */
    var_4();
  }
  o.style = var_2;
  o.flags = 0;
  o.quote_these_too[0] = 0;
  o.quote_these_too[1] = 0;
  o.quote_these_too[2] = 0;
  o.quote_these_too[3] = 0;
  o.quote_these_too[4] = 0;
  o.quote_these_too[5] = 0;
  o.quote_these_too[6] = 0;
  o.quote_these_too[7] = 0;
  o.left_quote = (char *)0x0;
  o.right_quote = (char *)0x0;
  piVar3 = var_5();
  iVar2 = *piVar3;
  if (var_6 < 1) {
    if (type_3 == &slotvec0) {
      var_9 = (type_3 *)var_7((void *)0x0,8);
      var_12 = slotvec0.size;
      type_3 = var_9;
      var_9->val = slotvec0.val;
      var_9->size = var_12;
    }
    else {
      var_9 = (type_3 *)var_7(type_3,8);
      type_3 = var_9;
    }
    var_8(var_9 + var_6,0,(1 - var_6) * 8);
    var_6 = 1;
    local_6c = o.flags | 1;
    left_quote = o.left_quote;
    right_quote = o.right_quote;
    var_2 = o.style;
  }
  else {
    left_quote = (char *)0x0;
    right_quote = (char *)0x0;
    local_6c = 1;
    var_9 = type_3;
  }
  var_11 = var_9->size;
  var_13 = var_9->val;
  var_12 = var_10
                    (var_13,var_11,arg,0xffffffff,var_2,local_6c,o.quote_these_too,left_quote,
                     right_quote);
  if (var_11 <= var_12) {
    var_12 = var_12 + 1;
    var_9->size = var_12;
    if (var_13 != var_14) {
      var_15(var_13);
    }
    var_13 = (char *)var_16(var_12);
    var_9->val = var_13;
    var_10
              (var_13,var_12,arg,0xffffffff,o.style,local_6c,o.quote_these_too,o.left_quote,
               o.right_quote);
  }
  *piVar3 = iVar2;
  if (var_17 == *(int *)(var_1 + 0x14)) {
    return var_13;
  }
                    /* WARNING: Subroutine does not return */
  var_18();
}


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

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

undefined * MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  uint *puVar4;
  uint uVar5;
  undefined *__ptr;
  undefined4 uVar6;
  undefined4 uVar7;
  int in_GS_OFFSET;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2d639;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 10) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  local_48 = 0;
  local_44 = 0;
  local_40 = 0;
  local_3c = 0;
  local_38 = 0;
  local_34 = 0;
  local_30 = 0;
  local_2c = 0;
  local_28 = 0;
  local_24 = 0;
  piVar3 = __errno_location();
  iVar1 = *piVar3;
  if (DAT_00048090 < 1) {
    if ((uint *)PTR_DAT_00048094 == &DAT_00048098) {
      puVar4 = (uint *)FUN_0002efd0(0,8);
      uVar2 = DAT_00048098;
      PTR_DAT_00048094 = (undefined *)puVar4;
      puVar4[1] = (uint)PTR_DAT_0004809c;
      *puVar4 = uVar2;
    }
    else {
      puVar4 = (uint *)FUN_0002efd0(PTR_DAT_00048094,8);
      PTR_DAT_00048094 = (undefined *)puVar4;
    }
    memset(puVar4 + DAT_00048090 * 2,0,(1 - DAT_00048090) * 8);
    DAT_00048090 = 1;
    uVar6 = local_28;
    uVar7 = local_24;
  }
  else {
    uVar6 = 0;
    uVar7 = 0;
    puVar4 = (uint *)PTR_DAT_00048094;
  }
  uVar2 = *puVar4;
  __ptr = (undefined *)puVar4[1];
  uVar5 = FUN_0002b790(0xffffffff,param_1,1,&local_48,uVar6,uVar7);
  if (uVar2 <= uVar5) {
    *puVar4 = uVar5 + 1;
    if (__ptr != &DAT_0004c380) {
      free(__ptr);
    }
    __ptr = (undefined *)FUN_0002efa0(uVar5 + 1);
    puVar4[1] = (uint)__ptr;
    FUN_0002b790(0xffffffff,param_1,1,&local_48,local_28,local_24);
  }
  *piVar3 = iVar1;
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return __ptr;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00038830();
}

