
/* 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;
  int iVar2;
  uint buffersize;
  int *piVar3;
  slotvec *psVar4;
  uint flags;
  size_t sVar5;
  char *buffer;
  
  piVar3 = __errno_location();
  iVar2 = *piVar3;
  if (n < 0) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  psVar4 = slotvec;
  if (nslots <= n) {
    if (0xffffffe < n) {
                    /* WARNING: Subroutine does not return */
      xalloc_die();
    }
    iVar1 = n + 1;
    if (slotvec == &slotvec0) {
      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 8);
      sVar5 = slotvec0.size;
      slotvec = psVar4;
      psVar4->val = slotvec0.val;
      psVar4->size = sVar5;
    }
    else {
      psVar4 = (slotvec *)xrealloc(slotvec,iVar1 * 8);
      slotvec = psVar4;
    }
    memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);
    nslots = iVar1;
  }
  psVar4 = psVar4 + n;
  buffersize = psVar4->size;
  buffer = psVar4->val;
  flags = options->flags | 1;
  sVar5 = quotearg_buffer_restyled
                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,
                     options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,
               options->left_quote,options->right_quote);
  }
  *piVar3 = iVar2;
  return buffer;
}



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

undefined * __regparm3
FUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  int iVar1;
  uint *puVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  undefined4 uVar6;
  int *piVar7;
  undefined4 *puVar8;
  uint uVar9;
  undefined *__ptr;
  
  piVar7 = __errno_location();
  iVar3 = *piVar7;
  if (param_1 < 0) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  puVar8 = (undefined4 *)PTR_DAT_00020154;
  if (DAT_00020150 <= param_1) {
    if (0xffffffe < param_1) {
                    /* WARNING: Subroutine does not return */
      FUN_00018cc0();
    }
    iVar1 = param_1 + 1;
    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {
      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);
      uVar6 = DAT_00020158;
      PTR_DAT_00020154 = (undefined *)puVar8;
      puVar8[1] = PTR_DAT_0002015c;
      *puVar8 = uVar6;
    }
    else {
      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);
      PTR_DAT_00020154 = (undefined *)puVar8;
    }
    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);
    DAT_00020150 = iVar1;
  }
  puVar2 = puVar8 + param_1 * 2;
  uVar4 = *puVar2;
  __ptr = (undefined *)puVar2[1];
  uVar5 = param_4[1];
  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);
  if (uVar4 <= uVar9) {
    *puVar2 = uVar9 + 1;
    if (__ptr != &DAT_000201c0) {
      free(__ptr);
    }
    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);
    puVar2[1] = (uint)__ptr;
    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);
  }
  *piVar7 = iVar3;
  return __ptr;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00012840
