
bfd_boolean stab_typdef(void *p,char *name)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  bfd_boolean bVar6;
  undefined *puVar7;
  char *string;
  char *pcVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  undefined4 uVar11;
  undefined4 uVar12;
  
  pcVar8 = *(char **)(*(int *)((int)p + 0x38) + 8);
  uVar9 = *(undefined4 *)(*(int *)((int)p + 0x38) + 0xc);
  pcVar2 = stab_pop_type((stab_write_handle *)((int)p + 0x38));
  iVar3 = (*(code *)PTR_strlen_0004db88)(name);
  iVar4 = (*(code *)PTR_strlen_0004db88)(pcVar2);
  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);
  puVar1 = PTR_sprintf_0004dab8;
  if ((int)pcVar8 < 1) {
    pcVar8 = *(char **)((int)p + 0x3c);
    puVar7 = PTR_DAT_0004d8cc + -0x4560;
    *(char **)((int)p + 0x3c) = pcVar8 + 1;
    string = pcVar8;
    (*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);
  }
  else {
    string = pcVar2;
    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);
  }
  (*(code *)PTR_free_0004dc84)(pcVar2);
  uVar11 = 0;
  uVar10 = 0;
  uVar12 = uVar5;
  bVar6 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,string);
  if (bVar6 != 0) {
    (*(code *)PTR_free_0004dc84)(uVar5);
    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);
    if (iVar3 != 0) {
      *(char **)(iVar3 + 0x10) = pcVar8;
      *(undefined4 *)(iVar3 + 0x14) = uVar9;
      return 1;
    }
    pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);
    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();
    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);
    non_fatal(pcVar2,uVar5);
    bVar6 = 0;
  }
  return bVar6;
}



int FUN_0002ee7c(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar6;
  int iVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  
  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);
  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);
  uVar2 = FUN_0002dd40(param_1 + 0x38);
  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);
  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);
  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);
  puVar1 = PTR_sprintf_0004dab8;
  if (iVar7 < 1) {
    iVar7 = *(int *)(param_1 + 0x3c);
    puVar6 = PTR_DAT_0004d8cc + -0x4560;
    *(int *)(param_1 + 0x3c) = iVar7 + 1;
    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);
  }
  else {
    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);
  }
  (*(code *)PTR_free_0004dc84)(uVar2);
  uVar10 = 0;
  uVar9 = 0;
  uVar2 = uVar5;
  iVar3 = FUN_0002d1c0(param_1,0x80,0);
  if (iVar3 != 0) {
    (*(code *)PTR_free_0004dc84)(uVar5);
    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);
    if (iVar3 != 0) {
      *(int *)(iVar3 + 0x10) = iVar7;
      *(undefined4 *)(iVar3 + 0x14) = uVar8;
      return 1;
    }
    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);
    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();
    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);
    non_fatal(uVar2,uVar5);
    iVar3 = 0;
  }
  return iVar3;
}


