
int cplus_demangle_fill_builtin_type(demangle_component *p,char *type_name)

{
  int iVar1;
  size_t sVar2;
  demangle_builtin_type_info *pdVar3;
  uint uVar4;
  ulong uVar5;
  
  if ((p != (demangle_component *)0x0) && (type_name != (char *)0x0)) {
    uVar5 = 0;
    pdVar3 = cplus_demangle_builtin_types;
    sVar2 = strlen(type_name);
    do {
      if (pdVar3->len == (int)sVar2) {
        iVar1 = strcmp(type_name,pdVar3->name);
        if (iVar1 == 0) {
          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;
          p->d_printing = 0;
          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);
          return 1;
        }
      }
      uVar4 = (int)uVar5 + 1;
      uVar5 = (ulong)uVar4;
      pdVar3 = pdVar3 + 1;
    } while (uVar4 != 0x21);
    return 0;
  }
  return 0;
}



undefined8 FUN_002d5bd0(undefined8 *param_1,char *param_2)

{
  int iVar1;
  size_t sVar2;
  undefined **ppuVar3;
  uint uVar4;
  ulong uVar5;
  
  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {
    uVar5 = 0;
    ppuVar3 = &PTR_s_signed_char_0042dee0;
    sVar2 = strlen(param_2);
    do {
      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {
        iVar1 = strcmp(param_2,*ppuVar3);
        if (iVar1 == 0) {
          *param_1 = 0x27;
          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;
          return 1;
        }
      }
      uVar4 = (int)uVar5 + 1;
      uVar5 = (ulong)uVar4;
      ppuVar3 = ppuVar3 + 4;
    } while (uVar4 != 0x21);
    return 0;
  }
  return 0;
}


