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

void emit_expr_fix(expressionS *exp,uint nbytes,fragS *frag,char *p,bfd_reloc_code_real_type r)

{
  undefined4 uVar1;
  int iVar2;
  uint size;
  char *pcVar3;
  
  memset(p,0,nbytes);
  if (r == BFD_RELOC_NONE) {
    switch(nbytes) {
    default:
      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);
      as_bad(pcVar3,nbytes);
      return;
    case 1:
      size = 1;
      iVar2 = 0;
      r = BFD_RELOC_8;
      break;
    case 2:
      size = 2;
      iVar2 = 0;
      r = BFD_RELOC_16;
      break;
    case 3:
      size = 3;
      iVar2 = 0;
      r = BFD_RELOC_24;
      break;
    case 4:
      size = 4;
      iVar2 = 0;
      r = BFD_RELOC_32;
      break;
    case 8:
      size = 8;
      iVar2 = 0;
      r = BFD_RELOC_64;
    }
  }
  else {
    iVar2 = bfd_reloc_type_lookup(stdoutput,r);
    size = bfd_get_reloc_size(iVar2);
    if (nbytes < size) {
      uVar1 = *(undefined4 *)(iVar2 + 0x20);
      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",
                                  "%s relocations do not fit in %u bytes",nbytes,5);
      as_bad(pcVar3,uVar1,nbytes);
      return;
    }
    iVar2 = target_big_endian;
    if (target_big_endian != 0) {
      iVar2 = nbytes - size;
    }
  }
  fix_new_exp(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r);
  return;
}



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

void FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)

{
  int iVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  memset(param_4,0,param_2);
  if (param_5 == 0x47) {
    switch(param_2) {
    default:
      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);
      FUN_0002ac50(uVar3,param_2);
      return;
    case 1:
      uVar2 = 1;
      iVar1 = 0;
      param_5 = 7;
      break;
    case 2:
      uVar2 = 2;
      iVar1 = 0;
      param_5 = 5;
      break;
    case 3:
      uVar2 = 3;
      iVar1 = 0;
      param_5 = 4;
      break;
    case 4:
      uVar2 = 4;
      iVar1 = 0;
      param_5 = 2;
      break;
    case 8:
      uVar2 = 8;
      iVar1 = 0;
      param_5 = 1;
    }
  }
  else {
    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);
    uVar2 = bfd_get_reloc_size(iVar1);
    if (param_2 < uVar2) {
      uVar3 = *(undefined4 *)(iVar1 + 0x20);
      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",
                         "%s relocations do not fit in %u bytes",param_2,5);
      FUN_0002ac50(uVar4,uVar3,param_2);
      return;
    }
    iVar1 = DAT_000682c8;
    if (DAT_000682c8 != 0) {
      iVar1 = param_2 - uVar2;
    }
  }
  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015020
