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

void __regparm3 add_redefine_and_check(char *cause,char *source,char *target)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  char *pcVar3;
  int iVar4;
  int *piVar5;
  undefined8 uVar6;
  
  puVar2 = (undefined4 *)xmalloc(8);
  pcVar3 = strdup(source);
  *puVar2 = pcVar3;
  pcVar3 = strdup(target);
  puVar2[1] = pcVar3;
  uVar6 = htab_find(redefine_specific_htab,puVar2);
  if ((int)uVar6 != 0) {
    pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,
                               (int)((ulonglong)uVar6 >> 0x20));
                    /* WARNING: Subroutine does not return */
    fatal(pcVar3,cause,source);
  }
  iVar4 = htab_find(redefine_specific_reverse_htab,target);
  if (iVar4 == 0) {
    piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);
    *piVar5 = (int)puVar2;
    uVar1 = puVar2[1];
    puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);
    *puVar2 = uVar1;
    return;
  }
  pcVar3 = (char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4);
                    /* WARNING: Subroutine does not return */
  fatal(pcVar3,cause,target);
}



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

void __regparm3 FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)

{
  undefined4 *puVar1;
  char *pcVar2;
  int iVar3;
  int *piVar4;
  undefined4 uVar5;
  undefined8 uVar6;
  
  puVar1 = (undefined4 *)xmalloc(8);
  pcVar2 = strdup(param_2);
  *puVar1 = pcVar2;
  pcVar2 = strdup(param_3);
  puVar1[1] = pcVar2;
  uVar6 = htab_find(DAT_00040b10,puVar1);
  if ((int)uVar6 != 0) {
    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,
                      (int)((ulonglong)uVar6 >> 0x20));
                    /* WARNING: Subroutine does not return */
    FUN_0002c8e0(uVar5,param_1,param_2);
  }
  iVar3 = htab_find(DAT_00040b0c,param_3);
  if (iVar3 == 0) {
    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);
    *piVar4 = (int)puVar1;
    uVar5 = puVar1[1];
    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);
    *puVar1 = uVar5;
    return;
  }
  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);
                    /* WARNING: Subroutine does not return */
  FUN_0002c8e0(uVar5,param_1,param_3);
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x28b43
SUB ESP,0x28
MOV dword ptr [ESP + 0x18],EAX
PUSH 0x8
CALL 0x000132e0
MOV dword ptr [ESP],EBP
MOV ESI,EAX
CALL 0x00013120
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],EDI
CALL 0x00013120
MOV dword ptr [ESI + 0x4],EAX
POP ECX
POP EAX
PUSH ESI
PUSH dword ptr [EBX + 0xb10]
CALL 0x000137d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017544
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [EBX + 0xb0c]
CALL 0x000137d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017563
SUB ESP,0x4
PUSH 0x1
PUSH ESI
PUSH dword ptr [EBX + 0xb10]
CALL 0x00013410
ADD ESP,0xc
MOV dword ptr [EAX],ESI
MOV ESI,dword ptr [ESI + 0x4]
PUSH 0x1
PUSH ESI
PUSH dword ptr [EBX + 0xb0c]
CALL 0x00013410
MOV dword ptr [EAX],ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffff2084]
PUSH EDX
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
ADD ESP,0xc
PUSH EBP
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL 0x0002c8e0
PUSH EAX
LEA EAX,[EBX + 0xffff20b0]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
ADD ESP,0xc
PUSH EDI
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL 0x0002c8e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002c8e0(uVar5,param_1,param_3);\n}\n\n" comment (function_definition "void __regparm3 FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002c8e0(uVar5,param_1,param_3);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,char *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002c8e0(uVar5,param_1,param_3);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pcVar2 = strdup(param_2);" (assignment_expression "pcVar2 = strdup(param_2)" identifier = (call_expression "strdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "pcVar2 = strdup(param_3);" (assignment_expression "pcVar2 = strdup(param_3)" identifier = (call_expression "strdup(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "puVar1[1] = pcVar2;" (assignment_expression "puVar1[1] = pcVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = htab_find(DAT_00040b10,puVar1);" (assignment_expression "uVar6 = htab_find(DAT_00040b10,puVar1)" identifier = (call_expression "htab_find(DAT_00040b10,puVar1)" identifier (argument_list "(DAT_00040b10,puVar1)" ( identifier , identifier )))) ;) (if_statement "if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }" if (parenthesized_expression "((int)uVar6 != 0)" ( (binary_expression "(int)uVar6 != 0" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }" { (expression_statement "uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));" (assignment_expression "uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" identifier = (call_expression "dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" identifier (argument_list "(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" ( number_literal , (string_literal ""%s: Multiple redefinition of symbol \"%s\""" " string_content escape_sequence string_content escape_sequence ") , number_literal , (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) )))) ;) comment (expression_statement "FUN_0002c8e0(uVar5,param_1,param_2);" (call_expression "FUN_0002c8e0(uVar5,param_1,param_2)" identifier (argument_list "(uVar5,param_1,param_2)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar3 = htab_find(DAT_00040b0c,param_3);" (assignment_expression "iVar3 = htab_find(DAT_00040b0c,param_3)" identifier = (call_expression "htab_find(DAT_00040b0c,param_3)" identifier (argument_list "(DAT_00040b0c,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }" { (expression_statement "piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);" (assignment_expression "piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1)" identifier = (cast_expression "(int *)htab_find_slot(DAT_00040b10,puVar1,1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "htab_find_slot(DAT_00040b10,puVar1,1)" identifier (argument_list "(DAT_00040b10,puVar1,1)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*piVar4 = (int)puVar1;" (assignment_expression "*piVar4 = (int)puVar1" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar5 = puVar1[1];" (assignment_expression "uVar5 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);" (assignment_expression "puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1)" identifier = (cast_expression "(undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "htab_find_slot(DAT_00040b0c,uVar5,1)" identifier (argument_list "(DAT_00040b0c,uVar5,1)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*puVar1 = uVar5;" (assignment_expression "*puVar1 = uVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);" (assignment_expression "uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" identifier = (call_expression "dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" identifier (argument_list "(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" ( number_literal , (string_literal ""%s: Symbol \"%s\" is target of more than one redefinition"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal , identifier )))) ;) comment (expression_statement "FUN_0002c8e0(uVar5,param_1,param_3);" (call_expression "FUN_0002c8e0(uVar5,param_1,param_3)" identifier (argument_list "(uVar5,param_1,param_3)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 add_redefine_and_check(char *cause,char *source,char *target)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  undefined8 uVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  pcVar3 = strdup(source);\n  *puVar2 = pcVar3;\n  pcVar3 = strdup(target);\n  puVar2[1] = pcVar3;\n  uVar6 = htab_find(redefine_specific_htab,puVar2);\n  if ((int)uVar6 != 0) {\n    pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    fatal(pcVar3,cause,source);\n  }\n  iVar4 = htab_find(redefine_specific_reverse_htab,target);\n  if (iVar4 == 0) {\n    piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);\n    *piVar5 = (int)puVar2;\n    uVar1 = puVar2[1];\n    puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);\n    *puVar2 = uVar1;\n    return;\n  }\n  pcVar3 = (char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4);\n                    /* WARNING: Subroutine does not return */\n  fatal(pcVar3,cause,target);\n}\n\n" comment (function_definition "void __regparm3 add_redefine_and_check(char *cause,char *source,char *target)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  undefined8 uVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  pcVar3 = strdup(source);\n  *puVar2 = pcVar3;\n  pcVar3 = strdup(target);\n  puVar2[1] = pcVar3;\n  uVar6 = htab_find(redefine_specific_htab,puVar2);\n  if ((int)uVar6 != 0) {\n    pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    fatal(pcVar3,cause,source);\n  }\n  iVar4 = htab_find(redefine_specific_reverse_htab,target);\n  if (iVar4 == 0) {\n    piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);\n    *piVar5 = (int)puVar2;\n    uVar1 = puVar2[1];\n    puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);\n    *puVar2 = uVar1;\n    return;\n  }\n  pcVar3 = (char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4);\n                    /* WARNING: Subroutine does not return */\n  fatal(pcVar3,cause,target);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "add_redefine_and_check(char *cause,char *source,char *target)" identifier (parameter_list "(char *cause,char *source,char *target)" ( (parameter_declaration "char *cause" primitive_type (pointer_declarator "*cause" * identifier)) , (parameter_declaration "char *source" primitive_type (pointer_declarator "*source" * identifier)) , (parameter_declaration "char *target" primitive_type (pointer_declarator "*target" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  int iVar4;\n  int *piVar5;\n  undefined8 uVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  pcVar3 = strdup(source);\n  *puVar2 = pcVar3;\n  pcVar3 = strdup(target);\n  puVar2[1] = pcVar3;\n  uVar6 = htab_find(redefine_specific_htab,puVar2);\n  if ((int)uVar6 != 0) {\n    pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    fatal(pcVar3,cause,source);\n  }\n  iVar4 = htab_find(redefine_specific_reverse_htab,target);\n  if (iVar4 == 0) {\n    piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);\n    *piVar5 = (int)puVar2;\n    uVar1 = puVar2[1];\n    puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);\n    *puVar2 = uVar1;\n    return;\n  }\n  pcVar3 = (char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4);\n                    /* WARNING: Subroutine does not return */\n  fatal(pcVar3,cause,target);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pcVar3 = strdup(source);" (assignment_expression "pcVar3 = strdup(source)" identifier = (call_expression "strdup(source)" identifier (argument_list "(source)" ( identifier )))) ;) (expression_statement "*puVar2 = pcVar3;" (assignment_expression "*puVar2 = pcVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "pcVar3 = strdup(target);" (assignment_expression "pcVar3 = strdup(target)" identifier = (call_expression "strdup(target)" identifier (argument_list "(target)" ( identifier )))) ;) (expression_statement "puVar2[1] = pcVar3;" (assignment_expression "puVar2[1] = pcVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = htab_find(redefine_specific_htab,puVar2);" (assignment_expression "uVar6 = htab_find(redefine_specific_htab,puVar2)" identifier = (call_expression "htab_find(redefine_specific_htab,puVar2)" identifier (argument_list "(redefine_specific_htab,puVar2)" ( identifier , identifier )))) ;) (if_statement "if ((int)uVar6 != 0) {\n    pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    fatal(pcVar3,cause,source);\n  }" if (parenthesized_expression "((int)uVar6 != 0)" ( (binary_expression "(int)uVar6 != 0" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20));\n                    /* WARNING: Subroutine does not return */\n    fatal(pcVar3,cause,source);\n  }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20));" (assignment_expression "pcVar3 = (char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20))" identifier = (cast_expression "(char *)dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20))" identifier (argument_list "(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                               (int)((ulonglong)uVar6 >> 0x20))" ( number_literal , (string_literal ""%s: Multiple redefinition of symbol \"%s\""" " string_content escape_sequence string_content escape_sequence ") , number_literal , (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) ))))) ;) comment (expression_statement "fatal(pcVar3,cause,source);" (call_expression "fatal(pcVar3,cause,source)" identifier (argument_list "(pcVar3,cause,source)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar4 = htab_find(redefine_specific_reverse_htab,target);" (assignment_expression "iVar4 = htab_find(redefine_specific_reverse_htab,target)" identifier = (call_expression "htab_find(redefine_specific_reverse_htab,target)" identifier (argument_list "(redefine_specific_reverse_htab,target)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n    piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);\n    *piVar5 = (int)puVar2;\n    uVar1 = puVar2[1];\n    puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);\n    *puVar2 = uVar1;\n    return;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);\n    *piVar5 = (int)puVar2;\n    uVar1 = puVar2[1];\n    puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);\n    *puVar2 = uVar1;\n    return;\n  }" { (expression_statement "piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1);" (assignment_expression "piVar5 = (int *)htab_find_slot(redefine_specific_htab,puVar2,1)" identifier = (cast_expression "(int *)htab_find_slot(redefine_specific_htab,puVar2,1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "htab_find_slot(redefine_specific_htab,puVar2,1)" identifier (argument_list "(redefine_specific_htab,puVar2,1)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*piVar5 = (int)puVar2;" (assignment_expression "*piVar5 = (int)puVar2" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar1 = puVar2[1];" (assignment_expression "uVar1 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1);" (assignment_expression "puVar2 = (undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1)" identifier = (cast_expression "(undefined4 *)htab_find_slot(redefine_specific_reverse_htab,uVar1,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "htab_find_slot(redefine_specific_reverse_htab,uVar1,1)" identifier (argument_list "(redefine_specific_reverse_htab,uVar1,1)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*puVar2 = uVar1;" (assignment_expression "*puVar2 = uVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar3 = (char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4)" identifier = (cast_expression "(char *)dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4)" identifier (argument_list "(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar4)" ( number_literal , (string_literal ""%s: Symbol \"%s\" is target of more than one redefinition"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal , identifier ))))) ;) comment (expression_statement "fatal(pcVar3,cause,target);" (call_expression "fatal(pcVar3,cause,target)" identifier (argument_list "(pcVar3,cause,target)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void __regparm3 FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    \n  FUN_0002c8e0(uVar5,param_1,param_3);\n}\n\n" (function_definition "void __regparm3 FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    \n  FUN_0002c8e0(uVar5,param_1,param_3);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,char *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    \n  FUN_0002c8e0(uVar5,param_1,param_3);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pcVar2 = strdup(param_2);" (assignment_expression "pcVar2 = strdup(param_2)" identifier = (call_expression "strdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "pcVar2 = strdup(param_3);" (assignment_expression "pcVar2 = strdup(param_3)" identifier = (call_expression "strdup(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "puVar1[1] = pcVar2;" (assignment_expression "puVar1[1] = pcVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = htab_find(DAT_00040b10,puVar1);" (assignment_expression "uVar6 = htab_find(DAT_00040b10,puVar1)" identifier = (call_expression "htab_find(DAT_00040b10,puVar1)" identifier (argument_list "(DAT_00040b10,puVar1)" ( identifier , identifier )))) ;) (if_statement "if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }" if (parenthesized_expression "((int)uVar6 != 0)" ( (binary_expression "(int)uVar6 != 0" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }" { (expression_statement "uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));" (assignment_expression "uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" identifier = (call_expression "dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" identifier (argument_list "(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" ( number_literal , (string_literal ""%s: Multiple redefinition of symbol \"%s\""" " string_content escape_sequence string_content escape_sequence ") , number_literal , (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) )))) ;) (expression_statement "FUN_0002c8e0(uVar5,param_1,param_2);" (call_expression "FUN_0002c8e0(uVar5,param_1,param_2)" identifier (argument_list "(uVar5,param_1,param_2)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar3 = htab_find(DAT_00040b0c,param_3);" (assignment_expression "iVar3 = htab_find(DAT_00040b0c,param_3)" identifier = (call_expression "htab_find(DAT_00040b0c,param_3)" identifier (argument_list "(DAT_00040b0c,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }" { (expression_statement "piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);" (assignment_expression "piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1)" identifier = (cast_expression "(int *)htab_find_slot(DAT_00040b10,puVar1,1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "htab_find_slot(DAT_00040b10,puVar1,1)" identifier (argument_list "(DAT_00040b10,puVar1,1)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*piVar4 = (int)puVar1;" (assignment_expression "*piVar4 = (int)puVar1" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar5 = puVar1[1];" (assignment_expression "uVar5 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);" (assignment_expression "puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1)" identifier = (cast_expression "(undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "htab_find_slot(DAT_00040b0c,uVar5,1)" identifier (argument_list "(DAT_00040b0c,uVar5,1)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*puVar1 = uVar5;" (assignment_expression "*puVar1 = uVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);" (assignment_expression "uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" identifier = (call_expression "dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" identifier (argument_list "(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" ( number_literal , (string_literal ""%s: Symbol \"%s\" is target of more than one redefinition"" " string_content escape_sequence string_content escape_sequence string_content ") , number_literal , identifier )))) ;) (expression_statement "FUN_0002c8e0(uVar5,param_1,param_3);" (call_expression "FUN_0002c8e0(uVar5,param_1,param_3)" identifier (argument_list "(uVar5,param_1,param_3)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 ( IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence string_content ") , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void __regparm3 FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    \n  FUN_0002c8e0(uVar5,param_1,param_3);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000174b0(undefined4 param_1,char *param_2,char *param_3)" (identifier "FUN_000174b0") (parameter_list "(undefined4 param_1,char *param_2,char *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  puVar1 = (undefined4 *)xmalloc(8);\n  pcVar2 = strdup(param_2);\n  *puVar1 = pcVar2;\n  pcVar2 = strdup(param_3);\n  puVar1[1] = pcVar2;\n  uVar6 = htab_find(DAT_00040b10,puVar1);\n  if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }\n  iVar3 = htab_find(DAT_00040b0c,param_3);\n  if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }\n  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);\n                    \n  FUN_0002c8e0(uVar5,param_1,param_3);\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "pcVar2 = strdup(param_2);" (assignment_expression "pcVar2 = strdup(param_2)" (identifier "pcVar2") (= "=") (call_expression "strdup(param_2)" (identifier "strdup") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "pcVar2")) (; ";")) (expression_statement "pcVar2 = strdup(param_3);" (assignment_expression "pcVar2 = strdup(param_3)" (identifier "pcVar2") (= "=") (call_expression "strdup(param_3)" (identifier "strdup") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "puVar1[1] = pcVar2;" (assignment_expression "puVar1[1] = pcVar2" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "pcVar2")) (; ";")) (expression_statement "uVar6 = htab_find(DAT_00040b10,puVar1);" (assignment_expression "uVar6 = htab_find(DAT_00040b10,puVar1)" (identifier "uVar6") (= "=") (call_expression "htab_find(DAT_00040b10,puVar1)" (identifier "htab_find") (argument_list "(DAT_00040b10,puVar1)" (( "(") (identifier "DAT_00040b10") (, ",") (identifier "puVar1") () ")")))) (; ";")) (if_statement "if ((int)uVar6 != 0) {\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }" (if "if") (parenthesized_expression "((int)uVar6 != 0)" (( "(") (binary_expression "(int)uVar6 != 0" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));\n                    \n    FUN_0002c8e0(uVar5,param_1,param_2);\n  }" ({ "{") (expression_statement "uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20));" (assignment_expression "uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" (identifier "dcgettext") (argument_list "(0,"%s: Multiple redefinition of symbol \"%s\"",5,\n                      (int)((ulonglong)uVar6 >> 0x20))" (( "(") (number_literal "0") (, ",") (string_literal ""%s: Multiple redefinition of symbol \"%s\""" (" """) (string_content "%s: Multiple redefinition of symbol ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)) (, ",") (number_literal "5") (, ",") (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x20")) () ")"))) () ")")))) (; ";")) (expression_statement "FUN_0002c8e0(uVar5,param_1,param_2);" (call_expression "FUN_0002c8e0(uVar5,param_1,param_2)" (identifier "FUN_0002c8e0") (argument_list "(uVar5,param_1,param_2)" (( "(") (identifier "uVar5") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = htab_find(DAT_00040b0c,param_3);" (assignment_expression "iVar3 = htab_find(DAT_00040b0c,param_3)" (identifier "iVar3") (= "=") (call_expression "htab_find(DAT_00040b0c,param_3)" (identifier "htab_find") (argument_list "(DAT_00040b0c,param_3)" (( "(") (identifier "DAT_00040b0c") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);\n    *piVar4 = (int)puVar1;\n    uVar5 = puVar1[1];\n    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);\n    *puVar1 = uVar5;\n    return;\n  }" ({ "{") (expression_statement "piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);" (assignment_expression "piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1)" (identifier "piVar4") (= "=") (cast_expression "(int *)htab_find_slot(DAT_00040b10,puVar1,1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "htab_find_slot(DAT_00040b10,puVar1,1)" (identifier "htab_find_slot") (argument_list "(DAT_00040b10,puVar1,1)" (( "(") (identifier "DAT_00040b10") (, ",") (identifier "puVar1") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*piVar4 = (int)puVar1;" (assignment_expression "*piVar4 = (int)puVar1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1"))) (; ";")) (expression_statement "uVar5 = puVar1[1];" (assignment_expression "uVar5 = puVar1[1]" (identifier "uVar5") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);" (assignment_expression "puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "htab_find_slot(DAT_00040b0c,uVar5,1)" (identifier "htab_find_slot") (argument_list "(DAT_00040b0c,uVar5,1)" (( "(") (identifier "DAT_00040b0c") (, ",") (identifier "uVar5") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*puVar1 = uVar5;" (assignment_expression "*puVar1 = uVar5" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);" (assignment_expression "uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" (identifier "dcgettext") (argument_list "(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: Symbol \"%s\" is target of more than one redefinition"" (" """) (string_content "%s: Symbol ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (string_content " is target of more than one redefinition") (" """)) (, ",") (number_literal "5") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "FUN_0002c8e0(uVar5,param_1,param_3);" (call_expression "FUN_0002c8e0(uVar5,param_1,param_3)" (identifier "FUN_0002c8e0") (argument_list "(uVar5,param_1,param_3)" (( "(") (identifier "uVar5") (, ",") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(char *cause,char *source,char *target)

{
  type_1 uVar1;
  type_1 *puVar2;
  char *pcVar3;
  int var_6;
  int *piVar5;
  type_2 uVar6;
  
  puVar2 = (type_1 *)var_1(8);
  pcVar3 = var_2(source);
  *puVar2 = pcVar3;
  pcVar3 = var_2(target);
  puVar2[1] = pcVar3;
  uVar6 = var_3(redefine_specific_htab,puVar2);
  if ((int)uVar6 != 0) {
    pcVar3 = (char *)var_4(0,"%s: Multiple redefinition of symbol \"%s\"",5,
                               (int)((type_3)uVar6 >> 0x20));
                    /* WARNING: Subroutine does not return */
    var_5(pcVar3,cause,source);
  }
  var_6 = var_3(redefine_specific_reverse_htab,target);
  if (var_6 == 0) {
    piVar5 = (int *)var_7(redefine_specific_htab,puVar2,1);
    *piVar5 = (int)puVar2;
    uVar1 = puVar2[1];
    puVar2 = (type_1 *)var_7(redefine_specific_reverse_htab,uVar1,1);
    *puVar2 = uVar1;
    return;
  }
  pcVar3 = (char *)var_4(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,var_6);
                    /* WARNING: Subroutine does not return */
  var_5(pcVar3,cause,target);
}


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

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

void __regparm3 MASKED(undefined4 param_1,char *param_2,char *param_3)

{
  undefined4 *puVar1;
  char *pcVar2;
  int iVar3;
  int *piVar4;
  undefined4 uVar5;
  undefined8 uVar6;
  
  puVar1 = (undefined4 *)xmalloc(8);
  pcVar2 = strdup(param_2);
  *puVar1 = pcVar2;
  pcVar2 = strdup(param_3);
  puVar1[1] = pcVar2;
  uVar6 = htab_find(DAT_00040b10,puVar1);
  if ((int)uVar6 != 0) {
    uVar5 = dcgettext(0,"%s: Multiple redefinition of symbol \"%s\"",5,
                      (int)((ulonglong)uVar6 >> 0x20));
                    /* WARNING: Subroutine does not return */
    FUN_0002c8e0(uVar5,param_1,param_2);
  }
  iVar3 = htab_find(DAT_00040b0c,param_3);
  if (iVar3 == 0) {
    piVar4 = (int *)htab_find_slot(DAT_00040b10,puVar1,1);
    *piVar4 = (int)puVar1;
    uVar5 = puVar1[1];
    puVar1 = (undefined4 *)htab_find_slot(DAT_00040b0c,uVar5,1);
    *puVar1 = uVar5;
    return;
  }
  uVar5 = dcgettext(0,"%s: Symbol \"%s\" is target of more than one redefinition",5,iVar3);
                    /* WARNING: Subroutine does not return */
  FUN_0002c8e0(uVar5,param_1,param_3);
}

