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

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  size_t sVar5;
  char *pcVar6;
  quoting_style qVar7;
  undefined4 uVar8;
  char *pcVar9;
  undefined4 *p;
  char *pcVar10;
  uint buffersize;
  int iVar11;
  uint flags;
  code *pcVar12;
  size_t *psVar13;
  
  puVar1 = PTR_DAT_0002d0f8;
  puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();
  puVar2 = PTR_DAT_0002d0f8;
  uVar4 = *puVar3;
  p = *(undefined4 **)(puVar1 + -0x2f50);
  if (n < 0) {
    pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();
    return pcVar10;
  }
  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n) {
    if (0xffffffe < n) {
                    /* WARNING: Subroutine does not return */
      xalloc_die();
    }
    iVar11 = n + 1;
    if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {
      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);
      *(undefined4 **)(puVar1 + -0x2f50) = p;
      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);
      *p = *(undefined4 *)(puVar2 + -0x2f4c);
      p[1] = uVar8;
    }
    else {
      p = (undefined4 *)xrealloc(p,iVar11 * 8);
      *(undefined4 **)(puVar1 + -0x2f50) = p;
    }
    (*(code *)PTR_memset_0002d278)
              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);
    *(int *)(puVar2 + -0x2f60) = iVar11;
  }
  psVar13 = p + n * 2;
  pcVar12 = (code *)(PTR_0002d104 + 0x5a00);
  flags = options->flags | 1;
  buffersize = *psVar13;
  pcVar10 = (char *)psVar13[1];
  sVar5 = quotearg_buffer_restyled
                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,
                     options->left_quote,options->right_quote);
  if (buffersize <= sVar5) {
    sVar5 = sVar5 + 1;
    pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;
    *psVar13 = sVar5;
    if (pcVar10 != pcVar6) {
      (*(code *)PTR_free_0002d2ec)(pcVar10);
    }
    pcVar10 = (char *)xmalloc(sVar5);
    pcVar9 = options->right_quote;
    pcVar6 = options->left_quote;
    qVar7 = options->style;
    psVar13[1] = (size_t)pcVar10;
    (*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);
  }
  *puVar3 = uVar4;
  return pcVar10;
}



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

{
  undefined4 *puVar1;
  undefined4 uVar2;
  uint uVar3;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined *puVar9;
  uint uVar10;
  int iVar11;
  uint uVar12;
  code *pcVar13;
  uint *puVar14;
  
  puVar9 = PTR_DAT_0002d0f8;
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();
  puVar4 = PTR_DAT_0002d0f8;
  uVar2 = *puVar1;
  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);
  if (param_1 < 0) {
LAB_00017054:
    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();
    return puVar9;
  }
  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {
    if (0xffffffe < param_1) {
      xalloc_die();
      goto LAB_00017054;
    }
    iVar11 = param_1 + 1;
    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {
      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);
      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;
      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);
      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);
      puVar8[1] = uVar5;
    }
    else {
      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);
      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;
    }
    (*(code *)PTR_memset_0002d278)
              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);
    *(int *)(puVar4 + -0x2f60) = iVar11;
  }
  uVar12 = param_4[1];
  puVar14 = puVar8 + param_1 * 2;
  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);
  uVar10 = *puVar14;
  puVar9 = (undefined *)puVar14[1];
  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],
                       param_4[0xb]);
  if (uVar10 <= uVar3) {
    uVar3 = uVar3 + 1;
    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;
    *puVar14 = uVar3;
    if (puVar9 != puVar4) {
      (*(code *)PTR_free_0002d2ec)(puVar9);
    }
    puVar9 = (undefined *)xmalloc(uVar3);
    uVar7 = param_4[0xb];
    uVar6 = param_4[10];
    uVar5 = *param_4;
    puVar14[1] = (uint)puVar9;
    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);
  }
  *puVar1 = uVar2;
  return puVar9;
}