lui gp,0x2
addiu gp,gp,0x6a04
addu gp,gp,t9
addiu sp,sp,-0x48
lw t9,-0x7fc8(gp)
sw s0,0x2c(sp)
or s0,a0,zero
addiu t9,t9,-0x22c0
sw ra,0x44(sp)
sw gp,0x20(sp)
addiu a0,a0,0x38
sw s5,0x40(sp)
sw s4,0x3c(sp)
or s4,a1,zero
sw s3,0x38(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
lw v0,0x38(s0)
lw s3,0x8(v0)
bal 0x0002dd40
_lw s5,0xc(v0)
or a0,s4,zero
lw gp,0x20(sp)
lw t9,-0x7cf8(gp)
jalr t9
_or s1,v0,zero
or a0,s1,zero
lw gp,0x20(sp)
lw t9,-0x7cf8(gp)
jalr t9
_or s2,v0,zero
lw gp,0x20(sp)
addu v0,s2,v0
lw t9,-0x7c70(gp)
jalr t9
_addiu a0,v0,0x14
lw gp,0x20(sp)
blez s3,0x0002f004
_or s2,v0,zero
lw a1,-0x7fb4(gp)
or a3,s1,zero
lw t9,-0x7dc8(gp)
or a2,s4,zero
or a0,v0,zero
jalr t9
_addiu a1,a1,-0x4568
lw gp,0x20(sp)
lw t9,-0x7bfc(gp)
jalr t9
_or a0,s1,zero
or v1,zero,zero
lw gp,0x20(sp)
or v0,zero,zero
or a2,zero,zero
sw v1,0x14(sp)
li a1,0x80
sw v0,0x10(sp)
sw s2,0x18(sp)
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x2e40
bal 0x0002d1c0
_or a0,s0,zero
bne v0,zero,0x0002efa0
_lw gp,0x20(sp)
lw ra,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,0x48
lw t9,-0x7bfc(gp)
jalr t9
_or a0,s2,zero
or a3,zero,zero
lw gp,0x20(sp)
li a2,0x1
addiu a0,s0,0xe4
lw t9,-0x7cdc(gp)
jalr t9
_or a1,s4,zero
lw gp,0x20(sp)
beq v0,zero,0x0002f038
_or v1,v0,zero
lw ra,0x44(sp)
li v0,0x1
lw s4,0x3c(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
sw s3,0x10(v1)
sw s5,0x14(v1)
lw s3,0x38(sp)
lw s5,0x40(sp)
jr ra
_addiu sp,sp,0x48
lw s3,0x3c(s0)
or a0,v0,zero
lw a1,-0x7fb4(gp)
or a2,s4,zero
lw t9,-0x7dc8(gp)
addiu v0,s3,0x1
sw s1,0x10(sp)
addiu a1,a1,-0x4560
sw v0,0x3c(s0)
jalr t9
_or a3,s3,zero
b 0x0002ef38
_lw gp,0x20(sp)
lw a1,-0x7fb4(gp)
li a2,0x5
lw t9,-0x7c38(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,-0x46fc
lw gp,0x20(sp)
lw t9,-0x7c68(gp)
jalr t9
_or s0,v0,zero
lw gp,0x20(sp)
lw t9,-0x7dd0(gp)
jalr t9
_or a0,v0,zero
or a0,s0,zero
lw gp,0x20(sp)
lw t9,-0x7fb0(gp)
bal 0x00031d98
_or a1,v0,zero
b 0x0002ef7c
_or v0,zero,zero
(translation_unit "int FUN_0002ee7c(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0002ee7c(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0002ee7c(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (expression_statement "iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);" (assignment_expression "iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" ( (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0xc" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_0002dd40(param_1 + 0x38);" (assignment_expression "uVar2 = FUN_0002dd40(param_1 + 0x38)" identifier = (call_expression "FUN_0002dd40(param_1 + 0x38)" identifier (argument_list "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0004db88)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db88)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" ( (pointer_expression "*(code *)PTR_strlen_0004db88" * (cast_expression "(code *)PTR_strlen_0004db88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db88)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" ( (pointer_expression "*(code *)PTR_strlen_0004db88" * (cast_expression "(code *)PTR_strlen_0004db88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);" (assignment_expression "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" identifier = (call_expression "(*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc10)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc10" * (cast_expression "(code *)PTR_xmalloc_0004dc10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar4 + 0x14)" ( (binary_expression "iVar3 + iVar4 + 0x14" (binary_expression "iVar3 + iVar4" identifier + identifier) + number_literal) )))) ;) (expression_statement "puVar1 = PTR_sprintf_0004dab8;" (assignment_expression "puVar1 = PTR_sprintf_0004dab8" identifier = identifier) ;) (if_statement "if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }" { (expression_statement "iVar7 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar7 = *(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 "puVar6 = PTR_DAT_0004d8cc + -0x4560;" (assignment_expression "puVar6 = PTR_DAT_0004d8cc + -0x4560" identifier = (binary_expression "PTR_DAT_0004d8cc + -0x4560" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar7 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar7 + 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 "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);" (call_expression "(*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,puVar6,param_2,iVar7,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" else (compound_statement "{\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" { (expression_statement "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);" (call_expression "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_sprintf_0004dab8)" ( (pointer_expression "*(code *)PTR_sprintf_0004dab8" * (cast_expression "(code *)PTR_sprintf_0004dab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2)" ( identifier , (binary_expression "PTR_DAT_0004d8cc + -0x4568" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR_free_0004dc84)(uVar2);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" ( (pointer_expression "*(code *)PTR_free_0004dc84" * (cast_expression "(code *)PTR_free_0004dc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) (expression_statement "iVar3 = FUN_0002d1c0(param_1,0x80,0);" (assignment_expression "iVar3 = 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 (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }" { (expression_statement "(*(code *)PTR_free_0004dc84)(uVar5);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar5)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" ( (pointer_expression "*(code *)PTR_free_0004dc84" * (cast_expression "(code *)PTR_free_0004dc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" identifier = (call_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" (parenthesized_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)" ( (pointer_expression "*(code *)PTR_bfd_hash_lookup_0004dba4" * (cast_expression "(code *)PTR_bfd_hash_lookup_0004dba4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" ( (binary_expression "param_1 + 0xe4" identifier + number_literal) , identifier , number_literal , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }" { (expression_statement "*(int *)(iVar3 + 0x10) = iVar7;" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar7" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = uVar8;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar8" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0004dc48)" ( (pointer_expression "*(code *)PTR_dcgettext_0004dc48" * (cast_expression "(code *)PTR_dcgettext_0004dc48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0004d8cc + -0x46fc,5)" ( number_literal , (binary_expression "PTR_DAT_0004d8cc + -0x46fc" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();" (assignment_expression "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)()" identifier = (call_expression "(*(code *)PTR_bfd_get_error_0004dc18)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_0004dc18)" ( (pointer_expression "*(code *)PTR_bfd_get_error_0004dc18" * (cast_expression "(code *)PTR_bfd_get_error_0004dc18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" identifier = (call_expression "(*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" (parenthesized_expression "(*(code *)PTR_bfd_errmsg_0004dab0)" ( (pointer_expression "*(code *)PTR_bfd_errmsg_0004dab0" * (cast_expression "(code *)PTR_bfd_errmsg_0004dab0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "non_fatal(uVar2,uVar5);" (call_expression "non_fatal(uVar2,uVar5)" identifier (argument_list "(uVar2,uVar5)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "bfd_boolean stab_typdef(void *p,char *name)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bfd_boolean bVar6;\n  undefined *puVar7;\n  char *string;\n  char *pcVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  \n  pcVar8 = *(char **)(*(int *)((int)p + 0x38) + 8);\n  uVar9 = *(undefined4 *)(*(int *)((int)p + 0x38) + 0xc);\n  pcVar2 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  iVar3 = (*(code *)PTR_strlen_0004db88)(name);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(pcVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if ((int)pcVar8 < 1) {\n    pcVar8 = *(char **)((int)p + 0x3c);\n    puVar7 = PTR_DAT_0004d8cc + -0x4560;\n    *(char **)((int)p + 0x3c) = pcVar8 + 1;\n    string = pcVar8;\n    (*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);\n  }\n  else {\n    string = pcVar2;\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);\n  }\n  (*(code *)PTR_free_0004dc84)(pcVar2);\n  uVar11 = 0;\n  uVar10 = 0;\n  uVar12 = uVar5;\n  bVar6 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,string);\n  if (bVar6 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);\n    if (iVar3 != 0) {\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(pcVar2,uVar5);\n    bVar6 = 0;\n  }\n  return bVar6;\n}\n\n" (function_definition "bfd_boolean stab_typdef(void *p,char *name)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bfd_boolean bVar6;\n  undefined *puVar7;\n  char *string;\n  char *pcVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  \n  pcVar8 = *(char **)(*(int *)((int)p + 0x38) + 8);\n  uVar9 = *(undefined4 *)(*(int *)((int)p + 0x38) + 0xc);\n  pcVar2 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  iVar3 = (*(code *)PTR_strlen_0004db88)(name);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(pcVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if ((int)pcVar8 < 1) {\n    pcVar8 = *(char **)((int)p + 0x3c);\n    puVar7 = PTR_DAT_0004d8cc + -0x4560;\n    *(char **)((int)p + 0x3c) = pcVar8 + 1;\n    string = pcVar8;\n    (*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);\n  }\n  else {\n    string = pcVar2;\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);\n  }\n  (*(code *)PTR_free_0004dc84)(pcVar2);\n  uVar11 = 0;\n  uVar10 = 0;\n  uVar12 = uVar5;\n  bVar6 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,string);\n  if (bVar6 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);\n    if (iVar3 != 0) {\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(pcVar2,uVar5);\n    bVar6 = 0;\n  }\n  return bVar6;\n}" type_identifier (function_declarator "stab_typdef(void *p,char *name)" identifier (parameter_list "(void *p,char *name)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  bfd_boolean bVar6;\n  undefined *puVar7;\n  char *string;\n  char *pcVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  \n  pcVar8 = *(char **)(*(int *)((int)p + 0x38) + 8);\n  uVar9 = *(undefined4 *)(*(int *)((int)p + 0x38) + 0xc);\n  pcVar2 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  iVar3 = (*(code *)PTR_strlen_0004db88)(name);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(pcVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if ((int)pcVar8 < 1) {\n    pcVar8 = *(char **)((int)p + 0x3c);\n    puVar7 = PTR_DAT_0004d8cc + -0x4560;\n    *(char **)((int)p + 0x3c) = pcVar8 + 1;\n    string = pcVar8;\n    (*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);\n  }\n  else {\n    string = pcVar2;\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);\n  }\n  (*(code *)PTR_free_0004dc84)(pcVar2);\n  uVar11 = 0;\n  uVar10 = 0;\n  uVar12 = uVar5;\n  bVar6 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,string);\n  if (bVar6 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);\n    if (iVar3 != 0) {\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(pcVar2,uVar5);\n    bVar6 = 0;\n  }\n  return bVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "bfd_boolean bVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (expression_statement "pcVar8 = *(char **)(*(int *)((int)p + 0x38) + 8);" (assignment_expression "pcVar8 = *(char **)(*(int *)((int)p + 0x38) + 8)" identifier = (pointer_expression "*(char **)(*(int *)((int)p + 0x38) + 8)" * (cast_expression "(char **)(*(int *)((int)p + 0x38) + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 8)" ( (binary_expression "*(int *)((int)p + 0x38) + 8" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (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) )))) + number_literal) ))))) ;) (expression_statement "uVar9 = *(undefined4 *)(*(int *)((int)p + 0x38) + 0xc);" (assignment_expression "uVar9 = *(undefined4 *)(*(int *)((int)p + 0x38) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)((int)p + 0x38) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)((int)p + 0x38) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 0xc)" ( (binary_expression "*(int *)((int)p + 0x38) + 0xc" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (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) )))) + number_literal) ))))) ;) (expression_statement "pcVar2 = stab_pop_type((stab_write_handle *)((int)p + 0x38));" (assignment_expression "pcVar2 = stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier = (call_expression "stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier (argument_list "((stab_write_handle *)((int)p + 0x38))" ( (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) ))) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0004db88)(name);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0004db88)(name)" identifier = (call_expression "(*(code *)PTR_strlen_0004db88)(name)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" ( (pointer_expression "*(code *)PTR_strlen_0004db88" * (cast_expression "(code *)PTR_strlen_0004db88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_0004db88)(pcVar2);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004db88)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db88)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" ( (pointer_expression "*(code *)PTR_strlen_0004db88" * (cast_expression "(code *)PTR_strlen_0004db88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);" (assignment_expression "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" identifier = (call_expression "(*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc10)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc10" * (cast_expression "(code *)PTR_xmalloc_0004dc10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar4 + 0x14)" ( (binary_expression "iVar3 + iVar4 + 0x14" (binary_expression "iVar3 + iVar4" identifier + identifier) + number_literal) )))) ;) (expression_statement "puVar1 = PTR_sprintf_0004dab8;" (assignment_expression "puVar1 = PTR_sprintf_0004dab8" identifier = identifier) ;) (if_statement "if ((int)pcVar8 < 1) {\n    pcVar8 = *(char **)((int)p + 0x3c);\n    puVar7 = PTR_DAT_0004d8cc + -0x4560;\n    *(char **)((int)p + 0x3c) = pcVar8 + 1;\n    string = pcVar8;\n    (*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);\n  }\n  else {\n    string = pcVar2;\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);\n  }" if (parenthesized_expression "((int)pcVar8 < 1)" ( (binary_expression "(int)pcVar8 < 1" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    pcVar8 = *(char **)((int)p + 0x3c);\n    puVar7 = PTR_DAT_0004d8cc + -0x4560;\n    *(char **)((int)p + 0x3c) = pcVar8 + 1;\n    string = pcVar8;\n    (*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);\n  }" { (expression_statement "pcVar8 = *(char **)((int)p + 0x3c);" (assignment_expression "pcVar8 = *(char **)((int)p + 0x3c)" identifier = (pointer_expression "*(char **)((int)p + 0x3c)" * (cast_expression "(char **)((int)p + 0x3c)" ( (type_descriptor "char **" primitive_type (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 "puVar7 = PTR_DAT_0004d8cc + -0x4560;" (assignment_expression "puVar7 = PTR_DAT_0004d8cc + -0x4560" identifier = (binary_expression "PTR_DAT_0004d8cc + -0x4560" identifier + number_literal)) ;) (expression_statement "*(char **)((int)p + 0x3c) = pcVar8 + 1;" (assignment_expression "*(char **)((int)p + 0x3c) = pcVar8 + 1" (pointer_expression "*(char **)((int)p + 0x3c)" * (cast_expression "(char **)((int)p + 0x3c)" ( (type_descriptor "char **" primitive_type (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) )))) = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (expression_statement "string = pcVar8;" (assignment_expression "string = pcVar8" identifier = identifier) ;) (expression_statement "(*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2);" (call_expression "(*(code *)puVar1)(uVar5,puVar7,name,pcVar8,pcVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,puVar7,name,pcVar8,pcVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    string = pcVar2;\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);\n  }" else (compound_statement "{\n    string = pcVar2;\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);\n  }" { (expression_statement "string = pcVar2;" (assignment_expression "string = pcVar2" identifier = identifier) ;) (expression_statement "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name);" (call_expression "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,name)" (parenthesized_expression "(*(code *)PTR_sprintf_0004dab8)" ( (pointer_expression "*(code *)PTR_sprintf_0004dab8" * (cast_expression "(code *)PTR_sprintf_0004dab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,PTR_DAT_0004d8cc + -0x4568,name)" ( identifier , (binary_expression "PTR_DAT_0004d8cc + -0x4568" identifier + number_literal) , identifier ))) ;) }))) (expression_statement "(*(code *)PTR_free_0004dc84)(pcVar2);" (call_expression "(*(code *)PTR_free_0004dc84)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" ( (pointer_expression "*(code *)PTR_free_0004dc84" * (cast_expression "(code *)PTR_free_0004dc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar12 = uVar5;" (assignment_expression "uVar12 = uVar5" identifier = identifier) ;) (expression_statement "bVar6 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,string);" (assignment_expression "bVar6 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,string)" identifier = (call_expression "stab_write_symbol((stab_write_handle *)p,0x80,0,0,string)" identifier (argument_list "((stab_write_handle *)p,0x80,0,0,string)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (bVar6 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);\n    if (iVar3 != 0) {\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(pcVar2,uVar5);\n    bVar6 = 0;\n  }" if (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);\n    if (iVar3 != 0) {\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(pcVar2,uVar5);\n    bVar6 = 0;\n  }" { (expression_statement "(*(code *)PTR_free_0004dc84)(uVar5);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar5)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" ( (pointer_expression "*(code *)PTR_free_0004dc84" * (cast_expression "(code *)PTR_free_0004dc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12);" (assignment_expression "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12)" identifier = (call_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12)" (parenthesized_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)" ( (pointer_expression "*(code *)PTR_bfd_hash_lookup_0004dba4" * (cast_expression "(code *)PTR_bfd_hash_lookup_0004dba4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)p + 0xe4,name,1,0,uVar10,uVar11,uVar12)" ( (binary_expression "(int)p + 0xe4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier , number_literal , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(char **)(iVar3 + 0x10) = pcVar8;\n      *(undefined4 *)(iVar3 + 0x14) = uVar9;\n      return 1;\n    }" { (expression_statement "*(char **)(iVar3 + 0x10) = pcVar8;" (assignment_expression "*(char **)(iVar3 + 0x10) = pcVar8" (pointer_expression "*(char **)(iVar3 + 0x10)" * (cast_expression "(char **)(iVar3 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = uVar9;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar9" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0004dc48)" ( (pointer_expression "*(code *)PTR_dcgettext_0004dc48" * (cast_expression "(code *)PTR_dcgettext_0004dc48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0004d8cc + -0x46fc,5)" ( number_literal , (binary_expression "PTR_DAT_0004d8cc + -0x46fc" identifier + number_literal) , number_literal ))))) ;) (expression_statement "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();" (assignment_expression "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)()" identifier = (call_expression "(*(code *)PTR_bfd_get_error_0004dc18)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_0004dc18)" ( (pointer_expression "*(code *)PTR_bfd_get_error_0004dc18" * (cast_expression "(code *)PTR_bfd_get_error_0004dc18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" identifier = (call_expression "(*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" (parenthesized_expression "(*(code *)PTR_bfd_errmsg_0004dab0)" ( (pointer_expression "*(code *)PTR_bfd_errmsg_0004dab0" * (cast_expression "(code *)PTR_bfd_errmsg_0004dab0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "non_fatal(pcVar2,uVar5);" (call_expression "non_fatal(pcVar2,uVar5)" identifier (argument_list "(pcVar2,uVar5)" ( identifier , identifier ))) ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) })) (return_statement "return bVar6;" return identifier ;) })))
(translation_unit "int FUN_0002ee7c(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0002ee7c(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0002ee7c(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (expression_statement "iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);" (assignment_expression "iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" ( (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0xc" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_0002dd40(param_1 + 0x38);" (assignment_expression "uVar2 = FUN_0002dd40(param_1 + 0x38)" identifier = (call_expression "FUN_0002dd40(param_1 + 0x38)" identifier (argument_list "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0004db88)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db88)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" ( (pointer_expression "*(code *)PTR_strlen_0004db88" * (cast_expression "(code *)PTR_strlen_0004db88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db88)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" ( (pointer_expression "*(code *)PTR_strlen_0004db88" * (cast_expression "(code *)PTR_strlen_0004db88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);" (assignment_expression "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" identifier = (call_expression "(*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc10)" ( (pointer_expression "*(code *)PTR_xmalloc_0004dc10" * (cast_expression "(code *)PTR_xmalloc_0004dc10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar4 + 0x14)" ( (binary_expression "iVar3 + iVar4 + 0x14" (binary_expression "iVar3 + iVar4" identifier + identifier) + number_literal) )))) ;) (expression_statement "puVar1 = PTR_sprintf_0004dab8;" (assignment_expression "puVar1 = PTR_sprintf_0004dab8" identifier = identifier) ;) (if_statement "if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }" { (expression_statement "iVar7 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar7 = *(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 "puVar6 = PTR_DAT_0004d8cc + -0x4560;" (assignment_expression "puVar6 = PTR_DAT_0004d8cc + -0x4560" identifier = (binary_expression "PTR_DAT_0004d8cc + -0x4560" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar7 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar7 + 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 "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);" (call_expression "(*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,puVar6,param_2,iVar7,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" else (compound_statement "{\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" { (expression_statement "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);" (call_expression "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_sprintf_0004dab8)" ( (pointer_expression "*(code *)PTR_sprintf_0004dab8" * (cast_expression "(code *)PTR_sprintf_0004dab8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2)" ( identifier , (binary_expression "PTR_DAT_0004d8cc + -0x4568" identifier + number_literal) , identifier , identifier ))) ;) }))) (expression_statement "(*(code *)PTR_free_0004dc84)(uVar2);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" ( (pointer_expression "*(code *)PTR_free_0004dc84" * (cast_expression "(code *)PTR_free_0004dc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) (expression_statement "iVar3 = FUN_0002d1c0(param_1,0x80,0);" (assignment_expression "iVar3 = 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 (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }" { (expression_statement "(*(code *)PTR_free_0004dc84)(uVar5);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar5)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" ( (pointer_expression "*(code *)PTR_free_0004dc84" * (cast_expression "(code *)PTR_free_0004dc84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" identifier = (call_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" (parenthesized_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)" ( (pointer_expression "*(code *)PTR_bfd_hash_lookup_0004dba4" * (cast_expression "(code *)PTR_bfd_hash_lookup_0004dba4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" ( (binary_expression "param_1 + 0xe4" identifier + number_literal) , identifier , number_literal , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }" { (expression_statement "*(int *)(iVar3 + 0x10) = iVar7;" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar7" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = uVar8;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar8" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0004dc48)" ( (pointer_expression "*(code *)PTR_dcgettext_0004dc48" * (cast_expression "(code *)PTR_dcgettext_0004dc48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_0004d8cc + -0x46fc,5)" ( number_literal , (binary_expression "PTR_DAT_0004d8cc + -0x46fc" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();" (assignment_expression "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)()" identifier = (call_expression "(*(code *)PTR_bfd_get_error_0004dc18)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_0004dc18)" ( (pointer_expression "*(code *)PTR_bfd_get_error_0004dc18" * (cast_expression "(code *)PTR_bfd_get_error_0004dc18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" identifier = (call_expression "(*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" (parenthesized_expression "(*(code *)PTR_bfd_errmsg_0004dab0)" ( (pointer_expression "*(code *)PTR_bfd_errmsg_0004dab0" * (cast_expression "(code *)PTR_bfd_errmsg_0004dab0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "non_fatal(uVar2,uVar5);" (call_expression "non_fatal(uVar2,uVar5)" identifier (argument_list "(uVar2,uVar5)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 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 (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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 , IDENT ))) ;) }) (else_clause else (compound_statement { (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 , IDENT ))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 ))) ;) (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) , IDENT , LIT , LIT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (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 IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0002ee7c(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_0002ee7c(int param_1,undefined4 param_2)" (identifier "FUN_0002ee7c") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  \n  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);\n  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);\n  uVar2 = FUN_0002dd40(param_1 + 0x38);\n  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);\n  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);\n  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);\n  puVar1 = PTR_sprintf_0004dab8;\n  if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }\n  (*(code *)PTR_free_0004dc84)(uVar2);\n  uVar10 = 0;\n  uVar9 = 0;\n  uVar2 = uVar5;\n  iVar3 = FUN_0002d1c0(param_1,0x80,0);\n  if (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }\n  return iVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (expression_statement "iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);" (assignment_expression "iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 0xc" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_0002dd40(param_1 + 0x38);" (assignment_expression "uVar2 = FUN_0002dd40(param_1 + 0x38)" (identifier "uVar2") (= "=") (call_expression "FUN_0002dd40(param_1 + 0x38)" (identifier "FUN_0002dd40") (argument_list "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0004db88)(param_2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0004db88)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db88" (* "*") (cast_expression "(code *)PTR_strlen_0004db88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db88"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_0004db88)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db88)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db88" (* "*") (cast_expression "(code *)PTR_strlen_0004db88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db88"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);" (assignment_expression "uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14)" (parenthesized_expression "(*(code *)PTR_xmalloc_0004dc10)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_0004dc10" (* "*") (cast_expression "(code *)PTR_xmalloc_0004dc10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_0004dc10"))) () ")")) (argument_list "(iVar3 + iVar4 + 0x14)" (( "(") (binary_expression "iVar3 + iVar4 + 0x14" (binary_expression "iVar3 + iVar4" (identifier "iVar3") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "puVar1 = PTR_sprintf_0004dab8;" (assignment_expression "puVar1 = PTR_sprintf_0004dab8" (identifier "puVar1") (= "=") (identifier "PTR_sprintf_0004dab8")) (; ";")) (if_statement "if (iVar7 < 1) {\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }\n  else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" (if "if") (parenthesized_expression "(iVar7 < 1)" (( "(") (binary_expression "iVar7 < 1" (identifier "iVar7") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar7 = *(int *)(param_1 + 0x3c);\n    puVar6 = PTR_DAT_0004d8cc + -0x4560;\n    *(int *)(param_1 + 0x3c) = iVar7 + 1;\n    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);\n  }" ({ "{") (expression_statement "iVar7 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar7 = *(int *)(param_1 + 0x3c)" (identifier "iVar7") (= "=") (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 "puVar6 = PTR_DAT_0004d8cc + -0x4560;" (assignment_expression "puVar6 = PTR_DAT_0004d8cc + -0x4560" (identifier "puVar6") (= "=") (binary_expression "PTR_DAT_0004d8cc + -0x4560" (identifier "PTR_DAT_0004d8cc") (+ "+") (number_literal "-0x4560"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x3c) = iVar7 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar7 + 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 "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);" (call_expression "(*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(uVar5,puVar6,param_2,iVar7,uVar2)" (( "(") (identifier "uVar5") (, ",") (identifier "puVar6") (, ",") (identifier "param_2") (, ",") (identifier "iVar7") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" (else "else") (compound_statement "{\n    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);\n  }" ({ "{") (expression_statement "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);" (call_expression "(*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2)" (parenthesized_expression "(*(code *)PTR_sprintf_0004dab8)" (( "(") (pointer_expression "*(code *)PTR_sprintf_0004dab8" (* "*") (cast_expression "(code *)PTR_sprintf_0004dab8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sprintf_0004dab8"))) () ")")) (argument_list "(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2)" (( "(") (identifier "uVar5") (, ",") (binary_expression "PTR_DAT_0004d8cc + -0x4568" (identifier "PTR_DAT_0004d8cc") (+ "+") (number_literal "-0x4568")) (, ",") (identifier "param_2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_free_0004dc84)(uVar2);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" (( "(") (pointer_expression "*(code *)PTR_free_0004dc84" (* "*") (cast_expression "(code *)PTR_free_0004dc84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004dc84"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" (identifier "uVar2") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar3 = FUN_0002d1c0(param_1,0x80,0);" (assignment_expression "iVar3 = FUN_0002d1c0(param_1,0x80,0)" (identifier "iVar3") (= "=") (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 (iVar3 != 0) {\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_free_0004dc84)(uVar5);\n    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);\n    if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }\n    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);\n    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();\n    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);\n    non_fatal(uVar2,uVar5);\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_0004dc84)(uVar5);" (call_expression "(*(code *)PTR_free_0004dc84)(uVar5)" (parenthesized_expression "(*(code *)PTR_free_0004dc84)" (( "(") (pointer_expression "*(code *)PTR_free_0004dc84" (* "*") (cast_expression "(code *)PTR_free_0004dc84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0004dc84"))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" (parenthesized_expression "(*(code *)PTR_bfd_hash_lookup_0004dba4)" (( "(") (pointer_expression "*(code *)PTR_bfd_hash_lookup_0004dba4" (* "*") (cast_expression "(code *)PTR_bfd_hash_lookup_0004dba4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_hash_lookup_0004dba4"))) () ")")) (argument_list "(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2)" (( "(") (binary_expression "param_1 + 0xe4" (identifier "param_1") (+ "+") (number_literal "0xe4")) (, ",") (identifier "param_2") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "uVar9") (, ",") (identifier "uVar10") (, ",") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(iVar3 + 0x10) = iVar7;\n      *(undefined4 *)(iVar3 + 0x14) = uVar8;\n      return 1;\n    }" ({ "{") (expression_statement "*(int *)(iVar3 + 0x10) = iVar7;" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar7" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x14) = uVar8;" (assignment_expression "*(undefined4 *)(iVar3 + 0x14) = uVar8" (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar8")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_0004dc48)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_0004dc48" (* "*") (cast_expression "(code *)PTR_dcgettext_0004dc48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_0004dc48"))) () ")")) (argument_list "(0,PTR_DAT_0004d8cc + -0x46fc,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_DAT_0004d8cc + -0x46fc" (identifier "PTR_DAT_0004d8cc") (+ "+") (number_literal "-0x46fc")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();" (assignment_expression "uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)()" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_bfd_get_error_0004dc18)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_0004dc18)" (( "(") (pointer_expression "*(code *)PTR_bfd_get_error_0004dc18" (* "*") (cast_expression "(code *)PTR_bfd_get_error_0004dc18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_get_error_0004dc18"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);" (assignment_expression "uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_bfd_errmsg_0004dab0)(uVar5)" (parenthesized_expression "(*(code *)PTR_bfd_errmsg_0004dab0)" (( "(") (pointer_expression "*(code *)PTR_bfd_errmsg_0004dab0" (* "*") (cast_expression "(code *)PTR_bfd_errmsg_0004dab0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_errmsg_0004dab0"))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "non_fatal(uVar2,uVar5);" (call_expression "non_fatal(uVar2,uVar5)" (identifier "non_fatal") (argument_list "(uVar2,uVar5)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (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: (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) (identifier))))) alternative: (else_clause (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) (binary_expression left: (identifier) right: (number_literal)) (identifier) (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 (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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)) (identifier) (number_literal) (number_literal) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (return_statement (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (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)))) (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: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar6;
  int iVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  
  iVar7 = *(int *)(*(int *)(param_1 + 0x38) + 8);
  uVar8 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 0xc);
  uVar2 = FUN_0002dd40(param_1 + 0x38);
  iVar3 = (*(code *)PTR_strlen_0004db88)(param_2);
  iVar4 = (*(code *)PTR_strlen_0004db88)(uVar2);
  uVar5 = (*(code *)PTR_xmalloc_0004dc10)(iVar3 + iVar4 + 0x14);
  puVar1 = PTR_sprintf_0004dab8;
  if (iVar7 < 1) {
    iVar7 = *(int *)(param_1 + 0x3c);
    puVar6 = PTR_DAT_0004d8cc + -0x4560;
    *(int *)(param_1 + 0x3c) = iVar7 + 1;
    (*(code *)puVar1)(uVar5,puVar6,param_2,iVar7,uVar2);
  }
  else {
    (*(code *)PTR_sprintf_0004dab8)(uVar5,PTR_DAT_0004d8cc + -0x4568,param_2,uVar2);
  }
  (*(code *)PTR_free_0004dc84)(uVar2);
  uVar10 = 0;
  uVar9 = 0;
  uVar2 = uVar5;
  iVar3 = FUN_0002d1c0(param_1,0x80,0);
  if (iVar3 != 0) {
    (*(code *)PTR_free_0004dc84)(uVar5);
    iVar3 = (*(code *)PTR_bfd_hash_lookup_0004dba4)(param_1 + 0xe4,param_2,1,0,uVar9,uVar10,uVar2);
    if (iVar3 != 0) {
      *(int *)(iVar3 + 0x10) = iVar7;
      *(undefined4 *)(iVar3 + 0x14) = uVar8;
      return 1;
    }
    uVar2 = (*(code *)PTR_dcgettext_0004dc48)(0,PTR_DAT_0004d8cc + -0x46fc,5);
    uVar5 = (*(code *)PTR_bfd_get_error_0004dc18)();
    uVar5 = (*(code *)PTR_bfd_errmsg_0004dab0)(uVar5);
    non_fatal(uVar2,uVar5);
    iVar3 = 0;
  }
  return iVar3;
}

