
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

debug_type_conflict debug_name_type(void *handle,char *name,debug_type_conflict type)

{
  debug_type_s *pdVar1;
  debug_named_type *pdVar2;
  debug_name *pdVar3;
  undefined4 uVar4;
  debug_object_linkage in_stack_ffffffd8;
  
  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {
    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {
      uVar4 = dcgettext(0,"debug_name_type: no current file",5);
      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);
    }
    else {
      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);
      if (pdVar1 != (debug_type_s *)0x0) {
        pdVar2 = (debug_named_type *)xmalloc(8);
        pdVar2->name = (debug_name *)0x0;
        pdVar2->type = type;
        (pdVar1->u).knamed = pdVar2;
        pdVar3 = debug_add_to_namespace
                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name
                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);
        if (pdVar3 != (debug_name *)0x0) {
          (pdVar3->u).variable = (debug_variable *)pdVar1;
          pdVar2->name = pdVar3;
          return pdVar1;
        }
      }
    }
  }
  return (debug_type_conflict)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_0001f390(int param_1,int param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {
      uVar4 = dcgettext(0,"debug_name_type: no current file",5);
      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);
    }
    else {
      iVar1 = FUN_0001ca80();
      if (iVar1 != 0) {
        piVar2 = (int *)xmalloc(8);
        *piVar2 = 0;
        piVar2[1] = param_3;
        *(int **)(iVar1 + 0xc) = piVar2;
        iVar3 = FUN_0001c9d0(3);
        if (iVar3 != 0) {
          *(int *)(iVar3 + 0x14) = iVar1;
          *piVar2 = iVar3;
          return iVar1;
        }
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000165d0
ADD EBX,0x1fc67
SUB ESP,0xc
MOV ECX,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x28]
TEST ECX,ECX
JZ 0x0001f456
TEST EBP,EBP
JZ 0x0001f456
MOV EDX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JZ 0x0001f428
MOV EAX,dword ptr [EDI + 0x8]
TEST EAX,EAX
JZ 0x0001f428
XOR EDX,EDX
MOV EAX,0x16
CALL 0x0001ca80
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001f456
SUB ESP,0xc
PUSH 0x8
CALL 0x000132e0
MOV EDX,dword ptr [ESP + 0x34]
XOR ECX,ECX
MOV dword ptr [EAX],0x0
MOV EBX,EAX
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV dword ptr [ESP],0x3
ADD EAX,0x8
CALL 0x0001c9d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001f456
MOV dword ptr [EAX + 0x14],ESI
MOV dword ptr [EBX],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff3bac]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffff532f]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffa8]
PUSH dword ptr [EAX]
CALL 0x00013520
ADD ESP,0x10
ADD ESP,0xc
XOR ESI,ESI
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001f390(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_0001f390(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0001f390(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" ( (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" if (parenthesized_expression "((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0))" ( (binary_expression "(*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_name_type: no current file",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_name_type: no current file",5)" identifier = (call_expression "dcgettext(0,"debug_name_type: no current file",5)" identifier (argument_list "(0,"debug_name_type: no current file",5)" ( number_literal , (string_literal ""debug_name_type: no current file"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003efa8" * (cast_expression "(FILE **)PTR_stderr_0003efa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" { (expression_statement "iVar1 = FUN_0001ca80();" (assignment_expression "iVar1 = FUN_0001ca80()" identifier = (call_expression "FUN_0001ca80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }" { (expression_statement "piVar2 = (int *)xmalloc(8);" (assignment_expression "piVar2 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(iVar1 + 0xc) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0xc) = piVar2" (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_0001c9d0(3);" (assignment_expression "iVar3 = FUN_0001c9d0(3)" identifier = (call_expression "FUN_0001c9d0(3)" identifier (argument_list "(3)" ( number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }" { (expression_statement "*(int *)(iVar3 + 0x14) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x14) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\ndebug_type_conflict debug_name_type(void *handle,char *name,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  debug_named_type *pdVar2;\n  debug_name *pdVar3;\n  undefined4 uVar4;\n  debug_object_linkage in_stack_ffffffd8;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" comment comment (function_definition "debug_type_conflict debug_name_type(void *handle,char *name,debug_type_conflict type)\n\n{\n  debug_type_s *pdVar1;\n  debug_named_type *pdVar2;\n  debug_name *pdVar3;\n  undefined4 uVar4;\n  debug_object_linkage in_stack_ffffffd8;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_name_type(void *handle,char *name,debug_type_conflict type)" identifier (parameter_list "(void *handle,char *name,debug_type_conflict type)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_named_type *pdVar2;\n  debug_name *pdVar3;\n  undefined4 uVar4;\n  debug_object_linkage in_stack_ffffffd8;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }\n  }\n  return (debug_type_conflict)0x0;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_named_type *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_name *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "debug_object_linkage in_stack_ffffffd8;" type_identifier identifier ;) (if_statement "if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((name != (char *)0x0) && (type != (debug_type_conflict)0x0))" ( (binary_expression "(name != (char *)0x0) && (type != (debug_type_conflict)0x0)" (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(type != (debug_type_conflict)0x0)" ( (binary_expression "type != (debug_type_conflict)0x0" identifier != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }\n  }" { (if_statement "if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }" if (parenthesized_expression "((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0))" ( (binary_expression "(*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)" (parenthesized_expression "(*(int *)((int)handle + 4) == 0)" ( (binary_expression "*(int *)((int)handle + 4) == 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)((int)handle + 8) == 0)" ( (binary_expression "*(int *)((int)handle + 8) == 0" (pointer_expression "*(int *)((int)handle + 8)" * (cast_expression "(int *)((int)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_name_type: no current file",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_name_type: no current file",5)" identifier = (call_expression "dcgettext(0,"debug_name_type: no current file",5)" identifier (argument_list "(0,"debug_name_type: no current file",5)" ( number_literal , (string_literal ""debug_name_type: no current file"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003efa8" * (cast_expression "(FILE **)PTR_stderr_0003efa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }" else (compound_statement "{\n      pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);\n      if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }\n    }" { (expression_statement "pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name)" identifier = (call_expression "debug_make_type((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name)" identifier (argument_list "((debug_handle *)0x16,DEBUG_KIND_ILLEGAL,(uint)name)" ( (cast_expression "(debug_handle *)0x16" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(uint)name" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }" if (parenthesized_expression "(pdVar1 != (debug_type_s *)0x0)" ( (binary_expression "pdVar1 != (debug_type_s *)0x0" identifier != (cast_expression "(debug_type_s *)0x0" ( (type_descriptor "debug_type_s *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pdVar2 = (debug_named_type *)xmalloc(8);\n        pdVar2->name = (debug_name *)0x0;\n        pdVar2->type = type;\n        (pdVar1->u).knamed = pdVar2;\n        pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);\n        if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }\n      }" { (expression_statement "pdVar2 = (debug_named_type *)xmalloc(8);" (assignment_expression "pdVar2 = (debug_named_type *)xmalloc(8)" identifier = (cast_expression "(debug_named_type *)xmalloc(8)" ( (type_descriptor "debug_named_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pdVar2->name = (debug_name *)0x0;" (assignment_expression "pdVar2->name = (debug_name *)0x0" (field_expression "pdVar2->name" identifier -> field_identifier) = (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar2->type = type;" (assignment_expression "pdVar2->type = type" (field_expression "pdVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).knamed = pdVar2;" (assignment_expression "(pdVar1->u).knamed = pdVar2" (field_expression "(pdVar1->u).knamed" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);" (assignment_expression "pdVar3 = debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8)" identifier = (call_expression "debug_add_to_namespace\n                           ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8)" identifier (argument_list "((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name\n                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8)" ( (cast_expression "(debug_handle *)(*(int *)((int)handle + 8) + 8)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)handle + 8) + 8)" ( (binary_expression "*(int *)((int)handle + 8) + 8" (pointer_expression "*(int *)((int)handle + 8)" * (cast_expression "(int *)((int)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))) , (cast_expression "(debug_namespace **)name" ( (type_descriptor "debug_namespace **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (if_statement "if (pdVar3 != (debug_name *)0x0) {\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }" if (parenthesized_expression "(pdVar3 != (debug_name *)0x0)" ( (binary_expression "pdVar3 != (debug_name *)0x0" identifier != (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          (pdVar3->u).variable = (debug_variable *)pdVar1;\n          pdVar2->name = pdVar3;\n          return pdVar1;\n        }" { (expression_statement "(pdVar3->u).variable = (debug_variable *)pdVar1;" (assignment_expression "(pdVar3->u).variable = (debug_variable *)pdVar1" (field_expression "(pdVar3->u).variable" (parenthesized_expression "(pdVar3->u)" ( (field_expression "pdVar3->u" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(debug_variable *)pdVar1" ( (type_descriptor "debug_variable *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar2->name = pdVar3;" (assignment_expression "pdVar2->name = pdVar3" (field_expression "pdVar2->name" identifier -> field_identifier) = identifier) ;) (return_statement "return pdVar1;" return identifier ;) })) })) }))) })) (return_statement "return (debug_type_conflict)0x0;" return (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal) ;) })))
(translation_unit "int FUN_0001f390(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0001f390(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0001f390(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" ( (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" if (parenthesized_expression "((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0))" ( (binary_expression "(*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_name_type: no current file",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_name_type: no current file",5)" identifier = (call_expression "dcgettext(0,"debug_name_type: no current file",5)" identifier (argument_list "(0,"debug_name_type: no current file",5)" ( number_literal , (string_literal ""debug_name_type: no current file"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003efa8" * (cast_expression "(FILE **)PTR_stderr_0003efa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" { (expression_statement "iVar1 = FUN_0001ca80();" (assignment_expression "iVar1 = FUN_0001ca80()" identifier = (call_expression "FUN_0001ca80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }" { (expression_statement "piVar2 = (int *)xmalloc(8);" (assignment_expression "piVar2 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(iVar1 + 0xc) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0xc) = piVar2" (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_0001c9d0(3);" (assignment_expression "iVar3 = FUN_0001c9d0(3)" identifier = (call_expression "FUN_0001c9d0(3)" identifier (argument_list "(3)" ( number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }" { (expression_statement "*(int *)(iVar3 + 0x14) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x14) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) })) }))) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0001f390(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0001f390(int param_1,int param_2,int param_3)" (identifier "FUN_0001f390") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" (( "(") (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }\n  }" ({ "{") (if_statement "if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }\n    else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_name_type: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);\n    }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"debug_name_type: no current file",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_name_type: no current file",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"debug_name_type: no current file",5)" (identifier "dcgettext") (argument_list "(0,"debug_name_type: no current file",5)" (( "(") (number_literal "0") (, ",") (string_literal ""debug_name_type: no current file"" (" """) (string_content "debug_name_type: no current file") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0003efa8" (* "*") (cast_expression "(FILE **)PTR_stderr_0003efa8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0003efa8"))) (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_0001ca80();\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_0001ca80();" (assignment_expression "iVar1 = FUN_0001ca80()" (identifier "iVar1") (= "=") (call_expression "FUN_0001ca80()" (identifier "FUN_0001ca80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar2 = (int *)xmalloc(8);\n        *piVar2 = 0;\n        piVar2[1] = param_3;\n        *(int **)(iVar1 + 0xc) = piVar2;\n        iVar3 = FUN_0001c9d0(3);\n        if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }\n      }" ({ "{") (expression_statement "piVar2 = (int *)xmalloc(8);" (assignment_expression "piVar2 = (int *)xmalloc(8)" (identifier "piVar2") (= "=") (cast_expression "(int *)xmalloc(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int **)(iVar1 + 0xc) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0xc) = piVar2" (pointer_expression "*(int **)(iVar1 + 0xc)" (* "*") (cast_expression "(int **)(iVar1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "iVar3 = FUN_0001c9d0(3);" (assignment_expression "iVar3 = FUN_0001c9d0(3)" (identifier "iVar3") (= "=") (call_expression "FUN_0001c9d0(3)" (identifier "FUN_0001c9d0") (argument_list "(3)" (( "(") (number_literal "3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *(int *)(iVar3 + 0x14) = iVar1;\n          *piVar2 = iVar3;\n          return iVar1;\n        }" ({ "{") (expression_statement "*(int *)(iVar3 + 0x14) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x14) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar3")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}"))) (} "}")))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(void *handle,char *var_1,type_1 var_2)

{
  type_2 *var_6;
  type_3 *pdVar2;
  type_4 *var_9;
  type_5 uVar4;
  type_6 in_stack_ffffffd8;
  
  if ((var_1 != (char *)0x0) && (var_2 != (type_1)0x0)) {
    if ((*(int *)((int)handle + 4) == 0) || (*(int *)((int)handle + 8) == 0)) {
      uVar4 = var_3(0,"debug_name_type: no current file",5);
      var_4(*(type_7 **)PTR_stderr_0003efa8,"%s\n",uVar4);
    }
    else {
      var_6 = var_5((type_8 *)0x16,DEBUG_KIND_ILLEGAL,(type_9)var_1);
      if (var_6 != (type_2 *)0x0) {
        pdVar2 = (type_3 *)var_7(8);
        pdVar2->var_1 = (type_4 *)0x0;
        pdVar2->var_2 = var_2;
        (var_6->u).knamed = pdVar2;
        var_9 = var_8
                           ((type_8 *)(*(int *)((int)handle + 8) + 8),(type_10 **)var_1
                            ,(char *)0x0,DEBUG_OBJECT_FUNCTION,in_stack_ffffffd8);
        if (var_9 != (type_4 *)0x0) {
          (var_9->u).variable = (type_11 *)var_6;
          pdVar2->var_1 = var_9;
          return var_6;
        }
      }
    }
  }
  return (type_1)0x0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int param_1,int param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {
      uVar4 = dcgettext(0,"debug_name_type: no current file",5);
      fprintf(*(FILE **)PTR_stderr_0003efa8,"%s\n",uVar4);
    }
    else {
      iVar1 = FUN_0001ca80();
      if (iVar1 != 0) {
        piVar2 = (int *)xmalloc(8);
        *piVar2 = 0;
        piVar2[1] = param_3;
        *(int **)(iVar1 + 0xc) = piVar2;
        iVar3 = FUN_0001c9d0(3);
        if (iVar3 != 0) {
          *(int *)(iVar3 + 0x14) = iVar1;
          *piVar2 = iVar3;
          return iVar1;
        }
      }
    }
  }
  return 0;
}

