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

ld_plugin_status add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)

{
  char *pcVar1;
  uint uVar2;
  undefined4 *puVar3;
  int *piVar4;
  int iVar5;
  ld_plugin_status lVar6;
  
                    /* WARNING: Load size is inaccurate */
  iVar5 = *handle;
  if (called_plugin == (plugin_t *)0x0) {
    info_assert("../../ld/plugin.c",0x1ec);
  }
  puVar3 = (undefined4 *)xmalloc(nsyms << 2);
  if (nsyms < 1) {
    bfd_set_symtab(iVar5,puVar3,nsyms);
    lVar6 = LDPS_OK;
  }
  else {
    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);
    *puVar3 = piVar4;
    pcVar1 = syms->version;
    *piVar4 = iVar5;
    if (pcVar1 == (char *)0x0) {
      pcVar1 = syms->name;
      uVar2 = syms->def;
      piVar4[2] = 0;
      piVar4[1] = (int)pcVar1;
    }
    else {
      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);
      uVar2 = syms->def;
      piVar4[2] = 0;
      piVar4[1] = iVar5;
    }
    if (uVar2 < 5) {
                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();
      return lVar6;
    }
    lVar6 = LDPS_ERR;
  }
  return lVar6;
}



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

undefined4 FUN_00033fc0(int *param_1,int param_2,int *param_3)

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  
  iVar5 = *param_1;
  if (DAT_00091a28 == 0) {
    FUN_000317b0("../../ld/plugin.c",0x1ec);
  }
  puVar3 = (undefined4 *)xmalloc(param_2 << 2);
  if (param_2 < 1) {
    bfd_set_symtab(iVar5,puVar3,param_2);
    uVar6 = 0;
  }
  else {
    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);
    *puVar3 = piVar4;
    iVar1 = param_3[1];
    *piVar4 = iVar5;
    if (iVar1 == 0) {
      iVar5 = *param_3;
      uVar2 = param_3[2];
      piVar4[2] = 0;
      piVar4[1] = iVar5;
    }
    else {
      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);
      uVar2 = param_3[2];
      piVar4[2] = 0;
      piVar4[1] = iVar5;
    }
    if (uVar2 < 5) {
                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();
      return uVar6;
    }
    uVar6 = 3;
  }
  return uVar6;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a80
