
bfd_boolean stab_empty_type(void *p)

{
  undefined *puVar1;
  bfd_boolean bVar2;
  stab_write_handle *info;
  undefined *puVar3;
  int tindex;
  char buf [40];
  
  puVar1 = PTR_sprintf_0004daa8;
  if (*(int *)((int)p + 0x40) != 0) {
    bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);
    return bVar2;
  }
  tindex = *(int *)((int)p + 0x3c);
  puVar3 = PTR_DAT_0004d8bc + -0x4458;
  *(int *)((int)p + 0x3c) = tindex + 1;
  (*(code *)puVar1)(buf,puVar3,tindex,tindex);
  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0);
  return bVar2;
}



void FUN_000308b0(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined1 auStack_38 [40];
  
  puVar1 = PTR_sprintf_0004daa8;
  if (*(int *)(param_1 + 0x40) != 0) {
    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);
    return;
  }
  iVar3 = *(int *)(param_1 + 0x3c);
  puVar2 = PTR_DAT_0004d8bc + -0x4458;
  *(int *)(param_1 + 0x3c) = iVar3 + 1;
  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);
  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);
  return;
}


lui gp,0x2
addiu gp,gp,0x4fc0
addu gp,gp,t9
addiu sp,sp,-0x58
lw a1,0x40(a0)
sw gp,0x18(sp)
sw ra,0x54(sp)
sw s2,0x50(sp)
sw s1,0x4c(sp)
beq a1,zero,0x00030904
_sw s0,0x48(sp)
lw t9,-0x7fc8(gp)
addiu t9,t9,-0xecc
bal 0x0002f134
_or a2,zero,zero
lw ra,0x54(sp)
lw s2,0x50(sp)
lw s1,0x4c(sp)
lw s0,0x48(sp)
jr ra
_addiu sp,sp,0x58
lw s2,0x3c(a0)
or s0,a0,zero
lw a1,-0x7fb4(gp)
addiu s1,sp,0x20
lw t9,-0x7dc8(gp)
addiu v0,s2,0x1
addiu a1,a1,-0x4458
or a0,s1,zero
sw v0,0x3c(s0)
or a3,s2,zero
jalr t9
_or a2,s2,zero
addiu a0,s0,0x38
lw gp,0x18(sp)
or a3,zero,zero
or a2,s2,zero
sw zero,0x10(sp)
lw t9,-0x7fc8(gp)
addiu t9,t9,-0xf74
bal 0x0002f08c
_or a1,s1,zero
lw ra,0x54(sp)
lw s2,0x50(sp)
lw s1,0x4c(sp)
lw s0,0x48(sp)
jr ra
_addiu sp,sp,0x58
(translation_unit "void FUN_000308b0(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}\n\n" (function_definition "void FUN_000308b0(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}" primitive_type (function_declarator "FUN_000308b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 auStack_38 [40];" type_identifier (array_declarator "auStack_38 [40]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR_sprintf_0004daa8;" (assignment_expression "puVar1 = PTR_sprintf_0004daa8" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x40) != 0)" ( (binary_expression "*(int *)(param_1 + 0x40) != 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }" { (expression_statement "FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);" (call_expression "FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0)" identifier (argument_list "(param_1,*(int *)(param_1 + 0x40),0)" ( identifier , (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar3 = *(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 "puVar2 = PTR_DAT_0004d8bc + -0x4458;" (assignment_expression "puVar2 = PTR_DAT_0004d8bc + -0x4458" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x4458" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar3 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar3 + 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 "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);" (call_expression "(*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_38,puVar2,iVar3,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);" (call_expression "FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0)" identifier (argument_list "(param_1 + 0x38,auStack_38,iVar3,0,0)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) , identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "bfd_boolean stab_empty_type(void *p)\n\n{\n  undefined *puVar1;\n  bfd_boolean bVar2;\n  stab_write_handle *info;\n  undefined *puVar3;\n  int tindex;\n  char buf [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)((int)p + 0x40) != 0) {\n    bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);\n    return bVar2;\n  }\n  tindex = *(int *)((int)p + 0x3c);\n  puVar3 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)((int)p + 0x3c) = tindex + 1;\n  (*(code *)puVar1)(buf,puVar3,tindex,tindex);\n  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0);\n  return bVar2;\n}\n\n" (function_definition "bfd_boolean stab_empty_type(void *p)\n\n{\n  undefined *puVar1;\n  bfd_boolean bVar2;\n  stab_write_handle *info;\n  undefined *puVar3;\n  int tindex;\n  char buf [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)((int)p + 0x40) != 0) {\n    bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);\n    return bVar2;\n  }\n  tindex = *(int *)((int)p + 0x3c);\n  puVar3 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)((int)p + 0x3c) = tindex + 1;\n  (*(code *)puVar1)(buf,puVar3,tindex,tindex);\n  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0);\n  return bVar2;\n}" type_identifier (function_declarator "stab_empty_type(void *p)" identifier (parameter_list "(void *p)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  bfd_boolean bVar2;\n  stab_write_handle *info;\n  undefined *puVar3;\n  int tindex;\n  char buf [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)((int)p + 0x40) != 0) {\n    bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);\n    return bVar2;\n  }\n  tindex = *(int *)((int)p + 0x3c);\n  puVar3 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)((int)p + 0x3c) = tindex + 1;\n  (*(code *)puVar1)(buf,puVar3,tindex,tindex);\n  bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0);\n  return bVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "stab_write_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int tindex;" primitive_type identifier ;) (declaration "char buf [40];" primitive_type (array_declarator "buf [40]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR_sprintf_0004daa8;" (assignment_expression "puVar1 = PTR_sprintf_0004daa8" identifier = identifier) ;) (if_statement "if (*(int *)((int)p + 0x40) != 0) {\n    bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);\n    return bVar2;\n  }" if (parenthesized_expression "(*(int *)((int)p + 0x40) != 0)" ( (binary_expression "*(int *)((int)p + 0x40) != 0" (pointer_expression "*(int *)((int)p + 0x40)" * (cast_expression "(int *)((int)p + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x40)" ( (binary_expression "(int)p + 0x40" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);\n    return bVar2;\n  }" { (expression_statement "bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0);" (assignment_expression "bVar2 = stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0)" identifier = (call_expression "stab_push_defined_type((stab_write_handle *)p,*(int *)((int)p + 0x40),0)" identifier (argument_list "((stab_write_handle *)p,*(int *)((int)p + 0x40),0)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "*(int *)((int)p + 0x40)" * (cast_expression "(int *)((int)p + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x40)" ( (binary_expression "(int)p + 0x40" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (return_statement "return bVar2;" return identifier ;) })) (expression_statement "tindex = *(int *)((int)p + 0x3c);" (assignment_expression "tindex = *(int *)((int)p + 0x3c)" identifier = (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar3 = PTR_DAT_0004d8bc + -0x4458;" (assignment_expression "puVar3 = PTR_DAT_0004d8bc + -0x4458" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x4458" identifier + number_literal)) ;) (expression_statement "*(int *)((int)p + 0x3c) = tindex + 1;" (assignment_expression "*(int *)((int)p + 0x3c) = tindex + 1" (pointer_expression "*(int *)((int)p + 0x3c)" * (cast_expression "(int *)((int)p + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x3c)" ( (binary_expression "(int)p + 0x3c" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "tindex + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(buf,puVar3,tindex,tindex);" (call_expression "(*(code *)puVar1)(buf,puVar3,tindex,tindex)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,puVar3,tindex,tindex)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0);" (assignment_expression "bVar2 = stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0)" identifier = (call_expression "stab_push_string((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0)" identifier (argument_list "((stab_write_handle *)((int)p + 0x38),buf,tindex,0,0)" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , identifier , number_literal , number_literal )))) ;) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "void FUN_000308b0(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}\n\n" (function_definition "void FUN_000308b0(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}" primitive_type (function_declarator "FUN_000308b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 auStack_38 [40];" type_identifier (array_declarator "auStack_38 [40]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR_sprintf_0004daa8;" (assignment_expression "puVar1 = PTR_sprintf_0004daa8" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x40) != 0)" ( (binary_expression "*(int *)(param_1 + 0x40) != 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }" { (expression_statement "FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);" (call_expression "FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0)" identifier (argument_list "(param_1,*(int *)(param_1 + 0x40),0)" ( identifier , (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar3 = *(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 "puVar2 = PTR_DAT_0004d8bc + -0x4458;" (assignment_expression "puVar2 = PTR_DAT_0004d8bc + -0x4458" identifier = (binary_expression "PTR_DAT_0004d8bc + -0x4458" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar3 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar3 + 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 "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);" (call_expression "(*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_38,puVar2,iVar3,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);" (call_expression "FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0)" identifier (argument_list "(param_1 + 0x38,auStack_38,iVar3,0,0)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) , identifier , identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000308b0(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000308b0(int param_1)" (identifier "FUN_000308b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 auStack_38 [40];\n  \n  puVar1 = PTR_sprintf_0004daa8;\n  if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }\n  iVar3 = *(int *)(param_1 + 0x3c);\n  puVar2 = PTR_DAT_0004d8bc + -0x4458;\n  *(int *)(param_1 + 0x3c) = iVar3 + 1;\n  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);\n  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 auStack_38 [40];" (type_identifier "undefined1") (array_declarator "auStack_38 [40]" (identifier "auStack_38") ([ "[") (number_literal "40") (] "]")) (; ";")) (expression_statement "puVar1 = PTR_sprintf_0004daa8;" (assignment_expression "puVar1 = PTR_sprintf_0004daa8" (identifier "puVar1") (= "=") (identifier "PTR_sprintf_0004daa8")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x40) != 0) {\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x40) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) != 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);\n    return;\n  }" ({ "{") (expression_statement "FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);" (call_expression "FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0)" (identifier "FUN_0002f134") (argument_list "(param_1,*(int *)(param_1 + 0x40),0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c)" (identifier "iVar3") (= "=") (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 "puVar2 = PTR_DAT_0004d8bc + -0x4458;" (assignment_expression "puVar2 = PTR_DAT_0004d8bc + -0x4458" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_0004d8bc + -0x4458" (identifier "PTR_DAT_0004d8bc") (+ "+") (number_literal "-0x4458"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x3c) = iVar3 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar3 + 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 "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);" (call_expression "(*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3)" (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 "(auStack_38,puVar2,iVar3,iVar3)" (( "(") (identifier "auStack_38") (, ",") (identifier "puVar2") (, ",") (identifier "iVar3") (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);" (call_expression "FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0)" (identifier "FUN_0002f08c") (argument_list "(param_1 + 0x38,auStack_38,iVar3,0,0)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) (, ",") (identifier "auStack_38") (, ",") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 function_1(void *p)

{
  type_2 *puVar1;
  type_1 bVar2;
  type_3 *info;
  type_2 *puVar3;
  int var_3;
  char buf [40];
  
  puVar1 = PTR_sprintf_0004daa8;
  if (*(int *)((int)p + 0x40) != 0) {
    bVar2 = var_1((type_3 *)p,*(int *)((int)p + 0x40),0);
    return bVar2;
  }
  var_3 = *(int *)((int)p + 0x3c);
  puVar3 = var_2 + -0x4458;
  *(int *)((int)p + 0x3c) = var_3 + 1;
  (*(type_4 *)puVar1)(buf,puVar3,var_3,var_3);
  bVar2 = var_4((type_3 *)((int)p + 0x38),buf,var_3,0,0);
  return bVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (number_literal)))) (return_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)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (number_literal) (number_literal)))) (return_statement))))

void MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined1 auStack_38 [40];
  
  puVar1 = PTR_sprintf_0004daa8;
  if (*(int *)(param_1 + 0x40) != 0) {
    FUN_0002f134(param_1,*(int *)(param_1 + 0x40),0);
    return;
  }
  iVar3 = *(int *)(param_1 + 0x3c);
  puVar2 = PTR_DAT_0004d8bc + -0x4458;
  *(int *)(param_1 + 0x3c) = iVar3 + 1;
  (*(code *)puVar1)(auStack_38,puVar2,iVar3,iVar3);
  FUN_0002f08c(param_1 + 0x38,auStack_38,iVar3,0,0);
  return;
}

