
bfd_boolean stab_enum_type(void *p,char *tag,char **names,bfd_signed_vma *vals)

{
  int iVar1;
  int iVar2;
  bfd_boolean bVar3;
  undefined *puVar4;
  bfd_signed_vma *pbVar5;
  char *pcVar6;
  char *pcVar7;
  char **ppcVar8;
  undefined *puVar9;
  bfd_signed_vma *tindex;
  
  if (names == (char **)0x0) {
    if (tag == (char *)0x0) {
      bVar3 = (*(code *)PTR___assert_fail_0004da38)
                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,
                         PTR_DAT_0004d8bc + -0x4340);
      return bVar3;
    }
    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);
    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);
    (*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);
    bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);
    if (bVar3 != 0) {
      (*(code *)PTR_free_0004dc74)(pcVar6);
      return 1;
    }
    return 0;
  }
  pcVar6 = *names;
  pbVar5 = vals;
  ppcVar8 = names;
  if (tag == (char *)0x0) {
    iVar1 = 10;
    if (pcVar6 != (char *)0x0) goto LAB_000304a4;
    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);
LAB_0003062c:
    pcVar6[1] = '\0';
    tindex = (bfd_signed_vma *)0x0;
    *pcVar6 = 'e';
  }
  else {
    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);
    iVar1 = iVar1 + 10;
    if (pcVar6 == (char *)0x0) {
      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);
    }
    else {
LAB_000304a4:
      do {
        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);
        pcVar6 = ppcVar8[1];
        iVar1 = iVar1 + iVar2 + 0x14;
        ppcVar8 = ppcVar8 + 1;
      } while (pcVar6 != (char *)0x0);
      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);
      if (tag == (char *)0x0) goto LAB_0003062c;
    }
    puVar9 = PTR_sprintf_0004daa8;
    tindex = *(bfd_signed_vma **)((int)p + 0x3c);
    puVar4 = PTR_DAT_0004d8bc + -0x4488;
    *(int *)((int)p + 0x3c) = (int)tindex + 1;
    pbVar5 = tindex;
    (*(code *)puVar9)(pcVar6,puVar4,tag);
  }
  pcVar7 = *names;
  if (pcVar7 != (char *)0x0) {
    puVar9 = PTR_DAT_0004d8bc + -0x447c;
    do {
      names = names + 1;
      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);
      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);
      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);
      pcVar7 = *names;
      vals = vals + 1;
    } while (pcVar7 != (char *)0x0);
  }
  iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);
  pcVar6[iVar1] = ';';
  (pcVar6 + iVar1)[1] = '\0';
  if (tag == (char *)0x0) {
    iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);
  }
  else {
    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);
    if (bVar3 == 0) {
      return 0;
    }
    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);
  }
  if (iVar1 == 0) {
    return 0;
  }
  (*(code *)PTR_free_0004dc74)(pcVar6);
  return 1;
}



undefined4 FUN_00030434(int param_1,int param_2,int *param_3,int param_4)

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined4 uVar4;
  undefined *puVar5;
  int iVar6;
  int *piVar7;
  undefined *puVar8;
  
  if (param_3 == (int *)0x0) {
    if (param_2 == 0) {
      uVar4 = (*(code *)PTR___assert_fail_0004da38)
                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,
                         PTR_DAT_0004d8bc + -0x4340);
      return uVar4;
    }
    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);
    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);
    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);
    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);
    if (iVar6 != 0) {
      (*(code *)PTR_free_0004dc74)(uVar4);
      return 1;
    }
    return 0;
  }
  iVar6 = *param_3;
  piVar7 = param_3;
  if (param_2 == 0) {
    iVar1 = 10;
    if (iVar6 != 0) goto LAB_000304a4;
    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);
LAB_0003062c:
    puVar3[1] = 0;
    iVar6 = 0;
    *puVar3 = 0x65;
  }
  else {
    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);
    iVar1 = iVar1 + 10;
    if (iVar6 == 0) {
      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);
    }
    else {
LAB_000304a4:
      do {
        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);
        iVar6 = piVar7[1];
        iVar1 = iVar1 + iVar2 + 0x14;
        piVar7 = piVar7 + 1;
      } while (iVar6 != 0);
      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);
      if (param_2 == 0) goto LAB_0003062c;
    }
    puVar8 = PTR_sprintf_0004daa8;
    iVar6 = *(int *)(param_1 + 0x3c);
    puVar5 = PTR_DAT_0004d8bc + -0x4488;
    *(int *)(param_1 + 0x3c) = iVar6 + 1;
    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);
  }
  iVar1 = *param_3;
  if (iVar1 != 0) {
    puVar8 = PTR_DAT_0004d8bc + -0x447c;
    do {
      param_3 = param_3 + 1;
      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);
      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));
      iVar1 = *param_3;
      param_4 = param_4 + 8;
    } while (iVar1 != 0);
  }
  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);
  puVar3[iVar1] = 0x3b;
  (puVar3 + iVar1)[1] = 0;
  if (param_2 == 0) {
    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);
  }
  else {
    iVar1 = FUN_0002d1c0(param_1,0x80,0);
    if (iVar1 == 0) {
      return 0;
    }
    iVar6 = FUN_0002f134(param_1,iVar6,4);
  }
  if (iVar6 == 0) {
    return 0;
  }
  (*(code *)PTR_free_0004dc74)(puVar3);
  return 1;
}


