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

{
  undefined *puVar1;
  undefined4 *puVar2;
  size_t sVar3;
  char *pcVar4;
  undefined4 uVar5;
  undefined4 *p;
  uint *puVar6;
  char *buffer;
  uint buffersize;
  size_t n_00;
  uint flags;
  undefined4 uVar7;
  
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();
  uVar7 = *puVar2;
  p = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);
  if (-1 < n) {
    if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {
      if (0xffffffe < n) goto LAB_000180b0;
      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {
        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);
        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;
        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);
        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);
        p[1] = uVar5;
      }
      else {
        p = (undefined4 *)xrealloc(p,(n + 1) * 8);
        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;
      }
      puVar1 = PTR_DAT_000310f8;
      (*(code *)PTR_memset_0003125c)
                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,
                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);
      *(int *)(puVar1 + 0x10a0) = n + 1;
    }
    puVar6 = p + n * 2;
    buffersize = *puVar6;
    buffer = (char *)puVar6[1];
    flags = options->flags | 1;
    sVar3 = quotearg_buffer_restyled
                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,
                       options->left_quote,options->right_quote);
    n_00 = sVar3 + 1;
    if (buffersize <= sVar3) {
      pcVar4 = PTR_DAT_000310f8 + 0x1400;
      *puVar6 = n_00;
      if (buffer != pcVar4) {
        (*(code *)PTR_free_000312e8)(buffer);
      }
      buffer = (char *)xmalloc(n_00);
      puVar6[1] = (uint)buffer;
      quotearg_buffer_restyled
                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,
                 options->left_quote,options->right_quote);
    }
    *puVar2 = uVar7;
    return buffer;
  }
  (*(code *)PTR_abort_00031204)();
LAB_000180b0:
                    /* WARNING: Subroutine does not return */
  xalloc_die();
}



undefined * FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  uint uVar2;
  undefined *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  uint *puVar6;
  undefined *puVar7;
  uint uVar8;
  uint uVar9;
  uint uVar10;
  undefined4 uVar11;
  
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();
  uVar11 = *puVar1;
  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);
  if (param_1 < 0) {
    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();
    return puVar7;
  }
  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;
  if (param_1 < 0xfffffff) {
    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;
    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);
    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;
  }
  else {
    xalloc_die();
LAB_000180bc:
    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);
    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;
    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);
    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);
    puVar5[1] = uVar4;
  }
  puVar7 = PTR_DAT_000310f8;
  (*(code *)PTR_memset_0003125c)
            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,
             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);
  *(int *)(puVar7 + 0x10a0) = param_1 + 1;
LAB_00017f7c:
  puVar6 = puVar5 + param_1 * 2;
  uVar8 = *puVar6;
  puVar7 = (undefined *)puVar6[1];
  uVar10 = param_4[1];
  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],
                       param_4[0xb]);
  uVar9 = uVar2 + 1;
  if (uVar8 <= uVar2) {
    puVar3 = PTR_DAT_000310f8 + 0x1400;
    *puVar6 = uVar9;
    if (puVar7 != puVar3) {
      (*(code *)PTR_free_000312e8)(puVar7);
    }
    puVar7 = (undefined *)xmalloc(uVar9);
    puVar6[1] = (uint)puVar7;
    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],
                 param_4[0xb]);
  }
  *puVar1 = uVar11;
  return puVar7;
}