ADD EBX,0x8855
SUB ESP,0x2c
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
CALL 0x00011270
MOV EDI,dword ptr [EBX + 0x154]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x14],EAX
TEST ESI,ESI
JS 0x000113e5
CMP dword ptr [EBX + 0x150],ESI
JG 0x0001783f
CMP ESI,0xffffffe
JG 0x0001792c
LEA EBP,[ESI + 0x1]
LEA EAX,[EBX + 0x158]
LEA EDX,[EBP*0x8 + 0x0]
CMP EDI,EAX
JZ 0x00017900
SUB ESP,0x8
PUSH EDX
PUSH EDI
CALL 0x00018a50
ADD ESP,0x10
MOV dword ptr [EBX + 0x154],EAX
MOV EDI,EAX
MOV EDX,dword ptr [EBX + 0x150]
MOV EAX,EBP
SUB ESP,0x4
SUB EAX,EDX
LEA EDX,[EDI + EDX*0x8]
SHL EAX,0x3
PUSH EAX
PUSH 0x0
PUSH EDX
CALL 0x00011250
MOV dword ptr [EBX + 0x150],EBP
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x40]
SUB ESP,0x8
LEA EDI,[EDI + ESI*0x8]
MOV EBP,dword ptr [EDI]
MOV ESI,dword ptr [EDI + 0x4]
MOV EAX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + 0x8]
MOV dword ptr [ESP + 0x20],ECX
OR EAX,0x1
MOV dword ptr [ESP + 0x24],EAX
MOV EDX,dword ptr [ESP + 0x48]
PUSH dword ptr [EDX + 0x2c]
MOV EDX,dword ptr [ESP + 0x4c]
PUSH dword ptr [EDX + 0x28]
MOV EDX,EBP
PUSH ECX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x58]
PUSH dword ptr [EAX]
MOV EAX,ESI
PUSH dword ptr [ESP + 0x28]
MOV ECX,dword ptr [ESP + 0x28]
CALL 0x000161f0
ADD ESP,0x20
CMP EBP,EAX
JA 0x000178ec
LEA EBP,[EAX + 0x1]
LEA EAX,[EBX + 0x1c0]
MOV dword ptr [EDI],EBP
CMP ESI,EAX
JZ 0x000178ac
SUB ESP,0xc
PUSH ESI
CALL 0x00011070
ADD ESP,0x10
SUB ESP,0xc
PUSH EBP
CALL 0x000189c0
MOV dword ptr [EDI + 0x4],EAX
MOV ESI,EAX
POP EAX
POP EDX
MOV EAX,dword ptr [ESP + 0x48]
MOV EDX,EBP
PUSH dword ptr [EAX + 0x2c]
MOV EAX,dword ptr [ESP + 0x4c]
PUSH dword ptr [EAX + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESP + 0x58]
PUSH dword ptr [EAX]
MOV EAX,ESI
PUSH dword ptr [ESP + 0x28]
MOV ECX,dword ptr [ESP + 0x28]
CALL 0x000161f0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX],ECX
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EDX
PUSH 0x0
CALL 0x00018a50
MOV EDX,dword ptr [EBX + 0x15c]
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [EBX + 0x154],EAX
MOV EAX,dword ptr [EBX + 0x158]
MOV dword ptr [EDI + 0x4],EDX
MOV dword ptr [EDI],EAX
JMP 0x0001781a
CALL 0x00018cc0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *__ptr;\n  \n  piVar7 = __errno_location();\n  iVar3 = *piVar7;\n  if (param_1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  puVar8 = (undefined4 *)PTR_DAT_00020154;\n  if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }\n  puVar2 = puVar8 + param_1 * 2;\n  uVar4 = *puVar2;\n  __ptr = (undefined *)puVar2[1];\n  uVar5 = param_4[1];\n  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }\n  *piVar7 = iVar3;\n  return __ptr;\n}\n\n" comment (ERROR "undefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (binary_expression "undefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (argument_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (ERROR "int" identifier) identifier , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , (binary_expression "undefined4 *param_4" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *__ptr;\n  \n  piVar7 = __errno_location();\n  iVar3 = *piVar7;\n  if (param_1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  puVar8 = (undefined4 *)PTR_DAT_00020154;\n  if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }\n  puVar2 = puVar8 + param_1 * 2;\n  uVar4 = *puVar2;\n  __ptr = (undefined *)puVar2[1];\n  uVar5 = param_4[1];\n  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }\n  *piVar7 = iVar3;\n  return __ptr;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (param_1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" 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 "puVar8 = (undefined4 *)PTR_DAT_00020154;" (assignment_expression "puVar8 = (undefined4 *)PTR_DAT_00020154" identifier = (cast_expression "(undefined4 *)PTR_DAT_00020154" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }" if (parenthesized_expression "(DAT_00020150 <= param_1)" ( (binary_expression "DAT_00020150 <= param_1" identifier <= identifier) )) (compound_statement "{\n    if (0xffffffe < param_1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }" { (if_statement "if (0xffffffe < param_1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018cc0();\n    }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00018cc0();\n    }" { comment (expression_statement "FUN_00018cc0();" (call_expression "FUN_00018cc0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = param_1 + 1;" (assignment_expression "iVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" if (parenthesized_expression "((undefined4 *)PTR_DAT_00020154 == &DAT_00020158)" ( (binary_expression "(undefined4 *)PTR_DAT_00020154 == &DAT_00020158" (cast_expression "(undefined4 *)PTR_DAT_00020154" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_00020158" & identifier)) )) (compound_statement "{\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }" { (expression_statement "puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);" (assignment_expression "puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8)" identifier = (cast_expression "(undefined4 *)FUN_00018a50(0,iVar1 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018a50(0,iVar1 * 8)" identifier (argument_list "(0,iVar1 * 8)" ( number_literal , (binary_expression "iVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "uVar6 = DAT_00020158;" (assignment_expression "uVar6 = DAT_00020158" identifier = identifier) ;) (expression_statement "PTR_DAT_00020154 = (undefined *)puVar8;" (assignment_expression "PTR_DAT_00020154 = (undefined *)puVar8" identifier = (cast_expression "(undefined *)puVar8" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar8[1] = PTR_DAT_0002015c;" (assignment_expression "puVar8[1] = PTR_DAT_0002015c" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar8 = uVar6;" (assignment_expression "*puVar8 = uVar6" (pointer_expression "*puVar8" * identifier) = identifier) ;) }) (else_clause "else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" else (compound_statement "{\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" { (expression_statement "puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);" (assignment_expression "puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" identifier = (cast_expression "(undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" identifier (argument_list "(PTR_DAT_00020154,iVar1 * 8)" ( identifier , (binary_expression "iVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "PTR_DAT_00020154 = (undefined *)puVar8;" (assignment_expression "PTR_DAT_00020154 = (undefined *)puVar8" identifier = (cast_expression "(undefined *)puVar8" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);" (call_expression "memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8)" identifier (argument_list "(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8)" ( (binary_expression "puVar8 + DAT_00020150 * 2" identifier + (binary_expression "DAT_00020150 * 2" identifier * number_literal)) , number_literal , (binary_expression "(iVar1 - DAT_00020150) * 8" (parenthesized_expression "(iVar1 - DAT_00020150)" ( (binary_expression "iVar1 - DAT_00020150" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "DAT_00020150 = iVar1;" (assignment_expression "DAT_00020150 = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2 = puVar8 + param_1 * 2;" (assignment_expression "puVar2 = puVar8 + param_1 * 2" identifier = (binary_expression "puVar8 + param_1 * 2" identifier + (binary_expression "param_1 * 2" identifier * number_literal))) ;) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "__ptr = (undefined *)puVar2[1];" (assignment_expression "__ptr = (undefined *)puVar2[1]" identifier = (cast_expression "(undefined *)puVar2[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = param_4[1];" (assignment_expression "uVar5 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);" (assignment_expression "uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" identifier = (call_expression "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" ( identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar5 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }" if (parenthesized_expression "(uVar4 <= uVar9)" ( (binary_expression "uVar4 <= uVar9" identifier <= identifier) )) (compound_statement "{\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }" { (expression_statement "*puVar2 = uVar9 + 1;" (assignment_expression "*puVar2 = uVar9 + 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (if_statement "if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != &DAT_000201c0)" ( (binary_expression "__ptr != &DAT_000201c0" identifier != (pointer_expression "&DAT_000201c0" & 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_000189c0(uVar9 + 1);" (assignment_expression "__ptr = (undefined *)FUN_000189c0(uVar9 + 1)" identifier = (cast_expression "(undefined *)FUN_000189c0(uVar9 + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000189c0(uVar9 + 1)" identifier (argument_list "(uVar9 + 1)" ( (binary_expression "uVar9 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar2[1] = (uint)__ptr;" (assignment_expression "puVar2[1] = (uint)__ptr" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (cast_expression "(uint)__ptr" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);" (call_expression "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" ( identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar5 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*piVar7 = iVar3;" (assignment_expression "*piVar7 = iVar3" (pointer_expression "*piVar7" * 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  int iVar2;\n  uint buffersize;\n  int *piVar3;\n  slotvec *psVar4;\n  uint flags;\n  size_t sVar5;\n  char *buffer;\n  \n  piVar3 = __errno_location();\n  iVar2 = *piVar3;\n  if (n < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  psVar4 = slotvec;\n  if (nslots <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar1 = n + 1;\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 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,iVar1 * 8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);\n    nslots = iVar1;\n  }\n  psVar4 = psVar4 + n;\n  buffersize = psVar4->size;\n  buffer = psVar4->val;\n  flags = options->flags | 1;\n  sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->right_quote);\n  }\n  *piVar3 = iVar2;\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  int iVar2;\n  uint buffersize;\n  int *piVar3;\n  slotvec *psVar4;\n  uint flags;\n  size_t sVar5;\n  char *buffer;\n  \n  piVar3 = __errno_location();\n  iVar2 = *piVar3;\n  if (n < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  psVar4 = slotvec;\n  if (nslots <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar1 = n + 1;\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 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,iVar1 * 8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);\n    nslots = iVar1;\n  }\n  psVar4 = psVar4 + n;\n  buffersize = psVar4->size;\n  buffer = psVar4->val;\n  flags = options->flags | 1;\n  sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->right_quote);\n  }\n  *piVar3 = iVar2;\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  int iVar2;\n  uint buffersize;\n  int *piVar3;\n  slotvec *psVar4;\n  uint flags;\n  size_t sVar5;\n  char *buffer;\n  \n  piVar3 = __errno_location();\n  iVar2 = *piVar3;\n  if (n < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  psVar4 = slotvec;\n  if (nslots <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar1 = n + 1;\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 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,iVar1 * 8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);\n    nslots = iVar1;\n  }\n  psVar4 = psVar4 + n;\n  buffersize = psVar4->size;\n  buffer = psVar4->val;\n  flags = options->flags | 1;\n  sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->right_quote);\n  }\n  *piVar3 = iVar2;\n  return buffer;\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 "uint flags;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *buffer;" primitive_type (pointer_declarator "*buffer" * identifier) ;) (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 (n < 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(n < 0)" ( (binary_expression "n < 0" 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 "psVar4 = slotvec;" (assignment_expression "psVar4 = slotvec" identifier = identifier) ;) (if_statement "if (nslots <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar1 = n + 1;\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 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,iVar1 * 8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);\n    nslots = iVar1;\n  }" if (parenthesized_expression "(nslots <= n)" ( (binary_expression "nslots <= n" identifier <= identifier) )) (compound_statement "{\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar1 = n + 1;\n    if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 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,iVar1 * 8);\n      slotvec = psVar4;\n    }\n    memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);\n    nslots = iVar1;\n  }" { (if_statement "if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" if (parenthesized_expression "(0xffffffe < n)" ( (binary_expression "0xffffffe < n" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = n + 1;" (assignment_expression "iVar1 = n + 1" identifier = (binary_expression "n + 1" identifier + number_literal)) ;) (if_statement "if (slotvec == &slotvec0) {\n      psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 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,iVar1 * 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,iVar1 * 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,iVar1 * 8);" (assignment_expression "psVar4 = (slotvec *)xrealloc((void *)0x0,iVar1 * 8)" identifier = (cast_expression "(slotvec *)xrealloc((void *)0x0,iVar1 * 8)" ( (type_descriptor "slotvec *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc((void *)0x0,iVar1 * 8)" identifier (argument_list "((void *)0x0,iVar1 * 8)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (binary_expression "iVar1 * 8" identifier * 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,iVar1 * 8);\n      slotvec = psVar4;\n    }" else (compound_statement "{\n      psVar4 = (slotvec *)xrealloc(slotvec,iVar1 * 8);\n      slotvec = psVar4;\n    }" { (expression_statement "psVar4 = (slotvec *)xrealloc(slotvec,iVar1 * 8);" (assignment_expression "psVar4 = (slotvec *)xrealloc(slotvec,iVar1 * 8)" identifier = (cast_expression "(slotvec *)xrealloc(slotvec,iVar1 * 8)" ( (type_descriptor "slotvec *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(slotvec,iVar1 * 8)" identifier (argument_list "(slotvec,iVar1 * 8)" ( identifier , (binary_expression "iVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "slotvec = psVar4;" (assignment_expression "slotvec = psVar4" identifier = identifier) ;) }))) (expression_statement "memset(psVar4 + nslots,0,(iVar1 - nslots) * 8);" (call_expression "memset(psVar4 + nslots,0,(iVar1 - nslots) * 8)" identifier (argument_list "(psVar4 + nslots,0,(iVar1 - nslots) * 8)" ( (binary_expression "psVar4 + nslots" identifier + identifier) , number_literal , (binary_expression "(iVar1 - nslots) * 8" (parenthesized_expression "(iVar1 - nslots)" ( (binary_expression "iVar1 - nslots" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "nslots = iVar1;" (assignment_expression "nslots = iVar1" identifier = identifier) ;) })) (expression_statement "psVar4 = psVar4 + n;" (assignment_expression "psVar4 = psVar4 + n" identifier = (binary_expression "psVar4 + n" 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 "flags = options->flags | 1;" (assignment_expression "flags = options->flags | 1" identifier = (binary_expression "options->flags | 1" (field_expression "options->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote);" (assignment_expression "sVar5 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote)" identifier = (call_expression "quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote)" identifier (argument_list "(buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote)" ( identifier , identifier , identifier , identifier , (field_expression "options->style" identifier -> field_identifier) , identifier , (field_expression "options->quote_these_too" identifier -> field_identifier) , (field_expression "options->left_quote" identifier -> field_identifier) , (field_expression "options->right_quote" identifier -> field_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,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->right_quote);" (call_expression "quotearg_buffer_restyled\n              (buffer,sVar5,arg,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->right_quote)" identifier (argument_list "(buffer,sVar5,arg,argsize,options->style,flags,options->quote_these_too,\n               options->left_quote,options->right_quote)" ( identifier , identifier , identifier , identifier , (field_expression "options->style" identifier -> field_identifier) , identifier , (field_expression "options->quote_these_too" identifier -> field_identifier) , (field_expression "options->left_quote" identifier -> field_identifier) , (field_expression "options->right_quote" identifier -> field_identifier) ))) ;) })) (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return buffer;" return identifier ;) })))
(translation_unit "undefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *__ptr;\n  \n  piVar7 = __errno_location();\n  iVar3 = *piVar7;\n  if (param_1 < 0) {\n                    \n    abort();\n  }\n  puVar8 = (undefined4 *)PTR_DAT_00020154;\n  if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }\n  puVar2 = puVar8 + param_1 * 2;\n  uVar4 = *puVar2;\n  __ptr = (undefined *)puVar2[1];\n  uVar5 = param_4[1];\n  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }\n  *piVar7 = iVar3;\n  return __ptr;\n}\n\n" (ERROR "undefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (binary_expression "undefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (argument_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (ERROR "int" identifier) identifier , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , (binary_expression "undefined4 *param_4" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *__ptr;\n  \n  piVar7 = __errno_location();\n  iVar3 = *piVar7;\n  if (param_1 < 0) {\n                    \n    abort();\n  }\n  puVar8 = (undefined4 *)PTR_DAT_00020154;\n  if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }\n  puVar2 = puVar8 + param_1 * 2;\n  uVar4 = *puVar2;\n  __ptr = (undefined *)puVar2[1];\n  uVar5 = param_4[1];\n  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }\n  *piVar7 = iVar3;\n  return __ptr;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (param_1 < 0) {\n                    \n    abort();\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar8 = (undefined4 *)PTR_DAT_00020154;" (assignment_expression "puVar8 = (undefined4 *)PTR_DAT_00020154" identifier = (cast_expression "(undefined4 *)PTR_DAT_00020154" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }" if (parenthesized_expression "(DAT_00020150 <= param_1)" ( (binary_expression "DAT_00020150 <= param_1" identifier <= identifier) )) (compound_statement "{\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }" { (if_statement "if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n                    \n      FUN_00018cc0();\n    }" { (expression_statement "FUN_00018cc0();" (call_expression "FUN_00018cc0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = param_1 + 1;" (assignment_expression "iVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" if (parenthesized_expression "((undefined4 *)PTR_DAT_00020154 == &DAT_00020158)" ( (binary_expression "(undefined4 *)PTR_DAT_00020154 == &DAT_00020158" (cast_expression "(undefined4 *)PTR_DAT_00020154" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_00020158" & identifier)) )) (compound_statement "{\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }" { (expression_statement "puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);" (assignment_expression "puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8)" identifier = (cast_expression "(undefined4 *)FUN_00018a50(0,iVar1 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018a50(0,iVar1 * 8)" identifier (argument_list "(0,iVar1 * 8)" ( number_literal , (binary_expression "iVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "uVar6 = DAT_00020158;" (assignment_expression "uVar6 = DAT_00020158" identifier = identifier) ;) (expression_statement "PTR_DAT_00020154 = (undefined *)puVar8;" (assignment_expression "PTR_DAT_00020154 = (undefined *)puVar8" identifier = (cast_expression "(undefined *)puVar8" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar8[1] = PTR_DAT_0002015c;" (assignment_expression "puVar8[1] = PTR_DAT_0002015c" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar8 = uVar6;" (assignment_expression "*puVar8 = uVar6" (pointer_expression "*puVar8" * identifier) = identifier) ;) }) (else_clause "else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" else (compound_statement "{\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" { (expression_statement "puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);" (assignment_expression "puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" identifier = (cast_expression "(undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" identifier (argument_list "(PTR_DAT_00020154,iVar1 * 8)" ( identifier , (binary_expression "iVar1 * 8" identifier * number_literal) ))))) ;) (expression_statement "PTR_DAT_00020154 = (undefined *)puVar8;" (assignment_expression "PTR_DAT_00020154 = (undefined *)puVar8" identifier = (cast_expression "(undefined *)puVar8" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);" (call_expression "memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8)" identifier (argument_list "(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8)" ( (binary_expression "puVar8 + DAT_00020150 * 2" identifier + (binary_expression "DAT_00020150 * 2" identifier * number_literal)) , number_literal , (binary_expression "(iVar1 - DAT_00020150) * 8" (parenthesized_expression "(iVar1 - DAT_00020150)" ( (binary_expression "iVar1 - DAT_00020150" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "DAT_00020150 = iVar1;" (assignment_expression "DAT_00020150 = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2 = puVar8 + param_1 * 2;" (assignment_expression "puVar2 = puVar8 + param_1 * 2" identifier = (binary_expression "puVar8 + param_1 * 2" identifier + (binary_expression "param_1 * 2" identifier * number_literal))) ;) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "__ptr = (undefined *)puVar2[1];" (assignment_expression "__ptr = (undefined *)puVar2[1]" identifier = (cast_expression "(undefined *)puVar2[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = param_4[1];" (assignment_expression "uVar5 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);" (assignment_expression "uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" identifier = (call_expression "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" ( identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar5 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }" if (parenthesized_expression "(uVar4 <= uVar9)" ( (binary_expression "uVar4 <= uVar9" identifier <= identifier) )) (compound_statement "{\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }" { (expression_statement "*puVar2 = uVar9 + 1;" (assignment_expression "*puVar2 = uVar9 + 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (if_statement "if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != &DAT_000201c0)" ( (binary_expression "__ptr != &DAT_000201c0" identifier != (pointer_expression "&DAT_000201c0" & 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_000189c0(uVar9 + 1);" (assignment_expression "__ptr = (undefined *)FUN_000189c0(uVar9 + 1)" identifier = (cast_expression "(undefined *)FUN_000189c0(uVar9 + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000189c0(uVar9 + 1)" identifier (argument_list "(uVar9 + 1)" ( (binary_expression "uVar9 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar2[1] = (uint)__ptr;" (assignment_expression "puVar2[1] = (uint)__ptr" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (cast_expression "(uint)__ptr" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);" (call_expression "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" ( identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar5 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*piVar7 = iVar3;" (assignment_expression "*piVar7 = iVar3" (pointer_expression "*piVar7" * identifier) = identifier) ;) (return_statement "return __ptr;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT , IDENT (ERROR IDENT) , IDENT (ERROR IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 , (binary_expression IDENT * 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 ]) = 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 , (binary_expression 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 IDENT - IDENT) )) * LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_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 = (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\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (binary_expression "undefined * __regparm3\nFUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "undefined") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000177a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_000177a0") (argument_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") (, ",") (identifier "undefined4") (ERROR "param_2" (identifier "param_2")) (, ",") (identifier "undefined4") (ERROR "param_3" (identifier "param_3")) (, ",") (binary_expression "undefined4 *param_4" (identifier "undefined4") (* "*") (identifier "param_4")) () ")"))))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  undefined *__ptr;\n  \n  piVar7 = __errno_location();\n  iVar3 = *piVar7;\n  if (param_1 < 0) {\n                    \n    abort();\n  }\n  puVar8 = (undefined4 *)PTR_DAT_00020154;\n  if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }\n  puVar2 = puVar8 + param_1 * 2;\n  uVar4 = *puVar2;\n  __ptr = (undefined *)puVar2[1];\n  uVar5 = param_4[1];\n  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }\n  *piVar7 = iVar3;\n  return __ptr;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined *__ptr;" (type_identifier "undefined") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" (identifier "piVar7") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" (identifier "iVar3") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (if_statement "if (param_1 < 0) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar8 = (undefined4 *)PTR_DAT_00020154;" (assignment_expression "puVar8 = (undefined4 *)PTR_DAT_00020154" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)PTR_DAT_00020154" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_00020154"))) (; ";")) (if_statement "if (DAT_00020150 <= param_1) {\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }" (if "if") (parenthesized_expression "(DAT_00020150 <= param_1)" (( "(") (binary_expression "DAT_00020150 <= param_1" (identifier "DAT_00020150") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n    if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }\n    iVar1 = param_1 + 1;\n    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }\n    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);\n    DAT_00020150 = iVar1;\n  }" ({ "{") (if_statement "if (0xffffffe < param_1) {\n                    \n      FUN_00018cc0();\n    }" (if "if") (parenthesized_expression "(0xffffffe < param_1)" (( "(") (binary_expression "0xffffffe < param_1" (number_literal "0xffffffe") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n                    \n      FUN_00018cc0();\n    }" ({ "{") (expression_statement "FUN_00018cc0();" (call_expression "FUN_00018cc0()" (identifier "FUN_00018cc0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = param_1 + 1;" (assignment_expression "iVar1 = param_1 + 1" (identifier "iVar1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }\n    else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" (if "if") (parenthesized_expression "((undefined4 *)PTR_DAT_00020154 == &DAT_00020158)" (( "(") (binary_expression "(undefined4 *)PTR_DAT_00020154 == &DAT_00020158" (cast_expression "(undefined4 *)PTR_DAT_00020154" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_00020154")) (== "==") (pointer_expression "&DAT_00020158" (& "&") (identifier "DAT_00020158"))) () ")")) (compound_statement "{\n      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);\n      uVar6 = DAT_00020158;\n      PTR_DAT_00020154 = (undefined *)puVar8;\n      puVar8[1] = PTR_DAT_0002015c;\n      *puVar8 = uVar6;\n    }" ({ "{") (expression_statement "puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);" (assignment_expression "puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)FUN_00018a50(0,iVar1 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00018a50(0,iVar1 * 8)" (identifier "FUN_00018a50") (argument_list "(0,iVar1 * 8)" (( "(") (number_literal "0") (, ",") (binary_expression "iVar1 * 8" (identifier "iVar1") (* "*") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar6 = DAT_00020158;" (assignment_expression "uVar6 = DAT_00020158" (identifier "uVar6") (= "=") (identifier "DAT_00020158")) (; ";")) (expression_statement "PTR_DAT_00020154 = (undefined *)puVar8;" (assignment_expression "PTR_DAT_00020154 = (undefined *)puVar8" (identifier "PTR_DAT_00020154") (= "=") (cast_expression "(undefined *)puVar8" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8"))) (; ";")) (expression_statement "puVar8[1] = PTR_DAT_0002015c;" (assignment_expression "puVar8[1] = PTR_DAT_0002015c" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "PTR_DAT_0002015c")) (; ";")) (expression_statement "*puVar8 = uVar6;" (assignment_expression "*puVar8 = uVar6" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (identifier "uVar6")) (; ";")) (} "}")) (else_clause "else {\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" (else "else") (compound_statement "{\n      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);\n      PTR_DAT_00020154 = (undefined *)puVar8;\n    }" ({ "{") (expression_statement "puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);" (assignment_expression "puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00018a50(PTR_DAT_00020154,iVar1 * 8)" (identifier "FUN_00018a50") (argument_list "(PTR_DAT_00020154,iVar1 * 8)" (( "(") (identifier "PTR_DAT_00020154") (, ",") (binary_expression "iVar1 * 8" (identifier "iVar1") (* "*") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "PTR_DAT_00020154 = (undefined *)puVar8;" (assignment_expression "PTR_DAT_00020154 = (undefined *)puVar8" (identifier "PTR_DAT_00020154") (= "=") (cast_expression "(undefined *)puVar8" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8"))) (; ";")) (} "}")))) (expression_statement "memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);" (call_expression "memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8)" (identifier "memset") (argument_list "(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8)" (( "(") (binary_expression "puVar8 + DAT_00020150 * 2" (identifier "puVar8") (+ "+") (binary_expression "DAT_00020150 * 2" (identifier "DAT_00020150") (* "*") (number_literal "2"))) (, ",") (number_literal "0") (, ",") (binary_expression "(iVar1 - DAT_00020150) * 8" (parenthesized_expression "(iVar1 - DAT_00020150)" (( "(") (binary_expression "iVar1 - DAT_00020150" (identifier "iVar1") (- "-") (identifier "DAT_00020150")) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "DAT_00020150 = iVar1;" (assignment_expression "DAT_00020150 = iVar1" (identifier "DAT_00020150") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "puVar2 = puVar8 + param_1 * 2;" (assignment_expression "puVar2 = puVar8 + param_1 * 2" (identifier "puVar2") (= "=") (binary_expression "puVar8 + param_1 * 2" (identifier "puVar8") (+ "+") (binary_expression "param_1 * 2" (identifier "param_1") (* "*") (number_literal "2")))) (; ";")) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" (identifier "uVar4") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "__ptr = (undefined *)puVar2[1];" (assignment_expression "__ptr = (undefined *)puVar2[1]" (identifier "__ptr") (= "=") (cast_expression "(undefined *)puVar2[1]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar5 = param_4[1];" (assignment_expression "uVar5 = param_4[1]" (identifier "uVar5") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);" (assignment_expression "uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" (identifier "uVar9") (= "=") (call_expression "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" (identifier "FUN_000161f0") (argument_list "(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" (( "(") (identifier "param_3") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (binary_expression "uVar5 | 1" (identifier "uVar5") (| "|") (number_literal "1")) (, ",") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_4[10]" (identifier "param_4") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_4[0xb]" (identifier "param_4") ([ "[") (number_literal "0xb") (] "]")) () ")")))) (; ";")) (if_statement "if (uVar4 <= uVar9) {\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }" (if "if") (parenthesized_expression "(uVar4 <= uVar9)" (( "(") (binary_expression "uVar4 <= uVar9" (identifier "uVar4") (<= "<=") (identifier "uVar9")) () ")")) (compound_statement "{\n    *puVar2 = uVar9 + 1;\n    if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }\n    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);\n    puVar2[1] = (uint)__ptr;\n    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);\n  }" ({ "{") (expression_statement "*puVar2 = uVar9 + 1;" (assignment_expression "*puVar2 = uVar9 + 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (__ptr != &DAT_000201c0) {\n      free(__ptr);\n    }" (if "if") (parenthesized_expression "(__ptr != &DAT_000201c0)" (( "(") (binary_expression "__ptr != &DAT_000201c0" (identifier "__ptr") (!= "!=") (pointer_expression "&DAT_000201c0" (& "&") (identifier "DAT_000201c0"))) () ")")) (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_000189c0(uVar9 + 1);" (assignment_expression "__ptr = (undefined *)FUN_000189c0(uVar9 + 1)" (identifier "__ptr") (= "=") (cast_expression "(undefined *)FUN_000189c0(uVar9 + 1)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000189c0(uVar9 + 1)" (identifier "FUN_000189c0") (argument_list "(uVar9 + 1)" (( "(") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "puVar2[1] = (uint)__ptr;" (assignment_expression "puVar2[1] = (uint)__ptr" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)__ptr" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "__ptr"))) (; ";")) (expression_statement "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);" (call_expression "FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" (identifier "FUN_000161f0") (argument_list "(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb])" (( "(") (identifier "param_3") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (binary_expression "uVar5 | 1" (identifier "uVar5") (| "|") (number_literal "1")) (, ",") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_4[10]" (identifier "param_4") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_4[0xb]" (identifier "param_4") ([ "[") (number_literal "0xb") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "*piVar7 = iVar3;" (assignment_expression "*piVar7 = iVar3" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (identifier "iVar3")) (; ";")) (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 var_2,char *arg,size_t argsize,type_1 *options)

{
  int var_7;
  int iVar2;
  type_2 var_11;
  int *piVar3;
  type_3 *var_9;
  type_2 flags;
  size_t var_12;
  char *var_13;
  
  piVar3 = var_1();
  iVar2 = *piVar3;
  if (var_2 < 0) {
                    /* WARNING: Subroutine does not return */
    var_3();
  }
  var_9 = type_3;
  if (var_4 <= var_2) {
    if (0xffffffe < var_2) {
                    /* WARNING: Subroutine does not return */
      var_5();
    }
    var_7 = var_2 + 1;
    if (type_3 == &slotvec0) {
      var_9 = (type_3 *)var_6((void *)0x0,var_7 * 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_6(type_3,var_7 * 8);
      type_3 = var_9;
    }
    var_8(var_9 + var_4,0,(var_7 - var_4) * 8);
    var_4 = var_7;
  }
  var_9 = var_9 + var_2;
  var_11 = var_9->size;
  var_13 = var_9->val;
  flags = options->flags | 1;
  var_12 = var_10
                    (var_13,var_11,arg,argsize,options->style,flags,options->quote_these_too,
                     options->left_quote,options->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,argsize,options->style,flags,options->quote_these_too,
               options->left_quote,options->right_quote);
  }
  *piVar3 = iVar2;
  return var_13;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier) (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (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)))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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) (binary_expression left: (identifier) right: (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: (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) (binary_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 (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: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (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: (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(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  int iVar1;
  uint *puVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  undefined4 uVar6;
  int *piVar7;
  undefined4 *puVar8;
  uint uVar9;
  undefined *__ptr;
  
  piVar7 = __errno_location();
  iVar3 = *piVar7;
  if (param_1 < 0) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  puVar8 = (undefined4 *)PTR_DAT_00020154;
  if (DAT_00020150 <= param_1) {
    if (0xffffffe < param_1) {
                    /* WARNING: Subroutine does not return */
      FUN_00018cc0();
    }
    iVar1 = param_1 + 1;
    if ((undefined4 *)PTR_DAT_00020154 == &DAT_00020158) {
      puVar8 = (undefined4 *)FUN_00018a50(0,iVar1 * 8);
      uVar6 = DAT_00020158;
      PTR_DAT_00020154 = (undefined *)puVar8;
      puVar8[1] = PTR_DAT_0002015c;
      *puVar8 = uVar6;
    }
    else {
      puVar8 = (undefined4 *)FUN_00018a50(PTR_DAT_00020154,iVar1 * 8);
      PTR_DAT_00020154 = (undefined *)puVar8;
    }
    memset(puVar8 + DAT_00020150 * 2,0,(iVar1 - DAT_00020150) * 8);
    DAT_00020150 = iVar1;
  }
  puVar2 = puVar8 + param_1 * 2;
  uVar4 = *puVar2;
  __ptr = (undefined *)puVar2[1];
  uVar5 = param_4[1];
  uVar9 = FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);
  if (uVar4 <= uVar9) {
    *puVar2 = uVar9 + 1;
    if (__ptr != &DAT_000201c0) {
      free(__ptr);
    }
    __ptr = (undefined *)FUN_000189c0(uVar9 + 1);
    puVar2[1] = (uint)__ptr;
    FUN_000161f0(param_3,*param_4,uVar5 | 1,param_4 + 2,param_4[10],param_4[0xb]);
  }
  *piVar7 = iVar3;
  return __ptr;
}

