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

char * __regparm3 quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)

{
  int iVar1;
  size_t buffersize;
  int *piVar2;
  slotvec *psVar3;
  uint flags;
  size_t sVar4;
  char *buffer;
  
  piVar2 = __errno_location();
  iVar1 = *piVar2;
  psVar3 = slotvec;
  if (nslots < 1) {
    if (slotvec == &slotvec0) {
      psVar3 = (slotvec *)xrealloc((void *)0x0,8);
      sVar4 = slotvec0.size;
      slotvec = psVar3;
      psVar3->val = slotvec0.val;
      psVar3->size = sVar4;
    }
    else {
      psVar3 = (slotvec *)xrealloc(slotvec,8);
      slotvec = psVar3;
    }
    memset(psVar3 + nslots,0,(1 - nslots) * 8);
    nslots = 1;
  }
  buffersize = psVar3->size;
  buffer = psVar3->val;
  flags = *(uint *)(argsize + 4) | 1;
  sVar4 = quotearg_buffer_restyled
                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,
                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));
  if (buffersize <= sVar4) {
    sVar4 = sVar4 + 1;
    psVar3->size = sVar4;
    if (buffer != slot0) {
      free(buffer);
    }
    buffer = (char *)xmalloc(sVar4);
    psVar3->val = buffer;
    quotearg_buffer_restyled
              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,
               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));
  }
  *piVar2 = iVar1;
  return buffer;
}



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

undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int *piVar4;
  uint *puVar5;
  uint uVar6;
  undefined *__ptr;
  
  piVar4 = __errno_location();
  iVar1 = *piVar4;
  puVar5 = (uint *)PTR_DAT_000b13d4;
  if (DAT_000b13d0 < 1) {
    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {
      puVar5 = (uint *)FUN_00062e80(0,8);
      uVar2 = DAT_000b13d8;
      PTR_DAT_000b13d4 = (undefined *)puVar5;
      puVar5[1] = (uint)PTR_DAT_000b13dc;
      *puVar5 = uVar2;
    }
    else {
      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);
      PTR_DAT_000b13d4 = (undefined *)puVar5;
    }
    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);
    DAT_000b13d0 = 1;
  }
  uVar2 = param_3[1];
  uVar3 = *puVar5;
  __ptr = (undefined *)puVar5[1];
  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);
  if (uVar3 <= uVar6) {
    *puVar5 = uVar6 + 1;
    if (__ptr != &DAT_000b6780) {
      free(__ptr);
    }
    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);
    puVar5[1] = (uint)__ptr;
    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);
  }
  *piVar4 = iVar1;
  return __ptr;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x000190b0