lui gp,0x2
addiu gp,gp,0x1248
addu gp,gp,t9
addiu sp,sp,-0x58
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
sw gp,0x28(sp)
or s2,a0,zero
sw a1,0x5c(sp)
or s6,a2,zero
or s1,a3,zero
lw t9,-0x7e7c(gp)
jalr t9
_nop
lw gp,0x28(sp)
or s5,v0,zero
lw s8,0x0(v0)
lw v0,-0x7fd8(gp)
bltz s2,0x000180a4
_lw s0,0x10b0(v0)
lw v0,-0x7fd8(gp)
lw v0,0x10a0(v0)
slt v0,s2,v0
bne v0,zero,0x00017f7c
_lui v0,0xfff
ori v0,v0,0xffff
slt v0,s2,v0
beq v0,zero,0x000180b0
_lw v0,-0x7fd8(gp)
addiu v0,v0,0x10b4
beq s0,v0,0x000180bc
_or a0,s0,zero
addiu s3,s2,0x1
sll a1,s3,0x3
lw t9,-0x7f68(gp)
bal 0x00019730
_nop
lw gp,0x28(sp)
or s0,v0,zero
lw v0,-0x7fd8(gp)
sw s0,0x10b0(v0)
lw s4,-0x7fd8(gp)
lw a0,0x10a0(s4)
subu a2,s3,a0
sll a0,a0,0x3
sll a2,a2,0x3
or a1,zero,zero
addu a0,s0,a0
lw t9,-0x7e74(gp)
jalr t9
_nop
lw gp,0x28(sp)
sw s3,0x10a0(s4)
sll s2,s2,0x3
addu s0,s0,s2
lw s3,0x0(s0)
lw s2,0x4(s0)
lw s4,0x4(s1)
ori s4,s4,0x1
addiu s7,s1,0x8
lw v0,0x2c(s1)
sw v0,0x20(sp)
lw v0,0x28(s1)
sw v0,0x1c(sp)
sw s7,0x18(sp)
sw s4,0x14(sp)
lw v0,0x0(s1)
sw v0,0x10(sp)
or a3,s6,zero
lw a2,0x5c(sp)
or a1,s3,zero
or a0,s2,zero
lw t9,-0x7fcc(gp)
addiu t9,t9,0x6b2c
bal 0x00016b2c
_nop
lw gp,0x28(sp)
sltu s3,v0,s3
bne s3,zero,0x0001806c
_addiu s3,v0,0x1
lw v0,-0x7fd8(gp)
addiu v0,v0,0x1400
beq s2,v0,0x0001800c
_sw s3,0x0(s0)
or a0,s2,zero
lw t9,-0x7de8(gp)
jalr t9
_nop
lw gp,0x28(sp)
or a0,s3,zero
lw t9,-0x7f64(gp)
bal 0x00019640
_nop
lw gp,0x28(sp)
or s2,v0,zero
sw v0,0x4(s0)
lw v0,0x2c(s1)
sw v0,0x20(sp)
lw v0,0x28(s1)
sw v0,0x1c(sp)
sw s7,0x18(sp)
sw s4,0x14(sp)
lw v0,0x0(s1)
sw v0,0x10(sp)
or a3,s6,zero
lw a2,0x5c(sp)
or a1,s3,zero
or a0,s2,zero
lw t9,-0x7fcc(gp)
addiu t9,t9,0x6b2c
bal 0x00016b2c
_nop
lw gp,0x28(sp)
sw s8,0x0(s5)
or v0,s2,zero
lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
lw t9,-0x7ecc(gp)
jalr t9
_nop
lw t9,-0x7fc0(gp)
bal 0x00019af0
_nop
addiu s3,s2,0x1
sll a1,s3,0x3
or a0,zero,zero
lw t9,-0x7f68(gp)
bal 0x00019730
_nop
lw gp,0x28(sp)
or s0,v0,zero
lw v0,-0x7fd8(gp)
sw s0,0x10b0(v0)
lw v0,-0x7fd8(gp)
lw v1,0x10b4(v0)
addiu v0,v0,0x10b4
lw v0,0x4(v0)
sw v1,0x0(s0)
b 0x00017f4c
_sw v0,0x4(s0)
(translation_unit "undefined * FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}\n\n" (function_definition "undefined * FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}" type_identifier (pointer_declarator "* FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" * (function_declarator "FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031254)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00031254)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031254)" ( (pointer_expression "*(code *)PTR___errno_location_00031254" * (cast_expression "(code *)PTR___errno_location_00031254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar11 = *puVar1;" (assignment_expression "uVar11 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);" (assignment_expression "puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" identifier = (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }" { (expression_statement "puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();" (assignment_expression "puVar7 = (undefined *)(*(code *)PTR_abort_00031204)()" identifier = (cast_expression "(undefined *)(*(code *)PTR_abort_00031204)()" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_abort_00031204)()" (parenthesized_expression "(*(code *)PTR_abort_00031204)" ( (pointer_expression "*(code *)PTR_abort_00031204" * (cast_expression "(code *)PTR_abort_00031204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return puVar7;" return identifier ;) })) (if_statement "if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;" if (parenthesized_expression "(param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0))" ( (binary_expression "param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)" identifier < (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) ))))) )) (goto_statement "goto LAB_00017f7c;" goto statement_identifier ;)) (if_statement "if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" if (parenthesized_expression "(param_1 < 0xfffffff)" ( (binary_expression "param_1 < 0xfffffff" identifier < number_literal) )) (compound_statement "{\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }" { (if_statement "if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;" if (parenthesized_expression "(puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4))" ( (binary_expression "puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" identifier == (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b4" identifier + number_literal) )))) )) (goto_statement "goto LAB_000180bc;" goto statement_identifier ;)) (expression_statement "puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);" (assignment_expression "puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar5,(param_1 + 1) * 8)" identifier (argument_list "(puVar5,(param_1 + 1) * 8)" ( identifier , (binary_expression "(param_1 + 1) * 8" (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" else (compound_statement "{\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);" statement_identifier : (expression_statement "puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);" (assignment_expression "puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(0,(param_1 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(0,(param_1 + 1) * 8)" identifier (argument_list "(0,(param_1 + 1) * 8)" ( number_literal , (binary_expression "(param_1 + 1) * 8" (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )) * number_literal) ))))) ;)) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" * (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b8)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b8" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);" (assignment_expression "*puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" * (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b4" identifier + number_literal) ))))) ;) (expression_statement "puVar5[1] = uVar4;" (assignment_expression "puVar5[1] = uVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar7 = PTR_DAT_000310f8;" (assignment_expression "puVar7 = PTR_DAT_000310f8" identifier = identifier) ;) (expression_statement "(*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);" (call_expression "(*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0003125c)" ( (pointer_expression "*(code *)PTR_memset_0003125c" * (cast_expression "(code *)PTR_memset_0003125c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" ( (binary_expression "puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" identifier + (binary_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) )))) * number_literal)) , number_literal , (binary_expression "((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8" (parenthesized_expression "((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0))" ( (binary_expression "(param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)" (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )) - (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "*(int *)(puVar7 + 0x10a0) = param_1 + 1;" (assignment_expression "*(int *)(puVar7 + 0x10a0) = param_1 + 1" (pointer_expression "*(int *)(puVar7 + 0x10a0)" * (cast_expression "(int *)(puVar7 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x10a0)" ( (binary_expression "puVar7 + 0x10a0" identifier + number_literal) )))) = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;" statement_identifier : (expression_statement "puVar6 = puVar5 + param_1 * 2;" (assignment_expression "puVar6 = puVar5 + param_1 * 2" identifier = (binary_expression "puVar5 + param_1 * 2" identifier + (binary_expression "param_1 * 2" identifier * number_literal))) ;)) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar7 = (undefined *)puVar6[1];" (assignment_expression "puVar7 = (undefined *)puVar6[1]" identifier = (cast_expression "(undefined *)puVar6[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar10 = param_4[1];" (assignment_expression "uVar10 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);" (assignment_expression "uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier = (call_expression "FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier (argument_list "(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar10 | 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 "uVar9 = uVar2 + 1;" (assignment_expression "uVar9 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }" if (parenthesized_expression "(uVar8 <= uVar2)" ( (binary_expression "uVar8 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }" { (expression_statement "puVar3 = PTR_DAT_000310f8 + 0x1400;" (assignment_expression "puVar3 = PTR_DAT_000310f8 + 0x1400" identifier = (binary_expression "PTR_DAT_000310f8 + 0x1400" identifier + number_literal)) ;) (expression_statement "*puVar6 = uVar9;" (assignment_expression "*puVar6 = uVar9" (pointer_expression "*puVar6" * identifier) = identifier) ;) (if_statement "if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }" if (parenthesized_expression "(puVar7 != puVar3)" ( (binary_expression "puVar7 != puVar3" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }" { (expression_statement "(*(code *)PTR_free_000312e8)(puVar7);" (call_expression "(*(code *)PTR_free_000312e8)(puVar7)" (parenthesized_expression "(*(code *)PTR_free_000312e8)" ( (pointer_expression "*(code *)PTR_free_000312e8" * (cast_expression "(code *)PTR_free_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))) ;) })) (expression_statement "puVar7 = (undefined *)xmalloc(uVar9);" (assignment_expression "puVar7 = (undefined *)xmalloc(uVar9)" identifier = (cast_expression "(undefined *)xmalloc(uVar9)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(uVar9)" identifier (argument_list "(uVar9)" ( identifier ))))) ;) (expression_statement "puVar6[1] = (uint)puVar7;" (assignment_expression "puVar6[1] = (uint)puVar7" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (cast_expression "(uint)puVar7" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);" (call_expression "FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb])" identifier (argument_list "(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar10 | 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 "*puVar1 = uVar11;" (assignment_expression "*puVar1 = uVar11" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return puVar7;" return identifier ;) })))
(translation_unit "char * quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  size_t sVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 *p;\n  uint *puVar6;\n  char *buffer;\n  uint buffersize;\n  size_t n_00;\n  uint flags;\n  undefined4 uVar7;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar7 = *puVar2;\n  p = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (-1 < n) {\n    if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }\n    puVar6 = p + n * 2;\n    buffersize = *puVar6;\n    buffer = (char *)puVar6[1];\n    flags = options->flags | 1;\n    sVar3 = quotearg_buffer_restyled\n                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                       options->left_quote,options->right_quote);\n    n_00 = sVar3 + 1;\n    if (buffersize <= sVar3) {\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }\n    *puVar2 = uVar7;\n    return buffer;\n  }\n  (*(code *)PTR_abort_00031204)();\nLAB_000180b0:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}\n\n" (function_definition "char * quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  size_t sVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 *p;\n  uint *puVar6;\n  char *buffer;\n  uint buffersize;\n  size_t n_00;\n  uint flags;\n  undefined4 uVar7;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar7 = *puVar2;\n  p = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (-1 < n) {\n    if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }\n    puVar6 = p + n * 2;\n    buffersize = *puVar6;\n    buffer = (char *)puVar6[1];\n    flags = options->flags | 1;\n    sVar3 = quotearg_buffer_restyled\n                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                       options->left_quote,options->right_quote);\n    n_00 = sVar3 + 1;\n    if (buffersize <= sVar3) {\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }\n    *puVar2 = uVar7;\n    return buffer;\n  }\n  (*(code *)PTR_abort_00031204)();\nLAB_000180b0:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" primitive_type (pointer_declarator "* quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)" * (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  undefined *puVar1;\n  undefined4 *puVar2;\n  size_t sVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 *p;\n  uint *puVar6;\n  char *buffer;\n  uint buffersize;\n  size_t n_00;\n  uint flags;\n  undefined4 uVar7;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar7 = *puVar2;\n  p = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (-1 < n) {\n    if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }\n    puVar6 = p + n * 2;\n    buffersize = *puVar6;\n    buffer = (char *)puVar6[1];\n    flags = options->flags | 1;\n    sVar3 = quotearg_buffer_restyled\n                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                       options->left_quote,options->right_quote);\n    n_00 = sVar3 + 1;\n    if (buffersize <= sVar3) {\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }\n    *puVar2 = uVar7;\n    return buffer;\n  }\n  (*(code *)PTR_abort_00031204)();\nLAB_000180b0:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *buffer;" primitive_type (pointer_declarator "*buffer" * identifier) ;) (declaration "uint buffersize;" type_identifier identifier ;) (declaration "size_t n_00;" primitive_type identifier ;) (declaration "uint flags;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_00031254)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031254)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00031254)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031254)" ( (pointer_expression "*(code *)PTR___errno_location_00031254" * (cast_expression "(code *)PTR___errno_location_00031254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "p = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);" (assignment_expression "p = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" identifier = (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) ))))) ;) (if_statement "if (-1 < n) {\n    if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }\n    puVar6 = p + n * 2;\n    buffersize = *puVar6;\n    buffer = (char *)puVar6[1];\n    flags = options->flags | 1;\n    sVar3 = quotearg_buffer_restyled\n                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                       options->left_quote,options->right_quote);\n    n_00 = sVar3 + 1;\n    if (buffersize <= sVar3) {\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }\n    *puVar2 = uVar7;\n    return buffer;\n  }" if (parenthesized_expression "(-1 < n)" ( (binary_expression "-1 < n" number_literal < identifier) )) (compound_statement "{\n    if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }\n    puVar6 = p + n * 2;\n    buffersize = *puVar6;\n    buffer = (char *)puVar6[1];\n    flags = options->flags | 1;\n    sVar3 = quotearg_buffer_restyled\n                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                       options->left_quote,options->right_quote);\n    n_00 = sVar3 + 1;\n    if (buffersize <= sVar3) {\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }\n    *puVar2 = uVar7;\n    return buffer;\n  }" { (if_statement "if (*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n) {\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }" if (parenthesized_expression "(*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n)" ( (binary_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0) <= n" (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      if (0xffffffe < n) goto LAB_000180b0;\n      if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }\n      puVar1 = PTR_DAT_000310f8;\n      (*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n      *(int *)(puVar1 + 0x10a0) = n + 1;\n    }" { (if_statement "if (0xffffffe < n) goto LAB_000180b0;" if (parenthesized_expression "(0xffffffe < n)" ( (binary_expression "0xffffffe < n" number_literal < identifier) )) (goto_statement "goto LAB_000180b0;" goto statement_identifier ;)) (if_statement "if (p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) {\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }\n      else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }" if (parenthesized_expression "(p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4))" ( (binary_expression "p == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" identifier == (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b4" identifier + number_literal) )))) )) (compound_statement "{\n        p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n        uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n        *p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n        p[1] = uVar5;\n      }" { (expression_statement "p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8);" (assignment_expression "p = (undefined4 *)xrealloc((void *)0x0,(n + 1) * 8)" identifier = (cast_expression "(undefined4 *)xrealloc((void *)0x0,(n + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc((void *)0x0,(n + 1) * 8)" identifier (argument_list "((void *)0x0,(n + 1) * 8)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (binary_expression "(n + 1) * 8" (parenthesized_expression "(n + 1)" ( (binary_expression "n + 1" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);" (assignment_expression "uVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" * (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b8)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b8" identifier + number_literal) ))))) ;) (expression_statement "*p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);" (assignment_expression "*p = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (pointer_expression "*p" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" * (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b4" identifier + number_literal) ))))) ;) (expression_statement "p[1] = uVar5;" (assignment_expression "p[1] = uVar5" (subscript_expression "p[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }" else (compound_statement "{\n        p = (undefined4 *)xrealloc(p,(n + 1) * 8);\n        *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;\n      }" { (expression_statement "p = (undefined4 *)xrealloc(p,(n + 1) * 8);" (assignment_expression "p = (undefined4 *)xrealloc(p,(n + 1) * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(p,(n + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(p,(n + 1) * 8)" identifier (argument_list "(p,(n + 1) * 8)" ( identifier , (binary_expression "(n + 1) * 8" (parenthesized_expression "(n + 1)" ( (binary_expression "n + 1" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = p" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "puVar1 = PTR_DAT_000310f8;" (assignment_expression "puVar1 = PTR_DAT_000310f8" identifier = identifier) ;) (expression_statement "(*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);" (call_expression "(*(code *)PTR_memset_0003125c)\n                (p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0003125c)" ( (pointer_expression "*(code *)PTR_memset_0003125c" * (cast_expression "(code *)PTR_memset_0003125c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n                 ((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" ( (binary_expression "p + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" identifier + (binary_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) )))) * number_literal)) , number_literal , (binary_expression "((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8" (parenthesized_expression "((n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0))" ( (binary_expression "(n + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)" (parenthesized_expression "(n + 1)" ( (binary_expression "n + 1" identifier + number_literal) )) - (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "*(int *)(puVar1 + 0x10a0) = n + 1;" (assignment_expression "*(int *)(puVar1 + 0x10a0) = n + 1" (pointer_expression "*(int *)(puVar1 + 0x10a0)" * (cast_expression "(int *)(puVar1 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x10a0)" ( (binary_expression "puVar1 + 0x10a0" identifier + number_literal) )))) = (binary_expression "n + 1" identifier + number_literal)) ;) })) (expression_statement "puVar6 = p + n * 2;" (assignment_expression "puVar6 = p + n * 2" identifier = (binary_expression "p + n * 2" identifier + (binary_expression "n * 2" identifier * number_literal))) ;) (expression_statement "buffersize = *puVar6;" (assignment_expression "buffersize = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "buffer = (char *)puVar6[1];" (assignment_expression "buffer = (char *)puVar6[1]" identifier = (cast_expression "(char *)puVar6[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ]))) ;) (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 "sVar3 = quotearg_buffer_restyled\n                      (buffer,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                       options->left_quote,options->right_quote);" (assignment_expression "sVar3 = 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) )))) ;) (expression_statement "n_00 = sVar3 + 1;" (assignment_expression "n_00 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (if_statement "if (buffersize <= sVar3) {\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }" if (parenthesized_expression "(buffersize <= sVar3)" ( (binary_expression "buffersize <= sVar3" identifier <= identifier) )) (compound_statement "{\n      pcVar4 = PTR_DAT_000310f8 + 0x1400;\n      *puVar6 = n_00;\n      if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }\n      buffer = (char *)xmalloc(n_00);\n      puVar6[1] = (uint)buffer;\n      quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);\n    }" { (expression_statement "pcVar4 = PTR_DAT_000310f8 + 0x1400;" (assignment_expression "pcVar4 = PTR_DAT_000310f8 + 0x1400" identifier = (binary_expression "PTR_DAT_000310f8 + 0x1400" identifier + number_literal)) ;) (expression_statement "*puVar6 = n_00;" (assignment_expression "*puVar6 = n_00" (pointer_expression "*puVar6" * identifier) = identifier) ;) (if_statement "if (buffer != pcVar4) {\n        (*(code *)PTR_free_000312e8)(buffer);\n      }" if (parenthesized_expression "(buffer != pcVar4)" ( (binary_expression "buffer != pcVar4" identifier != identifier) )) (compound_statement "{\n        (*(code *)PTR_free_000312e8)(buffer);\n      }" { (expression_statement "(*(code *)PTR_free_000312e8)(buffer);" (call_expression "(*(code *)PTR_free_000312e8)(buffer)" (parenthesized_expression "(*(code *)PTR_free_000312e8)" ( (pointer_expression "*(code *)PTR_free_000312e8" * (cast_expression "(code *)PTR_free_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buffer)" ( identifier ))) ;) })) (expression_statement "buffer = (char *)xmalloc(n_00);" (assignment_expression "buffer = (char *)xmalloc(n_00)" identifier = (cast_expression "(char *)xmalloc(n_00)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(n_00)" identifier (argument_list "(n_00)" ( identifier ))))) ;) (expression_statement "puVar6[1] = (uint)buffer;" (assignment_expression "puVar6[1] = (uint)buffer" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (cast_expression "(uint)buffer" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote);" (call_expression "quotearg_buffer_restyled\n                (buffer,n_00,arg,argsize,options->style,flags,options->quote_these_too,\n                 options->left_quote,options->right_quote)" identifier (argument_list "(buffer,n_00,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 "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return buffer;" return identifier ;) })) (expression_statement "(*(code *)PTR_abort_00031204)();" (call_expression "(*(code *)PTR_abort_00031204)()" (parenthesized_expression "(*(code *)PTR_abort_00031204)" ( (pointer_expression "*(code *)PTR_abort_00031204" * (cast_expression "(code *)PTR_abort_00031204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_000180b0:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();" statement_identifier : comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;)) })))
(translation_unit "undefined * FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}\n\n" (function_definition "undefined * FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}" type_identifier (pointer_declarator "* FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" * (function_declarator "FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031254)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00031254)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031254)" ( (pointer_expression "*(code *)PTR___errno_location_00031254" * (cast_expression "(code *)PTR___errno_location_00031254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar11 = *puVar1;" (assignment_expression "uVar11 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);" (assignment_expression "puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" identifier = (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }" { (expression_statement "puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();" (assignment_expression "puVar7 = (undefined *)(*(code *)PTR_abort_00031204)()" identifier = (cast_expression "(undefined *)(*(code *)PTR_abort_00031204)()" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_abort_00031204)()" (parenthesized_expression "(*(code *)PTR_abort_00031204)" ( (pointer_expression "*(code *)PTR_abort_00031204" * (cast_expression "(code *)PTR_abort_00031204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return puVar7;" return identifier ;) })) (if_statement "if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;" if (parenthesized_expression "(param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0))" ( (binary_expression "param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)" identifier < (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) ))))) )) (goto_statement "goto LAB_00017f7c;" goto statement_identifier ;)) (if_statement "if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" if (parenthesized_expression "(param_1 < 0xfffffff)" ( (binary_expression "param_1 < 0xfffffff" identifier < number_literal) )) (compound_statement "{\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }" { (if_statement "if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;" if (parenthesized_expression "(puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4))" ( (binary_expression "puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" identifier == (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b4" identifier + number_literal) )))) )) (goto_statement "goto LAB_000180bc;" goto statement_identifier ;)) (expression_statement "puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);" (assignment_expression "puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar5,(param_1 + 1) * 8)" identifier (argument_list "(puVar5,(param_1 + 1) * 8)" ( identifier , (binary_expression "(param_1 + 1) * 8" (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )) * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" else (compound_statement "{\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);" statement_identifier : (expression_statement "puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);" (assignment_expression "puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(0,(param_1 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(0,(param_1 + 1) * 8)" identifier (argument_list "(0,(param_1 + 1) * 8)" ( number_literal , (binary_expression "(param_1 + 1) * 8" (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )) * number_literal) ))))) ;)) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" * (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b0" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" * (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b8)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b8" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);" (assignment_expression "*puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" * (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" ( (binary_expression "PTR_DAT_000310f8 + 0x10b4" identifier + number_literal) ))))) ;) (expression_statement "puVar5[1] = uVar4;" (assignment_expression "puVar5[1] = uVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "puVar7 = PTR_DAT_000310f8;" (assignment_expression "puVar7 = PTR_DAT_000310f8" identifier = identifier) ;) (expression_statement "(*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);" (call_expression "(*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0003125c)" ( (pointer_expression "*(code *)PTR_memset_0003125c" * (cast_expression "(code *)PTR_memset_0003125c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" ( (binary_expression "puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" identifier + (binary_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) )))) * number_literal)) , number_literal , (binary_expression "((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8" (parenthesized_expression "((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0))" ( (binary_expression "(param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)" (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )) - (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" * (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" ( (binary_expression "PTR_DAT_000310f8 + 0x10a0" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "*(int *)(puVar7 + 0x10a0) = param_1 + 1;" (assignment_expression "*(int *)(puVar7 + 0x10a0) = param_1 + 1" (pointer_expression "*(int *)(puVar7 + 0x10a0)" * (cast_expression "(int *)(puVar7 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x10a0)" ( (binary_expression "puVar7 + 0x10a0" identifier + number_literal) )))) = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;" statement_identifier : (expression_statement "puVar6 = puVar5 + param_1 * 2;" (assignment_expression "puVar6 = puVar5 + param_1 * 2" identifier = (binary_expression "puVar5 + param_1 * 2" identifier + (binary_expression "param_1 * 2" identifier * number_literal))) ;)) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar7 = (undefined *)puVar6[1];" (assignment_expression "puVar7 = (undefined *)puVar6[1]" identifier = (cast_expression "(undefined *)puVar6[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar10 = param_4[1];" (assignment_expression "uVar10 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);" (assignment_expression "uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier = (call_expression "FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier (argument_list "(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar10 | 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 "uVar9 = uVar2 + 1;" (assignment_expression "uVar9 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }" if (parenthesized_expression "(uVar8 <= uVar2)" ( (binary_expression "uVar8 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }" { (expression_statement "puVar3 = PTR_DAT_000310f8 + 0x1400;" (assignment_expression "puVar3 = PTR_DAT_000310f8 + 0x1400" identifier = (binary_expression "PTR_DAT_000310f8 + 0x1400" identifier + number_literal)) ;) (expression_statement "*puVar6 = uVar9;" (assignment_expression "*puVar6 = uVar9" (pointer_expression "*puVar6" * identifier) = identifier) ;) (if_statement "if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }" if (parenthesized_expression "(puVar7 != puVar3)" ( (binary_expression "puVar7 != puVar3" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }" { (expression_statement "(*(code *)PTR_free_000312e8)(puVar7);" (call_expression "(*(code *)PTR_free_000312e8)(puVar7)" (parenthesized_expression "(*(code *)PTR_free_000312e8)" ( (pointer_expression "*(code *)PTR_free_000312e8" * (cast_expression "(code *)PTR_free_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))) ;) })) (expression_statement "puVar7 = (undefined *)xmalloc(uVar9);" (assignment_expression "puVar7 = (undefined *)xmalloc(uVar9)" identifier = (cast_expression "(undefined *)xmalloc(uVar9)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(uVar9)" identifier (argument_list "(uVar9)" ( identifier ))))) ;) (expression_statement "puVar6[1] = (uint)puVar7;" (assignment_expression "puVar6[1] = (uint)puVar7" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (cast_expression "(uint)puVar7" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);" (call_expression "FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb])" identifier (argument_list "(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar10 | 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 "*puVar1 = uVar11;" (assignment_expression "*puVar1 = uVar11" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return puVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) , LIT , (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) * LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (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 , IDENT , IDENT , IDENT , (pointer_expression * IDENT) , (binary_expression IDENT | LIT) , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , 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 ;) })))
(function_definition "undefined * FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (* "*") (function_declarator "FUN_00017e88(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_00017e88") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  undefined *puVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  undefined4 uVar11;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();\n  uVar11 = *puVar1;\n  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);\n  if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }\n  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;\n  if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }\n  puVar7 = PTR_DAT_000310f8;\n  (*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);\n  *(int *)(puVar7 + 0x10a0) = param_1 + 1;\nLAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;\n  uVar8 = *puVar6;\n  puVar7 = (undefined *)puVar6[1];\n  uVar10 = param_4[1];\n  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  uVar9 = uVar2 + 1;\n  if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }\n  *puVar1 = uVar11;\n  return puVar7;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "undefined4 uVar11;" (type_identifier "undefined4") (identifier "uVar11") (; ";")) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00031254)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00031254)()" (parenthesized_expression "(*(code *)PTR___errno_location_00031254)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00031254" (* "*") (cast_expression "(code *)PTR___errno_location_00031254" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00031254"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar11 = *puVar1;" (assignment_expression "uVar11 = *puVar1" (identifier "uVar11") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);" (assignment_expression "puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (* "*") (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10b0" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10b0")) () ")"))))) (; ";")) (if_statement "if (param_1 < 0) {\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();\n    return puVar7;\n  }" ({ "{") (expression_statement "puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();" (assignment_expression "puVar7 = (undefined *)(*(code *)PTR_abort_00031204)()" (identifier "puVar7") (= "=") (cast_expression "(undefined *)(*(code *)PTR_abort_00031204)()" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_abort_00031204)()" (parenthesized_expression "(*(code *)PTR_abort_00031204)" (( "(") (pointer_expression "*(code *)PTR_abort_00031204" (* "*") (cast_expression "(code *)PTR_abort_00031204" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_00031204"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}"))) (if_statement "if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;" (if "if") (parenthesized_expression "(param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0))" (( "(") (binary_expression "param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)" (identifier "param_1") (< "<") (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" (* "*") (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10a0" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10a0")) () ")"))))) () ")")) (goto_statement "goto LAB_00017f7c;" (goto "goto") (statement_identifier "LAB_00017f7c") (; ";"))) (if_statement "if (param_1 < 0xfffffff) {\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }\n  else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" (if "if") (parenthesized_expression "(param_1 < 0xfffffff)" (( "(") (binary_expression "param_1 < 0xfffffff" (identifier "param_1") (< "<") (number_literal "0xfffffff")) () ")")) (compound_statement "{\n    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;\n    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n  }" ({ "{") (if_statement "if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;" (if "if") (parenthesized_expression "(puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4))" (( "(") (binary_expression "puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (identifier "puVar5") (== "==") (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10b4" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10b4")) () ")")))) () ")")) (goto_statement "goto LAB_000180bc;" (goto "goto") (statement_identifier "LAB_000180bc") (; ";"))) (expression_statement "puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);" (assignment_expression "puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(puVar5,(param_1 + 1) * 8)" (identifier "xrealloc") (argument_list "(puVar5,(param_1 + 1) * 8)" (( "(") (identifier "puVar5") (, ",") (binary_expression "(param_1 + 1) * 8" (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (* "*") (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10b0" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10b0")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (} "}")) (else_clause "else {\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" (else "else") (compound_statement "{\n    xalloc_die();\nLAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);\n    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;\n    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);\n    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);\n    puVar5[1] = uVar4;\n  }" ({ "{") (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_000180bc:\n    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);" (statement_identifier "LAB_000180bc") (: ":") (expression_statement "puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);" (assignment_expression "puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)xrealloc(0,(param_1 + 1) * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(0,(param_1 + 1) * 8)" (identifier "xrealloc") (argument_list "(0,(param_1 + 1) * 8)" (( "(") (number_literal "0") (, ",") (binary_expression "(param_1 + 1) * 8" (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8")) () ")"))))) (; ";"))) (expression_statement "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;" (assignment_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5" (pointer_expression "*(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (* "*") (cast_expression "(undefined4 **)(PTR_DAT_000310f8 + 0x10b0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b0)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10b0" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10b0")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);" (assignment_expression "uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b8)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10b8" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10b8")) () ")"))))) (; ";")) (expression_statement "*puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);" (assignment_expression "*puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000310f8 + 0x10b4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10b4)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10b4" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10b4")) () ")"))))) (; ";")) (expression_statement "puVar5[1] = uVar4;" (assignment_expression "puVar5[1] = uVar4" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (} "}")))) (expression_statement "puVar7 = PTR_DAT_000310f8;" (assignment_expression "puVar7 = PTR_DAT_000310f8" (identifier "puVar7") (= "=") (identifier "PTR_DAT_000310f8")) (; ";")) (expression_statement "(*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);" (call_expression "(*(code *)PTR_memset_0003125c)\n            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0003125c)" (( "(") (pointer_expression "*(code *)PTR_memset_0003125c" (* "*") (cast_expression "(code *)PTR_memset_0003125c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0003125c"))) () ")")) (argument_list "(puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,\n             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8)" (( "(") (binary_expression "puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" (identifier "puVar5") (+ "+") (binary_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0) * 2" (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" (* "*") (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10a0" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10a0")) () ")")))) (* "*") (number_literal "2"))) (, ",") (number_literal "0") (, ",") (binary_expression "((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8" (parenthesized_expression "((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0))" (( "(") (binary_expression "(param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)" (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")) (- "-") (pointer_expression "*(int *)(PTR_DAT_000310f8 + 0x10a0)" (* "*") (cast_expression "(int *)(PTR_DAT_000310f8 + 0x10a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000310f8 + 0x10a0)" (( "(") (binary_expression "PTR_DAT_000310f8 + 0x10a0" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x10a0")) () ")"))))) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "*(int *)(puVar7 + 0x10a0) = param_1 + 1;" (assignment_expression "*(int *)(puVar7 + 0x10a0) = param_1 + 1" (pointer_expression "*(int *)(puVar7 + 0x10a0)" (* "*") (cast_expression "(int *)(puVar7 + 0x10a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x10a0)" (( "(") (binary_expression "puVar7 + 0x10a0" (identifier "puVar7") (+ "+") (number_literal "0x10a0")) () ")")))) (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (labeled_statement "LAB_00017f7c:\n  puVar6 = puVar5 + param_1 * 2;" (statement_identifier "LAB_00017f7c") (: ":") (expression_statement "puVar6 = puVar5 + param_1 * 2;" (assignment_expression "puVar6 = puVar5 + param_1 * 2" (identifier "puVar6") (= "=") (binary_expression "puVar5 + param_1 * 2" (identifier "puVar5") (+ "+") (binary_expression "param_1 * 2" (identifier "param_1") (* "*") (number_literal "2")))) (; ";"))) (expression_statement "uVar8 = *puVar6;" (assignment_expression "uVar8 = *puVar6" (identifier "uVar8") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar7 = (undefined *)puVar6[1];" (assignment_expression "puVar7 = (undefined *)puVar6[1]" (identifier "puVar7") (= "=") (cast_expression "(undefined *)puVar6[1]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar10 = param_4[1];" (assignment_expression "uVar10 = param_4[1]" (identifier "uVar10") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);" (assignment_expression "uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" (identifier "uVar2") (= "=") (call_expression "FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" (identifier "FUN_00016b2c") (argument_list "(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" (( "(") (identifier "puVar7") (, ",") (identifier "uVar8") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (binary_expression "uVar10 | 1" (identifier "uVar10") (| "|") (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 "uVar9 = uVar2 + 1;" (assignment_expression "uVar9 = uVar2 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar8 <= uVar2) {\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }" (if "if") (parenthesized_expression "(uVar8 <= uVar2)" (( "(") (binary_expression "uVar8 <= uVar2" (identifier "uVar8") (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n    puVar3 = PTR_DAT_000310f8 + 0x1400;\n    *puVar6 = uVar9;\n    if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }\n    puVar7 = (undefined *)xmalloc(uVar9);\n    puVar6[1] = (uint)puVar7;\n    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);\n  }" ({ "{") (expression_statement "puVar3 = PTR_DAT_000310f8 + 0x1400;" (assignment_expression "puVar3 = PTR_DAT_000310f8 + 0x1400" (identifier "puVar3") (= "=") (binary_expression "PTR_DAT_000310f8 + 0x1400" (identifier "PTR_DAT_000310f8") (+ "+") (number_literal "0x1400"))) (; ";")) (expression_statement "*puVar6 = uVar9;" (assignment_expression "*puVar6 = uVar9" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar9")) (; ";")) (if_statement "if (puVar7 != puVar3) {\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }" (if "if") (parenthesized_expression "(puVar7 != puVar3)" (( "(") (binary_expression "puVar7 != puVar3" (identifier "puVar7") (!= "!=") (identifier "puVar3")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_000312e8)(puVar7);\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_000312e8)(puVar7);" (call_expression "(*(code *)PTR_free_000312e8)(puVar7)" (parenthesized_expression "(*(code *)PTR_free_000312e8)" (( "(") (pointer_expression "*(code *)PTR_free_000312e8" (* "*") (cast_expression "(code *)PTR_free_000312e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000312e8"))) () ")")) (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar7 = (undefined *)xmalloc(uVar9);" (assignment_expression "puVar7 = (undefined *)xmalloc(uVar9)" (identifier "puVar7") (= "=") (cast_expression "(undefined *)xmalloc(uVar9)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(uVar9)" (identifier "xmalloc") (argument_list "(uVar9)" (( "(") (identifier "uVar9") () ")"))))) (; ";")) (expression_statement "puVar6[1] = (uint)puVar7;" (assignment_expression "puVar6[1] = (uint)puVar7" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)puVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar7"))) (; ";")) (expression_statement "FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb]);" (call_expression "FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb])" (identifier "FUN_00016b2c") (argument_list "(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],\n                 param_4[0xb])" (( "(") (identifier "puVar7") (, ",") (identifier "uVar9") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (binary_expression "uVar10 | 1" (identifier "uVar10") (| "|") (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 "*puVar1 = uVar11;" (assignment_expression "*puVar1 = uVar11" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar11")) (; ";")) (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_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 (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (labeled_statement label: (statement_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 (number_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (number_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_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) (identifier) (identifier) (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (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)))))

undefined * MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  uint uVar2;
  undefined *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  uint *puVar6;
  undefined *puVar7;
  uint uVar8;
  uint uVar9;
  uint uVar10;
  undefined4 uVar11;
  
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00031254)();
  uVar11 = *puVar1;
  puVar5 = *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0);
  if (param_1 < 0) {
    puVar7 = (undefined *)(*(code *)PTR_abort_00031204)();
    return puVar7;
  }
  if (param_1 < *(int *)(PTR_DAT_000310f8 + 0x10a0)) goto LAB_00017f7c;
  if (param_1 < 0xfffffff) {
    if (puVar5 == (undefined4 *)(PTR_DAT_000310f8 + 0x10b4)) goto LAB_000180bc;
    puVar5 = (undefined4 *)xrealloc(puVar5,(param_1 + 1) * 8);
    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;
  }
  else {
    xalloc_die();
LAB_000180bc:
    puVar5 = (undefined4 *)xrealloc(0,(param_1 + 1) * 8);
    *(undefined4 **)(PTR_DAT_000310f8 + 0x10b0) = puVar5;
    uVar4 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b8);
    *puVar5 = *(undefined4 *)(PTR_DAT_000310f8 + 0x10b4);
    puVar5[1] = uVar4;
  }
  puVar7 = PTR_DAT_000310f8;
  (*(code *)PTR_memset_0003125c)
            (puVar5 + *(int *)(PTR_DAT_000310f8 + 0x10a0) * 2,0,
             ((param_1 + 1) - *(int *)(PTR_DAT_000310f8 + 0x10a0)) * 8);
  *(int *)(puVar7 + 0x10a0) = param_1 + 1;
LAB_00017f7c:
  puVar6 = puVar5 + param_1 * 2;
  uVar8 = *puVar6;
  puVar7 = (undefined *)puVar6[1];
  uVar10 = param_4[1];
  uVar2 = FUN_00016b2c(puVar7,uVar8,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],
                       param_4[0xb]);
  uVar9 = uVar2 + 1;
  if (uVar8 <= uVar2) {
    puVar3 = PTR_DAT_000310f8 + 0x1400;
    *puVar6 = uVar9;
    if (puVar7 != puVar3) {
      (*(code *)PTR_free_000312e8)(puVar7);
    }
    puVar7 = (undefined *)xmalloc(uVar9);
    puVar6[1] = (uint)puVar7;
    FUN_00016b2c(puVar7,uVar9,param_2,param_3,*param_4,uVar10 | 1,param_4 + 2,param_4[10],
                 param_4[0xb]);
  }
  *puVar1 = uVar11;
  return puVar7;
}