lui gp,0x2
addiu gp,gp,0x543c
addu gp,gp,t9
addiu sp,sp,-0x50
sw gp,0x20(sp)
sw s6,0x44(sp)
or s6,a0,zero
sw s5,0x40(sp)
or s5,a1,zero
sw ra,0x4c(sp)
sw s7,0x48(sp)
sw s4,0x3c(sp)
sw s3,0x38(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
beq a2,zero,0x00030640
_sw s0,0x2c(sp)
or s0,a2,zero
lw s1,0x0(a2)
beq a1,zero,0x00030610
_or s2,a3,zero
lw t9,-0x7cf8(gp)
jalr t9
_or a0,a1,zero
lw gp,0x20(sp)
beq s1,zero,0x00030728
_addiu s4,v0,0xa
or s3,s0,zero
lw t9,-0x7cf8(gp)
addiu s3,s3,0x4
jalr t9
_or a0,s1,zero
lw s1,0x0(s3)
addiu v0,v0,0x14
lw gp,0x20(sp)
bne s1,zero,0x000304a4
_addu s4,s4,v0
lw t9,-0x7c70(gp)
jalr t9
_or a0,s4,zero
lw gp,0x20(sp)
beq s5,zero,0x0003062c
_or s3,v0,zero
lw s7,0x3c(s6)
or a2,s5,zero
lw a1,-0x7fb4(gp)
or a0,s3,zero
lw t9,-0x7dc8(gp)
addiu v0,s7,0x1
addiu a1,a1,-0x4488
sw v0,0x3c(s6)
jalr t9
_or a3,s7,zero
lw gp,0x20(sp)
lw s1,0x0(s0)
beq s1,zero,0x00030560
_lw t9,-0x7cf8(gp)
lw s4,-0x7fb4(gp)
addiu s4,s4,-0x447c
lw t9,-0x7cf8(gp)
or a0,s3,zero
addiu s2,s2,0x8
jalr t9
_addiu s0,s0,0x4
or a2,s1,zero
lw gp,0x20(sp)
addu a0,s3,v0
lw a3,-0x4(s2)
lw t9,-0x7dc8(gp)
jalr t9
_or a1,s4,zero
lw s1,0x0(s0)
bne s1,zero,0x00030520
_lw gp,0x20(sp)
lw t9,-0x7cf8(gp)
jalr t9
_or a0,s3,zero
li v1,0x3b
addu v0,s3,v0
lw gp,0x20(sp)
sb v1,0x0(v0)
beq s5,zero,0x000306e0
_sb zero,0x1(v0)
lw t9,-0x7fc8(gp)
or v1,zero,zero
or v0,zero,zero
sw s3,0x18(sp)
or a2,zero,zero
sw v1,0x14(sp)
li a1,0x80
sw v0,0x10(sp)
addiu t9,t9,-0x2e40
bal 0x0002d1c0
_or a0,s6,zero
beq v0,zero,0x000306b0
_lw gp,0x20(sp)
lw t9,-0x7fc8(gp)
li a2,0x4
or a1,s7,zero
addiu t9,t9,-0xecc
bal 0x0002f134
_or a0,s6,zero
beq v0,zero,0x000306b0
_lw gp,0x20(sp)
lw t9,-0x7bfc(gp)
jalr t9
_or a0,s3,zero
li v0,0x1
lw ra,0x4c(sp)
lw s7,0x48(sp)
lw s6,0x44(sp)
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x50
bne s1,zero,0x000304a0
_li s4,0xa
lw t9,-0x7c70(gp)
jalr t9
_li a0,0xa
lw gp,0x20(sp)
or s3,v0,zero
li v0,0x65
sb zero,0x1(s3)
or s7,zero,zero
b 0x0003050c
_sb v0,0x0(s3)
beq a1,zero,0x00030740
_lw t9,-0x7cf8(gp)
jalr t9
_or a0,a1,zero
lw gp,0x20(sp)
lw t9,-0x7c70(gp)
jalr t9
_addiu a0,v0,0xa
or a2,s5,zero
lw gp,0x20(sp)
or a0,v0,zero
or s0,v0,zero
lw a1,-0x7fb4(gp)
lw t9,-0x7dc8(gp)
jalr t9
_addiu a1,a1,-0x4490
li v0,0x4
lw gp,0x20(sp)
or a3,zero,zero
or a2,zero,zero
sw v0,0x10(sp)
addiu a0,s6,0x38
lw t9,-0x7fc8(gp)
addiu t9,t9,-0xf74
bal 0x0002f08c
_or a1,s0,zero
bne v0,zero,0x00030714
_lw gp,0x20(sp)
or v0,zero,zero
lw ra,0x4c(sp)
lw s7,0x48(sp)
lw s6,0x44(sp)
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7fc8(gp)
li v0,0x4
or a3,zero,zero
or a2,zero,zero
sw v0,0x10(sp)
addiu a0,s6,0x38
addiu t9,t9,-0xf74
bal 0x0002f08c
_or a1,s3,zero
bne v0,zero,0x000305d4
_lw gp,0x20(sp)
b 0x000306b4
_or v0,zero,zero
lw t9,-0x7bfc(gp)
jalr t9
_or a0,s0,zero
b 0x000305e4
_li v0,0x1
lw t9,-0x7c70(gp)
jalr t9
_or a0,s4,zero
lw gp,0x20(sp)
b 0x000304e0
_or s3,v0,zero
lw a3,-0x7fb4(gp)
li a2,0x317
lw a1,-0x7fb4(gp)
lw a0,-0x7fb4(gp)
lw t9,-0x7e38(gp)
addiu a3,a3,-0x4340
addiu a1,a1,-0x4760
jalr t9
_addiu a0,a0,-0x449c
(translation_unit "undefined4 FUN_00030434(int param_1,int param_2,int *param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00030434(int param_1,int param_2,int *param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}" type_identifier (function_declarator "FUN_00030434(int param_1,int param_2,int *param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int *param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (if_statement "if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }" { (if_statement "if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }" { (expression_statement "uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);" (assignment_expression "uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" identifier = (call_expression "(*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" (parenthesized_expression "(*(code *)PTR___assert_fail_0004da38)" ( (pointer_expression "*(code *)PTR___assert_fail_0004da38" * (cast_expression "(code *)PTR___assert_fail_0004da38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" ( (binary_expression "PTR_DAT_0004d8bc + -0x449c" identifier + number_literal) , (binary_expression "PTR_DAT_0004d8bc + -0x4760" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0004d8bc + -0x4340" identifier + number_literal) )))) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_0004db78)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);" (assignment_expression "uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10)" identifier = (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + 10)" ( (binary_expression "iVar6 + 10" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);" (call_expression "(*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2)" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" ( (pointer_expression "*(code *)PTR_sprintf_0004daa8" * (cast_expression "(code *)PTR_sprintf_0004daa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2)" ( identifier , (binary_expression "PTR_DAT_0004d8bc + -0x4490" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);" (assignment_expression "iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4)" identifier = (call_expression "FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4)" identifier (argument_list "(param_1 + 0x38,uVar4,0,0,4)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) , identifier , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_free_0004dc74)(uVar4);" (call_expression "(*(code *)PTR_free_0004dc74)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" ( (pointer_expression "*(code *)PTR_free_0004dc74" * (cast_expression "(code *)PTR_free_0004dc74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar6 = *param_3;" (assignment_expression "iVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }" { (expression_statement "iVar1 = 10;" (assignment_expression "iVar1 = 10" identifier = number_literal) ;) (if_statement "if (iVar6 != 0) goto LAB_000304a4;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000304a4;" goto statement_identifier ;)) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))))) ;) (labeled_statement "LAB_0003062c:\n    puVar3[1] = 0;" statement_identifier : (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "*puVar3 = 0x65;" (assignment_expression "*puVar3 = 0x65" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar1 = iVar1 + 10;" (assignment_expression "iVar1 = iVar1 + 10" identifier = (binary_expression "iVar1 + 10" identifier + number_literal)) ;) (if_statement "if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }" { (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))))) ;) }) (else_clause "else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" else (compound_statement "{\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" { (labeled_statement "LAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);" statement_identifier : (do_statement "do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);" do (compound_statement "{\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(iVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = iVar1 + iVar2 + 0x14;" (assignment_expression "iVar1 = iVar1 + iVar2 + 0x14" identifier = (binary_expression "iVar1 + iVar2 + 0x14" (binary_expression "iVar1 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;)) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))))) ;) (if_statement "if (param_2 == 0) goto LAB_0003062c;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003062c;" goto statement_identifier ;)) }))) (expression_statement "puVar8 = PTR_sprintf_0004daa8;" (assignment_expression "puVar8 = PTR_sprintf_0004daa8" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = PTR_DAT_0004d8bc + -0x4488;" (assignment_expression "puVar5 = PTR_DAT_0004d8bc + -0x4488" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x4488" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar6 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar6 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);" (call_expression "(*(code *)puVar8)(puVar3,puVar5,param_2,iVar6)" (parenthesized_expression "(*(code *)puVar8)" ( (pointer_expression "*(code *)puVar8" * (cast_expression "(code *)puVar8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,puVar5,param_2,iVar6)" ( identifier , identifier , identifier , identifier ))) ;) }))) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }" { (expression_statement "puVar8 = PTR_DAT_0004d8bc + -0x447c;" (assignment_expression "puVar8 = PTR_DAT_0004d8bc + -0x447c" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x447c" identifier + number_literal)) ;) (do_statement "do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);" do (compound_statement "{\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(puVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));" (call_expression "(*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4))" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" ( (pointer_expression "*(code *)PTR_sprintf_0004daa8" * (cast_expression "(code *)PTR_sprintf_0004daa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4))" ( (binary_expression "puVar3 + iVar2" identifier + identifier) , identifier , identifier , (pointer_expression "*(undefined4 *)(param_4 + 4)" * (cast_expression "(undefined4 *)(param_4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "param_4 = param_4 + 8;" (assignment_expression "param_4 = param_4 + 8" identifier = (binary_expression "param_4 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) })) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(puVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier )))) ;) (expression_statement "puVar3[iVar1] = 0x3b;" (assignment_expression "puVar3[iVar1] = 0x3b" (subscript_expression "puVar3[iVar1]" identifier [ identifier ]) = number_literal) ;) (expression_statement "(puVar3 + iVar1)[1] = 0;" (assignment_expression "(puVar3 + iVar1)[1] = 0" (subscript_expression "(puVar3 + iVar1)[1]" (parenthesized_expression "(puVar3 + iVar1)" ( (binary_expression "puVar3 + iVar1" identifier + identifier) )) [ number_literal ]) = number_literal) ;) (if_statement "if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }" { (expression_statement "iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);" (assignment_expression "iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4)" identifier = (call_expression "FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4)" identifier (argument_list "(param_1 + 0x38,puVar3,0,0,4)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) , identifier , number_literal , number_literal , number_literal )))) ;) }) (else_clause "else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" else (compound_statement "{\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" { (expression_statement "iVar1 = FUN_0002d1c0(param_1,0x80,0);" (assignment_expression "iVar1 = FUN_0002d1c0(param_1,0x80,0)" identifier = (call_expression "FUN_0002d1c0(param_1,0x80,0)" identifier (argument_list "(param_1,0x80,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar6 = FUN_0002f134(param_1,iVar6,4);" (assignment_expression "iVar6 = FUN_0002f134(param_1,iVar6,4)" identifier = (call_expression "FUN_0002f134(param_1,iVar6,4)" identifier (argument_list "(param_1,iVar6,4)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (iVar6 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_free_0004dc74)(puVar3);" (call_expression "(*(code *)PTR_free_0004dc74)(puVar3)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" ( (pointer_expression "*(code *)PTR_free_0004dc74" * (cast_expression "(code *)PTR_free_0004dc74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "bfd_boolean stab_enum_type(void *p,char *tag,char **names,bfd_signed_vma *vals)\n\n{\n  int iVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  undefined *puVar4;\n  bfd_signed_vma *pbVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  undefined *puVar9;\n  bfd_signed_vma *tindex;\n  \n  if (names == (char **)0x0) {\n    if (tag == (char *)0x0) {\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);\n    bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n    if (bVar3 != 0) {\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }\n    return 0;\n  }\n  pcVar6 = *names;\n  pbVar5 = vals;\n  ppcVar8 = names;\n  if (tag == (char *)0x0) {\n    iVar1 = 10;\n    if (pcVar6 != (char *)0x0) goto LAB_000304a4;\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    pcVar6[1] = '\0';\n    tindex = (bfd_signed_vma *)0x0;\n    *pcVar6 = 'e';\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    iVar1 = iVar1 + 10;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }\n    puVar9 = PTR_sprintf_0004daa8;\n    tindex = *(bfd_signed_vma **)((int)p + 0x3c);\n    puVar4 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)((int)p + 0x3c) = (int)tindex + 1;\n    pbVar5 = tindex;\n    (*(code *)puVar9)(pcVar6,puVar4,tag);\n  }\n  pcVar7 = *names;\n  if (pcVar7 != (char *)0x0) {\n    puVar9 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    } while (pcVar7 != (char *)0x0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n  pcVar6[iVar1] = ';';\n  (pcVar6 + iVar1)[1] = '\0';\n  if (tag == (char *)0x0) {\n    iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n  }\n  else {\n    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);\n  }\n  if (iVar1 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(pcVar6);\n  return 1;\n}\n\n" (function_definition "bfd_boolean stab_enum_type(void *p,char *tag,char **names,bfd_signed_vma *vals)\n\n{\n  int iVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  undefined *puVar4;\n  bfd_signed_vma *pbVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  undefined *puVar9;\n  bfd_signed_vma *tindex;\n  \n  if (names == (char **)0x0) {\n    if (tag == (char *)0x0) {\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);\n    bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n    if (bVar3 != 0) {\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }\n    return 0;\n  }\n  pcVar6 = *names;\n  pbVar5 = vals;\n  ppcVar8 = names;\n  if (tag == (char *)0x0) {\n    iVar1 = 10;\n    if (pcVar6 != (char *)0x0) goto LAB_000304a4;\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    pcVar6[1] = '\0';\n    tindex = (bfd_signed_vma *)0x0;\n    *pcVar6 = 'e';\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    iVar1 = iVar1 + 10;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }\n    puVar9 = PTR_sprintf_0004daa8;\n    tindex = *(bfd_signed_vma **)((int)p + 0x3c);\n    puVar4 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)((int)p + 0x3c) = (int)tindex + 1;\n    pbVar5 = tindex;\n    (*(code *)puVar9)(pcVar6,puVar4,tag);\n  }\n  pcVar7 = *names;\n  if (pcVar7 != (char *)0x0) {\n    puVar9 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    } while (pcVar7 != (char *)0x0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n  pcVar6[iVar1] = ';';\n  (pcVar6 + iVar1)[1] = '\0';\n  if (tag == (char *)0x0) {\n    iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n  }\n  else {\n    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);\n  }\n  if (iVar1 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(pcVar6);\n  return 1;\n}" type_identifier (function_declarator "stab_enum_type(void *p,char *tag,char **names,bfd_signed_vma *vals)" identifier (parameter_list "(void *p,char *tag,char **names,bfd_signed_vma *vals)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "char **names" primitive_type (pointer_declarator "**names" * (pointer_declarator "*names" * identifier))) , (parameter_declaration "bfd_signed_vma *vals" type_identifier (pointer_declarator "*vals" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  undefined *puVar4;\n  bfd_signed_vma *pbVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  undefined *puVar9;\n  bfd_signed_vma *tindex;\n  \n  if (names == (char **)0x0) {\n    if (tag == (char *)0x0) {\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);\n    bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n    if (bVar3 != 0) {\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }\n    return 0;\n  }\n  pcVar6 = *names;\n  pbVar5 = vals;\n  ppcVar8 = names;\n  if (tag == (char *)0x0) {\n    iVar1 = 10;\n    if (pcVar6 != (char *)0x0) goto LAB_000304a4;\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    pcVar6[1] = '\0';\n    tindex = (bfd_signed_vma *)0x0;\n    *pcVar6 = 'e';\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    iVar1 = iVar1 + 10;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }\n    puVar9 = PTR_sprintf_0004daa8;\n    tindex = *(bfd_signed_vma **)((int)p + 0x3c);\n    puVar4 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)((int)p + 0x3c) = (int)tindex + 1;\n    pbVar5 = tindex;\n    (*(code *)puVar9)(pcVar6,puVar4,tag);\n  }\n  pcVar7 = *names;\n  if (pcVar7 != (char *)0x0) {\n    puVar9 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    } while (pcVar7 != (char *)0x0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n  pcVar6[iVar1] = ';';\n  (pcVar6 + iVar1)[1] = '\0';\n  if (tag == (char *)0x0) {\n    iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n  }\n  else {\n    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);\n  }\n  if (iVar1 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(pcVar6);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "bfd_signed_vma *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char **ppcVar8;" primitive_type (pointer_declarator "**ppcVar8" * (pointer_declarator "*ppcVar8" * identifier)) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "bfd_signed_vma *tindex;" type_identifier (pointer_declarator "*tindex" * identifier) ;) (if_statement "if (names == (char **)0x0) {\n    if (tag == (char *)0x0) {\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);\n    bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n    if (bVar3 != 0) {\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(names == (char **)0x0)" ( (binary_expression "names == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    if (tag == (char *)0x0) {\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);\n    bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n    if (bVar3 != 0) {\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }\n    return 0;\n  }" { (if_statement "if (tag == (char *)0x0) {\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }" if (parenthesized_expression "(tag == (char *)0x0)" ( (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return bVar3;\n    }" { (expression_statement "bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);" (assignment_expression "bVar3 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" identifier = (call_expression "(*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" (parenthesized_expression "(*(code *)PTR___assert_fail_0004da38)" ( (pointer_expression "*(code *)PTR___assert_fail_0004da38" * (cast_expression "(code *)PTR___assert_fail_0004da38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" ( (binary_expression "PTR_DAT_0004d8bc + -0x449c" identifier + number_literal) , (binary_expression "PTR_DAT_0004d8bc + -0x4760" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0004d8bc + -0x4340" identifier + number_literal) )))) ;) (return_statement "return bVar3;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(tag);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(tag)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(tag)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(tag)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1 + 10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag);" (call_expression "(*(code *)PTR_sprintf_0004daa8)(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag)" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" ( (pointer_expression "*(code *)PTR_sprintf_0004daa8" * (cast_expression "(code *)PTR_sprintf_0004daa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,PTR_DAT_0004d8bc + -0x4490,tag)" ( identifier , (binary_expression "PTR_DAT_0004d8bc + -0x4490" identifier + number_literal) , identifier ))) ;) (expression_statement "bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);" (assignment_expression "bVar3 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4)" identifier = (call_expression "stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4)" identifier (argument_list "((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4)" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , number_literal , number_literal , number_literal )))) ;) (if_statement "if (bVar3 != 0) {\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }" if (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_0004dc74)(pcVar6);\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_free_0004dc74)(pcVar6);" (call_expression "(*(code *)PTR_free_0004dc74)(pcVar6)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" ( (pointer_expression "*(code *)PTR_free_0004dc74" * (cast_expression "(code *)PTR_free_0004dc74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar6 = *names;" (assignment_expression "pcVar6 = *names" identifier = (pointer_expression "*names" * identifier)) ;) (expression_statement "pbVar5 = vals;" (assignment_expression "pbVar5 = vals" identifier = identifier) ;) (expression_statement "ppcVar8 = names;" (assignment_expression "ppcVar8 = names" identifier = identifier) ;) (if_statement "if (tag == (char *)0x0) {\n    iVar1 = 10;\n    if (pcVar6 != (char *)0x0) goto LAB_000304a4;\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    pcVar6[1] = '\0';\n    tindex = (bfd_signed_vma *)0x0;\n    *pcVar6 = 'e';\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    iVar1 = iVar1 + 10;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }\n    puVar9 = PTR_sprintf_0004daa8;\n    tindex = *(bfd_signed_vma **)((int)p + 0x3c);\n    puVar4 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)((int)p + 0x3c) = (int)tindex + 1;\n    pbVar5 = tindex;\n    (*(code *)puVar9)(pcVar6,puVar4,tag);\n  }" if (parenthesized_expression "(tag == (char *)0x0)" ( (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 10;\n    if (pcVar6 != (char *)0x0) goto LAB_000304a4;\n    pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    pcVar6[1] = '\0';\n    tindex = (bfd_signed_vma *)0x0;\n    *pcVar6 = 'e';\n  }" { (expression_statement "iVar1 = 10;" (assignment_expression "iVar1 = 10" identifier = number_literal) ;) (if_statement "if (pcVar6 != (char *)0x0) goto LAB_000304a4;" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000304a4;" goto statement_identifier ;)) (expression_statement "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(10)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_0004dc00)(10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))))) ;) (labeled_statement "LAB_0003062c:\n    pcVar6[1] = '\0';" statement_identifier : (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "tindex = (bfd_signed_vma *)0x0;" (assignment_expression "tindex = (bfd_signed_vma *)0x0" identifier = (cast_expression "(bfd_signed_vma *)0x0" ( (type_descriptor "bfd_signed_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*pcVar6 = 'e';" (assignment_expression "*pcVar6 = 'e'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'e'" ' character ')) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    iVar1 = iVar1 + 10;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }\n    puVar9 = PTR_sprintf_0004daa8;\n    tindex = *(bfd_signed_vma **)((int)p + 0x3c);\n    puVar4 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)((int)p + 0x3c) = (int)tindex + 1;\n    pbVar5 = tindex;\n    (*(code *)puVar9)(pcVar6,puVar4,tag);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004db78)(tag);\n    iVar1 = iVar1 + 10;\n    if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }\n    puVar9 = PTR_sprintf_0004daa8;\n    tindex = *(bfd_signed_vma **)((int)p + 0x3c);\n    puVar4 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)((int)p + 0x3c) = (int)tindex + 1;\n    pbVar5 = tindex;\n    (*(code *)puVar9)(pcVar6,puVar4,tag);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(tag);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(tag)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(tag)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(tag)" ( identifier )))) ;) (expression_statement "iVar1 = iVar1 + 10;" (assignment_expression "iVar1 = iVar1 + 10" identifier = (binary_expression "iVar1 + 10" identifier + number_literal)) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }" { (expression_statement "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))))) ;) }) (else_clause "else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }" else (compound_statement "{\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);\n      pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (tag == (char *)0x0) goto LAB_0003062c;\n    }" { (labeled_statement "LAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);" statement_identifier : (do_statement "do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      } while (pcVar6 != (char *)0x0);" do (compound_statement "{\n        iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n        pcVar6 = ppcVar8[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        ppcVar8 = ppcVar8 + 1;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(pcVar6)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(pcVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar6 = ppcVar8[1];" (assignment_expression "pcVar6 = ppcVar8[1]" identifier = (subscript_expression "ppcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = iVar1 + iVar2 + 0x14;" (assignment_expression "iVar1 = iVar1 + iVar2 + 0x14" identifier = (binary_expression "iVar1 + iVar2 + 0x14" (binary_expression "iVar1 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "ppcVar8 = ppcVar8 + 1;" (assignment_expression "ppcVar8 = ppcVar8 + 1" identifier = (binary_expression "ppcVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (expression_statement "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))))) ;) (if_statement "if (tag == (char *)0x0) goto LAB_0003062c;" if (parenthesized_expression "(tag == (char *)0x0)" ( (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003062c;" goto statement_identifier ;)) }))) (expression_statement "puVar9 = PTR_sprintf_0004daa8;" (assignment_expression "puVar9 = PTR_sprintf_0004daa8" identifier = identifier) ;) (expression_statement "tindex = *(bfd_signed_vma **)((int)p + 0x3c);" (assignment_expression "tindex = *(bfd_signed_vma **)((int)p + 0x3c)" identifier = (pointer_expression "*(bfd_signed_vma **)((int)p + 0x3c)" * (cast_expression "(bfd_signed_vma **)((int)p + 0x3c)" ( (type_descriptor "bfd_signed_vma **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar4 = PTR_DAT_0004d8bc + -0x4488;" (assignment_expression "puVar4 = PTR_DAT_0004d8bc + -0x4488" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x4488" identifier + number_literal)) ;) (expression_statement "*(int *)((int)p + 0x3c) = (int)tindex + 1;" (assignment_expression "*(int *)((int)p + 0x3c) = (int)tindex + 1" (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(int)tindex + 1" (cast_expression "(int)tindex" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "pbVar5 = tindex;" (assignment_expression "pbVar5 = tindex" identifier = identifier) ;) (expression_statement "(*(code *)puVar9)(pcVar6,puVar4,tag);" (call_expression "(*(code *)puVar9)(pcVar6,puVar4,tag)" (parenthesized_expression "(*(code *)puVar9)" ( (pointer_expression "*(code *)puVar9" * (cast_expression "(code *)puVar9" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6,puVar4,tag)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "pcVar7 = *names;" (assignment_expression "pcVar7 = *names" identifier = (pointer_expression "*names" * identifier)) ;) (if_statement "if (pcVar7 != (char *)0x0) {\n    puVar9 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    } while (pcVar7 != (char *)0x0);\n  }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar9 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    } while (pcVar7 != (char *)0x0);\n  }" { (expression_statement "puVar9 = PTR_DAT_0004d8bc + -0x447c;" (assignment_expression "puVar9 = PTR_DAT_0004d8bc + -0x447c" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x447c" identifier + number_literal)) ;) (do_statement "do {\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    } while (pcVar7 != (char *)0x0);" do (compound_statement "{\n      names = names + 1;\n      iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);\n      pbVar5 = *(bfd_signed_vma **)((int)vals + 4);\n      (*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);\n      pcVar7 = *names;\n      vals = vals + 1;\n    }" { (expression_statement "names = names + 1;" (assignment_expression "names = names + 1" identifier = (binary_expression "names + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(pcVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pbVar5 = *(bfd_signed_vma **)((int)vals + 4);" (assignment_expression "pbVar5 = *(bfd_signed_vma **)((int)vals + 4)" identifier = (pointer_expression "*(bfd_signed_vma **)((int)vals + 4)" * (cast_expression "(bfd_signed_vma **)((int)vals + 4)" ( (type_descriptor "bfd_signed_vma **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)vals + 4)" ( (binary_expression "(int)vals + 4" (cast_expression "(int)vals" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7);" (call_expression "(*(code *)PTR_sprintf_0004daa8)(pcVar6 + iVar1,puVar9,pcVar7)" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" ( (pointer_expression "*(code *)PTR_sprintf_0004daa8" * (cast_expression "(code *)PTR_sprintf_0004daa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6 + iVar1,puVar9,pcVar7)" ( (binary_expression "pcVar6 + iVar1" identifier + identifier) , identifier , identifier ))) ;) (expression_statement "pcVar7 = *names;" (assignment_expression "pcVar7 = *names" identifier = (pointer_expression "*names" * identifier)) ;) (expression_statement "vals = vals + 1;" (assignment_expression "vals = vals + 1" identifier = (binary_expression "vals + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(pcVar6)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(pcVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar6[iVar1] = ';';" (assignment_expression "pcVar6[iVar1] = ';'" (subscript_expression "pcVar6[iVar1]" identifier [ identifier ]) = (char_literal "';'" ' character ')) ;) (expression_statement "(pcVar6 + iVar1)[1] = '\0';" (assignment_expression "(pcVar6 + iVar1)[1] = '\0'" (subscript_expression "(pcVar6 + iVar1)[1]" (parenthesized_expression "(pcVar6 + iVar1)" ( (binary_expression "pcVar6 + iVar1" identifier + identifier) )) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (tag == (char *)0x0) {\n    iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n  }\n  else {\n    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);\n  }" if (parenthesized_expression "(tag == (char *)0x0)" ( (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);\n  }" { (expression_statement "iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4);" (assignment_expression "iVar1 = stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4)" identifier = (call_expression "stab_push_string((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4)" identifier (argument_list "((stab_write_handle *)((int)p + 0x38),pcVar6,0,0,4)" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , number_literal , number_literal , number_literal )))) ;) }) (else_clause "else {\n    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);\n  }" else (compound_statement "{\n    bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);\n  }" { (expression_statement "bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5);" (assignment_expression "bVar3 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5)" identifier = (call_expression "stab_write_symbol((stab_write_handle *)p,0x80,0,0,(char *)pbVar5)" identifier (argument_list "((stab_write_handle *)p,0x80,0,0,(char *)pbVar5)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , number_literal , number_literal , (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4);" (assignment_expression "iVar1 = stab_push_defined_type((stab_write_handle *)p,(long)tindex,4)" identifier = (call_expression "stab_push_defined_type((stab_write_handle *)p,(long)tindex,4)" identifier (argument_list "((stab_write_handle *)p,(long)tindex,4)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(long)tindex" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) }))) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_free_0004dc74)(pcVar6);" (call_expression "(*(code *)PTR_free_0004dc74)(pcVar6)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" ( (pointer_expression "*(code *)PTR_free_0004dc74" * (cast_expression "(code *)PTR_free_0004dc74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar6)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00030434(int param_1,int param_2,int *param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00030434(int param_1,int param_2,int *param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}" type_identifier (function_declarator "FUN_00030434(int param_1,int param_2,int *param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int *param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (if_statement "if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }" { (if_statement "if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }" { (expression_statement "uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);" (assignment_expression "uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" identifier = (call_expression "(*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" (parenthesized_expression "(*(code *)PTR___assert_fail_0004da38)" ( (pointer_expression "*(code *)PTR___assert_fail_0004da38" * (cast_expression "(code *)PTR___assert_fail_0004da38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" ( (binary_expression "PTR_DAT_0004d8bc + -0x449c" identifier + number_literal) , (binary_expression "PTR_DAT_0004d8bc + -0x4760" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_0004d8bc + -0x4340" identifier + number_literal) )))) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_0004db78)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);" (assignment_expression "uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10)" identifier = (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + 10)" ( (binary_expression "iVar6 + 10" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);" (call_expression "(*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2)" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" ( (pointer_expression "*(code *)PTR_sprintf_0004daa8" * (cast_expression "(code *)PTR_sprintf_0004daa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2)" ( identifier , (binary_expression "PTR_DAT_0004d8bc + -0x4490" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);" (assignment_expression "iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4)" identifier = (call_expression "FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4)" identifier (argument_list "(param_1 + 0x38,uVar4,0,0,4)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) , identifier , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_free_0004dc74)(uVar4);" (call_expression "(*(code *)PTR_free_0004dc74)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" ( (pointer_expression "*(code *)PTR_free_0004dc74" * (cast_expression "(code *)PTR_free_0004dc74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar6 = *param_3;" (assignment_expression "iVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }" { (expression_statement "iVar1 = 10;" (assignment_expression "iVar1 = 10" identifier = number_literal) ;) (if_statement "if (iVar6 != 0) goto LAB_000304a4;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000304a4;" goto statement_identifier ;)) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))))) ;) (labeled_statement "LAB_0003062c:\n    puVar3[1] = 0;" statement_identifier : (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "*puVar3 = 0x65;" (assignment_expression "*puVar3 = 0x65" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar1 = iVar1 + 10;" (assignment_expression "iVar1 = iVar1 + 10" identifier = (binary_expression "iVar1 + 10" identifier + number_literal)) ;) (if_statement "if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }" { (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))))) ;) }) (else_clause "else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" else (compound_statement "{\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" { (labeled_statement "LAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);" statement_identifier : (do_statement "do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);" do (compound_statement "{\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(iVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = iVar1 + iVar2 + 0x14;" (assignment_expression "iVar1 = iVar1 + iVar2 + 0x14" identifier = (binary_expression "iVar1 + iVar2 + 0x14" (binary_expression "iVar1 + iVar2" identifier + identifier) + number_literal)) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;)) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc00" * (cast_expression "(code *)PTR_xmalloc_0004dc00" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))))) ;) (if_statement "if (param_2 == 0) goto LAB_0003062c;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003062c;" goto statement_identifier ;)) }))) (expression_statement "puVar8 = PTR_sprintf_0004daa8;" (assignment_expression "puVar8 = PTR_sprintf_0004daa8" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = PTR_DAT_0004d8bc + -0x4488;" (assignment_expression "puVar5 = PTR_DAT_0004d8bc + -0x4488" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x4488" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar6 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar6 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);" (call_expression "(*(code *)puVar8)(puVar3,puVar5,param_2,iVar6)" (parenthesized_expression "(*(code *)puVar8)" ( (pointer_expression "*(code *)puVar8" * (cast_expression "(code *)puVar8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,puVar5,param_2,iVar6)" ( identifier , identifier , identifier , identifier ))) ;) }))) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }" { (expression_statement "puVar8 = PTR_DAT_0004d8bc + -0x447c;" (assignment_expression "puVar8 = PTR_DAT_0004d8bc + -0x447c" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x447c" identifier + number_literal)) ;) (do_statement "do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);" do (compound_statement "{\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(puVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));" (call_expression "(*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4))" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" ( (pointer_expression "*(code *)PTR_sprintf_0004daa8" * (cast_expression "(code *)PTR_sprintf_0004daa8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4))" ( (binary_expression "puVar3 + iVar2" identifier + identifier) , identifier , identifier , (pointer_expression "*(undefined4 *)(param_4 + 4)" * (cast_expression "(undefined4 *)(param_4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "param_4 = param_4 + 8;" (assignment_expression "param_4 = param_4 + 8" identifier = (binary_expression "param_4 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) })) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(puVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier )))) ;) (expression_statement "puVar3[iVar1] = 0x3b;" (assignment_expression "puVar3[iVar1] = 0x3b" (subscript_expression "puVar3[iVar1]" identifier [ identifier ]) = number_literal) ;) (expression_statement "(puVar3 + iVar1)[1] = 0;" (assignment_expression "(puVar3 + iVar1)[1] = 0" (subscript_expression "(puVar3 + iVar1)[1]" (parenthesized_expression "(puVar3 + iVar1)" ( (binary_expression "puVar3 + iVar1" identifier + identifier) )) [ number_literal ]) = number_literal) ;) (if_statement "if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }" { (expression_statement "iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);" (assignment_expression "iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4)" identifier = (call_expression "FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4)" identifier (argument_list "(param_1 + 0x38,puVar3,0,0,4)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) , identifier , number_literal , number_literal , number_literal )))) ;) }) (else_clause "else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" else (compound_statement "{\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" { (expression_statement "iVar1 = FUN_0002d1c0(param_1,0x80,0);" (assignment_expression "iVar1 = FUN_0002d1c0(param_1,0x80,0)" identifier = (call_expression "FUN_0002d1c0(param_1,0x80,0)" identifier (argument_list "(param_1,0x80,0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar6 = FUN_0002f134(param_1,iVar6,4);" (assignment_expression "iVar6 = FUN_0002f134(param_1,iVar6,4)" identifier = (call_expression "FUN_0002f134(param_1,iVar6,4)" identifier (argument_list "(param_1,iVar6,4)" ( identifier , identifier , number_literal )))) ;) }))) (if_statement "if (iVar6 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_free_0004dc74)(puVar3);" (call_expression "(*(code *)PTR_free_0004dc74)(puVar3)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" ( (pointer_expression "*(code *)PTR_free_0004dc74" * (cast_expression "(code *)PTR_free_0004dc74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;)) (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 ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = 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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT , IDENT , (pointer_expression * (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 = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , LIT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00030434(int param_1,int param_2,int *param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00030434(int param_1,int param_2,int *param_3,int param_4)" (identifier "FUN_00030434") (parameter_list "(int param_1,int param_2,int *param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int *piVar7;\n  undefined *puVar8;\n  \n  if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }\n  iVar6 = *param_3;\n  piVar7 = param_3;\n  if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }\n  iVar1 = *param_3;\n  if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }\n  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);\n  puVar3[iVar1] = 0x3b;\n  (puVar3 + iVar1)[1] = 0;\n  if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }\n  if (iVar6 == 0) {\n    return 0;\n  }\n  (*(code *)PTR_free_0004dc74)(puVar3);\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (if_statement "if (param_3 == (int *)0x0) {\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == (int *)0x0)" (( "(") (binary_expression "param_3 == (int *)0x0" (identifier "param_3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }\n    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);\n    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);\n    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);\n    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);\n    if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);\n      return uVar4;\n    }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340);" (assignment_expression "uVar4 = (*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR___assert_fail_0004da38)\n                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" (parenthesized_expression "(*(code *)PTR___assert_fail_0004da38)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0004da38" (* "*") (cast_expression "(code *)PTR___assert_fail_0004da38" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0004da38"))) () ")")) (argument_list "(PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,\n                         PTR_DAT_0004d8bc + -0x4340)" (( "(") (binary_expression "PTR_DAT_0004d8bc + -0x449c" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x449c")) (, ",") (binary_expression "PTR_DAT_0004d8bc + -0x4760" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x4760")) (, ",") (number_literal "0x317") (, ",") (binary_expression "PTR_DAT_0004d8bc + -0x4340" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x4340")) () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_0004db78)(param_2)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db78" (* "*") (cast_expression "(code *)PTR_strlen_0004db78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db78"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);" (assignment_expression "uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_0004dc00" (* "*") (cast_expression "(code *)PTR_xmalloc_0004dc00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_0004dc00"))) () ")")) (argument_list "(iVar6 + 10)" (( "(") (binary_expression "iVar6 + 10" (identifier "iVar6") (+ "+") (number_literal "10")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);" (call_expression "(*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2)" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" (( "(") (pointer_expression "*(code *)PTR_sprintf_0004daa8" (* "*") (cast_expression "(code *)PTR_sprintf_0004daa8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sprintf_0004daa8"))) () ")")) (argument_list "(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2)" (( "(") (identifier "uVar4") (, ",") (binary_expression "PTR_DAT_0004d8bc + -0x4490" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x4490")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);" (assignment_expression "iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4)" (identifier "iVar6") (= "=") (call_expression "FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4)" (identifier "FUN_0002f08c") (argument_list "(param_1 + 0x38,uVar4,0,0,4)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) (, ",") (identifier "uVar4") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_0004dc74)(uVar4);\n      return 1;\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_0004dc74)(uVar4);" (call_expression "(*(code *)PTR_free_0004dc74)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" (( "(") (pointer_expression "*(code *)PTR_free_0004dc74" (* "*") (cast_expression "(code *)PTR_free_0004dc74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004dc74"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar6 = *param_3;" (assignment_expression "iVar6 = *param_3" (identifier "iVar6") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "piVar7 = param_3;" (assignment_expression "piVar7 = param_3" (identifier "piVar7") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 10;\n    if (iVar6 != 0) goto LAB_000304a4;\n    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);\nLAB_0003062c:\n    puVar3[1] = 0;\n    iVar6 = 0;\n    *puVar3 = 0x65;\n  }" ({ "{") (expression_statement "iVar1 = 10;" (assignment_expression "iVar1 = 10" (identifier "iVar1") (= "=") (number_literal "10")) (; ";")) (if_statement "if (iVar6 != 0) goto LAB_000304a4;" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000304a4;" (goto "goto") (statement_identifier "LAB_000304a4") (; ";"))) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_0004dc00)(10)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_0004dc00" (* "*") (cast_expression "(code *)PTR_xmalloc_0004dc00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_0004dc00"))) () ")")) (argument_list "(10)" (( "(") (number_literal "10") () ")"))))) (; ";")) (labeled_statement "LAB_0003062c:\n    puVar3[1] = 0;" (statement_identifier "LAB_0003062c") (: ":") (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = 0x65;" (assignment_expression "*puVar3 = 0x65" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x65")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);\n    iVar1 = iVar1 + 10;\n    if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }\n    puVar8 = PTR_sprintf_0004daa8;\n    iVar6 = *(int *)(param_1 + 0x3c);\n    puVar5 = PTR_DAT_0004d8bc + -0x4488;\n    *(int *)(param_1 + 0x3c) = iVar6 + 1;\n    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db78" (* "*") (cast_expression "(code *)PTR_strlen_0004db78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db78"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar1 = iVar1 + 10;" (assignment_expression "iVar1 = iVar1 + 10" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 10" (identifier "iVar1") (+ "+") (number_literal "10"))) (; ";")) (if_statement "if (iVar6 == 0) {\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }\n    else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n    }" ({ "{") (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_0004dc00" (* "*") (cast_expression "(code *)PTR_xmalloc_0004dc00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_0004dc00"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))))) (; ";")) (} "}")) (else_clause "else {\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" (else "else") (compound_statement "{\nLAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);\n      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);\n      if (param_2 == 0) goto LAB_0003062c;\n    }" ({ "{") (labeled_statement "LAB_000304a4:\n      do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);" (statement_identifier "LAB_000304a4") (: ":") (do_statement "do {\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      } while (iVar6 != 0);" (do "do") (compound_statement "{\n        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);\n        iVar6 = piVar7[1];\n        iVar1 = iVar1 + iVar2 + 0x14;\n        piVar7 = piVar7 + 1;\n      }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0004db78)(iVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db78" (* "*") (cast_expression "(code *)PTR_strlen_0004db78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db78"))) () ")")) (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" (identifier "iVar6") (= "=") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar1 = iVar1 + iVar2 + 0x14;" (assignment_expression "iVar1 = iVar1 + iVar2 + 0x14" (identifier "iVar1") (= "=") (binary_expression "iVar1 + iVar2 + 0x14" (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";"))) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_0004dc00)(iVar1)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc00)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_0004dc00" (* "*") (cast_expression "(code *)PTR_xmalloc_0004dc00" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_0004dc00"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))))) (; ";")) (if_statement "if (param_2 == 0) goto LAB_0003062c;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003062c;" (goto "goto") (statement_identifier "LAB_0003062c") (; ";"))) (} "}")))) (expression_statement "puVar8 = PTR_sprintf_0004daa8;" (assignment_expression "puVar8 = PTR_sprintf_0004daa8" (identifier "puVar8") (= "=") (identifier "PTR_sprintf_0004daa8")) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x3c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "puVar5 = PTR_DAT_0004d8bc + -0x4488;" (assignment_expression "puVar5 = PTR_DAT_0004d8bc + -0x4488" (identifier "puVar5") (= "=") (binary_expression "PTR_DAT_0004d8bc + -0x4488" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x4488"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x3c) = iVar6 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar6 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);" (call_expression "(*(code *)puVar8)(puVar3,puVar5,param_2,iVar6)" (parenthesized_expression "(*(code *)puVar8)" (( "(") (pointer_expression "*(code *)puVar8" (* "*") (cast_expression "(code *)puVar8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8"))) () ")")) (argument_list "(puVar3,puVar5,param_2,iVar6)" (( "(") (identifier "puVar3") (, ",") (identifier "puVar5") (, ",") (identifier "param_2") (, ",") (identifier "iVar6") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" (identifier "iVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar8 = PTR_DAT_0004d8bc + -0x447c;\n    do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);\n  }" ({ "{") (expression_statement "puVar8 = PTR_DAT_0004d8bc + -0x447c;" (assignment_expression "puVar8 = PTR_DAT_0004d8bc + -0x447c" (identifier "puVar8") (= "=") (binary_expression "PTR_DAT_0004d8bc + -0x447c" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x447c"))) (; ";")) (do_statement "do {\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    } while (iVar1 != 0);" (do "do") (compound_statement "{\n      param_3 = param_3 + 1;\n      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);\n      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));\n      iVar1 = *param_3;\n      param_4 = param_4 + 8;\n    }" ({ "{") (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0004db78)(puVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db78" (* "*") (cast_expression "(code *)PTR_strlen_0004db78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db78"))) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));" (call_expression "(*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4))" (parenthesized_expression "(*(code *)PTR_sprintf_0004daa8)" (( "(") (pointer_expression "*(code *)PTR_sprintf_0004daa8" (* "*") (cast_expression "(code *)PTR_sprintf_0004daa8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sprintf_0004daa8"))) () ")")) (argument_list "(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4))" (( "(") (binary_expression "puVar3 + iVar2" (identifier "puVar3") (+ "+") (identifier "iVar2")) (, ",") (identifier "puVar8") (, ",") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(param_4 + 4)" (* "*") (cast_expression "(undefined4 *)(param_4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4)" (( "(") (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" (identifier "iVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "param_4 = param_4 + 8;" (assignment_expression "param_4 = param_4 + 8" (identifier "param_4") (= "=") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0004db78)(puVar3)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db78" (* "*") (cast_expression "(code *)PTR_strlen_0004db78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db78"))) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")")))) (; ";")) (expression_statement "puVar3[iVar1] = 0x3b;" (assignment_expression "puVar3[iVar1] = 0x3b" (subscript_expression "puVar3[iVar1]" (identifier "puVar3") ([ "[") (identifier "iVar1") (] "]")) (= "=") (number_literal "0x3b")) (; ";")) (expression_statement "(puVar3 + iVar1)[1] = 0;" (assignment_expression "(puVar3 + iVar1)[1] = 0" (subscript_expression "(puVar3 + iVar1)[1]" (parenthesized_expression "(puVar3 + iVar1)" (( "(") (binary_expression "puVar3 + iVar1" (identifier "puVar3") (+ "+") (identifier "iVar1")) () ")")) ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }\n  else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);\n  }" ({ "{") (expression_statement "iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);" (assignment_expression "iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4)" (identifier "iVar6") (= "=") (call_expression "FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4)" (identifier "FUN_0002f08c") (argument_list "(param_1 + 0x38,puVar3,0,0,4)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) (, ",") (identifier "puVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "4") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_0002d1c0(param_1,0x80,0);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar6 = FUN_0002f134(param_1,iVar6,4);\n  }" ({ "{") (expression_statement "iVar1 = FUN_0002d1c0(param_1,0x80,0);" (assignment_expression "iVar1 = FUN_0002d1c0(param_1,0x80,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0002d1c0(param_1,0x80,0)" (identifier "FUN_0002d1c0") (argument_list "(param_1,0x80,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0x80") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_0002f134(param_1,iVar6,4);" (assignment_expression "iVar6 = FUN_0002f134(param_1,iVar6,4)" (identifier "iVar6") (= "=") (call_expression "FUN_0002f134(param_1,iVar6,4)" (identifier "FUN_0002f134") (argument_list "(param_1,iVar6,4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar6") (, ",") (number_literal "4") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar6 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0004dc74)(puVar3);" (call_expression "(*(code *)PTR_free_0004dc74)(puVar3)" (parenthesized_expression "(*(code *)PTR_free_0004dc74)" (( "(") (pointer_expression "*(code *)PTR_free_0004dc74" (* "*") (cast_expression "(code *)PTR_free_0004dc74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004dc74"))) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (number_literal)))))) (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) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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)))) (return_statement (number_literal)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (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: (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (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) (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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 (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: (identifier)) (identifier) (identifier) (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: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (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: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (number_literal) (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (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)))) (return_statement (number_literal)))))

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

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined4 uVar4;
  undefined *puVar5;
  int iVar6;
  int *piVar7;
  undefined *puVar8;
  
  if (param_3 == (int *)0x0) {
    if (param_2 == 0) {
      uVar4 = (*(code *)PTR___assert_fail_0004da38)
                        (PTR_DAT_0004d8bc + -0x449c,PTR_DAT_0004d8bc + -0x4760,0x317,
                         PTR_DAT_0004d8bc + -0x4340);
      return uVar4;
    }
    iVar6 = (*(code *)PTR_strlen_0004db78)(param_2);
    uVar4 = (*(code *)PTR_xmalloc_0004dc00)(iVar6 + 10);
    (*(code *)PTR_sprintf_0004daa8)(uVar4,PTR_DAT_0004d8bc + -0x4490,param_2);
    iVar6 = FUN_0002f08c(param_1 + 0x38,uVar4,0,0,4);
    if (iVar6 != 0) {
      (*(code *)PTR_free_0004dc74)(uVar4);
      return 1;
    }
    return 0;
  }
  iVar6 = *param_3;
  piVar7 = param_3;
  if (param_2 == 0) {
    iVar1 = 10;
    if (iVar6 != 0) goto LAB_000304a4;
    puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(10);
LAB_0003062c:
    puVar3[1] = 0;
    iVar6 = 0;
    *puVar3 = 0x65;
  }
  else {
    iVar1 = (*(code *)PTR_strlen_0004db78)(param_2);
    iVar1 = iVar1 + 10;
    if (iVar6 == 0) {
      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);
    }
    else {
LAB_000304a4:
      do {
        iVar2 = (*(code *)PTR_strlen_0004db78)(iVar6);
        iVar6 = piVar7[1];
        iVar1 = iVar1 + iVar2 + 0x14;
        piVar7 = piVar7 + 1;
      } while (iVar6 != 0);
      puVar3 = (undefined1 *)(*(code *)PTR_xmalloc_0004dc00)(iVar1);
      if (param_2 == 0) goto LAB_0003062c;
    }
    puVar8 = PTR_sprintf_0004daa8;
    iVar6 = *(int *)(param_1 + 0x3c);
    puVar5 = PTR_DAT_0004d8bc + -0x4488;
    *(int *)(param_1 + 0x3c) = iVar6 + 1;
    (*(code *)puVar8)(puVar3,puVar5,param_2,iVar6);
  }
  iVar1 = *param_3;
  if (iVar1 != 0) {
    puVar8 = PTR_DAT_0004d8bc + -0x447c;
    do {
      param_3 = param_3 + 1;
      iVar2 = (*(code *)PTR_strlen_0004db78)(puVar3);
      (*(code *)PTR_sprintf_0004daa8)(puVar3 + iVar2,puVar8,iVar1,*(undefined4 *)(param_4 + 4));
      iVar1 = *param_3;
      param_4 = param_4 + 8;
    } while (iVar1 != 0);
  }
  iVar1 = (*(code *)PTR_strlen_0004db78)(puVar3);
  puVar3[iVar1] = 0x3b;
  (puVar3 + iVar1)[1] = 0;
  if (param_2 == 0) {
    iVar6 = FUN_0002f08c(param_1 + 0x38,puVar3,0,0,4);
  }
  else {
    iVar1 = FUN_0002d1c0(param_1,0x80,0);
    if (iVar1 == 0) {
      return 0;
    }
    iVar6 = FUN_0002f134(param_1,iVar6,4);
  }
  if (iVar6 == 0) {
    return 0;
  }
  (*(code *)PTR_free_0004dc74)(puVar3);
  return 1;
}