ADD EBX,0x38a97
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x28]
MOV EBP,dword ptr [ESP + 0x34]
PUSH ESI
PUSH 0x0
PUSH dword ptr [ESP + 0x38]
CALL 0x000134c0
ADD ESP,0x10
CMP EBP,0x47
JNZ 0x0002f5a8
CMP ESI,0x8
JA 0x0002f668
MOV EAX,dword ptr [EBX + ESI*0x4 + 0xfffe77f4]
ADD EAX,EBX
JMP EAX
LEA EAX,[EBX + 0x8fc4]
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EAX]
CALL 0x000131f0
MOV dword ptr [ESP],EAX
MOV EDI,EAX
CALL 0x000131d0
ADD ESP,0x10
CMP ESI,EAX
JC 0x0002f690
MOV EDX,dword ptr [EBX + 0x2c8]
SUB ESI,EAX
TEST EDX,EDX
CMOVNZ EDX,ESI
SUB ESP,0x8
PUSH EBP
PUSH 0x0
PUSH dword ptr [ESP + 0x30]
PUSH EAX
MOV EDI,dword ptr [ESP + 0x44]
SUB EDI,dword ptr [ESP + 0x40]
LEA EAX,[EDI + EDX*0x1 + -0x4c]
PUSH EAX
PUSH dword ptr [ESP + 0x44]
CALL 0x0003dbd0
ADD ESP,0x20
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe6b84]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000131b0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0002ac50
ADD ESP,0x10
JMP 0x0002f5ff
SUB ESP,0xc
LEA EAX,[EBX + 0xfffe6b34]
MOV EDI,dword ptr [EDI + 0x20]
PUSH 0x5
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfffe6b5c]
PUSH EAX
PUSH 0x0
CALL 0x00013760
ADD ESP,0x1c
PUSH ESI
PUSH EDI
PUSH EAX
CALL 0x0002ac50
ADD ESP,0x10
JMP 0x0002f5ff
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}\n\n" comment (function_definition "void FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}" primitive_type (function_declarator "FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "memset(param_4,0,param_2);" (call_expression "memset(param_4,0,param_2)" identifier (argument_list "(param_4,0,param_2)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" if (parenthesized_expression "(param_5 == 0x47)" ( (binary_expression "param_5 == 0x47" identifier == number_literal) )) (compound_statement "{\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }" { (switch_statement "switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }" switch (parenthesized_expression "(param_2)" ( identifier )) (compound_statement "{\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }" { (case_statement "default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;" default : (expression_statement "uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);" (assignment_expression "uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5)" identifier = (call_expression "dcgettext(0,"unsupported BFD relocation size %u",5)" identifier (argument_list "(0,"unsupported BFD relocation size %u",5)" ( number_literal , (string_literal ""unsupported BFD relocation size %u"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002ac50(uVar3,param_2);" (call_expression "FUN_0002ac50(uVar3,param_2)" identifier (argument_list "(uVar3,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;)) (case_statement "case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;" case number_literal : (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 7;" (assignment_expression "param_5 = 7" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;" case number_literal : (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 5;" (assignment_expression "param_5 = 5" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;" case number_literal : (expression_statement "uVar2 = 3;" (assignment_expression "uVar2 = 3" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 4;" (assignment_expression "param_5 = 4" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;" case number_literal : (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 2;" (assignment_expression "param_5 = 2" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;" case number_literal : (expression_statement "uVar2 = 8;" (assignment_expression "uVar2 = 8" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 1;" (assignment_expression "param_5 = 1" identifier = number_literal) ;)) })) }) (else_clause "else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" { (expression_statement "iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);" (assignment_expression "iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5)" identifier = (call_expression "bfd_reloc_type_lookup(DAT_00070fc4,param_5)" identifier (argument_list "(DAT_00070fc4,param_5)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = bfd_get_reloc_size(iVar1);" (assignment_expression "uVar2 = bfd_get_reloc_size(iVar1)" identifier = (call_expression "bfd_get_reloc_size(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }" { (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);" (assignment_expression "uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" identifier = (call_expression "dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" identifier (argument_list "(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" ( number_literal , (string_literal ""%s relocations do not fit in %u byte"" " string_content ") , (string_literal ""%s relocations do not fit in %u bytes"" " string_content ") , identifier , number_literal )))) ;) (expression_statement "FUN_0002ac50(uVar4,uVar3,param_2);" (call_expression "FUN_0002ac50(uVar4,uVar3,param_2)" identifier (argument_list "(uVar4,uVar3,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = DAT_000682c8;" (assignment_expression "iVar1 = DAT_000682c8" identifier = identifier) ;) (if_statement "if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }" if (parenthesized_expression "(DAT_000682c8 != 0)" ( (binary_expression "DAT_000682c8 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = param_2 - uVar2;\n    }" { (expression_statement "iVar1 = param_2 - uVar2;" (assignment_expression "iVar1 = param_2 - uVar2" identifier = (binary_expression "param_2 - uVar2" identifier - identifier)) ;) })) }))) (expression_statement "FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);" (call_expression "FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5)" identifier (argument_list "(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5)" ( identifier , (binary_expression "(int)param_4 + iVar1 + (-0x4c - param_3)" (binary_expression "(int)param_4 + iVar1" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + (parenthesized_expression "(-0x4c - param_3)" ( (binary_expression "-0x4c - param_3" number_literal - identifier) ))) , identifier , identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid emit_expr_fix(expressionS *exp,uint nbytes,fragS *frag,char *p,bfd_reloc_code_real_type r)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint size;\n  char *pcVar3;\n  \n  memset(p,0,nbytes);\n  if (r == BFD_RELOC_NONE) {\n    switch(nbytes) {\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }\n  }\n  else {\n    iVar2 = bfd_reloc_type_lookup(stdoutput,r);\n    size = bfd_get_reloc_size(iVar2);\n    if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }\n    iVar2 = target_big_endian;\n    if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }\n  }\n  fix_new_exp(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r);\n  return;\n}\n\n" comment (function_definition "void emit_expr_fix(expressionS *exp,uint nbytes,fragS *frag,char *p,bfd_reloc_code_real_type r)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint size;\n  char *pcVar3;\n  \n  memset(p,0,nbytes);\n  if (r == BFD_RELOC_NONE) {\n    switch(nbytes) {\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }\n  }\n  else {\n    iVar2 = bfd_reloc_type_lookup(stdoutput,r);\n    size = bfd_get_reloc_size(iVar2);\n    if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }\n    iVar2 = target_big_endian;\n    if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }\n  }\n  fix_new_exp(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r);\n  return;\n}" primitive_type (function_declarator "emit_expr_fix(expressionS *exp,uint nbytes,fragS *frag,char *p,bfd_reloc_code_real_type r)" identifier (parameter_list "(expressionS *exp,uint nbytes,fragS *frag,char *p,bfd_reloc_code_real_type r)" ( (parameter_declaration "expressionS *exp" type_identifier (pointer_declarator "*exp" * identifier)) , (parameter_declaration "uint nbytes" type_identifier identifier) , (parameter_declaration "fragS *frag" type_identifier (pointer_declarator "*frag" * identifier)) , (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "bfd_reloc_code_real_type r" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint size;\n  char *pcVar3;\n  \n  memset(p,0,nbytes);\n  if (r == BFD_RELOC_NONE) {\n    switch(nbytes) {\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }\n  }\n  else {\n    iVar2 = bfd_reloc_type_lookup(stdoutput,r);\n    size = bfd_get_reloc_size(iVar2);\n    if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }\n    iVar2 = target_big_endian;\n    if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }\n  }\n  fix_new_exp(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint size;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "memset(p,0,nbytes);" (call_expression "memset(p,0,nbytes)" identifier (argument_list "(p,0,nbytes)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (r == BFD_RELOC_NONE) {\n    switch(nbytes) {\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }\n  }\n  else {\n    iVar2 = bfd_reloc_type_lookup(stdoutput,r);\n    size = bfd_get_reloc_size(iVar2);\n    if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }\n    iVar2 = target_big_endian;\n    if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }\n  }" if (parenthesized_expression "(r == BFD_RELOC_NONE)" ( (binary_expression "r == BFD_RELOC_NONE" identifier == identifier) )) (compound_statement "{\n    switch(nbytes) {\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }\n  }" { (switch_statement "switch(nbytes) {\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }" switch (parenthesized_expression "(nbytes)" ( identifier )) (compound_statement "{\n    default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;\n    case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;\n    case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;\n    case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;\n    case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;\n    case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;\n    }" { (case_statement "default:\n      pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);\n      as_bad(pcVar3,nbytes);\n      return;" default : (expression_statement "pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"unsupported BFD relocation size %u",5)" identifier = (cast_expression "(char *)dcgettext(0,"unsupported BFD relocation size %u",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"unsupported BFD relocation size %u",5)" identifier (argument_list "(0,"unsupported BFD relocation size %u",5)" ( number_literal , (string_literal ""unsupported BFD relocation size %u"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad(pcVar3,nbytes);" (call_expression "as_bad(pcVar3,nbytes)" identifier (argument_list "(pcVar3,nbytes)" ( identifier , identifier ))) ;) (return_statement "return;" return ;)) (case_statement "case 1:\n      size = 1;\n      iVar2 = 0;\n      r = BFD_RELOC_8;\n      break;" case number_literal : (expression_statement "size = 1;" (assignment_expression "size = 1" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "r = BFD_RELOC_8;" (assignment_expression "r = BFD_RELOC_8" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      size = 2;\n      iVar2 = 0;\n      r = BFD_RELOC_16;\n      break;" case number_literal : (expression_statement "size = 2;" (assignment_expression "size = 2" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "r = BFD_RELOC_16;" (assignment_expression "r = BFD_RELOC_16" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      size = 3;\n      iVar2 = 0;\n      r = BFD_RELOC_24;\n      break;" case number_literal : (expression_statement "size = 3;" (assignment_expression "size = 3" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "r = BFD_RELOC_24;" (assignment_expression "r = BFD_RELOC_24" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      size = 4;\n      iVar2 = 0;\n      r = BFD_RELOC_32;\n      break;" case number_literal : (expression_statement "size = 4;" (assignment_expression "size = 4" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "r = BFD_RELOC_32;" (assignment_expression "r = BFD_RELOC_32" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      size = 8;\n      iVar2 = 0;\n      r = BFD_RELOC_64;" case number_literal : (expression_statement "size = 8;" (assignment_expression "size = 8" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "r = BFD_RELOC_64;" (assignment_expression "r = BFD_RELOC_64" identifier = identifier) ;)) })) }) (else_clause "else {\n    iVar2 = bfd_reloc_type_lookup(stdoutput,r);\n    size = bfd_get_reloc_size(iVar2);\n    if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }\n    iVar2 = target_big_endian;\n    if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }\n  }" else (compound_statement "{\n    iVar2 = bfd_reloc_type_lookup(stdoutput,r);\n    size = bfd_get_reloc_size(iVar2);\n    if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }\n    iVar2 = target_big_endian;\n    if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }\n  }" { (expression_statement "iVar2 = bfd_reloc_type_lookup(stdoutput,r);" (assignment_expression "iVar2 = bfd_reloc_type_lookup(stdoutput,r)" identifier = (call_expression "bfd_reloc_type_lookup(stdoutput,r)" identifier (argument_list "(stdoutput,r)" ( identifier , identifier )))) ;) (expression_statement "size = bfd_get_reloc_size(iVar2);" (assignment_expression "size = bfd_get_reloc_size(iVar2)" identifier = (call_expression "bfd_get_reloc_size(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (nbytes < size) {\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }" if (parenthesized_expression "(nbytes < size)" ( (binary_expression "nbytes < size" identifier < identifier) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 0x20);\n      pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);\n      as_bad(pcVar3,uVar1,nbytes);\n      return;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 0x20);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 0x20)" * (cast_expression "(undefined4 *)(iVar2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5);" (assignment_expression "pcVar3 = (char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5)" identifier = (cast_expression "(char *)dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcngettext(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5)" identifier (argument_list "(0,"%s relocations do not fit in %u byte",\n                                  "%s relocations do not fit in %u bytes",nbytes,5)" ( number_literal , (string_literal ""%s relocations do not fit in %u byte"" " string_content ") , (string_literal ""%s relocations do not fit in %u bytes"" " string_content ") , identifier , number_literal ))))) ;) (expression_statement "as_bad(pcVar3,uVar1,nbytes);" (call_expression "as_bad(pcVar3,uVar1,nbytes)" identifier (argument_list "(pcVar3,uVar1,nbytes)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = target_big_endian;" (assignment_expression "iVar2 = target_big_endian" identifier = identifier) ;) (if_statement "if (target_big_endian != 0) {\n      iVar2 = nbytes - size;\n    }" if (parenthesized_expression "(target_big_endian != 0)" ( (binary_expression "target_big_endian != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = nbytes - size;\n    }" { (expression_statement "iVar2 = nbytes - size;" (assignment_expression "iVar2 = nbytes - size" identifier = (binary_expression "nbytes - size" identifier - identifier)) ;) })) }))) (expression_statement "fix_new_exp(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r);" (call_expression "fix_new_exp(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r)" identifier (argument_list "(frag,(int)(p + iVar2 + (-0x4c - (int)frag)),size,exp,0,r)" ( identifier , (cast_expression "(int)(p + iVar2 + (-0x4c - (int)frag))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(p + iVar2 + (-0x4c - (int)frag))" ( (binary_expression "p + iVar2 + (-0x4c - (int)frag)" (binary_expression "p + iVar2" identifier + identifier) + (parenthesized_expression "(-0x4c - (int)frag)" ( (binary_expression "-0x4c - (int)frag" number_literal - (cast_expression "(int)frag" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) , identifier , identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}\n\n" (function_definition "void FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}" primitive_type (function_declarator "FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "memset(param_4,0,param_2);" (call_expression "memset(param_4,0,param_2)" identifier (argument_list "(param_4,0,param_2)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" if (parenthesized_expression "(param_5 == 0x47)" ( (binary_expression "param_5 == 0x47" identifier == number_literal) )) (compound_statement "{\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }" { (switch_statement "switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }" switch (parenthesized_expression "(param_2)" ( identifier )) (compound_statement "{\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }" { (case_statement "default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;" default : (expression_statement "uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);" (assignment_expression "uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5)" identifier = (call_expression "dcgettext(0,"unsupported BFD relocation size %u",5)" identifier (argument_list "(0,"unsupported BFD relocation size %u",5)" ( number_literal , (string_literal ""unsupported BFD relocation size %u"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002ac50(uVar3,param_2);" (call_expression "FUN_0002ac50(uVar3,param_2)" identifier (argument_list "(uVar3,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;)) (case_statement "case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;" case number_literal : (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 7;" (assignment_expression "param_5 = 7" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;" case number_literal : (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 5;" (assignment_expression "param_5 = 5" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;" case number_literal : (expression_statement "uVar2 = 3;" (assignment_expression "uVar2 = 3" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 4;" (assignment_expression "param_5 = 4" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;" case number_literal : (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 2;" (assignment_expression "param_5 = 2" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;" case number_literal : (expression_statement "uVar2 = 8;" (assignment_expression "uVar2 = 8" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "param_5 = 1;" (assignment_expression "param_5 = 1" identifier = number_literal) ;)) })) }) (else_clause "else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" { (expression_statement "iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);" (assignment_expression "iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5)" identifier = (call_expression "bfd_reloc_type_lookup(DAT_00070fc4,param_5)" identifier (argument_list "(DAT_00070fc4,param_5)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = bfd_get_reloc_size(iVar1);" (assignment_expression "uVar2 = bfd_get_reloc_size(iVar1)" identifier = (call_expression "bfd_get_reloc_size(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }" { (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);" (assignment_expression "uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" identifier = (call_expression "dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" identifier (argument_list "(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" ( number_literal , (string_literal ""%s relocations do not fit in %u byte"" " string_content ") , (string_literal ""%s relocations do not fit in %u bytes"" " string_content ") , identifier , number_literal )))) ;) (expression_statement "FUN_0002ac50(uVar4,uVar3,param_2);" (call_expression "FUN_0002ac50(uVar4,uVar3,param_2)" identifier (argument_list "(uVar4,uVar3,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = DAT_000682c8;" (assignment_expression "iVar1 = DAT_000682c8" identifier = identifier) ;) (if_statement "if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }" if (parenthesized_expression "(DAT_000682c8 != 0)" ( (binary_expression "DAT_000682c8 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = param_2 - uVar2;\n    }" { (expression_statement "iVar1 = param_2 - uVar2;" (assignment_expression "iVar1 = param_2 - uVar2" identifier = (binary_expression "param_2 - uVar2" identifier - identifier)) ;) })) }))) (expression_statement "FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);" (call_expression "FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5)" identifier (argument_list "(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5)" ( identifier , (binary_expression "(int)param_4 + iVar1 + (-0x4c - param_3)" (binary_expression "(int)param_4 + iVar1" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + (parenthesized_expression "(-0x4c - param_3)" ( (binary_expression "-0x4c - param_3" number_literal - identifier) ))) , identifier , identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement default : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;)) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + (parenthesized_expression ( (binary_expression LIT - IDENT) ))) , IDENT , IDENT , LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002f560(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)" (identifier "FUN_0002f560") (parameter_list "(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "void *param_4" (primitive_type "void") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  memset(param_4,0,param_2);\n  if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }\n  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "memset(param_4,0,param_2);" (call_expression "memset(param_4,0,param_2)" (identifier "memset") (argument_list "(param_4,0,param_2)" (( "(") (identifier "param_4") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (param_5 == 0x47) {\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }\n  else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_5 == 0x47)" (( "(") (binary_expression "param_5 == 0x47" (identifier "param_5") (== "==") (number_literal "0x47")) () ")")) (compound_statement "{\n    switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }\n  }" ({ "{") (switch_statement "switch(param_2) {\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }" (switch "switch") (parenthesized_expression "(param_2)" (( "(") (identifier "param_2") () ")")) (compound_statement "{\n    default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;\n    case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;\n    case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;\n    case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;\n    case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;\n    case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;\n    }" ({ "{") (case_statement "default:\n      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);\n      FUN_0002ac50(uVar3,param_2);\n      return;" (default "default") (: ":") (expression_statement "uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);" (assignment_expression "uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"unsupported BFD relocation size %u",5)" (identifier "dcgettext") (argument_list "(0,"unsupported BFD relocation size %u",5)" (( "(") (number_literal "0") (, ",") (string_literal ""unsupported BFD relocation size %u"" (" """) (string_content "unsupported BFD relocation size %u") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002ac50(uVar3,param_2);" (call_expression "FUN_0002ac50(uVar3,param_2)" (identifier "FUN_0002ac50") (argument_list "(uVar3,param_2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";"))) (case_statement "case 1:\n      uVar2 = 1;\n      iVar1 = 0;\n      param_5 = 7;\n      break;" (case "case") (number_literal "1") (: ":") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5 = 7;" (assignment_expression "param_5 = 7" (identifier "param_5") (= "=") (number_literal "7")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 2:\n      uVar2 = 2;\n      iVar1 = 0;\n      param_5 = 5;\n      break;" (case "case") (number_literal "2") (: ":") (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" (identifier "uVar2") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5 = 5;" (assignment_expression "param_5 = 5" (identifier "param_5") (= "=") (number_literal "5")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 3:\n      uVar2 = 3;\n      iVar1 = 0;\n      param_5 = 4;\n      break;" (case "case") (number_literal "3") (: ":") (expression_statement "uVar2 = 3;" (assignment_expression "uVar2 = 3" (identifier "uVar2") (= "=") (number_literal "3")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5 = 4;" (assignment_expression "param_5 = 4" (identifier "param_5") (= "=") (number_literal "4")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 4:\n      uVar2 = 4;\n      iVar1 = 0;\n      param_5 = 2;\n      break;" (case "case") (number_literal "4") (: ":") (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5 = 2;" (assignment_expression "param_5 = 2" (identifier "param_5") (= "=") (number_literal "2")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 8:\n      uVar2 = 8;\n      iVar1 = 0;\n      param_5 = 1;" (case "case") (number_literal "8") (: ":") (expression_statement "uVar2 = 8;" (assignment_expression "uVar2 = 8" (identifier "uVar2") (= "=") (number_literal "8")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5 = 1;" (assignment_expression "param_5 = 1" (identifier "param_5") (= "=") (number_literal "1")) (; ";"))) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);\n    uVar2 = bfd_get_reloc_size(iVar1);\n    if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }\n    iVar1 = DAT_000682c8;\n    if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);" (assignment_expression "iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5)" (identifier "iVar1") (= "=") (call_expression "bfd_reloc_type_lookup(DAT_00070fc4,param_5)" (identifier "bfd_reloc_type_lookup") (argument_list "(DAT_00070fc4,param_5)" (( "(") (identifier "DAT_00070fc4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar2 = bfd_get_reloc_size(iVar1);" (assignment_expression "uVar2 = bfd_get_reloc_size(iVar1)" (identifier "uVar2") (= "=") (call_expression "bfd_get_reloc_size(iVar1)" (identifier "bfd_get_reloc_size") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (param_2 < uVar2) {\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 < uVar2)" (( "(") (binary_expression "param_2 < uVar2" (identifier "param_2") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n      uVar3 = *(undefined4 *)(iVar1 + 0x20);\n      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);\n      FUN_0002ac50(uVar4,uVar3,param_2);\n      return;\n    }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5);" (assignment_expression "uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" (identifier "uVar4") (= "=") (call_expression "dcngettext(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" (identifier "dcngettext") (argument_list "(0,"%s relocations do not fit in %u byte",\n                         "%s relocations do not fit in %u bytes",param_2,5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s relocations do not fit in %u byte"" (" """) (string_content "%s relocations do not fit in %u byte") (" """)) (, ",") (string_literal ""%s relocations do not fit in %u bytes"" (" """) (string_content "%s relocations do not fit in %u bytes") (" """)) (, ",") (identifier "param_2") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002ac50(uVar4,uVar3,param_2);" (call_expression "FUN_0002ac50(uVar4,uVar3,param_2)" (identifier "FUN_0002ac50") (argument_list "(uVar4,uVar3,param_2)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = DAT_000682c8;" (assignment_expression "iVar1 = DAT_000682c8" (identifier "iVar1") (= "=") (identifier "DAT_000682c8")) (; ";")) (if_statement "if (DAT_000682c8 != 0) {\n      iVar1 = param_2 - uVar2;\n    }" (if "if") (parenthesized_expression "(DAT_000682c8 != 0)" (( "(") (binary_expression "DAT_000682c8 != 0" (identifier "DAT_000682c8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = param_2 - uVar2;\n    }" ({ "{") (expression_statement "iVar1 = param_2 - uVar2;" (assignment_expression "iVar1 = param_2 - uVar2" (identifier "iVar1") (= "=") (binary_expression "param_2 - uVar2" (identifier "param_2") (- "-") (identifier "uVar2"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);" (call_expression "FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5)" (identifier "FUN_0003dbd0") (argument_list "(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5)" (( "(") (identifier "param_3") (, ",") (binary_expression "(int)param_4 + iVar1 + (-0x4c - param_3)" (binary_expression "(int)param_4 + iVar1" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (identifier "iVar1")) (+ "+") (parenthesized_expression "(-0x4c - param_3)" (( "(") (binary_expression "-0x4c - param_3" (number_literal "-0x4c") (- "-") (identifier "param_3")) () ")"))) (, ",") (identifier "uVar2") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "param_5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *exp,type_2 var_8,type_3 *frag,char *var_14,type_4 var_2)

{
  type_5 uVar1;
  int var_10;
  type_2 var_9;
  char *pcVar3;
  
  var_1(var_14,0,var_8);
  if (var_2 == var_3) {
    switch(var_8) {
    default:
      pcVar3 = (char *)var_4(0,"unsupported BFD relocation size %u",5);
      var_5(pcVar3,var_8);
      return;
    case 1:
      var_9 = 1;
      var_10 = 0;
      var_2 = BFD_RELOC_8;
      break;
    case 2:
      var_9 = 2;
      var_10 = 0;
      var_2 = BFD_RELOC_16;
      break;
    case 3:
      var_9 = 3;
      var_10 = 0;
      var_2 = BFD_RELOC_24;
      break;
    case 4:
      var_9 = 4;
      var_10 = 0;
      var_2 = BFD_RELOC_32;
      break;
    case 8:
      var_9 = 8;
      var_10 = 0;
      var_2 = BFD_RELOC_64;
    }
  }
  else {
    var_10 = var_6(stdoutput,var_2);
    var_9 = var_7(var_10);
    if (var_8 < var_9) {
      uVar1 = *(type_5 *)(var_10 + 0x20);
      pcVar3 = (char *)var_11(0,"%s relocations do not fit in %u byte",
                                  "%s relocations do not fit in %u bytes",var_8,5);
      var_5(pcVar3,uVar1,var_8);
      return;
    }
    var_10 = var_12;
    if (var_12 != 0) {
      var_10 = var_8 - var_9;
    }
  }
  var_13(frag,(int)(var_14 + var_10 + (-0x4c - (int)frag)),var_9,exp,0,var_2);
  return;
}


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

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

void MASKED(undefined4 param_1,uint param_2,int param_3,void *param_4,int param_5)

{
  int iVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  memset(param_4,0,param_2);
  if (param_5 == 0x47) {
    switch(param_2) {
    default:
      uVar3 = dcgettext(0,"unsupported BFD relocation size %u",5);
      FUN_0002ac50(uVar3,param_2);
      return;
    case 1:
      uVar2 = 1;
      iVar1 = 0;
      param_5 = 7;
      break;
    case 2:
      uVar2 = 2;
      iVar1 = 0;
      param_5 = 5;
      break;
    case 3:
      uVar2 = 3;
      iVar1 = 0;
      param_5 = 4;
      break;
    case 4:
      uVar2 = 4;
      iVar1 = 0;
      param_5 = 2;
      break;
    case 8:
      uVar2 = 8;
      iVar1 = 0;
      param_5 = 1;
    }
  }
  else {
    iVar1 = bfd_reloc_type_lookup(DAT_00070fc4,param_5);
    uVar2 = bfd_get_reloc_size(iVar1);
    if (param_2 < uVar2) {
      uVar3 = *(undefined4 *)(iVar1 + 0x20);
      uVar4 = dcngettext(0,"%s relocations do not fit in %u byte",
                         "%s relocations do not fit in %u bytes",param_2,5);
      FUN_0002ac50(uVar4,uVar3,param_2);
      return;
    }
    iVar1 = DAT_000682c8;
    if (DAT_000682c8 != 0) {
      iVar1 = param_2 - uVar2;
    }
  }
  FUN_0003dbd0(param_3,(int)param_4 + iVar1 + (-0x4c - param_3),uVar2,param_1,0,param_5);
  return;
}