lui gp,0x2
addiu gp,gp,-0x1d30
addu gp,gp,t9
addiu sp,sp,-0x68
lw t9,-0x7e60(gp)
sw gp,0x28(sp)
sw s7,0x5c(sp)
or s7,a2,zero
sw s6,0x58(sp)
or s6,a1,zero
sw s5,0x54(sp)
sw s2,0x48(sp)
sw s1,0x44(sp)
or s1,a0,zero
sw s0,0x40(sp)
or s0,a3,zero
sw ra,0x64(sp)
sw s8,0x60(sp)
sw s4,0x50(sp)
lw s2,-0x7fd8(gp)
jalr t9
_sw s3,0x4c(sp)
or s5,v0,zero
lw v0,0x0(v0)
lw gp,0x28(sp)
lw t2,-0x2f50(s2)
bltz s1,0x00017054
_sw v0,0x34(sp)
lw s3,-0x7fd8(gp)
lw v0,-0x2f60(s3)
slt v0,s1,v0
bne v0,zero,0x00016eec
_lui v0,0xfff
ori v0,v0,0xffff
slt v0,s1,v0
beq v0,zero,0x00017048
_lw a3,-0x7fd8(gp)
addiu s4,s1,0x1
addiu a2,a3,-0x2f4c
beq t2,a2,0x0001700c
_sll a1,s4,0x3
lw t9,-0x7f58(gp)
bal 0x000183ac
_or a0,t2,zero
lw gp,0x28(sp)
or t2,v0,zero
sw v0,-0x2f50(s2)
lw a0,-0x2f60(s3)
or a1,zero,zero
lw t9,-0x7e58(gp)
sw t2,0x38(sp)
subu a2,s4,a0
sll a0,a0,0x3
sll a2,a2,0x3
jalr t9
_addu a0,t2,a0
lw gp,0x28(sp)
lw t2,0x38(sp)
sw s4,-0x2f60(s3)
sll v0,s1,0x3
lw s3,-0x7fcc(gp)
lw s4,0x4(s0)
addiu s1,s0,0x8
addu s8,t2,v0
lw a1,0x28(s0)
lw t1,0x2c(s0)
addiu t9,s3,0x5a00
lw t0,0x0(s0)
ori s4,s4,0x1
lw s3,0x0(s8)
or a3,s7,zero
lw s2,0x4(s8)
or a2,s6,zero
sw a1,0x1c(sp)
sw t9,0x38(sp)
or a1,s3,zero
sw t1,0x20(sp)
or a0,s2,zero
sw s1,0x18(sp)
sw s4,0x14(sp)
bal 0x00015a00
_sw t0,0x10(sp)
sltu v1,v0,s3
bne v1,zero,0x00016fd0
_lw gp,0x28(sp)
addiu a1,v0,0x1
lw v0,-0x7fd8(gp)
addiu v0,v0,-0x2c90
beq s2,v0,0x00016f80
_sw a1,0x0(s8)
lw t9,-0x7de4(gp)
or a0,s2,zero
jalr t9
_sw a1,0x3c(sp)
lw gp,0x28(sp)
lw a1,0x3c(sp)
lw t9,-0x7f54(gp)
or a0,a1,zero
bal 0x000182f0
_sw a1,0x3c(sp)
or a3,s7,zero
lw t0,0x2c(s0)
or s2,v0,zero
lw v1,0x28(s0)
or a2,s6,zero
lw v0,0x0(s0)
or a0,s2,zero
lw a1,0x3c(sp)
lw t9,0x38(sp)
sw s2,0x4(s8)
sw t0,0x20(sp)
sw v1,0x1c(sp)
sw s1,0x18(sp)
sw s4,0x14(sp)
jalr t9
_sw v0,0x10(sp)
lw v0,0x34(sp)
lw ra,0x64(sp)
lw s8,0x60(sp)
lw s7,0x5c(sp)
lw s6,0x58(sp)
lw s4,0x50(sp)
lw s3,0x4c(sp)
lw s1,0x44(sp)
lw s0,0x40(sp)
sw v0,0x0(s5)
or v0,s2,zero
lw s5,0x54(sp)
lw s2,0x48(sp)
jr ra
_addiu sp,sp,0x68
lw t9,-0x7f58(gp)
or a0,zero,zero
sw a3,0x3c(sp)
bal 0x000183ac
_sw a2,0x38(sp)
lw a3,0x3c(sp)
or t2,v0,zero
lw a2,0x38(sp)
lw gp,0x28(sp)
sw t2,-0x2f50(s2)
lw a0,-0x2f4c(a3)
lw v0,0x4(a2)
sw a0,0x0(t2)
b 0x00016ebc
_sw v0,0x4(t2)
lw t9,-0x7f50(gp)
bal 0x00018710
_nop
lw t9,-0x7eb8(gp)
jalr t9
_nop
(translation_unit "undefined * FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}\n\n" (function_definition "undefined * FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}" type_identifier (pointer_declarator "* FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" * (function_declarator "FUN_00016e00(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  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "uint *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (expression_statement "puVar9 = PTR_DAT_0002d0f8;" (assignment_expression "puVar9 = PTR_DAT_0002d0f8" identifier = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002d270)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002d270)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002d270)" ( (pointer_expression "*(code *)PTR___errno_location_0002d270" * (cast_expression "(code *)PTR___errno_location_0002d270" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "puVar4 = PTR_DAT_0002d0f8;" (assignment_expression "puVar4 = PTR_DAT_0002d0f8" identifier = identifier) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar8 = *(undefined4 **)(puVar9 + -0x2f50);" (assignment_expression "puVar8 = *(undefined4 **)(puVar9 + -0x2f50)" identifier = (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x2f50)" ( (binary_expression "puVar9 + -0x2f50" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }" { (labeled_statement "LAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();" statement_identifier : (expression_statement "puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();" (assignment_expression "puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)()" identifier = (cast_expression "(undefined *)(*(code *)PTR_abort_0002d218)()" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_abort_0002d218)()" (parenthesized_expression "(*(code *)PTR_abort_0002d218)" ( (pointer_expression "*(code *)PTR_abort_0002d218" * (cast_expression "(code *)PTR_abort_0002d218" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (return_statement "return puVar9;" return identifier ;) })) (if_statement "if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1)" ( (binary_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1" (pointer_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60)" * (cast_expression "(int *)(PTR_DAT_0002d0f8 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f60)" ( (binary_expression "PTR_DAT_0002d0f8 + -0x2f60" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }" { (if_statement "if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n      xalloc_die();\n      goto LAB_00017054;\n    }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00017054;" goto statement_identifier ;) })) (expression_statement "iVar11 = param_1 + 1;" (assignment_expression "iVar11 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" if (parenthesized_expression "(puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c))" ( (binary_expression "puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" identifier == (cast_expression "(undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f4c)" ( (binary_expression "PTR_DAT_0002d0f8 + -0x2f4c" identifier + number_literal) )))) )) (compound_statement "{\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }" { (expression_statement "puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);" (assignment_expression "puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(0,iVar11 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(0,iVar11 * 8)" identifier (argument_list "(0,iVar11 * 8)" ( number_literal , (binary_expression "iVar11 * 8" identifier * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(puVar9 + -0x2f50) = puVar8;" (assignment_expression "*(undefined4 **)(puVar9 + -0x2f50) = puVar8" (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x2f50)" ( (binary_expression "puVar9 + -0x2f50" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)(puVar4 + -0x2f48);" (assignment_expression "uVar5 = *(undefined4 *)(puVar4 + -0x2f48)" identifier = (pointer_expression "*(undefined4 *)(puVar4 + -0x2f48)" * (cast_expression "(undefined4 *)(puVar4 + -0x2f48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f48)" ( (binary_expression "puVar4 + -0x2f48" identifier + number_literal) ))))) ;) (expression_statement "*puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);" (assignment_expression "*puVar8 = *(undefined4 *)(puVar4 + -0x2f4c)" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*(undefined4 *)(puVar4 + -0x2f4c)" * (cast_expression "(undefined4 *)(puVar4 + -0x2f4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f4c)" ( (binary_expression "puVar4 + -0x2f4c" identifier + number_literal) ))))) ;) (expression_statement "puVar8[1] = uVar5;" (assignment_expression "puVar8[1] = uVar5" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" else (compound_statement "{\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" { (expression_statement "puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);" (assignment_expression "puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(puVar8,iVar11 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar8,iVar11 * 8)" identifier (argument_list "(puVar8,iVar11 * 8)" ( identifier , (binary_expression "iVar11 * 8" identifier * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(puVar9 + -0x2f50) = puVar8;" (assignment_expression "*(undefined4 **)(puVar9 + -0x2f50) = puVar8" (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x2f50)" ( (binary_expression "puVar9 + -0x2f50" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "(*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);" (call_expression "(*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0002d278)" ( (pointer_expression "*(code *)PTR_memset_0002d278" * (cast_expression "(code *)PTR_memset_0002d278" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8)" ( (binary_expression "puVar8 + *(int *)(puVar4 + -0x2f60) * 2" identifier + (binary_expression "*(int *)(puVar4 + -0x2f60) * 2" (pointer_expression "*(int *)(puVar4 + -0x2f60)" * (cast_expression "(int *)(puVar4 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f60)" ( (binary_expression "puVar4 + -0x2f60" identifier + number_literal) )))) * number_literal)) , number_literal , (binary_expression "(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8" (parenthesized_expression "(iVar11 - *(int *)(puVar4 + -0x2f60))" ( (binary_expression "iVar11 - *(int *)(puVar4 + -0x2f60)" identifier - (pointer_expression "*(int *)(puVar4 + -0x2f60)" * (cast_expression "(int *)(puVar4 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f60)" ( (binary_expression "puVar4 + -0x2f60" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "*(int *)(puVar4 + -0x2f60) = iVar11;" (assignment_expression "*(int *)(puVar4 + -0x2f60) = iVar11" (pointer_expression "*(int *)(puVar4 + -0x2f60)" * (cast_expression "(int *)(puVar4 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f60)" ( (binary_expression "puVar4 + -0x2f60" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar12 = param_4[1];" (assignment_expression "uVar12 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar14 = puVar8 + param_1 * 2;" (assignment_expression "puVar14 = puVar8 + param_1 * 2" identifier = (binary_expression "puVar8 + param_1 * 2" identifier + (binary_expression "param_1 * 2" identifier * number_literal))) ;) (expression_statement "pcVar13 = (code *)(PTR_0002d104 + 0x5a00);" (assignment_expression "pcVar13 = (code *)(PTR_0002d104 + 0x5a00)" identifier = (cast_expression "(code *)(PTR_0002d104 + 0x5a00)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002d104 + 0x5a00)" ( (binary_expression "PTR_0002d104 + 0x5a00" identifier + number_literal) )))) ;) (expression_statement "uVar10 = *puVar14;" (assignment_expression "uVar10 = *puVar14" identifier = (pointer_expression "*puVar14" * identifier)) ;) (expression_statement "puVar9 = (undefined *)puVar14[1];" (assignment_expression "puVar9 = (undefined *)puVar14[1]" identifier = (cast_expression "(undefined *)puVar14[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar14[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);" (assignment_expression "uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier = (call_expression "FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier (argument_list "(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar12 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }" if (parenthesized_expression "(uVar10 <= uVar3)" ( (binary_expression "uVar10 <= uVar3" identifier <= identifier) )) (compound_statement "{\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR_DAT_0002d0f8 + -0x2c90;" (assignment_expression "puVar4 = PTR_DAT_0002d0f8 + -0x2c90" identifier = (binary_expression "PTR_DAT_0002d0f8 + -0x2c90" identifier + number_literal)) ;) (expression_statement "*puVar14 = uVar3;" (assignment_expression "*puVar14 = uVar3" (pointer_expression "*puVar14" * identifier) = identifier) ;) (if_statement "if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }" if (parenthesized_expression "(puVar9 != puVar4)" ( (binary_expression "puVar9 != puVar4" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }" { (expression_statement "(*(code *)PTR_free_0002d2ec)(puVar9);" (call_expression "(*(code *)PTR_free_0002d2ec)(puVar9)" (parenthesized_expression "(*(code *)PTR_free_0002d2ec)" ( (pointer_expression "*(code *)PTR_free_0002d2ec" * (cast_expression "(code *)PTR_free_0002d2ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier ))) ;) })) (expression_statement "puVar9 = (undefined *)xmalloc(uVar3);" (assignment_expression "puVar9 = (undefined *)xmalloc(uVar3)" identifier = (cast_expression "(undefined *)xmalloc(uVar3)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))))) ;) (expression_statement "uVar7 = param_4[0xb];" (assignment_expression "uVar7 = param_4[0xb]" identifier = (subscript_expression "param_4[0xb]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = param_4[10];" (assignment_expression "uVar6 = param_4[10]" identifier = (subscript_expression "param_4[10]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = *param_4;" (assignment_expression "uVar5 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "puVar14[1] = (uint)puVar9;" (assignment_expression "puVar14[1] = (uint)puVar9" (subscript_expression "puVar14[1]" identifier [ number_literal ]) = (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "(*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);" (call_expression "(*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7)" ( identifier , identifier , identifier , identifier , identifier , (binary_expression "uVar12 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , identifier , identifier ))) ;) })) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return puVar9;" return identifier ;) })))
(translation_unit "char * quotearg_n_options(int n,char *arg,size_t argsize,quoting_options *options)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  size_t sVar5;\n  char *pcVar6;\n  quoting_style qVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  undefined4 *p;\n  char *pcVar10;\n  uint buffersize;\n  int iVar11;\n  uint flags;\n  code *pcVar12;\n  size_t *psVar13;\n  \n  puVar1 = PTR_DAT_0002d0f8;\n  puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar2 = PTR_DAT_0002d0f8;\n  uVar4 = *puVar3;\n  p = *(undefined4 **)(puVar1 + -0x2f50);\n  if (n < 0) {\n    pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();\n    return pcVar10;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar11 = n + 1;\n    if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }\n    else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);\n    *(int *)(puVar2 + -0x2f60) = iVar11;\n  }\n  psVar13 = p + n * 2;\n  pcVar12 = (code *)(PTR_0002d104 + 0x5a00);\n  flags = options->flags | 1;\n  buffersize = *psVar13;\n  pcVar10 = (char *)psVar13[1];\n  sVar5 = quotearg_buffer_restyled\n                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote);\n  if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;\n    *psVar13 = sVar5;\n    if (pcVar10 != pcVar6) {\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }\n    pcVar10 = (char *)xmalloc(sVar5);\n    pcVar9 = options->right_quote;\n    pcVar6 = options->left_quote;\n    qVar7 = options->style;\n    psVar13[1] = (size_t)pcVar10;\n    (*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);\n  }\n  *puVar3 = uVar4;\n  return pcVar10;\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  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  size_t sVar5;\n  char *pcVar6;\n  quoting_style qVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  undefined4 *p;\n  char *pcVar10;\n  uint buffersize;\n  int iVar11;\n  uint flags;\n  code *pcVar12;\n  size_t *psVar13;\n  \n  puVar1 = PTR_DAT_0002d0f8;\n  puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar2 = PTR_DAT_0002d0f8;\n  uVar4 = *puVar3;\n  p = *(undefined4 **)(puVar1 + -0x2f50);\n  if (n < 0) {\n    pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();\n    return pcVar10;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar11 = n + 1;\n    if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }\n    else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);\n    *(int *)(puVar2 + -0x2f60) = iVar11;\n  }\n  psVar13 = p + n * 2;\n  pcVar12 = (code *)(PTR_0002d104 + 0x5a00);\n  flags = options->flags | 1;\n  buffersize = *psVar13;\n  pcVar10 = (char *)psVar13[1];\n  sVar5 = quotearg_buffer_restyled\n                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote);\n  if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;\n    *psVar13 = sVar5;\n    if (pcVar10 != pcVar6) {\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }\n    pcVar10 = (char *)xmalloc(sVar5);\n    pcVar9 = options->right_quote;\n    pcVar6 = options->left_quote;\n    qVar7 = options->style;\n    psVar13[1] = (size_t)pcVar10;\n    (*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);\n  }\n  *puVar3 = uVar4;\n  return pcVar10;\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  undefined *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  size_t sVar5;\n  char *pcVar6;\n  quoting_style qVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  undefined4 *p;\n  char *pcVar10;\n  uint buffersize;\n  int iVar11;\n  uint flags;\n  code *pcVar12;\n  size_t *psVar13;\n  \n  puVar1 = PTR_DAT_0002d0f8;\n  puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar2 = PTR_DAT_0002d0f8;\n  uVar4 = *puVar3;\n  p = *(undefined4 **)(puVar1 + -0x2f50);\n  if (n < 0) {\n    pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();\n    return pcVar10;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar11 = n + 1;\n    if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }\n    else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);\n    *(int *)(puVar2 + -0x2f60) = iVar11;\n  }\n  psVar13 = p + n * 2;\n  pcVar12 = (code *)(PTR_0002d104 + 0x5a00);\n  flags = options->flags | 1;\n  buffersize = *psVar13;\n  pcVar10 = (char *)psVar13[1];\n  sVar5 = quotearg_buffer_restyled\n                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote);\n  if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;\n    *psVar13 = sVar5;\n    if (pcVar10 != pcVar6) {\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }\n    pcVar10 = (char *)xmalloc(sVar5);\n    pcVar9 = options->right_quote;\n    pcVar6 = options->left_quote;\n    qVar7 = options->style;\n    psVar13[1] = (size_t)pcVar10;\n    (*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);\n  }\n  *puVar3 = uVar4;\n  return pcVar10;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "quoting_style qVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined4 *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint buffersize;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint flags;" type_identifier identifier ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "size_t *psVar13;" primitive_type (pointer_declarator "*psVar13" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_0002d0f8;" (assignment_expression "puVar1 = PTR_DAT_0002d0f8" identifier = identifier) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002d270)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002d270)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002d270)" ( (pointer_expression "*(code *)PTR___errno_location_0002d270" * (cast_expression "(code *)PTR___errno_location_0002d270" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "puVar2 = PTR_DAT_0002d0f8;" (assignment_expression "puVar2 = PTR_DAT_0002d0f8" identifier = identifier) ;) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "p = *(undefined4 **)(puVar1 + -0x2f50);" (assignment_expression "p = *(undefined4 **)(puVar1 + -0x2f50)" identifier = (pointer_expression "*(undefined4 **)(puVar1 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar1 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0x2f50)" ( (binary_expression "puVar1 + -0x2f50" identifier + number_literal) ))))) ;) (if_statement "if (n < 0) {\n    pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();\n    return pcVar10;\n  }" if (parenthesized_expression "(n < 0)" ( (binary_expression "n < 0" identifier < number_literal) )) (compound_statement "{\n    pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();\n    return pcVar10;\n  }" { (expression_statement "pcVar10 = (char *)(*(code *)PTR_abort_0002d218)();" (assignment_expression "pcVar10 = (char *)(*(code *)PTR_abort_0002d218)()" identifier = (cast_expression "(char *)(*(code *)PTR_abort_0002d218)()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_abort_0002d218)()" (parenthesized_expression "(*(code *)PTR_abort_0002d218)" ( (pointer_expression "*(code *)PTR_abort_0002d218" * (cast_expression "(code *)PTR_abort_0002d218" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return pcVar10;" return identifier ;) })) (if_statement "if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n) {\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar11 = n + 1;\n    if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }\n    else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);\n    *(int *)(puVar2 + -0x2f60) = iVar11;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n)" ( (binary_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= n" (pointer_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60)" * (cast_expression "(int *)(PTR_DAT_0002d0f8 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f60)" ( (binary_expression "PTR_DAT_0002d0f8 + -0x2f60" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n    iVar11 = n + 1;\n    if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }\n    else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);\n    *(int *)(puVar2 + -0x2f60) = iVar11;\n  }" { (if_statement "if (0xffffffe < n) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" if (parenthesized_expression "(0xffffffe < n)" ( (binary_expression "0xffffffe < n" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar11 = n + 1;" (assignment_expression "iVar11 = n + 1" identifier = (binary_expression "n + 1" identifier + number_literal)) ;) (if_statement "if (p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }\n    else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }" if (parenthesized_expression "(p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c))" ( (binary_expression "p == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" identifier == (cast_expression "(undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f4c)" ( (binary_expression "PTR_DAT_0002d0f8 + -0x2f4c" identifier + number_literal) )))) )) (compound_statement "{\n      p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n      uVar8 = *(undefined4 *)(puVar2 + -0x2f48);\n      *p = *(undefined4 *)(puVar2 + -0x2f4c);\n      p[1] = uVar8;\n    }" { (expression_statement "p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8);" (assignment_expression "p = (undefined4 *)xrealloc((void *)0x0,iVar11 * 8)" identifier = (cast_expression "(undefined4 *)xrealloc((void *)0x0,iVar11 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc((void *)0x0,iVar11 * 8)" identifier (argument_list "((void *)0x0,iVar11 * 8)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (binary_expression "iVar11 * 8" identifier * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(puVar1 + -0x2f50) = p;" (assignment_expression "*(undefined4 **)(puVar1 + -0x2f50) = p" (pointer_expression "*(undefined4 **)(puVar1 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar1 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0x2f50)" ( (binary_expression "puVar1 + -0x2f50" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = *(undefined4 *)(puVar2 + -0x2f48);" (assignment_expression "uVar8 = *(undefined4 *)(puVar2 + -0x2f48)" identifier = (pointer_expression "*(undefined4 *)(puVar2 + -0x2f48)" * (cast_expression "(undefined4 *)(puVar2 + -0x2f48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x2f48)" ( (binary_expression "puVar2 + -0x2f48" identifier + number_literal) ))))) ;) (expression_statement "*p = *(undefined4 *)(puVar2 + -0x2f4c);" (assignment_expression "*p = *(undefined4 *)(puVar2 + -0x2f4c)" (pointer_expression "*p" * identifier) = (pointer_expression "*(undefined4 *)(puVar2 + -0x2f4c)" * (cast_expression "(undefined4 *)(puVar2 + -0x2f4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x2f4c)" ( (binary_expression "puVar2 + -0x2f4c" identifier + number_literal) ))))) ;) (expression_statement "p[1] = uVar8;" (assignment_expression "p[1] = uVar8" (subscript_expression "p[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }" else (compound_statement "{\n      p = (undefined4 *)xrealloc(p,iVar11 * 8);\n      *(undefined4 **)(puVar1 + -0x2f50) = p;\n    }" { (expression_statement "p = (undefined4 *)xrealloc(p,iVar11 * 8);" (assignment_expression "p = (undefined4 *)xrealloc(p,iVar11 * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(p,iVar11 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(p,iVar11 * 8)" identifier (argument_list "(p,iVar11 * 8)" ( identifier , (binary_expression "iVar11 * 8" identifier * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(puVar1 + -0x2f50) = p;" (assignment_expression "*(undefined4 **)(puVar1 + -0x2f50) = p" (pointer_expression "*(undefined4 **)(puVar1 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar1 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0x2f50)" ( (binary_expression "puVar1 + -0x2f50" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "(*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8);" (call_expression "(*(code *)PTR_memset_0002d278)\n              (p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0002d278)" ( (pointer_expression "*(code *)PTR_memset_0002d278" * (cast_expression "(code *)PTR_memset_0002d278" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p + *(int *)(puVar2 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8)" ( (binary_expression "p + *(int *)(puVar2 + -0x2f60) * 2" identifier + (binary_expression "*(int *)(puVar2 + -0x2f60) * 2" (pointer_expression "*(int *)(puVar2 + -0x2f60)" * (cast_expression "(int *)(puVar2 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x2f60)" ( (binary_expression "puVar2 + -0x2f60" identifier + number_literal) )))) * number_literal)) , number_literal , (binary_expression "(iVar11 - *(int *)(puVar2 + -0x2f60)) * 8" (parenthesized_expression "(iVar11 - *(int *)(puVar2 + -0x2f60))" ( (binary_expression "iVar11 - *(int *)(puVar2 + -0x2f60)" identifier - (pointer_expression "*(int *)(puVar2 + -0x2f60)" * (cast_expression "(int *)(puVar2 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x2f60)" ( (binary_expression "puVar2 + -0x2f60" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "*(int *)(puVar2 + -0x2f60) = iVar11;" (assignment_expression "*(int *)(puVar2 + -0x2f60) = iVar11" (pointer_expression "*(int *)(puVar2 + -0x2f60)" * (cast_expression "(int *)(puVar2 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x2f60)" ( (binary_expression "puVar2 + -0x2f60" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "psVar13 = p + n * 2;" (assignment_expression "psVar13 = p + n * 2" identifier = (binary_expression "p + n * 2" identifier + (binary_expression "n * 2" identifier * number_literal))) ;) (expression_statement "pcVar12 = (code *)(PTR_0002d104 + 0x5a00);" (assignment_expression "pcVar12 = (code *)(PTR_0002d104 + 0x5a00)" identifier = (cast_expression "(code *)(PTR_0002d104 + 0x5a00)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002d104 + 0x5a00)" ( (binary_expression "PTR_0002d104 + 0x5a00" 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 "buffersize = *psVar13;" (assignment_expression "buffersize = *psVar13" identifier = (pointer_expression "*psVar13" * identifier)) ;) (expression_statement "pcVar10 = (char *)psVar13[1];" (assignment_expression "pcVar10 = (char *)psVar13[1]" identifier = (cast_expression "(char *)psVar13[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "psVar13[1]" identifier [ number_literal ]))) ;) (expression_statement "sVar5 = quotearg_buffer_restyled\n                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote);" (assignment_expression "sVar5 = quotearg_buffer_restyled\n                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote)" identifier = (call_expression "quotearg_buffer_restyled\n                    (pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote)" identifier (argument_list "(pcVar10,buffersize,arg,argsize,options->style,flags,options->quote_these_too,\n                     options->left_quote,options->right_quote)" ( identifier , identifier , identifier , identifier , (field_expression "options->style" identifier -> field_identifier) , identifier , (field_expression "options->quote_these_too" identifier -> field_identifier) , (field_expression "options->left_quote" identifier -> field_identifier) , (field_expression "options->right_quote" identifier -> field_identifier) )))) ;) (if_statement "if (buffersize <= sVar5) {\n    sVar5 = sVar5 + 1;\n    pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;\n    *psVar13 = sVar5;\n    if (pcVar10 != pcVar6) {\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }\n    pcVar10 = (char *)xmalloc(sVar5);\n    pcVar9 = options->right_quote;\n    pcVar6 = options->left_quote;\n    qVar7 = options->style;\n    psVar13[1] = (size_t)pcVar10;\n    (*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);\n  }" if (parenthesized_expression "(buffersize <= sVar5)" ( (binary_expression "buffersize <= sVar5" identifier <= identifier) )) (compound_statement "{\n    sVar5 = sVar5 + 1;\n    pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;\n    *psVar13 = sVar5;\n    if (pcVar10 != pcVar6) {\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }\n    pcVar10 = (char *)xmalloc(sVar5);\n    pcVar9 = options->right_quote;\n    pcVar6 = options->left_quote;\n    qVar7 = options->style;\n    psVar13[1] = (size_t)pcVar10;\n    (*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);\n  }" { (expression_statement "sVar5 = sVar5 + 1;" (assignment_expression "sVar5 = sVar5 + 1" identifier = (binary_expression "sVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar6 = PTR_DAT_0002d0f8 + -0x2c90;" (assignment_expression "pcVar6 = PTR_DAT_0002d0f8 + -0x2c90" identifier = (binary_expression "PTR_DAT_0002d0f8 + -0x2c90" identifier + number_literal)) ;) (expression_statement "*psVar13 = sVar5;" (assignment_expression "*psVar13 = sVar5" (pointer_expression "*psVar13" * identifier) = identifier) ;) (if_statement "if (pcVar10 != pcVar6) {\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }" if (parenthesized_expression "(pcVar10 != pcVar6)" ( (binary_expression "pcVar10 != pcVar6" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_0002d2ec)(pcVar10);\n    }" { (expression_statement "(*(code *)PTR_free_0002d2ec)(pcVar10);" (call_expression "(*(code *)PTR_free_0002d2ec)(pcVar10)" (parenthesized_expression "(*(code *)PTR_free_0002d2ec)" ( (pointer_expression "*(code *)PTR_free_0002d2ec" * (cast_expression "(code *)PTR_free_0002d2ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier ))) ;) })) (expression_statement "pcVar10 = (char *)xmalloc(sVar5);" (assignment_expression "pcVar10 = (char *)xmalloc(sVar5)" identifier = (cast_expression "(char *)xmalloc(sVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5)" identifier (argument_list "(sVar5)" ( identifier ))))) ;) (expression_statement "pcVar9 = options->right_quote;" (assignment_expression "pcVar9 = options->right_quote" identifier = (field_expression "options->right_quote" identifier -> field_identifier)) ;) (expression_statement "pcVar6 = options->left_quote;" (assignment_expression "pcVar6 = options->left_quote" identifier = (field_expression "options->left_quote" identifier -> field_identifier)) ;) (expression_statement "qVar7 = options->style;" (assignment_expression "qVar7 = options->style" identifier = (field_expression "options->style" identifier -> field_identifier)) ;) (expression_statement "psVar13[1] = (size_t)pcVar10;" (assignment_expression "psVar13[1] = (size_t)pcVar10" (subscript_expression "psVar13[1]" identifier [ number_literal ]) = (cast_expression "(size_t)pcVar10" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (expression_statement "(*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9);" (call_expression "(*pcVar12)(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(pcVar10,sVar5,arg,argsize,qVar7,flags,options->quote_these_too,pcVar6,pcVar9)" ( identifier , identifier , identifier , identifier , identifier , identifier , (field_expression "options->quote_these_too" identifier -> field_identifier) , identifier , identifier ))) ;) })) (expression_statement "*puVar3 = uVar4;" (assignment_expression "*puVar3 = uVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (return_statement "return pcVar10;" return identifier ;) })))
(translation_unit "undefined * FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}\n\n" (function_definition "undefined * FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}" type_identifier (pointer_declarator "* FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" * (function_declarator "FUN_00016e00(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  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "uint *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (expression_statement "puVar9 = PTR_DAT_0002d0f8;" (assignment_expression "puVar9 = PTR_DAT_0002d0f8" identifier = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002d270)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002d270)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002d270)" ( (pointer_expression "*(code *)PTR___errno_location_0002d270" * (cast_expression "(code *)PTR___errno_location_0002d270" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "puVar4 = PTR_DAT_0002d0f8;" (assignment_expression "puVar4 = PTR_DAT_0002d0f8" identifier = identifier) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar8 = *(undefined4 **)(puVar9 + -0x2f50);" (assignment_expression "puVar8 = *(undefined4 **)(puVar9 + -0x2f50)" identifier = (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x2f50)" ( (binary_expression "puVar9 + -0x2f50" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }" { (labeled_statement "LAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();" statement_identifier : (expression_statement "puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();" (assignment_expression "puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)()" identifier = (cast_expression "(undefined *)(*(code *)PTR_abort_0002d218)()" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_abort_0002d218)()" (parenthesized_expression "(*(code *)PTR_abort_0002d218)" ( (pointer_expression "*(code *)PTR_abort_0002d218" * (cast_expression "(code *)PTR_abort_0002d218" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (return_statement "return puVar9;" return identifier ;) })) (if_statement "if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1)" ( (binary_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1" (pointer_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60)" * (cast_expression "(int *)(PTR_DAT_0002d0f8 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f60)" ( (binary_expression "PTR_DAT_0002d0f8 + -0x2f60" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }" { (if_statement "if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n      xalloc_die();\n      goto LAB_00017054;\n    }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00017054;" goto statement_identifier ;) })) (expression_statement "iVar11 = param_1 + 1;" (assignment_expression "iVar11 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" if (parenthesized_expression "(puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c))" ( (binary_expression "puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" identifier == (cast_expression "(undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f4c)" ( (binary_expression "PTR_DAT_0002d0f8 + -0x2f4c" identifier + number_literal) )))) )) (compound_statement "{\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }" { (expression_statement "puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);" (assignment_expression "puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(0,iVar11 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(0,iVar11 * 8)" identifier (argument_list "(0,iVar11 * 8)" ( number_literal , (binary_expression "iVar11 * 8" identifier * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(puVar9 + -0x2f50) = puVar8;" (assignment_expression "*(undefined4 **)(puVar9 + -0x2f50) = puVar8" (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x2f50)" ( (binary_expression "puVar9 + -0x2f50" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)(puVar4 + -0x2f48);" (assignment_expression "uVar5 = *(undefined4 *)(puVar4 + -0x2f48)" identifier = (pointer_expression "*(undefined4 *)(puVar4 + -0x2f48)" * (cast_expression "(undefined4 *)(puVar4 + -0x2f48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f48)" ( (binary_expression "puVar4 + -0x2f48" identifier + number_literal) ))))) ;) (expression_statement "*puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);" (assignment_expression "*puVar8 = *(undefined4 *)(puVar4 + -0x2f4c)" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*(undefined4 *)(puVar4 + -0x2f4c)" * (cast_expression "(undefined4 *)(puVar4 + -0x2f4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f4c)" ( (binary_expression "puVar4 + -0x2f4c" identifier + number_literal) ))))) ;) (expression_statement "puVar8[1] = uVar5;" (assignment_expression "puVar8[1] = uVar5" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" else (compound_statement "{\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" { (expression_statement "puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);" (assignment_expression "puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8)" identifier = (cast_expression "(undefined4 *)xrealloc(puVar8,iVar11 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar8,iVar11 * 8)" identifier (argument_list "(puVar8,iVar11 * 8)" ( identifier , (binary_expression "iVar11 * 8" identifier * number_literal) ))))) ;) (expression_statement "*(undefined4 **)(puVar9 + -0x2f50) = puVar8;" (assignment_expression "*(undefined4 **)(puVar9 + -0x2f50) = puVar8" (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" * (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + -0x2f50)" ( (binary_expression "puVar9 + -0x2f50" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "(*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);" (call_expression "(*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0002d278)" ( (pointer_expression "*(code *)PTR_memset_0002d278" * (cast_expression "(code *)PTR_memset_0002d278" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8)" ( (binary_expression "puVar8 + *(int *)(puVar4 + -0x2f60) * 2" identifier + (binary_expression "*(int *)(puVar4 + -0x2f60) * 2" (pointer_expression "*(int *)(puVar4 + -0x2f60)" * (cast_expression "(int *)(puVar4 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f60)" ( (binary_expression "puVar4 + -0x2f60" identifier + number_literal) )))) * number_literal)) , number_literal , (binary_expression "(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8" (parenthesized_expression "(iVar11 - *(int *)(puVar4 + -0x2f60))" ( (binary_expression "iVar11 - *(int *)(puVar4 + -0x2f60)" identifier - (pointer_expression "*(int *)(puVar4 + -0x2f60)" * (cast_expression "(int *)(puVar4 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f60)" ( (binary_expression "puVar4 + -0x2f60" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "*(int *)(puVar4 + -0x2f60) = iVar11;" (assignment_expression "*(int *)(puVar4 + -0x2f60) = iVar11" (pointer_expression "*(int *)(puVar4 + -0x2f60)" * (cast_expression "(int *)(puVar4 + -0x2f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x2f60)" ( (binary_expression "puVar4 + -0x2f60" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar12 = param_4[1];" (assignment_expression "uVar12 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar14 = puVar8 + param_1 * 2;" (assignment_expression "puVar14 = puVar8 + param_1 * 2" identifier = (binary_expression "puVar8 + param_1 * 2" identifier + (binary_expression "param_1 * 2" identifier * number_literal))) ;) (expression_statement "pcVar13 = (code *)(PTR_0002d104 + 0x5a00);" (assignment_expression "pcVar13 = (code *)(PTR_0002d104 + 0x5a00)" identifier = (cast_expression "(code *)(PTR_0002d104 + 0x5a00)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002d104 + 0x5a00)" ( (binary_expression "PTR_0002d104 + 0x5a00" identifier + number_literal) )))) ;) (expression_statement "uVar10 = *puVar14;" (assignment_expression "uVar10 = *puVar14" identifier = (pointer_expression "*puVar14" * identifier)) ;) (expression_statement "puVar9 = (undefined *)puVar14[1];" (assignment_expression "puVar9 = (undefined *)puVar14[1]" identifier = (cast_expression "(undefined *)puVar14[1]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar14[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);" (assignment_expression "uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier = (call_expression "FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" identifier (argument_list "(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_4" * identifier) , (binary_expression "uVar12 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) )))) ;) (if_statement "if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }" if (parenthesized_expression "(uVar10 <= uVar3)" ( (binary_expression "uVar10 <= uVar3" identifier <= identifier) )) (compound_statement "{\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }" { (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR_DAT_0002d0f8 + -0x2c90;" (assignment_expression "puVar4 = PTR_DAT_0002d0f8 + -0x2c90" identifier = (binary_expression "PTR_DAT_0002d0f8 + -0x2c90" identifier + number_literal)) ;) (expression_statement "*puVar14 = uVar3;" (assignment_expression "*puVar14 = uVar3" (pointer_expression "*puVar14" * identifier) = identifier) ;) (if_statement "if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }" if (parenthesized_expression "(puVar9 != puVar4)" ( (binary_expression "puVar9 != puVar4" identifier != identifier) )) (compound_statement "{\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }" { (expression_statement "(*(code *)PTR_free_0002d2ec)(puVar9);" (call_expression "(*(code *)PTR_free_0002d2ec)(puVar9)" (parenthesized_expression "(*(code *)PTR_free_0002d2ec)" ( (pointer_expression "*(code *)PTR_free_0002d2ec" * (cast_expression "(code *)PTR_free_0002d2ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier ))) ;) })) (expression_statement "puVar9 = (undefined *)xmalloc(uVar3);" (assignment_expression "puVar9 = (undefined *)xmalloc(uVar3)" identifier = (cast_expression "(undefined *)xmalloc(uVar3)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))))) ;) (expression_statement "uVar7 = param_4[0xb];" (assignment_expression "uVar7 = param_4[0xb]" identifier = (subscript_expression "param_4[0xb]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = param_4[10];" (assignment_expression "uVar6 = param_4[10]" identifier = (subscript_expression "param_4[10]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = *param_4;" (assignment_expression "uVar5 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "puVar14[1] = (uint)puVar9;" (assignment_expression "puVar14[1] = (uint)puVar9" (subscript_expression "puVar14[1]" identifier [ number_literal ]) = (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "(*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);" (call_expression "(*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7)" ( identifier , identifier , identifier , identifier , identifier , (binary_expression "uVar12 | 1" identifier | number_literal) , (binary_expression "param_4 + 2" identifier + number_literal) , identifier , identifier ))) ;) })) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return puVar9;" 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = 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 = IDENT) ;) (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 { (labeled_statement statement_identifier : (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression (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) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 IDENT - (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) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 = (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 ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , (binary_expression IDENT | LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined * FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (* "*") (function_declarator "FUN_00016e00(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_00016e00") (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  undefined4 uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined *puVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  code *pcVar13;\n  uint *puVar14;\n  \n  puVar9 = PTR_DAT_0002d0f8;\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();\n  puVar4 = PTR_DAT_0002d0f8;\n  uVar2 = *puVar1;\n  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);\n  if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }\n  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }\n  uVar12 = param_4[1];\n  puVar14 = puVar8 + param_1 * 2;\n  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);\n  uVar10 = *puVar14;\n  puVar9 = (undefined *)puVar14[1];\n  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);\n  if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }\n  *puVar1 = uVar2;\n  return puVar9;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "code *pcVar13;" (type_identifier "code") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (declaration "uint *puVar14;" (type_identifier "uint") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (expression_statement "puVar9 = PTR_DAT_0002d0f8;" (assignment_expression "puVar9 = PTR_DAT_0002d0f8" (identifier "puVar9") (= "=") (identifier "PTR_DAT_0002d0f8")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0002d270)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002d270)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002d270)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002d270" (* "*") (cast_expression "(code *)PTR___errno_location_0002d270" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002d270"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "puVar4 = PTR_DAT_0002d0f8;" (assignment_expression "puVar4 = PTR_DAT_0002d0f8" (identifier "puVar4") (= "=") (identifier "PTR_DAT_0002d0f8")) (; ";")) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "puVar8 = *(undefined4 **)(puVar9 + -0x2f50);" (assignment_expression "puVar8 = *(undefined4 **)(puVar9 + -0x2f50)" (identifier "puVar8") (= "=") (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" (* "*") (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + -0x2f50)" (( "(") (binary_expression "puVar9 + -0x2f50" (identifier "puVar9") (+ "+") (number_literal "-0x2f50")) () ")"))))) (; ";")) (if_statement "if (param_1 < 0) {\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();\n    return puVar9;\n  }" ({ "{") (labeled_statement "LAB_00017054:\n    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();" (statement_identifier "LAB_00017054") (: ":") (expression_statement "puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();" (assignment_expression "puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)()" (identifier "puVar9") (= "=") (cast_expression "(undefined *)(*(code *)PTR_abort_0002d218)()" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_abort_0002d218)()" (parenthesized_expression "(*(code *)PTR_abort_0002d218)" (( "(") (pointer_expression "*(code *)PTR_abort_0002d218" (* "*") (cast_expression "(code *)PTR_abort_0002d218" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_0002d218"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";"))) (return_statement "return puVar9;" (return "return") (identifier "puVar9") (; ";")) (} "}"))) (if_statement "if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1)" (( "(") (binary_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1" (pointer_expression "*(int *)(PTR_DAT_0002d0f8 + -0x2f60)" (* "*") (cast_expression "(int *)(PTR_DAT_0002d0f8 + -0x2f60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f60)" (( "(") (binary_expression "PTR_DAT_0002d0f8 + -0x2f60" (identifier "PTR_DAT_0002d0f8") (+ "+") (number_literal "-0x2f60")) () ")")))) (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n    if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }\n    iVar11 = param_1 + 1;\n    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }\n    (*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);\n    *(int *)(puVar4 + -0x2f60) = iVar11;\n  }" ({ "{") (if_statement "if (0xffffffe < param_1) {\n      xalloc_die();\n      goto LAB_00017054;\n    }" (if "if") (parenthesized_expression "(0xffffffe < param_1)" (( "(") (binary_expression "0xffffffe < param_1" (number_literal "0xffffffe") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      xalloc_die();\n      goto LAB_00017054;\n    }" ({ "{") (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_00017054;" (goto "goto") (statement_identifier "LAB_00017054") (; ";")) (} "}"))) (expression_statement "iVar11 = param_1 + 1;" (assignment_expression "iVar11 = param_1 + 1" (identifier "iVar11") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }\n    else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" (if "if") (parenthesized_expression "(puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c))" (( "(") (binary_expression "puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" (identifier "puVar8") (== "==") (cast_expression "(undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0002d0f8 + -0x2f4c)" (( "(") (binary_expression "PTR_DAT_0002d0f8 + -0x2f4c" (identifier "PTR_DAT_0002d0f8") (+ "+") (number_literal "-0x2f4c")) () ")")))) () ")")) (compound_statement "{\n      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);\n      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);\n      puVar8[1] = uVar5;\n    }" ({ "{") (expression_statement "puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);" (assignment_expression "puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)xrealloc(0,iVar11 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(0,iVar11 * 8)" (identifier "xrealloc") (argument_list "(0,iVar11 * 8)" (( "(") (number_literal "0") (, ",") (binary_expression "iVar11 * 8" (identifier "iVar11") (* "*") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(puVar9 + -0x2f50) = puVar8;" (assignment_expression "*(undefined4 **)(puVar9 + -0x2f50) = puVar8" (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" (* "*") (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + -0x2f50)" (( "(") (binary_expression "puVar9 + -0x2f50" (identifier "puVar9") (+ "+") (number_literal "-0x2f50")) () ")")))) (= "=") (identifier "puVar8")) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(puVar4 + -0x2f48);" (assignment_expression "uVar5 = *(undefined4 *)(puVar4 + -0x2f48)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(puVar4 + -0x2f48)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x2f48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x2f48)" (( "(") (binary_expression "puVar4 + -0x2f48" (identifier "puVar4") (+ "+") (number_literal "-0x2f48")) () ")"))))) (; ";")) (expression_statement "*puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);" (assignment_expression "*puVar8 = *(undefined4 *)(puVar4 + -0x2f4c)" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (pointer_expression "*(undefined4 *)(puVar4 + -0x2f4c)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x2f4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x2f4c)" (( "(") (binary_expression "puVar4 + -0x2f4c" (identifier "puVar4") (+ "+") (number_literal "-0x2f4c")) () ")"))))) (; ";")) (expression_statement "puVar8[1] = uVar5;" (assignment_expression "puVar8[1] = uVar5" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (} "}")) (else_clause "else {\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" (else "else") (compound_statement "{\n      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);\n      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;\n    }" ({ "{") (expression_statement "puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);" (assignment_expression "puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)xrealloc(puVar8,iVar11 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(puVar8,iVar11 * 8)" (identifier "xrealloc") (argument_list "(puVar8,iVar11 * 8)" (( "(") (identifier "puVar8") (, ",") (binary_expression "iVar11 * 8" (identifier "iVar11") (* "*") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(puVar9 + -0x2f50) = puVar8;" (assignment_expression "*(undefined4 **)(puVar9 + -0x2f50) = puVar8" (pointer_expression "*(undefined4 **)(puVar9 + -0x2f50)" (* "*") (cast_expression "(undefined4 **)(puVar9 + -0x2f50)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + -0x2f50)" (( "(") (binary_expression "puVar9 + -0x2f50" (identifier "puVar9") (+ "+") (number_literal "-0x2f50")) () ")")))) (= "=") (identifier "puVar8")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);" (call_expression "(*(code *)PTR_memset_0002d278)\n              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8)" (parenthesized_expression "(*(code *)PTR_memset_0002d278)" (( "(") (pointer_expression "*(code *)PTR_memset_0002d278" (* "*") (cast_expression "(code *)PTR_memset_0002d278" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0002d278"))) () ")")) (argument_list "(puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8)" (( "(") (binary_expression "puVar8 + *(int *)(puVar4 + -0x2f60) * 2" (identifier "puVar8") (+ "+") (binary_expression "*(int *)(puVar4 + -0x2f60) * 2" (pointer_expression "*(int *)(puVar4 + -0x2f60)" (* "*") (cast_expression "(int *)(puVar4 + -0x2f60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x2f60)" (( "(") (binary_expression "puVar4 + -0x2f60" (identifier "puVar4") (+ "+") (number_literal "-0x2f60")) () ")")))) (* "*") (number_literal "2"))) (, ",") (number_literal "0") (, ",") (binary_expression "(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8" (parenthesized_expression "(iVar11 - *(int *)(puVar4 + -0x2f60))" (( "(") (binary_expression "iVar11 - *(int *)(puVar4 + -0x2f60)" (identifier "iVar11") (- "-") (pointer_expression "*(int *)(puVar4 + -0x2f60)" (* "*") (cast_expression "(int *)(puVar4 + -0x2f60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x2f60)" (( "(") (binary_expression "puVar4 + -0x2f60" (identifier "puVar4") (+ "+") (number_literal "-0x2f60")) () ")"))))) () ")")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "*(int *)(puVar4 + -0x2f60) = iVar11;" (assignment_expression "*(int *)(puVar4 + -0x2f60) = iVar11" (pointer_expression "*(int *)(puVar4 + -0x2f60)" (* "*") (cast_expression "(int *)(puVar4 + -0x2f60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x2f60)" (( "(") (binary_expression "puVar4 + -0x2f60" (identifier "puVar4") (+ "+") (number_literal "-0x2f60")) () ")")))) (= "=") (identifier "iVar11")) (; ";")) (} "}"))) (expression_statement "uVar12 = param_4[1];" (assignment_expression "uVar12 = param_4[1]" (identifier "uVar12") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar14 = puVar8 + param_1 * 2;" (assignment_expression "puVar14 = puVar8 + param_1 * 2" (identifier "puVar14") (= "=") (binary_expression "puVar8 + param_1 * 2" (identifier "puVar8") (+ "+") (binary_expression "param_1 * 2" (identifier "param_1") (* "*") (number_literal "2")))) (; ";")) (expression_statement "pcVar13 = (code *)(PTR_0002d104 + 0x5a00);" (assignment_expression "pcVar13 = (code *)(PTR_0002d104 + 0x5a00)" (identifier "pcVar13") (= "=") (cast_expression "(code *)(PTR_0002d104 + 0x5a00)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_0002d104 + 0x5a00)" (( "(") (binary_expression "PTR_0002d104 + 0x5a00" (identifier "PTR_0002d104") (+ "+") (number_literal "0x5a00")) () ")")))) (; ";")) (expression_statement "uVar10 = *puVar14;" (assignment_expression "uVar10 = *puVar14" (identifier "uVar10") (= "=") (pointer_expression "*puVar14" (* "*") (identifier "puVar14"))) (; ";")) (expression_statement "puVar9 = (undefined *)puVar14[1];" (assignment_expression "puVar9 = (undefined *)puVar14[1]" (identifier "puVar9") (= "=") (cast_expression "(undefined *)puVar14[1]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar14[1]" (identifier "puVar14") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb]);" (assignment_expression "uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" (identifier "uVar3") (= "=") (call_expression "FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" (identifier "FUN_00015a00") (argument_list "(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],\n                       param_4[0xb])" (( "(") (identifier "puVar9") (, ",") (identifier "uVar10") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (binary_expression "uVar12 | 1" (identifier "uVar12") (| "|") (number_literal "1")) (, ",") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_4[10]" (identifier "param_4") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_4[0xb]" (identifier "param_4") ([ "[") (number_literal "0xb") (] "]")) () ")")))) (; ";")) (if_statement "if (uVar10 <= uVar3) {\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }" (if "if") (parenthesized_expression "(uVar10 <= uVar3)" (( "(") (binary_expression "uVar10 <= uVar3" (identifier "uVar10") (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n    uVar3 = uVar3 + 1;\n    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;\n    *puVar14 = uVar3;\n    if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }\n    puVar9 = (undefined *)xmalloc(uVar3);\n    uVar7 = param_4[0xb];\n    uVar6 = param_4[10];\n    uVar5 = *param_4;\n    puVar14[1] = (uint)puVar9;\n    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);\n  }" ({ "{") (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = PTR_DAT_0002d0f8 + -0x2c90;" (assignment_expression "puVar4 = PTR_DAT_0002d0f8 + -0x2c90" (identifier "puVar4") (= "=") (binary_expression "PTR_DAT_0002d0f8 + -0x2c90" (identifier "PTR_DAT_0002d0f8") (+ "+") (number_literal "-0x2c90"))) (; ";")) (expression_statement "*puVar14 = uVar3;" (assignment_expression "*puVar14 = uVar3" (pointer_expression "*puVar14" (* "*") (identifier "puVar14")) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (puVar9 != puVar4) {\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }" (if "if") (parenthesized_expression "(puVar9 != puVar4)" (( "(") (binary_expression "puVar9 != puVar4" (identifier "puVar9") (!= "!=") (identifier "puVar4")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_0002d2ec)(puVar9);\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_0002d2ec)(puVar9);" (call_expression "(*(code *)PTR_free_0002d2ec)(puVar9)" (parenthesized_expression "(*(code *)PTR_free_0002d2ec)" (( "(") (pointer_expression "*(code *)PTR_free_0002d2ec" (* "*") (cast_expression "(code *)PTR_free_0002d2ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0002d2ec"))) () ")")) (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar9 = (undefined *)xmalloc(uVar3);" (assignment_expression "puVar9 = (undefined *)xmalloc(uVar3)" (identifier "puVar9") (= "=") (cast_expression "(undefined *)xmalloc(uVar3)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(uVar3)" (identifier "xmalloc") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))))) (; ";")) (expression_statement "uVar7 = param_4[0xb];" (assignment_expression "uVar7 = param_4[0xb]" (identifier "uVar7") (= "=") (subscript_expression "param_4[0xb]" (identifier "param_4") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "uVar6 = param_4[10];" (assignment_expression "uVar6 = param_4[10]" (identifier "uVar6") (= "=") (subscript_expression "param_4[10]" (identifier "param_4") ([ "[") (number_literal "10") (] "]"))) (; ";")) (expression_statement "uVar5 = *param_4;" (assignment_expression "uVar5 = *param_4" (identifier "uVar5") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "puVar14[1] = (uint)puVar9;" (assignment_expression "puVar14[1] = (uint)puVar9" (subscript_expression "puVar14[1]" (identifier "puVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)puVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar9"))) (; ";")) (expression_statement "(*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);" (call_expression "(*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7)" (parenthesized_expression "(*pcVar13)" (( "(") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) () ")")) (argument_list "(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7)" (( "(") (identifier "puVar9") (, ",") (identifier "uVar3") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "uVar5") (, ",") (binary_expression "uVar12 | 1" (identifier "uVar12") (| "|") (number_literal "1")) (, ",") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) (, ",") (identifier "uVar6") (, ",") (identifier "uVar7") () ")"))) (; ";")) (} "}"))) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return puVar9;" (return "return") (identifier "puVar9") (; ";")) (} "}")))
(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: (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier))) (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 (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: (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: (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: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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 (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: (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))))))) 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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (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: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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)))))) (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: (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: (identifier) right: (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: (pointer_expression argument: (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: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))))) (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;
  undefined4 uVar2;
  uint uVar3;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined *puVar9;
  uint uVar10;
  int iVar11;
  uint uVar12;
  code *pcVar13;
  uint *puVar14;
  
  puVar9 = PTR_DAT_0002d0f8;
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0002d270)();
  puVar4 = PTR_DAT_0002d0f8;
  uVar2 = *puVar1;
  puVar8 = *(undefined4 **)(puVar9 + -0x2f50);
  if (param_1 < 0) {
LAB_00017054:
    puVar9 = (undefined *)(*(code *)PTR_abort_0002d218)();
    return puVar9;
  }
  if (*(int *)(PTR_DAT_0002d0f8 + -0x2f60) <= param_1) {
    if (0xffffffe < param_1) {
      xalloc_die();
      goto LAB_00017054;
    }
    iVar11 = param_1 + 1;
    if (puVar8 == (undefined4 *)(PTR_DAT_0002d0f8 + -0x2f4c)) {
      puVar8 = (undefined4 *)xrealloc(0,iVar11 * 8);
      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;
      uVar5 = *(undefined4 *)(puVar4 + -0x2f48);
      *puVar8 = *(undefined4 *)(puVar4 + -0x2f4c);
      puVar8[1] = uVar5;
    }
    else {
      puVar8 = (undefined4 *)xrealloc(puVar8,iVar11 * 8);
      *(undefined4 **)(puVar9 + -0x2f50) = puVar8;
    }
    (*(code *)PTR_memset_0002d278)
              (puVar8 + *(int *)(puVar4 + -0x2f60) * 2,0,(iVar11 - *(int *)(puVar4 + -0x2f60)) * 8);
    *(int *)(puVar4 + -0x2f60) = iVar11;
  }
  uVar12 = param_4[1];
  puVar14 = puVar8 + param_1 * 2;
  pcVar13 = (code *)(PTR_0002d104 + 0x5a00);
  uVar10 = *puVar14;
  puVar9 = (undefined *)puVar14[1];
  uVar3 = FUN_00015a00(puVar9,uVar10,param_2,param_3,*param_4,uVar12 | 1,param_4 + 2,param_4[10],
                       param_4[0xb]);
  if (uVar10 <= uVar3) {
    uVar3 = uVar3 + 1;
    puVar4 = PTR_DAT_0002d0f8 + -0x2c90;
    *puVar14 = uVar3;
    if (puVar9 != puVar4) {
      (*(code *)PTR_free_0002d2ec)(puVar9);
    }
    puVar9 = (undefined *)xmalloc(uVar3);
    uVar7 = param_4[0xb];
    uVar6 = param_4[10];
    uVar5 = *param_4;
    puVar14[1] = (uint)puVar9;
    (*pcVar13)(puVar9,uVar3,param_2,param_3,uVar5,uVar12 | 1,param_4 + 2,uVar6,uVar7);
  }
  *puVar1 = uVar2;
  return puVar9;
}