ADD EBX,0x5d037
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [EAX]
MOV ESI,dword ptr [EBX + 0xa28]
TEST ESI,ESI
JZ 0x00034300
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x50]
SHL EAX,0x2
PUSH EAX
CALL 0x00014cc8
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0xffffffc4]
MOV ECX,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x48]
ADD EAX,0xa8
MOV dword ptr [ESP + 0x8],0x0
MOV dword ptr [ESP + 0x1c],EAX
TEST ECX,ECX
JLE 0x0003411b
LEA ESI,[ESI]
MOV EAX,dword ptr [EBP + 0x4]
SUB ESP,0xc
PUSH EBP
CALL dword ptr [EAX + 0x10c]
MOV EDX,dword ptr [ESP + 0x18]
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [EAX + EDX*0x4],ESI
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [ESI],EBP
TEST EAX,EAX
JZ 0x00034240
PUSH 0x0
PUSH EAX
LEA EAX,[EBX + 0xfffbe04d]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x000143f0
ADD ESP,0x10
CMP dword ptr [EDI + 0x8],0x4
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0x4],EAX
JA 0x00034256
MOV EAX,dword ptr [EDI + 0x8]
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xfffbe100]
ADD ECX,EBX
JMP ECX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [ESP + 0x14]
PUSH EBP
CALL 0x00014610
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EDI]
CMP dword ptr [EDI + 0x8],0x4
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0x4],EAX
JBE 0x0003407a
MOV EAX,0x3
JMP 0x00034131
SUB ESP,0x8
LEA EAX,[EBX + 0xfffbe03b]
PUSH 0x1ec
PUSH EAX
CALL 0x000317b0
ADD ESP,0x10
JMP 0x00033fe6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00033fc0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}\n\n" comment (function_definition "undefined4 FUN_00033fc0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_00033fc0(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 (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }" if (parenthesized_expression "(DAT_00091a28 == 0)" ( (binary_expression "DAT_00091a28 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }" { (expression_statement "FUN_000317b0("../../ld/plugin.c",0x1ec);" (call_expression "FUN_000317b0("../../ld/plugin.c",0x1ec)" identifier (argument_list "("../../ld/plugin.c",0x1ec)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "puVar3 = (undefined4 *)xmalloc(param_2 << 2);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(param_2 << 2)" identifier = (cast_expression "(undefined4 *)xmalloc(param_2 << 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(param_2 << 2)" identifier (argument_list "(param_2 << 2)" ( (binary_expression "param_2 << 2" identifier << number_literal) ))))) ;) (if_statement "if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }" { (expression_statement "bfd_set_symtab(iVar5,puVar3,param_2);" (call_expression "bfd_set_symtab(iVar5,puVar3,param_2)" identifier (argument_list "(iVar5,puVar3,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" else (compound_statement "{\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" { (expression_statement "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);" (assignment_expression "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" identifier = (cast_expression "(int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" (parenthesized_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))" ( (pointer_expression "**(code **)(*(int *)(iVar5 + 4) + 0x10c)" * (pointer_expression "*(code **)(*(int *)(iVar5 + 4) + 0x10c)" * (cast_expression "(code **)(*(int *)(iVar5 + 4) + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar5 + 4) + 0x10c)" ( (binary_expression "*(int *)(iVar5 + 4) + 0x10c" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "*puVar3 = piVar4;" (assignment_expression "*puVar3 = piVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = param_3[1];" (assignment_expression "iVar1 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar4 = iVar5;" (assignment_expression "*piVar4 = iVar5" (pointer_expression "*piVar4" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" { (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar2 = param_3[2];" (assignment_expression "uVar2 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" else (compound_statement "{\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" { (expression_statement "iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);" (assignment_expression "iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0)" identifier = (call_expression "concat(*param_3,&DAT_0004f04d,iVar1,0)" identifier (argument_list "(*param_3,&DAT_0004f04d,iVar1,0)" ( (pointer_expression "*param_3" * identifier) , (pointer_expression "&DAT_0004f04d" & identifier) , identifier , number_literal )))) ;) (expression_statement "uVar2 = param_3[2];" (assignment_expression "uVar2 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }" if (parenthesized_expression "(uVar2 < 5)" ( (binary_expression "uVar2 < 5" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }" { comment comment (expression_statement "uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();" (assignment_expression "uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))()" identifier = (call_expression "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))()" (parenthesized_expression "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))" ( (pointer_expression "*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" * (cast_expression "(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" ( (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_0004f100 + param_3[2] * 4)" * (cast_expression "(int *)(&DAT_0004f100 + param_3[2] * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004f100 + param_3[2] * 4)" ( (binary_expression "&DAT_0004f100 + param_3[2] * 4" (pointer_expression "&DAT_0004f100" & identifier) + (binary_expression "param_3[2] * 4" (subscript_expression "param_3[2]" identifier [ number_literal ]) * number_literal)) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar6;" return identifier ;) })) (expression_statement "uVar6 = 3;" (assignment_expression "uVar6 = 3" identifier = number_literal) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nld_plugin_status add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  ld_plugin_status lVar6;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar5 = *handle;\n  if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(nsyms << 2);\n  if (nsyms < 1) {\n    bfd_set_symtab(iVar5,puVar3,nsyms);\n    lVar6 = LDPS_OK;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    pcVar1 = syms->version;\n    *piVar4 = iVar5;\n    if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }\n    lVar6 = LDPS_ERR;\n  }\n  return lVar6;\n}\n\n" comment comment (function_definition "ld_plugin_status add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  ld_plugin_status lVar6;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar5 = *handle;\n  if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(nsyms << 2);\n  if (nsyms < 1) {\n    bfd_set_symtab(iVar5,puVar3,nsyms);\n    lVar6 = LDPS_OK;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    pcVar1 = syms->version;\n    *piVar4 = iVar5;\n    if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }\n    lVar6 = LDPS_ERR;\n  }\n  return lVar6;\n}" type_identifier (function_declarator "add_symbols(void *handle,int nsyms,ld_plugin_symbol *syms)" identifier (parameter_list "(void *handle,int nsyms,ld_plugin_symbol *syms)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "int nsyms" primitive_type identifier) , (parameter_declaration "ld_plugin_symbol *syms" type_identifier (pointer_declarator "*syms" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  ld_plugin_status lVar6;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar5 = *handle;\n  if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(nsyms << 2);\n  if (nsyms < 1) {\n    bfd_set_symtab(iVar5,puVar3,nsyms);\n    lVar6 = LDPS_OK;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    pcVar1 = syms->version;\n    *piVar4 = iVar5;\n    if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }\n    lVar6 = LDPS_ERR;\n  }\n  return lVar6;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ld_plugin_status lVar6;" type_identifier identifier ;) comment (expression_statement "iVar5 = *handle;" (assignment_expression "iVar5 = *handle" identifier = (pointer_expression "*handle" * identifier)) ;) (if_statement "if (called_plugin == (plugin_t *)0x0) {\n    info_assert("../../ld/plugin.c",0x1ec);\n  }" if (parenthesized_expression "(called_plugin == (plugin_t *)0x0)" ( (binary_expression "called_plugin == (plugin_t *)0x0" identifier == (cast_expression "(plugin_t *)0x0" ( (type_descriptor "plugin_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    info_assert("../../ld/plugin.c",0x1ec);\n  }" { (expression_statement "info_assert("../../ld/plugin.c",0x1ec);" (call_expression "info_assert("../../ld/plugin.c",0x1ec)" identifier (argument_list "("../../ld/plugin.c",0x1ec)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "puVar3 = (undefined4 *)xmalloc(nsyms << 2);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(nsyms << 2)" identifier = (cast_expression "(undefined4 *)xmalloc(nsyms << 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(nsyms << 2)" identifier (argument_list "(nsyms << 2)" ( (binary_expression "nsyms << 2" identifier << number_literal) ))))) ;) (if_statement "if (nsyms < 1) {\n    bfd_set_symtab(iVar5,puVar3,nsyms);\n    lVar6 = LDPS_OK;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    pcVar1 = syms->version;\n    *piVar4 = iVar5;\n    if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }\n    lVar6 = LDPS_ERR;\n  }" if (parenthesized_expression "(nsyms < 1)" ( (binary_expression "nsyms < 1" identifier < number_literal) )) (compound_statement "{\n    bfd_set_symtab(iVar5,puVar3,nsyms);\n    lVar6 = LDPS_OK;\n  }" { (expression_statement "bfd_set_symtab(iVar5,puVar3,nsyms);" (call_expression "bfd_set_symtab(iVar5,puVar3,nsyms)" identifier (argument_list "(iVar5,puVar3,nsyms)" ( identifier , identifier , identifier ))) ;) (expression_statement "lVar6 = LDPS_OK;" (assignment_expression "lVar6 = LDPS_OK" identifier = identifier) ;) }) (else_clause "else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    pcVar1 = syms->version;\n    *piVar4 = iVar5;\n    if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }\n    lVar6 = LDPS_ERR;\n  }" else (compound_statement "{\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    pcVar1 = syms->version;\n    *piVar4 = iVar5;\n    if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }\n    lVar6 = LDPS_ERR;\n  }" { (expression_statement "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);" (assignment_expression "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" identifier = (cast_expression "(int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" (parenthesized_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))" ( (pointer_expression "**(code **)(*(int *)(iVar5 + 4) + 0x10c)" * (pointer_expression "*(code **)(*(int *)(iVar5 + 4) + 0x10c)" * (cast_expression "(code **)(*(int *)(iVar5 + 4) + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar5 + 4) + 0x10c)" ( (binary_expression "*(int *)(iVar5 + 4) + 0x10c" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "*puVar3 = piVar4;" (assignment_expression "*puVar3 = piVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "pcVar1 = syms->version;" (assignment_expression "pcVar1 = syms->version" identifier = (field_expression "syms->version" identifier -> field_identifier)) ;) (expression_statement "*piVar4 = iVar5;" (assignment_expression "*piVar4 = iVar5" (pointer_expression "*piVar4" * identifier) = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }\n    else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar1 = syms->name;\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = (int)pcVar1;\n    }" { (expression_statement "pcVar1 = syms->name;" (assignment_expression "pcVar1 = syms->name" identifier = (field_expression "syms->name" identifier -> field_identifier)) ;) (expression_statement "uVar2 = syms->def;" (assignment_expression "uVar2 = syms->def" identifier = (field_expression "syms->def" identifier -> field_identifier)) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[1] = (int)pcVar1;" (assignment_expression "piVar4[1] = (int)pcVar1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" else (compound_statement "{\n      iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);\n      uVar2 = syms->def;\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" { (expression_statement "iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0);" (assignment_expression "iVar5 = concat(syms->name,&DAT_0004f04d,pcVar1,0)" identifier = (call_expression "concat(syms->name,&DAT_0004f04d,pcVar1,0)" identifier (argument_list "(syms->name,&DAT_0004f04d,pcVar1,0)" ( (field_expression "syms->name" identifier -> field_identifier) , (pointer_expression "&DAT_0004f04d" & identifier) , identifier , number_literal )))) ;) (expression_statement "uVar2 = syms->def;" (assignment_expression "uVar2 = syms->def" identifier = (field_expression "syms->def" identifier -> field_identifier)) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (uVar2 < 5) {\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }" if (parenthesized_expression "(uVar2 < 5)" ( (binary_expression "uVar2 < 5" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();\n      return lVar6;\n    }" { comment comment (expression_statement "lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();" (assignment_expression "lVar6 = (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))()" identifier = (call_expression "(*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))()" (parenthesized_expression "(*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))" ( (pointer_expression "*(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4))" * (cast_expression "(code *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4))" ( (binary_expression "(int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)" (cast_expression "(int)&_GLOBAL_OFFSET_TABLE_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) + (pointer_expression "*(int *)(&DAT_0004f100 + syms->def * 4)" * (cast_expression "(int *)(&DAT_0004f100 + syms->def * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004f100 + syms->def * 4)" ( (binary_expression "&DAT_0004f100 + syms->def * 4" (pointer_expression "&DAT_0004f100" & identifier) + (binary_expression "syms->def * 4" (field_expression "syms->def" identifier -> field_identifier) * number_literal)) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return lVar6;" return identifier ;) })) (expression_statement "lVar6 = LDPS_ERR;" (assignment_expression "lVar6 = LDPS_ERR" identifier = identifier) ;) }))) (return_statement "return lVar6;" return identifier ;) })))
(translation_unit "undefined4 FUN_00033fc0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}\n\n" (function_definition "undefined4 FUN_00033fc0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_00033fc0(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 (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }" if (parenthesized_expression "(DAT_00091a28 == 0)" ( (binary_expression "DAT_00091a28 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }" { (expression_statement "FUN_000317b0("../../ld/plugin.c",0x1ec);" (call_expression "FUN_000317b0("../../ld/plugin.c",0x1ec)" identifier (argument_list "("../../ld/plugin.c",0x1ec)" ( (string_literal ""../../ld/plugin.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "puVar3 = (undefined4 *)xmalloc(param_2 << 2);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(param_2 << 2)" identifier = (cast_expression "(undefined4 *)xmalloc(param_2 << 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(param_2 << 2)" identifier (argument_list "(param_2 << 2)" ( (binary_expression "param_2 << 2" identifier << number_literal) ))))) ;) (if_statement "if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }" { (expression_statement "bfd_set_symtab(iVar5,puVar3,param_2);" (call_expression "bfd_set_symtab(iVar5,puVar3,param_2)" identifier (argument_list "(iVar5,puVar3,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" else (compound_statement "{\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" { (expression_statement "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);" (assignment_expression "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" identifier = (cast_expression "(int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" (parenthesized_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))" ( (pointer_expression "**(code **)(*(int *)(iVar5 + 4) + 0x10c)" * (pointer_expression "*(code **)(*(int *)(iVar5 + 4) + 0x10c)" * (cast_expression "(code **)(*(int *)(iVar5 + 4) + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar5 + 4) + 0x10c)" ( (binary_expression "*(int *)(iVar5 + 4) + 0x10c" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier ))))) ;) (expression_statement "*puVar3 = piVar4;" (assignment_expression "*puVar3 = piVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = param_3[1];" (assignment_expression "iVar1 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar4 = iVar5;" (assignment_expression "*piVar4 = iVar5" (pointer_expression "*piVar4" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" { (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "uVar2 = param_3[2];" (assignment_expression "uVar2 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" else (compound_statement "{\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" { (expression_statement "iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);" (assignment_expression "iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0)" identifier = (call_expression "concat(*param_3,&DAT_0004f04d,iVar1,0)" identifier (argument_list "(*param_3,&DAT_0004f04d,iVar1,0)" ( (pointer_expression "*param_3" * identifier) , (pointer_expression "&DAT_0004f04d" & identifier) , identifier , number_literal )))) ;) (expression_statement "uVar2 = param_3[2];" (assignment_expression "uVar2 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }" if (parenthesized_expression "(uVar2 < 5)" ( (binary_expression "uVar2 < 5" identifier < number_literal) )) (compound_statement "{\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }" { (expression_statement "uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();" (assignment_expression "uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))()" identifier = (call_expression "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))()" (parenthesized_expression "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))" ( (pointer_expression "*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" * (cast_expression "(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" ( (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_0004f100 + param_3[2] * 4)" * (cast_expression "(int *)(&DAT_0004f100 + param_3[2] * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0004f100 + param_3[2] * 4)" ( (binary_expression "&DAT_0004f100 + param_3[2] * 4" (pointer_expression "&DAT_0004f100" & identifier) + (binary_expression "param_3[2] * 4" (subscript_expression "param_3[2]" identifier [ number_literal ]) * number_literal)) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar6;" return identifier ;) })) (expression_statement "uVar6 = 3;" (assignment_expression "uVar6 = 3" identifier = number_literal) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) ))))) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00033fc0(int *param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}" (type_identifier "undefined4") (function_declarator "FUN_00033fc0(int *param_1,int param_2,int *param_3)" (identifier "FUN_00033fc0") (parameter_list "(int *param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  iVar5 = *param_1;\n  if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }\n  puVar3 = (undefined4 *)xmalloc(param_2 << 2);\n  if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }\n  return uVar6;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (DAT_00091a28 == 0) {\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }" (if "if") (parenthesized_expression "(DAT_00091a28 == 0)" (( "(") (binary_expression "DAT_00091a28 == 0" (identifier "DAT_00091a28") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000317b0("../../ld/plugin.c",0x1ec);\n  }" ({ "{") (expression_statement "FUN_000317b0("../../ld/plugin.c",0x1ec);" (call_expression "FUN_000317b0("../../ld/plugin.c",0x1ec)" (identifier "FUN_000317b0") (argument_list "("../../ld/plugin.c",0x1ec)" (( "(") (string_literal ""../../ld/plugin.c"" (" """) (string_content "../../ld/plugin.c") (" """)) (, ",") (number_literal "0x1ec") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined4 *)xmalloc(param_2 << 2);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(param_2 << 2)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(param_2 << 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(param_2 << 2)" (identifier "xmalloc") (argument_list "(param_2 << 2)" (( "(") (binary_expression "param_2 << 2" (identifier "param_2") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (param_2 < 1) {\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }\n  else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    bfd_set_symtab(iVar5,puVar3,param_2);\n    uVar6 = 0;\n  }" ({ "{") (expression_statement "bfd_set_symtab(iVar5,puVar3,param_2);" (call_expression "bfd_set_symtab(iVar5,puVar3,param_2)" (identifier "bfd_set_symtab") (argument_list "(iVar5,puVar3,param_2)" (( "(") (identifier "iVar5") (, ",") (identifier "puVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" (else "else") (compound_statement "{\n    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);\n    *puVar3 = piVar4;\n    iVar1 = param_3[1];\n    *piVar4 = iVar5;\n    if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }\n    uVar6 = 3;\n  }" ({ "{") (expression_statement "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);" (assignment_expression "piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" (identifier "piVar4") (= "=") (cast_expression "(int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5)" (parenthesized_expression "(**(code **)(*(int *)(iVar5 + 4) + 0x10c))" (( "(") (pointer_expression "**(code **)(*(int *)(iVar5 + 4) + 0x10c)" (* "*") (pointer_expression "*(code **)(*(int *)(iVar5 + 4) + 0x10c)" (* "*") (cast_expression "(code **)(*(int *)(iVar5 + 4) + 0x10c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 4) + 0x10c)" (( "(") (binary_expression "*(int *)(iVar5 + 4) + 0x10c" (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x10c")) () ")"))))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))))) (; ";")) (expression_statement "*puVar3 = piVar4;" (assignment_expression "*puVar3 = piVar4" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "piVar4")) (; ";")) (expression_statement "iVar1 = param_3[1];" (assignment_expression "iVar1 = param_3[1]" (identifier "iVar1") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar4 = iVar5;" (assignment_expression "*piVar4 = iVar5" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }\n    else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = *param_3;\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" ({ "{") (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" (identifier "iVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "uVar2 = param_3[2];" (assignment_expression "uVar2 = param_3[2]" (identifier "uVar2") (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" (else "else") (compound_statement "{\n      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);\n      uVar2 = param_3[2];\n      piVar4[2] = 0;\n      piVar4[1] = iVar5;\n    }" ({ "{") (expression_statement "iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);" (assignment_expression "iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0)" (identifier "iVar5") (= "=") (call_expression "concat(*param_3,&DAT_0004f04d,iVar1,0)" (identifier "concat") (argument_list "(*param_3,&DAT_0004f04d,iVar1,0)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (pointer_expression "&DAT_0004f04d" (& "&") (identifier "DAT_0004f04d")) (, ",") (identifier "iVar1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar2 = param_3[2];" (assignment_expression "uVar2 = param_3[2]" (identifier "uVar2") (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4[1] = iVar5;" (assignment_expression "piVar4[1] = iVar5" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (} "}")))) (if_statement "if (uVar2 < 5) {\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }" (if "if") (parenthesized_expression "(uVar2 < 5)" (( "(") (binary_expression "uVar2 < 5" (identifier "uVar2") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n                    \n                    \n      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();\n      return uVar6;\n    }" ({ "{") (expression_statement "uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();" (assignment_expression "uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))()" (identifier "uVar6") (= "=") (call_expression "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))()" (parenthesized_expression "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))" (( "(") (pointer_expression "*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" (* "*") (cast_expression "(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4))" (( "(") (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)" (cast_expression "(int)&__DT_PLTGOT" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (+ "+") (pointer_expression "*(int *)(&DAT_0004f100 + param_3[2] * 4)" (* "*") (cast_expression "(int *)(&DAT_0004f100 + param_3[2] * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0004f100 + param_3[2] * 4)" (( "(") (binary_expression "&DAT_0004f100 + param_3[2] * 4" (pointer_expression "&DAT_0004f100" (& "&") (identifier "DAT_0004f100")) (+ "+") (binary_expression "param_3[2] * 4" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (* "*") (number_literal "4"))) () ")"))))) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (expression_statement "uVar6 = 3;" (assignment_expression "uVar6 = 3" (identifier "uVar6") (= "=") (number_literal "3")) (; ";")) (} "}")))) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}")))

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

type_1 function_1(void *handle,int var_4,type_2 *syms)

{
  char *var_7;
  type_3 var_9;
  type_4 *puVar3;
  int *piVar4;
  int var_6;
  type_1 lVar6;
  
                    /* WARNING: Load size is inaccurate */
  var_6 = *handle;
  if (var_1 == (type_5 *)0x0) {
    var_2("../../ld/plugin.c",0x1ec);
  }
  puVar3 = (type_4 *)var_3(var_4 << 2);
  if (var_4 < 1) {
    var_5(var_6,puVar3,var_4);
    lVar6 = LDPS_OK;
  }
  else {
    piVar4 = (int *)(**(type_6 **)(*(int *)(var_6 + 4) + 0x10c))(var_6);
    *puVar3 = piVar4;
    var_7 = syms->version;
    *piVar4 = var_6;
    if (var_7 == (char *)0x0) {
      var_7 = syms->name;
      var_9 = syms->def;
      piVar4[2] = 0;
      piVar4[1] = (int)var_7;
    }
    else {
      var_6 = var_8(syms->name,&DAT_0004f04d,var_7,0);
      var_9 = syms->def;
      piVar4[2] = 0;
      piVar4[1] = var_6;
    }
    if (var_9 < 5) {
                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      lVar6 = (*(type_6 *)((int)&_GLOBAL_OFFSET_TABLE_ + *(int *)(&DAT_0004f100 + syms->def * 4)))();
      return lVar6;
    }
    lVar6 = LDPS_ERR;
  }
  return lVar6;
}


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

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

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

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  
  iVar5 = *param_1;
  if (DAT_00091a28 == 0) {
    FUN_000317b0("../../ld/plugin.c",0x1ec);
  }
  puVar3 = (undefined4 *)xmalloc(param_2 << 2);
  if (param_2 < 1) {
    bfd_set_symtab(iVar5,puVar3,param_2);
    uVar6 = 0;
  }
  else {
    piVar4 = (int *)(**(code **)(*(int *)(iVar5 + 4) + 0x10c))(iVar5);
    *puVar3 = piVar4;
    iVar1 = param_3[1];
    *piVar4 = iVar5;
    if (iVar1 == 0) {
      iVar5 = *param_3;
      uVar2 = param_3[2];
      piVar4[2] = 0;
      piVar4[1] = iVar5;
    }
    else {
      iVar5 = concat(*param_3,&DAT_0004f04d,iVar1,0);
      uVar2 = param_3[2];
      piVar4[2] = 0;
      piVar4[1] = iVar5;
    }
    if (uVar2 < 5) {
                    /* WARNING: Could not recover jumptable at 0x00034086. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar6 = (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_0004f100 + param_3[2] * 4)))();
      return uVar6;
    }
    uVar6 = 3;
  }
  return uVar6;
}