ADD EBX,0x4d895
SUB ESP,0x2c
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP + 0x8],EDX
CALL 0x00016080
MOV ECX,dword ptr [EBX + 0x2800]
MOV EDI,dword ptr [EBX + 0x2804]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x10],EAX
TEST ECX,ECX
JG 0x000613bb
LEA EAX,[EBX + 0x2808]
CMP EDI,EAX
JZ 0x00061470
SUB ESP,0x8
PUSH 0x8
PUSH EDI
CALL 0x00062e80
ADD ESP,0x10
MOV dword ptr [EBX + 0x2804],EAX
MOV EDI,EAX
MOV EDX,dword ptr [EBX + 0x2800]
MOV EAX,0x1
SUB ESP,0x4
SUB EAX,EDX
LEA EDX,[EDI + EDX*0x8]
SHL EAX,0x3
PUSH EAX
PUSH 0x0
PUSH EDX
CALL 0x00016430
ADD ESP,0x10
MOV dword ptr [EBX + 0x2800],0x1
MOV EAX,dword ptr [ESI + 0x4]
LEA ECX,[ESI + 0x8]
SUB ESP,0x8
MOV EDX,dword ptr [EDI]
MOV dword ptr [ESP + 0x24],ECX
MOV EBP,dword ptr [EDI + 0x4]
OR EAX,0x1
MOV dword ptr [ESP + 0x20],EAX
PUSH dword ptr [ESI + 0x2c]
PUSH dword ptr [ESI + 0x28]
PUSH ECX
PUSH EAX
MOV EAX,EBP
PUSH dword ptr [ESI]
PUSH dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x34],EDX
CALL 0x0005fbe0
ADD ESP,0x20
CMP dword ptr [ESP + 0x14],EAX
JA 0x00061457
LEA EDX,[EAX + 0x1]
LEA EAX,[EBX + 0x7bb0]
MOV dword ptr [EDI],EDX
CMP EBP,EAX
JZ 0x0006141d
MOV dword ptr [ESP + 0x14],EDX
SUB ESP,0xc
PUSH EBP
CALL 0x00016670
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x14]
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x24],EDX
CALL 0x00062e50
MOV dword ptr [EDI + 0x4],EAX
MOV EBP,EAX
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x2c]
MOV EAX,EBP
PUSH dword ptr [ESI + 0x28]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESI]
PUSH dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x34]
CALL 0x0005fbe0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x10]
MOV dword ptr [EAX],EDI
ADD ESP,0x2c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x8
PUSH 0x0
CALL 0x00062e80
MOV EDX,dword ptr [EBX + 0x280c]
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [EBX + 0x2804],EAX
MOV EAX,dword ptr [EBX + 0x2808]
MOV dword ptr [EDI + 0x4],EDX
MOV dword ptr [EDI],EAX
JMP 0x0006138f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint uVar6;\n  undefined *__ptr;\n  \n  piVar4 = __errno_location();\n  iVar1 = *piVar4;\n  puVar5 = (uint *)PTR_DAT_000b13d4;\n  if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }\n  uVar2 = param_3[1];\n  uVar3 = *puVar5;\n  __ptr = (undefined *)puVar5[1];\n  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }\n  *piVar4 = iVar1;\n  return __ptr;\n}\n\n" comment (ERROR "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (binary_expression "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (argument_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( identifier (ERROR "param_1" identifier) , identifier (ERROR "param_2" identifier) , (binary_expression "undefined4 *param_3" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint uVar6;\n  undefined *__ptr;\n  \n  piVar4 = __errno_location();\n  iVar1 = *piVar4;\n  puVar5 = (uint *)PTR_DAT_000b13d4;\n  if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }\n  uVar2 = param_3[1];\n  uVar3 = *puVar5;\n  __ptr = (undefined *)puVar5[1];\n  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }\n  *piVar4 = iVar1;\n  return __ptr;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "puVar5 = (uint *)PTR_DAT_000b13d4;" (assignment_expression "puVar5 = (uint *)PTR_DAT_000b13d4" identifier = (cast_expression "(uint *)PTR_DAT_000b13d4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }" if (parenthesized_expression "(DAT_000b13d0 < 1)" ( (binary_expression "DAT_000b13d0 < 1" identifier < number_literal) )) (compound_statement "{\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }" { (if_statement "if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" if (parenthesized_expression "((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8)" ( (binary_expression "(uint *)PTR_DAT_000b13d4 == &DAT_000b13d8" (cast_expression "(uint *)PTR_DAT_000b13d4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_000b13d8" & identifier)) )) (compound_statement "{\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }" { (expression_statement "puVar5 = (uint *)FUN_00062e80(0,8);" (assignment_expression "puVar5 = (uint *)FUN_00062e80(0,8)" identifier = (cast_expression "(uint *)FUN_00062e80(0,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062e80(0,8)" identifier (argument_list "(0,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar2 = DAT_000b13d8;" (assignment_expression "uVar2 = DAT_000b13d8" identifier = identifier) ;) (expression_statement "PTR_DAT_000b13d4 = (undefined *)puVar5;" (assignment_expression "PTR_DAT_000b13d4 = (undefined *)puVar5" identifier = (cast_expression "(undefined *)puVar5" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar5[1] = (uint)PTR_DAT_000b13dc;" (assignment_expression "puVar5[1] = (uint)PTR_DAT_000b13dc" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(uint)PTR_DAT_000b13dc" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*puVar5 = uVar2;" (assignment_expression "*puVar5 = uVar2" (pointer_expression "*puVar5" * identifier) = identifier) ;) }) (else_clause "else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" else (compound_statement "{\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" { (expression_statement "puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);" (assignment_expression "puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8)" identifier = (cast_expression "(uint *)FUN_00062e80(PTR_DAT_000b13d4,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062e80(PTR_DAT_000b13d4,8)" identifier (argument_list "(PTR_DAT_000b13d4,8)" ( identifier , number_literal ))))) ;) (expression_statement "PTR_DAT_000b13d4 = (undefined *)puVar5;" (assignment_expression "PTR_DAT_000b13d4 = (undefined *)puVar5" identifier = (cast_expression "(undefined *)puVar5" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);" (call_expression "memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8)" identifier (argument_list "(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8)" ( (binary_expression "puVar5 + DAT_000b13d0 * 2" identifier + (binary_expression "DAT_000b13d0 * 2" identifier * number_literal)) , number_literal , (binary_expression "(1 - DAT_000b13d0) * 8" (parenthesized_expression "(1 - DAT_000b13d0)" ( (binary_expression "1 - DAT_000b13d0" number_literal - identifier) )) * number_literal) ))) ;) (expression_statement "DAT_000b13d0 = 1;" (assignment_expression "DAT_000b13d0 = 1" identifier = number_literal) ;) })) (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "__ptr = (undefined *)puVar5[1];" (assignment_expression "__ptr = (undefined *)puVar5[1]" identifier = (cast_expression "(undefined *)puVar5[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);" (assignment_expression "uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" identifier = (call_expression "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" identifier (argument_list "(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" ( identifier , (pointer_expression "*param_3" * identifier) , (binary_expression "uVar2 | 1" identifier | number_literal) , (binary_expression "param_3 + 2" identifier + number_literal) , (subscript_expression "param_3[10]" identifier [ number_literal ]) , (subscript_expression "param_3[0xb]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (compound_statement "{\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }" { (expression_statement "*puVar5 = uVar6 + 1;" (assignment_expression "*puVar5 = uVar6 + 1" (pointer_expression "*puVar5" * identifier) = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != &DAT_000b6780)" ( (binary_expression "__ptr != &DAT_000b6780" identifier != (pointer_expression "&DAT_000b6780" & 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_00062e50(uVar6 + 1);" (assignment_expression "__ptr = (undefined *)FUN_00062e50(uVar6 + 1)" identifier = (cast_expression "(undefined *)FUN_00062e50(uVar6 + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062e50(uVar6 + 1)" identifier (argument_list "(uVar6 + 1)" ( (binary_expression "uVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar5[1] = (uint)__ptr;" (assignment_expression "puVar5[1] = (uint)__ptr" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(uint)__ptr" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);" (call_expression "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" identifier (argument_list "(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" ( identifier , (pointer_expression "*param_3" * identifier) , (binary_expression "uVar2 | 1" identifier | number_literal) , (binary_expression "param_3 + 2" identifier + number_literal) , (subscript_expression "param_3[10]" identifier [ number_literal ]) , (subscript_expression "param_3[0xb]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*piVar4 = iVar1;" (assignment_expression "*piVar4 = iVar1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (return_statement "return __ptr;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)\n\n{\n  int iVar1;\n  size_t buffersize;\n  int *piVar2;\n  slotvec *psVar3;\n  uint flags;\n  size_t sVar4;\n  char *buffer;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  psVar3 = slotvec;\n  if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }\n    else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }\n    memset(psVar3 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n  }\n  buffersize = psVar3->size;\n  buffer = psVar3->val;\n  flags = *(uint *)(argsize + 4) | 1;\n  sVar4 = quotearg_buffer_restyled\n                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  if (buffersize <= sVar4) {\n    sVar4 = sVar4 + 1;\n    psVar3->size = sVar4;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar4);\n    psVar3->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  }\n  *piVar2 = iVar1;\n  return buffer;\n}\n\n" comment (function_definition "char * __regparm3 quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)\n\n{\n  int iVar1;\n  size_t buffersize;\n  int *piVar2;\n  slotvec *psVar3;\n  uint flags;\n  size_t sVar4;\n  char *buffer;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  psVar3 = slotvec;\n  if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }\n    else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }\n    memset(psVar3 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n  }\n  buffersize = psVar3->size;\n  buffer = psVar3->val;\n  flags = *(uint *)(argsize + 4) | 1;\n  sVar4 = quotearg_buffer_restyled\n                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  if (buffersize <= sVar4) {\n    sVar4 = sVar4 + 1;\n    psVar3->size = sVar4;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar4);\n    psVar3->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  }\n  *piVar2 = iVar1;\n  return buffer;\n}" primitive_type (pointer_declarator "* __regparm3 quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)" * (ERROR "__regparm3" identifier) (function_declarator "quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)" identifier (parameter_list "(int n,char *arg,size_t argsize,quoting_options *options)" ( (parameter_declaration "int n" primitive_type identifier) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "size_t argsize" primitive_type identifier) , (parameter_declaration "quoting_options *options" type_identifier (pointer_declarator "*options" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t buffersize;\n  int *piVar2;\n  slotvec *psVar3;\n  uint flags;\n  size_t sVar4;\n  char *buffer;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  psVar3 = slotvec;\n  if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }\n    else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }\n    memset(psVar3 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n  }\n  buffersize = psVar3->size;\n  buffer = psVar3->val;\n  flags = *(uint *)(argsize + 4) | 1;\n  sVar4 = quotearg_buffer_restyled\n                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  if (buffersize <= sVar4) {\n    sVar4 = sVar4 + 1;\n    psVar3->size = sVar4;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar4);\n    psVar3->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  }\n  *piVar2 = iVar1;\n  return buffer;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t buffersize;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "slotvec *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "uint flags;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *buffer;" primitive_type (pointer_declarator "*buffer" * identifier) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "psVar3 = slotvec;" (assignment_expression "psVar3 = slotvec" identifier = identifier) ;) (if_statement "if (nslots < 1) {\n    if (slotvec == &slotvec0) {\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }\n    else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }\n    memset(psVar3 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n  }" if (parenthesized_expression "(nslots < 1)" ( (binary_expression "nslots < 1" identifier < number_literal) )) (compound_statement "{\n    if (slotvec == &slotvec0) {\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }\n    else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }\n    memset(psVar3 + nslots,0,(1 - nslots) * 8);\n    nslots = 1;\n  }" { (if_statement "if (slotvec == &slotvec0) {\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }\n    else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }" if (parenthesized_expression "(slotvec == &slotvec0)" ( (binary_expression "slotvec == &slotvec0" identifier == (pointer_expression "&slotvec0" & identifier)) )) (compound_statement "{\n      psVar3 = (slotvec *)xrealloc((void *)0x0,8);\n      sVar4 = slotvec0.size;\n      slotvec = psVar3;\n      psVar3->val = slotvec0.val;\n      psVar3->size = sVar4;\n    }" { (expression_statement "psVar3 = (slotvec *)xrealloc((void *)0x0,8);" (assignment_expression "psVar3 = (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 "sVar4 = slotvec0.size;" (assignment_expression "sVar4 = slotvec0.size" identifier = (field_expression "slotvec0.size" identifier . field_identifier)) ;) (expression_statement "slotvec = psVar3;" (assignment_expression "slotvec = psVar3" identifier = identifier) ;) (expression_statement "psVar3->val = slotvec0.val;" (assignment_expression "psVar3->val = slotvec0.val" (field_expression "psVar3->val" identifier -> field_identifier) = (field_expression "slotvec0.val" identifier . field_identifier)) ;) (expression_statement "psVar3->size = sVar4;" (assignment_expression "psVar3->size = sVar4" (field_expression "psVar3->size" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }" else (compound_statement "{\n      psVar3 = (slotvec *)xrealloc(slotvec,8);\n      slotvec = psVar3;\n    }" { (expression_statement "psVar3 = (slotvec *)xrealloc(slotvec,8);" (assignment_expression "psVar3 = (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 = psVar3;" (assignment_expression "slotvec = psVar3" identifier = identifier) ;) }))) (expression_statement "memset(psVar3 + nslots,0,(1 - nslots) * 8);" (call_expression "memset(psVar3 + nslots,0,(1 - nslots) * 8)" identifier (argument_list "(psVar3 + nslots,0,(1 - nslots) * 8)" ( (binary_expression "psVar3 + 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 "buffersize = psVar3->size;" (assignment_expression "buffersize = psVar3->size" identifier = (field_expression "psVar3->size" identifier -> field_identifier)) ;) (expression_statement "buffer = psVar3->val;" (assignment_expression "buffer = psVar3->val" identifier = (field_expression "psVar3->val" identifier -> field_identifier)) ;) (expression_statement "flags = *(uint *)(argsize + 4) | 1;" (assignment_expression "flags = *(uint *)(argsize + 4) | 1" identifier = (binary_expression "*(uint *)(argsize + 4) | 1" (pointer_expression "*(uint *)(argsize + 4)" * (cast_expression "(uint *)(argsize + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(argsize + 4)" ( (binary_expression "argsize + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "sVar4 = quotearg_buffer_restyled\n                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));" (assignment_expression "sVar4 = quotearg_buffer_restyled\n                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c))" identifier = (call_expression "quotearg_buffer_restyled\n                    (buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c))" identifier (argument_list "(buffer,buffersize,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n                     (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c))" ( identifier , identifier , (cast_expression "(char *)n" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(size_t)arg" ( (type_descriptor "size_t" primitive_type) ) identifier) , (pointer_expression "*(quoting_style *)argsize" * (cast_expression "(quoting_style *)argsize" ( (type_descriptor "quoting_style *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , (cast_expression "(uint *)(argsize + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(argsize + 8)" ( (binary_expression "argsize + 8" identifier + number_literal) ))) , (pointer_expression "*(char **)(argsize + 0x28)" * (cast_expression "(char **)(argsize + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(argsize + 0x28)" ( (binary_expression "argsize + 0x28" identifier + number_literal) )))) , (pointer_expression "*(char **)(argsize + 0x2c)" * (cast_expression "(char **)(argsize + 0x2c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(argsize + 0x2c)" ( (binary_expression "argsize + 0x2c" identifier + number_literal) )))) )))) ;) (if_statement "if (buffersize <= sVar4) {\n    sVar4 = sVar4 + 1;\n    psVar3->size = sVar4;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar4);\n    psVar3->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  }" if (parenthesized_expression "(buffersize <= sVar4)" ( (binary_expression "buffersize <= sVar4" identifier <= identifier) )) (compound_statement "{\n    sVar4 = sVar4 + 1;\n    psVar3->size = sVar4;\n    if (buffer != slot0) {\n      free(buffer);\n    }\n    buffer = (char *)xmalloc(sVar4);\n    psVar3->val = buffer;\n    quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));\n  }" { (expression_statement "sVar4 = sVar4 + 1;" (assignment_expression "sVar4 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) (expression_statement "psVar3->size = sVar4;" (assignment_expression "psVar3->size = sVar4" (field_expression "psVar3->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(sVar4);" (assignment_expression "buffer = (char *)xmalloc(sVar4)" identifier = (cast_expression "(char *)xmalloc(sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4)" identifier (argument_list "(sVar4)" ( identifier ))))) ;) (expression_statement "psVar3->val = buffer;" (assignment_expression "psVar3->val = buffer" (field_expression "psVar3->val" identifier -> field_identifier) = identifier) ;) (expression_statement "quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c));" (call_expression "quotearg_buffer_restyled\n              (buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c))" identifier (argument_list "(buffer,sVar4,(char *)n,(size_t)arg,*(quoting_style *)argsize,flags,\n               (uint *)(argsize + 8),*(char **)(argsize + 0x28),*(char **)(argsize + 0x2c))" ( identifier , identifier , (cast_expression "(char *)n" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(size_t)arg" ( (type_descriptor "size_t" primitive_type) ) identifier) , (pointer_expression "*(quoting_style *)argsize" * (cast_expression "(quoting_style *)argsize" ( (type_descriptor "quoting_style *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , (cast_expression "(uint *)(argsize + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(argsize + 8)" ( (binary_expression "argsize + 8" identifier + number_literal) ))) , (pointer_expression "*(char **)(argsize + 0x28)" * (cast_expression "(char **)(argsize + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(argsize + 0x28)" ( (binary_expression "argsize + 0x28" identifier + number_literal) )))) , (pointer_expression "*(char **)(argsize + 0x2c)" * (cast_expression "(char **)(argsize + 0x2c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(argsize + 0x2c)" ( (binary_expression "argsize + 0x2c" identifier + number_literal) )))) ))) ;) })) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return buffer;" return identifier ;) })))
(translation_unit "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint uVar6;\n  undefined *__ptr;\n  \n  piVar4 = __errno_location();\n  iVar1 = *piVar4;\n  puVar5 = (uint *)PTR_DAT_000b13d4;\n  if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }\n  uVar2 = param_3[1];\n  uVar3 = *puVar5;\n  __ptr = (undefined *)puVar5[1];\n  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }\n  *piVar4 = iVar1;\n  return __ptr;\n}\n\n" (ERROR "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (binary_expression "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (argument_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( identifier (ERROR "param_1" identifier) , identifier (ERROR "param_2" identifier) , (binary_expression "undefined4 *param_3" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint uVar6;\n  undefined *__ptr;\n  \n  piVar4 = __errno_location();\n  iVar1 = *piVar4;\n  puVar5 = (uint *)PTR_DAT_000b13d4;\n  if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }\n  uVar2 = param_3[1];\n  uVar3 = *puVar5;\n  __ptr = (undefined *)puVar5[1];\n  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }\n  *piVar4 = iVar1;\n  return __ptr;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "puVar5 = (uint *)PTR_DAT_000b13d4;" (assignment_expression "puVar5 = (uint *)PTR_DAT_000b13d4" identifier = (cast_expression "(uint *)PTR_DAT_000b13d4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }" if (parenthesized_expression "(DAT_000b13d0 < 1)" ( (binary_expression "DAT_000b13d0 < 1" identifier < number_literal) )) (compound_statement "{\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }" { (if_statement "if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" if (parenthesized_expression "((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8)" ( (binary_expression "(uint *)PTR_DAT_000b13d4 == &DAT_000b13d8" (cast_expression "(uint *)PTR_DAT_000b13d4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_000b13d8" & identifier)) )) (compound_statement "{\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }" { (expression_statement "puVar5 = (uint *)FUN_00062e80(0,8);" (assignment_expression "puVar5 = (uint *)FUN_00062e80(0,8)" identifier = (cast_expression "(uint *)FUN_00062e80(0,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062e80(0,8)" identifier (argument_list "(0,8)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar2 = DAT_000b13d8;" (assignment_expression "uVar2 = DAT_000b13d8" identifier = identifier) ;) (expression_statement "PTR_DAT_000b13d4 = (undefined *)puVar5;" (assignment_expression "PTR_DAT_000b13d4 = (undefined *)puVar5" identifier = (cast_expression "(undefined *)puVar5" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar5[1] = (uint)PTR_DAT_000b13dc;" (assignment_expression "puVar5[1] = (uint)PTR_DAT_000b13dc" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(uint)PTR_DAT_000b13dc" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*puVar5 = uVar2;" (assignment_expression "*puVar5 = uVar2" (pointer_expression "*puVar5" * identifier) = identifier) ;) }) (else_clause "else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" else (compound_statement "{\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" { (expression_statement "puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);" (assignment_expression "puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8)" identifier = (cast_expression "(uint *)FUN_00062e80(PTR_DAT_000b13d4,8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062e80(PTR_DAT_000b13d4,8)" identifier (argument_list "(PTR_DAT_000b13d4,8)" ( identifier , number_literal ))))) ;) (expression_statement "PTR_DAT_000b13d4 = (undefined *)puVar5;" (assignment_expression "PTR_DAT_000b13d4 = (undefined *)puVar5" identifier = (cast_expression "(undefined *)puVar5" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);" (call_expression "memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8)" identifier (argument_list "(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8)" ( (binary_expression "puVar5 + DAT_000b13d0 * 2" identifier + (binary_expression "DAT_000b13d0 * 2" identifier * number_literal)) , number_literal , (binary_expression "(1 - DAT_000b13d0) * 8" (parenthesized_expression "(1 - DAT_000b13d0)" ( (binary_expression "1 - DAT_000b13d0" number_literal - identifier) )) * number_literal) ))) ;) (expression_statement "DAT_000b13d0 = 1;" (assignment_expression "DAT_000b13d0 = 1" identifier = number_literal) ;) })) (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "__ptr = (undefined *)puVar5[1];" (assignment_expression "__ptr = (undefined *)puVar5[1]" identifier = (cast_expression "(undefined *)puVar5[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);" (assignment_expression "uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" identifier = (call_expression "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" identifier (argument_list "(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" ( identifier , (pointer_expression "*param_3" * identifier) , (binary_expression "uVar2 | 1" identifier | number_literal) , (binary_expression "param_3 + 2" identifier + number_literal) , (subscript_expression "param_3[10]" identifier [ number_literal ]) , (subscript_expression "param_3[0xb]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }" if (parenthesized_expression "(uVar3 <= uVar6)" ( (binary_expression "uVar3 <= uVar6" identifier <= identifier) )) (compound_statement "{\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }" { (expression_statement "*puVar5 = uVar6 + 1;" (assignment_expression "*puVar5 = uVar6 + 1" (pointer_expression "*puVar5" * identifier) = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != &DAT_000b6780)" ( (binary_expression "__ptr != &DAT_000b6780" identifier != (pointer_expression "&DAT_000b6780" & 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_00062e50(uVar6 + 1);" (assignment_expression "__ptr = (undefined *)FUN_00062e50(uVar6 + 1)" identifier = (cast_expression "(undefined *)FUN_00062e50(uVar6 + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062e50(uVar6 + 1)" identifier (argument_list "(uVar6 + 1)" ( (binary_expression "uVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar5[1] = (uint)__ptr;" (assignment_expression "puVar5[1] = (uint)__ptr" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(uint)__ptr" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);" (call_expression "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" identifier (argument_list "(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" ( identifier , (pointer_expression "*param_3" * identifier) , (binary_expression "uVar2 | 1" identifier | number_literal) , (binary_expression "param_3 + 2" identifier + number_literal) , (subscript_expression "param_3[10]" identifier [ number_literal ]) , (subscript_expression "param_3[0xb]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*piVar4 = iVar1;" (assignment_expression "*piVar4 = iVar1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (return_statement "return __ptr;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( IDENT (ERROR IDENT) , IDENT (ERROR IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 = (subscript_expression IDENT [ LIT ])) ;) (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 ( IDENT , (pointer_expression * IDENT) , (binary_expression IDENT | LIT) , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (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 ( IDENT , (pointer_expression * IDENT) , (binary_expression IDENT | LIT) , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) }))
(ERROR "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (binary_expression "undefined * __regparm3 FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "undefined") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_00061330(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_00061330") (argument_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (identifier "undefined4") (ERROR "param_1" (identifier "param_1")) (, ",") (identifier "undefined4") (ERROR "param_2" (identifier "param_2")) (, ",") (binary_expression "undefined4 *param_3" (identifier "undefined4") (* "*") (identifier "param_3")) () ")"))))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint *puVar5;\n  uint uVar6;\n  undefined *__ptr;\n  \n  piVar4 = __errno_location();\n  iVar1 = *piVar4;\n  puVar5 = (uint *)PTR_DAT_000b13d4;\n  if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }\n  uVar2 = param_3[1];\n  uVar3 = *puVar5;\n  __ptr = (undefined *)puVar5[1];\n  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }\n  *piVar4 = iVar1;\n  return __ptr;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined *__ptr;" (type_identifier "undefined") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" (identifier "iVar1") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "puVar5 = (uint *)PTR_DAT_000b13d4;" (assignment_expression "puVar5 = (uint *)PTR_DAT_000b13d4" (identifier "puVar5") (= "=") (cast_expression "(uint *)PTR_DAT_000b13d4" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_000b13d4"))) (; ";")) (if_statement "if (DAT_000b13d0 < 1) {\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_000b13d0 < 1)" (( "(") (binary_expression "DAT_000b13d0 < 1" (identifier "DAT_000b13d0") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }\n    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);\n    DAT_000b13d0 = 1;\n  }" ({ "{") (if_statement "if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }\n    else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" (if "if") (parenthesized_expression "((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8)" (( "(") (binary_expression "(uint *)PTR_DAT_000b13d4 == &DAT_000b13d8" (cast_expression "(uint *)PTR_DAT_000b13d4" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_000b13d4")) (== "==") (pointer_expression "&DAT_000b13d8" (& "&") (identifier "DAT_000b13d8"))) () ")")) (compound_statement "{\n      puVar5 = (uint *)FUN_00062e80(0,8);\n      uVar2 = DAT_000b13d8;\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n      puVar5[1] = (uint)PTR_DAT_000b13dc;\n      *puVar5 = uVar2;\n    }" ({ "{") (expression_statement "puVar5 = (uint *)FUN_00062e80(0,8);" (assignment_expression "puVar5 = (uint *)FUN_00062e80(0,8)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_00062e80(0,8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00062e80(0,8)" (identifier "FUN_00062e80") (argument_list "(0,8)" (( "(") (number_literal "0") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "uVar2 = DAT_000b13d8;" (assignment_expression "uVar2 = DAT_000b13d8" (identifier "uVar2") (= "=") (identifier "DAT_000b13d8")) (; ";")) (expression_statement "PTR_DAT_000b13d4 = (undefined *)puVar5;" (assignment_expression "PTR_DAT_000b13d4 = (undefined *)puVar5" (identifier "PTR_DAT_000b13d4") (= "=") (cast_expression "(undefined *)puVar5" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5[1] = (uint)PTR_DAT_000b13dc;" (assignment_expression "puVar5[1] = (uint)PTR_DAT_000b13dc" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)PTR_DAT_000b13dc" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "PTR_DAT_000b13dc"))) (; ";")) (expression_statement "*puVar5 = uVar2;" (assignment_expression "*puVar5 = uVar2" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" (else "else") (compound_statement "{\n      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);\n      PTR_DAT_000b13d4 = (undefined *)puVar5;\n    }" ({ "{") (expression_statement "puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);" (assignment_expression "puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_00062e80(PTR_DAT_000b13d4,8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00062e80(PTR_DAT_000b13d4,8)" (identifier "FUN_00062e80") (argument_list "(PTR_DAT_000b13d4,8)" (( "(") (identifier "PTR_DAT_000b13d4") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "PTR_DAT_000b13d4 = (undefined *)puVar5;" (assignment_expression "PTR_DAT_000b13d4 = (undefined *)puVar5" (identifier "PTR_DAT_000b13d4") (= "=") (cast_expression "(undefined *)puVar5" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (; ";")) (} "}")))) (expression_statement "memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);" (call_expression "memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8)" (identifier "memset") (argument_list "(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8)" (( "(") (binary_expression "puVar5 + DAT_000b13d0 * 2" (identifier "puVar5") (+ "+") (binary_expression "DAT_000b13d0 * 2" (identifier "DAT_000b13d0") (* "*") (number_literal "2"))) (, ",") (number_literal "0") (, ",") (binary_expression "(1 - DAT_000b13d0) * 8" (parenthesized_expression "(1 - DAT_000b13d0)" (( "(") (binary_expression "1 - DAT_000b13d0" (number_literal "1") (- "-") (identifier "DAT_000b13d0")) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "DAT_000b13d0 = 1;" (assignment_expression "DAT_000b13d0 = 1" (identifier "DAT_000b13d0") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "uVar2 = param_3[1];" (assignment_expression "uVar2 = param_3[1]" (identifier "uVar2") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" (identifier "uVar3") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "__ptr = (undefined *)puVar5[1];" (assignment_expression "__ptr = (undefined *)puVar5[1]" (identifier "__ptr") (= "=") (cast_expression "(undefined *)puVar5[1]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);" (assignment_expression "uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" (identifier "uVar6") (= "=") (call_expression "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" (identifier "FUN_0005fbe0") (argument_list "(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" (( "(") (identifier "param_2") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (binary_expression "uVar2 | 1" (identifier "uVar2") (| "|") (number_literal "1")) (, ",") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_3[10]" (identifier "param_3") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_3[0xb]" (identifier "param_3") ([ "[") (number_literal "0xb") (] "]")) () ")")))) (; ";")) (if_statement "if (uVar3 <= uVar6) {\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }" (if "if") (parenthesized_expression "(uVar3 <= uVar6)" (( "(") (binary_expression "uVar3 <= uVar6" (identifier "uVar3") (<= "<=") (identifier "uVar6")) () ")")) (compound_statement "{\n    *puVar5 = uVar6 + 1;\n    if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);\n    puVar5[1] = (uint)__ptr;\n    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);\n  }" ({ "{") (expression_statement "*puVar5 = uVar6 + 1;" (assignment_expression "*puVar5 = uVar6 + 1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (__ptr != &DAT_000b6780) {\n      free(__ptr);\n    }" (if "if") (parenthesized_expression "(__ptr != &DAT_000b6780)" (( "(") (binary_expression "__ptr != &DAT_000b6780" (identifier "__ptr") (!= "!=") (pointer_expression "&DAT_000b6780" (& "&") (identifier "DAT_000b6780"))) () ")")) (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_00062e50(uVar6 + 1);" (assignment_expression "__ptr = (undefined *)FUN_00062e50(uVar6 + 1)" (identifier "__ptr") (= "=") (cast_expression "(undefined *)FUN_00062e50(uVar6 + 1)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00062e50(uVar6 + 1)" (identifier "FUN_00062e50") (argument_list "(uVar6 + 1)" (( "(") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "puVar5[1] = (uint)__ptr;" (assignment_expression "puVar5[1] = (uint)__ptr" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)__ptr" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "__ptr"))) (; ";")) (expression_statement "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);" (call_expression "FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" (identifier "FUN_0005fbe0") (argument_list "(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb])" (( "(") (identifier "param_2") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (binary_expression "uVar2 | 1" (identifier "uVar2") (| "|") (number_literal "1")) (, ",") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_3[10]" (identifier "param_3") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_3[0xb]" (identifier "param_3") ([ "[") (number_literal "0xb") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "*piVar4 = iVar1;" (assignment_expression "*piVar4 = iVar1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return __ptr;" (return "return") (identifier "__ptr") (; ";")) (} "}"))

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

char * __regparm3 function_1(int n,char *arg,size_t var_6,type_1 *options)

{
  int iVar1;
  size_t var_8;
  int *piVar2;
  type_2 *var_5;
  type_3 flags;
  size_t var_9;
  char *var_10;
  
  piVar2 = var_1();
  iVar1 = *piVar2;
  var_5 = type_2;
  if (var_2 < 1) {
    if (type_2 == &slotvec0) {
      var_5 = (type_2 *)var_3((void *)0x0,8);
      var_9 = slotvec0.size;
      type_2 = var_5;
      var_5->val = slotvec0.val;
      var_5->size = var_9;
    }
    else {
      var_5 = (type_2 *)var_3(type_2,8);
      type_2 = var_5;
    }
    var_4(var_5 + var_2,0,(1 - var_2) * 8);
    var_2 = 1;
  }
  var_8 = var_5->size;
  var_10 = var_5->val;
  flags = *(type_3 *)(var_6 + 4) | 1;
  var_9 = var_7
                    (var_10,var_8,(char *)n,(size_t)arg,*(type_4 *)var_6,flags,
                     (type_3 *)(var_6 + 8),*(char **)(var_6 + 0x28),*(char **)(var_6 + 0x2c));
  if (var_8 <= var_9) {
    var_9 = var_9 + 1;
    var_5->size = var_9;
    if (var_10 != var_11) {
      var_12(var_10);
    }
    var_10 = (char *)var_13(var_9);
    var_5->val = var_10;
    var_7
              (var_10,var_9,(char *)n,(size_t)arg,*(type_4 *)var_6,flags,
               (type_3 *)(var_6 + 8),*(char **)(var_6 + 0x28),*(char **)(var_6 + 0x2c));
  }
  *piVar2 = iVar1;
  return var_10;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (ERROR (identifier)) (identifier) (ERROR (identifier)) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (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 (identifier) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (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 (identifier) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier))))

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

undefined * __regparm3 MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int *piVar4;
  uint *puVar5;
  uint uVar6;
  undefined *__ptr;
  
  piVar4 = __errno_location();
  iVar1 = *piVar4;
  puVar5 = (uint *)PTR_DAT_000b13d4;
  if (DAT_000b13d0 < 1) {
    if ((uint *)PTR_DAT_000b13d4 == &DAT_000b13d8) {
      puVar5 = (uint *)FUN_00062e80(0,8);
      uVar2 = DAT_000b13d8;
      PTR_DAT_000b13d4 = (undefined *)puVar5;
      puVar5[1] = (uint)PTR_DAT_000b13dc;
      *puVar5 = uVar2;
    }
    else {
      puVar5 = (uint *)FUN_00062e80(PTR_DAT_000b13d4,8);
      PTR_DAT_000b13d4 = (undefined *)puVar5;
    }
    memset(puVar5 + DAT_000b13d0 * 2,0,(1 - DAT_000b13d0) * 8);
    DAT_000b13d0 = 1;
  }
  uVar2 = param_3[1];
  uVar3 = *puVar5;
  __ptr = (undefined *)puVar5[1];
  uVar6 = FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);
  if (uVar3 <= uVar6) {
    *puVar5 = uVar6 + 1;
    if (__ptr != &DAT_000b6780) {
      free(__ptr);
    }
    __ptr = (undefined *)FUN_00062e50(uVar6 + 1);
    puVar5[1] = (uint)__ptr;
    FUN_0005fbe0(param_2,*param_3,uVar2 | 1,param_3 + 2,param_3[10],param_3[0xb]);
  }
  *piVar4 = iVar1;
  return __ptr;
}

