
int cplus_demangle_fill_builtin_type(demangle_component *p,char *type_name)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  
  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;
  if (p == (demangle_component *)0x0) {
    return 0;
  }
  if (type_name != (char *)0x0) {
    iVar5 = 0;
    iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);
    puVar4 = (undefined4 *)puVar1;
    do {
      if (puVar4[1] == iVar2) {
        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);
        if (iVar3 == 0) {
          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;
          p->d_printing = 0;
          (p->u).s_name.s = puVar1 + iVar5 * 0x14;
          return 1;
        }
      }
      iVar5 = iVar5 + 1;
      puVar4 = puVar4 + 5;
    } while (iVar5 != 0x21);
    return 0;
  }
  return 0;
}



undefined4 FUN_00033b2c(undefined4 *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  
  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;
  if (param_1 == (undefined4 *)0x0) {
    return 0;
  }
  if (param_2 != 0) {
    iVar5 = 0;
    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);
    puVar4 = (undefined4 *)puVar1;
    do {
      if (puVar4[1] == iVar2) {
        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);
        if (iVar3 == 0) {
          *param_1 = 0x27;
          param_1[1] = 0;
          param_1[2] = puVar1 + iVar5 * 0x14;
          return 1;
        }
      }
      iVar5 = iVar5 + 1;
      puVar4 = puVar4 + 5;
    } while (iVar5 != 0x21);
    return 0;
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,0x1d44
addu gp,gp,t9
beq a0,zero,0x00033c40
_nop
beq a1,zero,0x00033c48
_lw t9,-0x7cf8(gp)
addiu sp,sp,-0x38
sw s6,0x30(sp)
sw gp,0x10(sp)
sw s5,0x2c(sp)
or s5,a0,zero
sw s4,0x28(sp)
or a0,a1,zero
sw s3,0x24(sp)
or s4,a1,zero
sw s2,0x20(sp)
li s3,0x21
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw ra,0x34(sp)
lw s6,-0x7db4(gp)
jalr t9
_or s1,zero,zero
lw gp,0x10(sp)
or s2,v0,zero
b 0x00033ba8
_or s0,s6,zero
addiu s1,s1,0x1
beq s1,s3,0x00033c14
_addiu s0,s0,0x14
lw v0,0x4(s0)
bne v0,s2,0x00033b9c
_lw t9,-0x7bcc(gp)
or a0,s4,zero
jalr t9
_lw a1,0x0(s0)
bne v0,zero,0x00033b9c
_lw gp,0x10(sp)
sll v0,s1,0x2
lw ra,0x34(sp)
lw s4,0x28(sp)
addu s1,v0,s1
lw s3,0x24(sp)
li v0,0x27
lw s2,0x20(sp)
sll s1,s1,0x2
lw s0,0x18(sp)
sw v0,0x0(s5)
li v0,0x1
addu s6,s6,s1
sw zero,0x4(s5)
lw s1,0x1c(sp)
sw s6,0x8(s5)
lw s6,0x30(sp)
lw s5,0x2c(sp)
jr ra
_addiu sp,sp,0x38
lw ra,0x34(sp)
or v0,zero,zero
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_00033b2c(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00033b2c(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00033b2c(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;" (assignment_expression "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc" identifier = identifier) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)puVar1;" (assignment_expression "puVar4 = (undefined4 *)puVar1" identifier = (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);" do (compound_statement "{\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    }" { (if_statement "if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" if (parenthesized_expression "(puVar4[1] == iVar2)" ( (binary_expression "puVar4[1] == iVar2" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4)" identifier = (call_expression "(*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4)" (parenthesized_expression "(*(code *)PTR_strcmp_0004dca4)" ( (pointer_expression "*(code *)PTR_strcmp_0004dca4" * (cast_expression "(code *)PTR_strcmp_0004dca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,*puVar4)" ( identifier , (pointer_expression "*puVar4" * identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" { (expression_statement "*param_1 = 0x27;" (assignment_expression "*param_1 = 0x27" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = puVar1 + iVar5 * 0x14;" (assignment_expression "param_1[2] = puVar1 + iVar5 * 0x14" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "puVar1 + iVar5 * 0x14" identifier + (binary_expression "iVar5 * 0x14" identifier * number_literal))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 5;" (assignment_expression "puVar4 = puVar4 + 5" identifier = (binary_expression "puVar4 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x21)" ( (binary_expression "iVar5 != 0x21" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int cplus_demangle_fill_builtin_type(demangle_component *p,char *type_name)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (p == (demangle_component *)0x0) {\n    return 0;\n  }\n  if (type_name != (char *)0x0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}\n\n" (function_definition "int cplus_demangle_fill_builtin_type(demangle_component *p,char *type_name)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (p == (demangle_component *)0x0) {\n    return 0;\n  }\n  if (type_name != (char *)0x0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" primitive_type (function_declarator "cplus_demangle_fill_builtin_type(demangle_component *p,char *type_name)" identifier (parameter_list "(demangle_component *p,char *type_name)" ( (parameter_declaration "demangle_component *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *type_name" primitive_type (pointer_declarator "*type_name" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (p == (demangle_component *)0x0) {\n    return 0;\n  }\n  if (type_name != (char *)0x0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;" (assignment_expression "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc" identifier = identifier) ;) (if_statement "if (p == (demangle_component *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(p == (demangle_component *)0x0)" ( (binary_expression "p == (demangle_component *)0x0" identifier == (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (type_name != (char *)0x0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" if (parenthesized_expression "(type_name != (char *)0x0)" ( (binary_expression "type_name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(type_name);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(type_name)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(type_name)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(type_name)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)puVar1;" (assignment_expression "puVar4 = (undefined4 *)puVar1" identifier = (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);" do (compound_statement "{\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    }" { (if_statement "if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" if (parenthesized_expression "(puVar4[1] == iVar2)" ( (binary_expression "puVar4[1] == iVar2" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);\n        if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4)" identifier = (call_expression "(*(code *)PTR_strcmp_0004dca4)(type_name,*puVar4)" (parenthesized_expression "(*(code *)PTR_strcmp_0004dca4)" ( (pointer_expression "*(code *)PTR_strcmp_0004dca4" * (cast_expression "(code *)PTR_strcmp_0004dca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(type_name,*puVar4)" ( identifier , (pointer_expression "*puVar4" * identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" { (expression_statement "p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;" (assignment_expression "p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE" (field_expression "p->type" identifier -> field_identifier) = identifier) ;) (expression_statement "p->d_printing = 0;" (assignment_expression "p->d_printing = 0" (field_expression "p->d_printing" identifier -> field_identifier) = number_literal) ;) (expression_statement "(p->u).s_name.s = puVar1 + iVar5 * 0x14;" (assignment_expression "(p->u).s_name.s = puVar1 + iVar5 * 0x14" (field_expression "(p->u).s_name.s" (field_expression "(p->u).s_name" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (binary_expression "puVar1 + iVar5 * 0x14" identifier + (binary_expression "iVar5 * 0x14" identifier * number_literal))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 5;" (assignment_expression "puVar4 = puVar4 + 5" identifier = (binary_expression "puVar4 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x21)" ( (binary_expression "iVar5 != 0x21" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00033b2c(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00033b2c(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00033b2c(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;" (assignment_expression "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc" identifier = identifier) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" ( (pointer_expression "*(code *)PTR_strlen_0004db78" * (cast_expression "(code *)PTR_strlen_0004db78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)puVar1;" (assignment_expression "puVar4 = (undefined4 *)puVar1" identifier = (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);" do (compound_statement "{\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    }" { (if_statement "if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" if (parenthesized_expression "(puVar4[1] == iVar2)" ( (binary_expression "puVar4[1] == iVar2" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4)" identifier = (call_expression "(*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4)" (parenthesized_expression "(*(code *)PTR_strcmp_0004dca4)" ( (pointer_expression "*(code *)PTR_strcmp_0004dca4" * (cast_expression "(code *)PTR_strcmp_0004dca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,*puVar4)" ( identifier , (pointer_expression "*puVar4" * identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" { (expression_statement "*param_1 = 0x27;" (assignment_expression "*param_1 = 0x27" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = puVar1 + iVar5 * 0x14;" (assignment_expression "param_1[2] = puVar1 + iVar5 * 0x14" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "puVar1 + iVar5 * 0x14" identifier + (binary_expression "iVar5 * 0x14" identifier * number_literal))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 5;" (assignment_expression "puVar4 = puVar4 + 5" identifier = (binary_expression "puVar4 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0x21)" ( (binary_expression "iVar5 != 0x21" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00033b2c(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00033b2c(undefined4 *param_1,int param_2)" (identifier "FUN_00033b2c") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;" (assignment_expression "puVar1 = PTR_cplus_demangle_builtin_types_0004dabc" (identifier "puVar1") (= "=") (identifier "PTR_cplus_demangle_builtin_types_0004dabc")) (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = 0;\n    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);\n    puVar4 = (undefined4 *)puVar1;\n    do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);\n    return 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004db78)(param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0004db78)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0004db78)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004db78" (* "*") (cast_expression "(code *)PTR_strlen_0004db78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004db78"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)puVar1;" (assignment_expression "puVar4 = (undefined4 *)puVar1" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (; ";")) (do_statement "do {\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    } while (iVar5 != 0x21);" (do "do") (compound_statement "{\n      if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }\n      iVar5 = iVar5 + 1;\n      puVar4 = puVar4 + 5;\n    }" ({ "{") (if_statement "if (puVar4[1] == iVar2) {\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" (if "if") (parenthesized_expression "(puVar4[1] == iVar2)" (( "(") (binary_expression "puVar4[1] == iVar2" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "iVar2")) () ")")) (compound_statement "{\n        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);\n        if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }\n      }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4)" (parenthesized_expression "(*(code *)PTR_strcmp_0004dca4)" (( "(") (pointer_expression "*(code *)PTR_strcmp_0004dca4" (* "*") (cast_expression "(code *)PTR_strcmp_0004dca4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_0004dca4"))) () ")")) (argument_list "(param_2,*puVar4)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *param_1 = 0x27;\n          param_1[1] = 0;\n          param_1[2] = puVar1 + iVar5 * 0x14;\n          return 1;\n        }" ({ "{") (expression_statement "*param_1 = 0x27;" (assignment_expression "*param_1 = 0x27" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x27")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = puVar1 + iVar5 * 0x14;" (assignment_expression "param_1[2] = puVar1 + iVar5 * 0x14" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "puVar1 + iVar5 * 0x14" (identifier "puVar1") (+ "+") (binary_expression "iVar5 * 0x14" (identifier "iVar5") (* "*") (number_literal "0x14")))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = puVar4 + 5;" (assignment_expression "puVar4 = puVar4 + 5" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 5" (identifier "puVar4") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0x21)" (( "(") (binary_expression "iVar5 != 0x21" (identifier "iVar5") (!= "!=") (number_literal "0x21")) () ")")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_1,char *var_2)

{
  type_2 *var_5;
  int var_3;
  int var_4;
  type_3 *var_7;
  int var_6;
  
  var_5 = PTR_cplus_demangle_builtin_types_0004dabc;
  if (var_1 == (type_1 *)0x0) {
    return 0;
  }
  if (var_2 != (char *)0x0) {
    var_6 = 0;
    var_3 = (*(type_4 *)PTR_strlen_0004db78)(var_2);
    var_7 = (type_3 *)var_5;
    do {
      if (var_7[1] == var_3) {
        var_4 = (*(type_4 *)PTR_strcmp_0004dca4)(var_2,*var_7);
        if (var_4 == 0) {
          var_1->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;
          var_1->d_printing = 0;
          (var_1->u).s_name.s = var_5 + var_6 * 0x14;
          return 1;
        }
      }
      var_6 = var_6 + 1;
      var_7 = var_7 + 5;
    } while (var_6 != 0x21);
    return 0;
  }
  return 0;
}


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

undefined4 MASKED(undefined4 *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  
  puVar1 = PTR_cplus_demangle_builtin_types_0004dabc;
  if (param_1 == (undefined4 *)0x0) {
    return 0;
  }
  if (param_2 != 0) {
    iVar5 = 0;
    iVar2 = (*(code *)PTR_strlen_0004db78)(param_2);
    puVar4 = (undefined4 *)puVar1;
    do {
      if (puVar4[1] == iVar2) {
        iVar3 = (*(code *)PTR_strcmp_0004dca4)(param_2,*puVar4);
        if (iVar3 == 0) {
          *param_1 = 0x27;
          param_1[1] = 0;
          param_1[2] = puVar1 + iVar5 * 0x14;
          return 1;
        }
      }
      iVar5 = iVar5 + 1;
      puVar4 = puVar4 + 5;
    } while (iVar5 != 0x21);
    return 0;
  }
  return 0;
}