TEST RDI,RDI
JZ 0x002d5c78
TEST RSI,RSI
JZ 0x002d5c78
PUSH R15
MOV R15,RSI
PUSH R14
PUSH R13
LEA R13,[0x42dee0]
PUSH R12
MOV R12,RDI
MOV RDI,RSI
PUSH RBP
XOR EBP,EBP
PUSH RBX
MOV RBX,R13
SUB RSP,0x8
CALL 0x00147490
MOV R14D,EAX
JMP 0x002d5c1c
ADD EBP,0x1
ADD RBX,0x20
CMP EBP,0x21
JZ 0x002d5c60
CMP dword ptr [RBX + 0x8],R14D
JNZ 0x002d5c10
MOV RSI,qword ptr [RBX]
MOV RDI,R15
CALL 0x001477a0
TEST EAX,EAX
JNZ 0x002d5c10
SHL RBP,0x5
MOV qword ptr [R12],0x27
MOV EAX,0x1
ADD RBP,R13
MOV qword ptr [R12 + 0x8],RBP
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
ADD RSP,0x8
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_002d5bd0(undefined8 *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_002d5bd0(undefined8 *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_002d5bd0(undefined8 *param_1,char *param_2)" identifier (parameter_list "(undefined8 *param_1,char *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (if_statement "if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" if (parenthesized_expression "((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0))" ( (binary_expression "(param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)" (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "ppuVar3 = &PTR_s_signed_char_0042dee0;" (assignment_expression "ppuVar3 = &PTR_s_signed_char_0042dee0" identifier = (pointer_expression "&PTR_s_signed_char_0042dee0" & identifier)) ;) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (do_statement "do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);" do (compound_statement "{\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    }" { (if_statement "if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }" if (parenthesized_expression "(*(int *)(ppuVar3 + 1) == (int)sVar2)" ( (binary_expression "*(int *)(ppuVar3 + 1) == (int)sVar2" (pointer_expression "*(int *)(ppuVar3 + 1)" * (cast_expression "(int *)(ppuVar3 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppuVar3 + 1)" ( (binary_expression "ppuVar3 + 1" identifier + number_literal) )))) == (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }" { (expression_statement "iVar1 = strcmp(param_2,*ppuVar3);" (assignment_expression "iVar1 = strcmp(param_2,*ppuVar3)" identifier = (call_expression "strcmp(param_2,*ppuVar3)" identifier (argument_list "(param_2,*ppuVar3)" ( identifier , (pointer_expression "*ppuVar3" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\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] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;" (assignment_expression "param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "&PTR_s_signed_char_0042dee0 + uVar5 * 4" (pointer_expression "&PTR_s_signed_char_0042dee0" & identifier) + (binary_expression "uVar5 * 4" identifier * number_literal))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "uVar4 = (int)uVar5 + 1;" (assignment_expression "uVar4 = (int)uVar5 + 1" identifier = (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" identifier = (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "ppuVar3 = ppuVar3 + 4;" (assignment_expression "ppuVar3 = ppuVar3 + 4" identifier = (binary_expression "ppuVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0x21)" ( (binary_expression "uVar4 != 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  int iVar1;\n  size_t sVar2;\n  demangle_builtin_type_info *pdVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((p != (demangle_component *)0x0) && (type_name != (char *)0x0)) {\n    uVar5 = 0;\n    pdVar3 = cplus_demangle_builtin_types;\n    sVar2 = strlen(type_name);\n    do {\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    } while (uVar4 != 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  int iVar1;\n  size_t sVar2;\n  demangle_builtin_type_info *pdVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((p != (demangle_component *)0x0) && (type_name != (char *)0x0)) {\n    uVar5 = 0;\n    pdVar3 = cplus_demangle_builtin_types;\n    sVar2 = strlen(type_name);\n    do {\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    } while (uVar4 != 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  int iVar1;\n  size_t sVar2;\n  demangle_builtin_type_info *pdVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((p != (demangle_component *)0x0) && (type_name != (char *)0x0)) {\n    uVar5 = 0;\n    pdVar3 = cplus_demangle_builtin_types;\n    sVar2 = strlen(type_name);\n    do {\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "demangle_builtin_type_info *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (if_statement "if ((p != (demangle_component *)0x0) && (type_name != (char *)0x0)) {\n    uVar5 = 0;\n    pdVar3 = cplus_demangle_builtin_types;\n    sVar2 = strlen(type_name);\n    do {\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" if (parenthesized_expression "((p != (demangle_component *)0x0) && (type_name != (char *)0x0))" ( (binary_expression "(p != (demangle_component *)0x0) && (type_name != (char *)0x0)" (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)) )) && (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    uVar5 = 0;\n    pdVar3 = cplus_demangle_builtin_types;\n    sVar2 = strlen(type_name);\n    do {\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "pdVar3 = cplus_demangle_builtin_types;" (assignment_expression "pdVar3 = cplus_demangle_builtin_types" identifier = identifier) ;) (expression_statement "sVar2 = strlen(type_name);" (assignment_expression "sVar2 = strlen(type_name)" identifier = (call_expression "strlen(type_name)" identifier (argument_list "(type_name)" ( identifier )))) ;) (do_statement "do {\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    } while (uVar4 != 0x21);" do (compound_statement "{\n      if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      pdVar3 = pdVar3 + 1;\n    }" { (if_statement "if (pdVar3->len == (int)sVar2) {\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }" if (parenthesized_expression "(pdVar3->len == (int)sVar2)" ( (binary_expression "pdVar3->len == (int)sVar2" (field_expression "pdVar3->len" identifier -> field_identifier) == (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        iVar1 = strcmp(type_name,pdVar3->name);\n        if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }\n      }" { (expression_statement "iVar1 = strcmp(type_name,pdVar3->name);" (assignment_expression "iVar1 = strcmp(type_name,pdVar3->name)" identifier = (call_expression "strcmp(type_name,pdVar3->name)" identifier (argument_list "(type_name,pdVar3->name)" ( identifier , (field_expression "pdVar3->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\n          return 1;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;\n          p->d_printing = 0;\n          (p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5);\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 = (char *)(cplus_demangle_builtin_types + uVar5);" (assignment_expression "(p->u).s_name.s = (char *)(cplus_demangle_builtin_types + uVar5)" (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) = (cast_expression "(char *)(cplus_demangle_builtin_types + uVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(cplus_demangle_builtin_types + uVar5)" ( (binary_expression "cplus_demangle_builtin_types + uVar5" identifier + identifier) )))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "uVar4 = (int)uVar5 + 1;" (assignment_expression "uVar4 = (int)uVar5 + 1" identifier = (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" identifier = (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "pdVar3 = pdVar3 + 1;" (assignment_expression "pdVar3 = pdVar3 + 1" identifier = (binary_expression "pdVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0x21)" ( (binary_expression "uVar4 != 0x21" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_002d5bd0(undefined8 *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_002d5bd0(undefined8 *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_002d5bd0(undefined8 *param_1,char *param_2)" identifier (parameter_list "(undefined8 *param_1,char *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (if_statement "if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" if (parenthesized_expression "((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0))" ( (binary_expression "(param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)" (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "ppuVar3 = &PTR_s_signed_char_0042dee0;" (assignment_expression "ppuVar3 = &PTR_s_signed_char_0042dee0" identifier = (pointer_expression "&PTR_s_signed_char_0042dee0" & identifier)) ;) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (do_statement "do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);" do (compound_statement "{\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    }" { (if_statement "if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }" if (parenthesized_expression "(*(int *)(ppuVar3 + 1) == (int)sVar2)" ( (binary_expression "*(int *)(ppuVar3 + 1) == (int)sVar2" (pointer_expression "*(int *)(ppuVar3 + 1)" * (cast_expression "(int *)(ppuVar3 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppuVar3 + 1)" ( (binary_expression "ppuVar3 + 1" identifier + number_literal) )))) == (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }" { (expression_statement "iVar1 = strcmp(param_2,*ppuVar3);" (assignment_expression "iVar1 = strcmp(param_2,*ppuVar3)" identifier = (call_expression "strcmp(param_2,*ppuVar3)" identifier (argument_list "(param_2,*ppuVar3)" ( identifier , (pointer_expression "*ppuVar3" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\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] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;" (assignment_expression "param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "&PTR_s_signed_char_0042dee0 + uVar5 * 4" (pointer_expression "&PTR_s_signed_char_0042dee0" & identifier) + (binary_expression "uVar5 * 4" identifier * number_literal))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "uVar4 = (int)uVar5 + 1;" (assignment_expression "uVar4 = (int)uVar5 + 1" identifier = (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" identifier = (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "ppuVar3 = ppuVar3 + 4;" (assignment_expression "ppuVar3 = ppuVar3 + 4" identifier = (binary_expression "ppuVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0x21)" ( (binary_expression "uVar4 != 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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression 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 ]) = (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT))) ;) (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 "undefined8 FUN_002d5bd0(undefined8 *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_002d5bd0(undefined8 *param_1,char *param_2)" (identifier "FUN_002d5bd0") (parameter_list "(undefined8 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined **ppuVar3;\n  uint uVar4;\n  ulong uVar5;\n  \n  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined **ppuVar3;" (type_identifier "undefined") (pointer_declarator "**ppuVar3" (* "*") (pointer_declarator "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (if_statement "if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0))" (( "(") (binary_expression "(param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)" (parenthesized_expression "(param_1 != (undefined8 *)0x0)" (( "(") (binary_expression "param_1 != (undefined8 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    uVar5 = 0;\n    ppuVar3 = &PTR_s_signed_char_0042dee0;\n    sVar2 = strlen(param_2);\n    do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);\n    return 0;\n  }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "ppuVar3 = &PTR_s_signed_char_0042dee0;" (assignment_expression "ppuVar3 = &PTR_s_signed_char_0042dee0" (identifier "ppuVar3") (= "=") (pointer_expression "&PTR_s_signed_char_0042dee0" (& "&") (identifier "PTR_s_signed_char_0042dee0"))) (; ";")) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (do_statement "do {\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    } while (uVar4 != 0x21);" (do "do") (compound_statement "{\n      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }\n      uVar4 = (int)uVar5 + 1;\n      uVar5 = (ulong)uVar4;\n      ppuVar3 = ppuVar3 + 4;\n    }" ({ "{") (if_statement "if (*(int *)(ppuVar3 + 1) == (int)sVar2) {\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }" (if "if") (parenthesized_expression "(*(int *)(ppuVar3 + 1) == (int)sVar2)" (( "(") (binary_expression "*(int *)(ppuVar3 + 1) == (int)sVar2" (pointer_expression "*(int *)(ppuVar3 + 1)" (* "*") (cast_expression "(int *)(ppuVar3 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(ppuVar3 + 1)" (( "(") (binary_expression "ppuVar3 + 1" (identifier "ppuVar3") (+ "+") (number_literal "1")) () ")")))) (== "==") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) () ")")) (compound_statement "{\n        iVar1 = strcmp(param_2,*ppuVar3);\n        if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }\n      }" ({ "{") (expression_statement "iVar1 = strcmp(param_2,*ppuVar3);" (assignment_expression "iVar1 = strcmp(param_2,*ppuVar3)" (identifier "iVar1") (= "=") (call_expression "strcmp(param_2,*ppuVar3)" (identifier "strcmp") (argument_list "(param_2,*ppuVar3)" (( "(") (identifier "param_2") (, ",") (pointer_expression "*ppuVar3" (* "*") (identifier "ppuVar3")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\n          return 1;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *param_1 = 0x27;\n          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;\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] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;" (assignment_expression "param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "&PTR_s_signed_char_0042dee0 + uVar5 * 4" (pointer_expression "&PTR_s_signed_char_0042dee0" (& "&") (identifier "PTR_s_signed_char_0042dee0")) (+ "+") (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4")))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = (int)uVar5 + 1;" (assignment_expression "uVar4 = (int)uVar5 + 1" (identifier "uVar4") (= "=") (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" (identifier "uVar5") (= "=") (cast_expression "(ulong)uVar4" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "ppuVar3 = ppuVar3 + 4;" (assignment_expression "ppuVar3 = ppuVar3 + 4" (identifier "ppuVar3") (= "=") (binary_expression "ppuVar3 + 4" (identifier "ppuVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 != 0x21)" (( "(") (binary_expression "uVar4 != 0x21" (identifier "uVar4") (!= "!=") (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)

{
  int var_5;
  size_t sVar2;
  type_2 *var_8;
  type_3 var_9;
  type_4 var_7;
  
  if ((var_1 != (type_1 *)0x0) && (var_2 != (char *)0x0)) {
    var_7 = 0;
    var_8 = var_6;
    sVar2 = var_3(var_2);
    do {
      if (var_8->len == (int)sVar2) {
        var_5 = var_4(var_2,var_8->name);
        if (var_5 == 0) {
          var_1->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;
          var_1->d_printing = 0;
          (var_1->u).s_name.s = (char *)(var_6 + var_7);
          return 1;
        }
      }
      var_9 = (int)var_7 + 1;
      var_7 = (type_4)var_9;
      var_8 = var_8 + 1;
    } while (var_9 != 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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (do_statement body: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement (number_literal)))) (return_statement (number_literal)))))

undefined8 MASKED(undefined8 *param_1,char *param_2)

{
  int iVar1;
  size_t sVar2;
  undefined **ppuVar3;
  uint uVar4;
  ulong uVar5;
  
  if ((param_1 != (undefined8 *)0x0) && (param_2 != (char *)0x0)) {
    uVar5 = 0;
    ppuVar3 = &PTR_s_signed_char_0042dee0;
    sVar2 = strlen(param_2);
    do {
      if (*(int *)(ppuVar3 + 1) == (int)sVar2) {
        iVar1 = strcmp(param_2,*ppuVar3);
        if (iVar1 == 0) {
          *param_1 = 0x27;
          param_1[1] = &PTR_s_signed_char_0042dee0 + uVar5 * 4;
          return 1;
        }
      }
      uVar4 = (int)uVar5 + 1;
      uVar5 = (ulong)uVar4;
      ppuVar3 = ppuVar3 + 4;
    } while (uVar4 != 0x21);
    return 0;
  }
  return 0;
}

