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

void __regparm2
create_note_reloc(segT sec,symbolS *sym,bfd_size_type offset,int reloc_type,bfd_vma addend,
                 char *note)

{
  symbol_flags sVar1;
  reloc_list *prVar2;
  reloc_howto_type *prVar3;
  char *pcVar4;
  uint uVar5;
  char local_28;
  
  prVar2 = (reloc_list *)xmalloc(0x2c);
  (prVar2->u).a.offset_sym = (symbolS *)sec;
  sVar1 = sym->sy_flags;
  *(undefined4 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_;
  (prVar2->u).a.howto = (reloc_howto_type *)sVar1;
  (prVar2->u).a.sym = (symbolS *)((int)&prVar2->u + 4);
  (prVar2->u).a.addend = offset;
  *(undefined4 *)&(prVar2->u).b.r.addend = (undefined4)addend;
  prVar3 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type);
  (prVar2->u).b.r.howto = prVar3;
  if (prVar3 == (reloc_howto_type *)0x0) {
    pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);
    as_bad(pcVar4);
  }
  else {
    prVar2->line = 0;
    prVar2->file = "<gnu build note>";
    prVar2->next = reloc_list;
    reloc_list = prVar2;
    local_28 = (char)addend;
    if (((sec->field_0x19 & 4) == 0) ||
       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {
      if (target_big_endian != 0) {
        uVar5 = bfd_arch_bits_per_address(stdoutput);
        if (uVar5 < 0x21) {
          note[(int)offset + 3] = local_28;
          return;
        }
        note[(int)offset + 7] = local_28;
        return;
      }
      note[(int)offset] = local_28;
    }
  }
  return;
}



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

void __regparm2
FUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,
            undefined4 param_6,undefined4 param_7,int param_8)

{
  undefined4 *puVar1;
  int iVar2;
  char *pcVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined1 local_28;
  
  puVar1 = (undefined4 *)xmalloc(0x2c);
  puVar1[1] = param_1;
  uVar5 = *param_2;
  puVar1[7] = param_7;
  puVar1[2] = uVar5;
  puVar1[3] = puVar1 + 2;
  puVar1[4] = param_3;
  puVar1[5] = param_4;
  puVar1[6] = param_6;
  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);
  puVar1[8] = iVar2;
  if (iVar2 == 0) {
    uVar5 = dcgettext(0,"unable to create reloc for build note",5);
    FUN_0002cea0(uVar5);
  }
  else {
    puVar1[10] = 0;
    puVar1[9] = "<gnu build note>";
    *puVar1 = DAT_00081b24;
    DAT_00081b24 = puVar1;
    local_28 = (undefined1)param_6;
    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||
       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))
    {
      if (DAT_0008125c != 0) {
        uVar4 = bfd_arch_bits_per_address(DAT_00081984);
        if (uVar4 < 0x21) {
          *(undefined1 *)(param_8 + 3 + param_3) = local_28;
          return;
        }
        *(undefined1 *)(param_8 + 7 + param_3) = local_28;
        return;
      }
      *(undefined1 *)(param_8 + param_3) = local_28;
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017140
ADD EBX,0x38205
SUB ESP,0x28
MOV EAX,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x18],EDX
MOV EDI,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x10],EAX
PUSH 0x2c
CALL 0x000158c0
MOV EDX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX + 0x4],ESI
MOV ECX,EAX
MOV EAX,dword ptr [EDX]
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ECX + 0x1c],EBP
LEA EBP,[EBX + 0x9984]
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ECX + 0x8],EAX
LEA EAX,[ECX + 0x8]
MOV dword ptr [ECX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ECX + 0x10],EDI
MOV dword ptr [ECX + 0x14],EDX
MOV dword ptr [ECX + 0x18],EAX
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [EBP]
CALL 0x00015220
MOV ECX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [ECX + 0x20],EAX
TEST EAX,EAX
JZ 0x0003ff28
LEA EAX,[EBX + 0xfffe2948]
MOV dword ptr [ECX + 0x28],0x0
MOV dword ptr [ECX + 0x24],EAX
LEA EAX,[EBX + 0x9b24]
MOV EDX,dword ptr [EAX]
MOV dword ptr [EAX],ECX
MOV dword ptr [ECX],EDX
TEST byte ptr [ESI + 0x19],0x4
JNZ 0x0003fec0
LEA EAX,[EBX + 0x925c]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0003feea
MOV ESI,dword ptr [ESP + 0x44]
MOVZX EAX,byte ptr [ESP + 0x4]
MOV byte ptr [ESI + EDI*0x1],AL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe2959]
PUSH EAX
MOV EAX,dword ptr [EBP]
MOV EAX,dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
CALL 0x00015070
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003feb3
LEA EAX,[EBX + 0x925c]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0003fea7
SUB ESP,0xc
PUSH dword ptr [EBP]
CALL 0x00015890
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x44]
CMP EAX,0x20
MOVZX EAX,byte ptr [ESP + 0x4]
JA 0x0003ff18
MOV byte ptr [ESI + EDI*0x1 + 0x3],AL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [ESI + EDI*0x1 + 0x7],AL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe269c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000151e0
MOV dword ptr [ESP],EAX
CALL 0x0002cea0
ADD ESP,0x10
JMP 0x0003feb3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2\nFUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm2\nFUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 local_28;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x2c);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x2c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x2c)" identifier (argument_list "(0x2c)" ( number_literal ))))) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar5 = *param_2;" (assignment_expression "uVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar1[7] = param_7;" (assignment_expression "puVar1[7] = param_7" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = uVar5;" (assignment_expression "puVar1[2] = uVar5" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = puVar1 + 2;" (assignment_expression "puVar1[3] = puVar1 + 2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (binary_expression "puVar1 + 2" identifier + number_literal)) ;) (expression_statement "puVar1[4] = param_3;" (assignment_expression "puVar1[4] = param_3" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = param_4;" (assignment_expression "puVar1[5] = param_4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = param_6;" (assignment_expression "puVar1[6] = param_6" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);" (assignment_expression "iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5)" identifier = (call_expression "bfd_reloc_type_lookup(DAT_00081984,param_5)" identifier (argument_list "(DAT_00081984,param_5)" ( identifier , identifier )))) ;) (expression_statement "puVar1[8] = iVar2;" (assignment_expression "puVar1[8] = iVar2" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }" { (expression_statement "uVar5 = dcgettext(0,"unable to create reloc for build note",5);" (assignment_expression "uVar5 = dcgettext(0,"unable to create reloc for build note",5)" identifier = (call_expression "dcgettext(0,"unable to create reloc for build note",5)" identifier (argument_list "(0,"unable to create reloc for build note",5)" ( number_literal , (string_literal ""unable to create reloc for build note"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002cea0(uVar5);" (call_expression "FUN_0002cea0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) }) (else_clause "else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" else (compound_statement "{\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" { (expression_statement "puVar1[10] = 0;" (assignment_expression "puVar1[10] = 0" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[9] = "<gnu build note>";" (assignment_expression "puVar1[9] = "<gnu build note>"" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = (string_literal ""<gnu build note>"" " string_content ")) ;) (expression_statement "*puVar1 = DAT_00081b24;" (assignment_expression "*puVar1 = DAT_00081b24" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "DAT_00081b24 = puVar1;" (assignment_expression "DAT_00081b24 = puVar1" identifier = identifier) ;) (expression_statement "local_28 = (undefined1)param_6;" (assignment_expression "local_28 = (undefined1)param_6" identifier = (cast_expression "(undefined1)param_6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (if_statement "if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))" ( (binary_expression "((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x19) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x19) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x19) & 4" (pointer_expression "*(byte *)(param_1 + 0x19)" * (cast_expression "(byte *)(param_1 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19)" ( (binary_expression "param_1 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" identifier = (call_expression "strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" identifier (argument_list "((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" ( (cast_expression "(char *)**(undefined4 **)(DAT_00081984 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_00081984 + 4)" * (pointer_expression "*(undefined4 **)(DAT_00081984 + 4)" * (cast_expression "(undefined4 **)(DAT_00081984 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00081984 + 4)" ( (binary_expression "DAT_00081984 + 4" identifier + number_literal) )))))) , (string_literal ""-sh"" " string_content ") )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }" { (if_statement "if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }" if (parenthesized_expression "(DAT_0008125c != 0)" ( (binary_expression "DAT_0008125c != 0" identifier != number_literal) )) (compound_statement "{\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }" { (expression_statement "uVar4 = bfd_arch_bits_per_address(DAT_00081984);" (assignment_expression "uVar4 = bfd_arch_bits_per_address(DAT_00081984)" identifier = (call_expression "bfd_arch_bits_per_address(DAT_00081984)" identifier (argument_list "(DAT_00081984)" ( identifier )))) ;) (if_statement "if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }" if (parenthesized_expression "(uVar4 < 0x21)" ( (binary_expression "uVar4 < 0x21" identifier < number_literal) )) (compound_statement "{\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }" { (expression_statement "*(undefined1 *)(param_8 + 3 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + 3 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + 3 + param_3)" * (cast_expression "(undefined1 *)(param_8 + 3 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + 3 + param_3)" ( (binary_expression "param_8 + 3 + param_3" (binary_expression "param_8 + 3" identifier + number_literal) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_8 + 7 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + 7 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + 7 + param_3)" * (cast_expression "(undefined1 *)(param_8 + 7 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + 7 + param_3)" ( (binary_expression "param_8 + 7 + param_3" (binary_expression "param_8 + 7" identifier + number_literal) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_8 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + param_3)" * (cast_expression "(undefined1 *)(param_8 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + param_3)" ( (binary_expression "param_8 + param_3" identifier + identifier) )))) = identifier) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2\ncreate_note_reloc(segT sec,symbolS *sym,bfd_size_type offset,int reloc_type,bfd_vma addend,\n                 char *note)\n\n{\n  symbol_flags sVar1;\n  reloc_list *prVar2;\n  reloc_howto_type *prVar3;\n  char *pcVar4;\n  uint uVar5;\n  char local_28;\n  \n  prVar2 = (reloc_list *)xmalloc(0x2c);\n  (prVar2->u).a.offset_sym = (symbolS *)sec;\n  sVar1 = sym->sy_flags;\n  *(undefined4 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_;\n  (prVar2->u).a.howto = (reloc_howto_type *)sVar1;\n  (prVar2->u).a.sym = (symbolS *)((int)&prVar2->u + 4);\n  (prVar2->u).a.addend = offset;\n  *(undefined4 *)&(prVar2->u).b.r.addend = (undefined4)addend;\n  prVar3 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type);\n  (prVar2->u).b.r.howto = prVar3;\n  if (prVar3 == (reloc_howto_type *)0x0) {\n    pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);\n    as_bad(pcVar4);\n  }\n  else {\n    prVar2->line = 0;\n    prVar2->file = "<gnu build note>";\n    prVar2->next = reloc_list;\n    reloc_list = prVar2;\n    local_28 = (char)addend;\n    if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm2\ncreate_note_reloc(segT sec,symbolS *sym,bfd_size_type offset,int reloc_type,bfd_vma addend,\n                 char *note)\n\n{\n  symbol_flags sVar1;\n  reloc_list *prVar2;\n  reloc_howto_type *prVar3;\n  char *pcVar4;\n  uint uVar5;\n  char local_28;\n  \n  prVar2 = (reloc_list *)xmalloc(0x2c);\n  (prVar2->u).a.offset_sym = (symbolS *)sec;\n  sVar1 = sym->sy_flags;\n  *(undefined4 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_;\n  (prVar2->u).a.howto = (reloc_howto_type *)sVar1;\n  (prVar2->u).a.sym = (symbolS *)((int)&prVar2->u + 4);\n  (prVar2->u).a.addend = offset;\n  *(undefined4 *)&(prVar2->u).b.r.addend = (undefined4)addend;\n  prVar3 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type);\n  (prVar2->u).b.r.howto = prVar3;\n  if (prVar3 == (reloc_howto_type *)0x0) {\n    pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);\n    as_bad(pcVar4);\n  }\n  else {\n    prVar2->line = 0;\n    prVar2->file = "<gnu build note>";\n    prVar2->next = reloc_list;\n    reloc_list = prVar2;\n    local_28 = (char)addend;\n    if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "create_note_reloc(segT sec,symbolS *sym,bfd_size_type offset,int reloc_type,bfd_vma addend,\n                 char *note)" identifier (parameter_list "(segT sec,symbolS *sym,bfd_size_type offset,int reloc_type,bfd_vma addend,\n                 char *note)" ( (parameter_declaration "segT sec" type_identifier identifier) , (parameter_declaration "symbolS *sym" type_identifier (pointer_declarator "*sym" * identifier)) , (parameter_declaration "bfd_size_type offset" type_identifier identifier) , (parameter_declaration "int reloc_type" primitive_type identifier) , (parameter_declaration "bfd_vma addend" type_identifier identifier) , (parameter_declaration "char *note" primitive_type (pointer_declarator "*note" * identifier)) ))) (compound_statement "{\n  symbol_flags sVar1;\n  reloc_list *prVar2;\n  reloc_howto_type *prVar3;\n  char *pcVar4;\n  uint uVar5;\n  char local_28;\n  \n  prVar2 = (reloc_list *)xmalloc(0x2c);\n  (prVar2->u).a.offset_sym = (symbolS *)sec;\n  sVar1 = sym->sy_flags;\n  *(undefined4 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_;\n  (prVar2->u).a.howto = (reloc_howto_type *)sVar1;\n  (prVar2->u).a.sym = (symbolS *)((int)&prVar2->u + 4);\n  (prVar2->u).a.addend = offset;\n  *(undefined4 *)&(prVar2->u).b.r.addend = (undefined4)addend;\n  prVar3 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type);\n  (prVar2->u).b.r.howto = prVar3;\n  if (prVar3 == (reloc_howto_type *)0x0) {\n    pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);\n    as_bad(pcVar4);\n  }\n  else {\n    prVar2->line = 0;\n    prVar2->file = "<gnu build note>";\n    prVar2->next = reloc_list;\n    reloc_list = prVar2;\n    local_28 = (char)addend;\n    if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }\n  }\n  return;\n}" { (declaration "symbol_flags sVar1;" type_identifier identifier ;) (declaration "reloc_list *prVar2;" type_identifier (pointer_declarator "*prVar2" * identifier) ;) (declaration "reloc_howto_type *prVar3;" type_identifier (pointer_declarator "*prVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char local_28;" primitive_type identifier ;) (expression_statement "prVar2 = (reloc_list *)xmalloc(0x2c);" (assignment_expression "prVar2 = (reloc_list *)xmalloc(0x2c)" identifier = (cast_expression "(reloc_list *)xmalloc(0x2c)" ( (type_descriptor "reloc_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x2c)" identifier (argument_list "(0x2c)" ( number_literal ))))) ;) (expression_statement "(prVar2->u).a.offset_sym = (symbolS *)sec;" (assignment_expression "(prVar2->u).a.offset_sym = (symbolS *)sec" (field_expression "(prVar2->u).a.offset_sym" (field_expression "(prVar2->u).a" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(symbolS *)sec" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "sVar1 = sym->sy_flags;" (assignment_expression "sVar1 = sym->sy_flags" identifier = (field_expression "sym->sy_flags" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_;" (assignment_expression "*(undefined4 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_" (pointer_expression "*(undefined4 *)((int)&(prVar2->u).b.r.addend + 4)" * (cast_expression "(undefined4 *)((int)&(prVar2->u).b.r.addend + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(prVar2->u).b.r.addend + 4)" ( (binary_expression "(int)&(prVar2->u).b.r.addend + 4" (cast_expression "(int)&(prVar2->u).b.r.addend" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(prVar2->u).b.r.addend" & (field_expression "(prVar2->u).b.r.addend" (field_expression "(prVar2->u).b.r" (field_expression "(prVar2->u).b" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier))) + number_literal) )))) = (field_expression "addend._4_4_" identifier . field_identifier)) ;) (expression_statement "(prVar2->u).a.howto = (reloc_howto_type *)sVar1;" (assignment_expression "(prVar2->u).a.howto = (reloc_howto_type *)sVar1" (field_expression "(prVar2->u).a.howto" (field_expression "(prVar2->u).a" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(reloc_howto_type *)sVar1" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(prVar2->u).a.sym = (symbolS *)((int)&prVar2->u + 4);" (assignment_expression "(prVar2->u).a.sym = (symbolS *)((int)&prVar2->u + 4)" (field_expression "(prVar2->u).a.sym" (field_expression "(prVar2->u).a" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(symbolS *)((int)&prVar2->u + 4)" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&prVar2->u + 4)" ( (binary_expression "(int)&prVar2->u + 4" (cast_expression "(int)&prVar2->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&prVar2->u" & (field_expression "prVar2->u" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "(prVar2->u).a.addend = offset;" (assignment_expression "(prVar2->u).a.addend = offset" (field_expression "(prVar2->u).a.addend" (field_expression "(prVar2->u).a" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&(prVar2->u).b.r.addend = (undefined4)addend;" (assignment_expression "*(undefined4 *)&(prVar2->u).b.r.addend = (undefined4)addend" (pointer_expression "*(undefined4 *)&(prVar2->u).b.r.addend" * (cast_expression "(undefined4 *)&(prVar2->u).b.r.addend" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(prVar2->u).b.r.addend" & (field_expression "(prVar2->u).b.r.addend" (field_expression "(prVar2->u).b.r" (field_expression "(prVar2->u).b" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)))) = (cast_expression "(undefined4)addend" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "prVar3 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type);" (assignment_expression "prVar3 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type)" identifier = (cast_expression "(reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,reloc_type)" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_reloc_type_lookup(stdoutput,reloc_type)" identifier (argument_list "(stdoutput,reloc_type)" ( identifier , identifier ))))) ;) (expression_statement "(prVar2->u).b.r.howto = prVar3;" (assignment_expression "(prVar2->u).b.r.howto = prVar3" (field_expression "(prVar2->u).b.r.howto" (field_expression "(prVar2->u).b.r" (field_expression "(prVar2->u).b" (parenthesized_expression "(prVar2->u)" ( (field_expression "prVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (if_statement "if (prVar3 == (reloc_howto_type *)0x0) {\n    pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);\n    as_bad(pcVar4);\n  }\n  else {\n    prVar2->line = 0;\n    prVar2->file = "<gnu build note>";\n    prVar2->next = reloc_list;\n    reloc_list = prVar2;\n    local_28 = (char)addend;\n    if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }\n  }" if (parenthesized_expression "(prVar3 == (reloc_howto_type *)0x0)" ( (binary_expression "prVar3 == (reloc_howto_type *)0x0" identifier == (cast_expression "(reloc_howto_type *)0x0" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);\n    as_bad(pcVar4);\n  }" { (expression_statement "pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"unable to create reloc for build note",5)" identifier = (cast_expression "(char *)dcgettext(0,"unable to create reloc for build note",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"unable to create reloc for build note",5)" identifier (argument_list "(0,"unable to create reloc for build note",5)" ( number_literal , (string_literal ""unable to create reloc for build note"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad(pcVar4);" (call_expression "as_bad(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) }) (else_clause "else {\n    prVar2->line = 0;\n    prVar2->file = "<gnu build note>";\n    prVar2->next = reloc_list;\n    reloc_list = prVar2;\n    local_28 = (char)addend;\n    if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }\n  }" else (compound_statement "{\n    prVar2->line = 0;\n    prVar2->file = "<gnu build note>";\n    prVar2->next = reloc_list;\n    reloc_list = prVar2;\n    local_28 = (char)addend;\n    if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }\n  }" { (expression_statement "prVar2->line = 0;" (assignment_expression "prVar2->line = 0" (field_expression "prVar2->line" identifier -> field_identifier) = number_literal) ;) (expression_statement "prVar2->file = "<gnu build note>";" (assignment_expression "prVar2->file = "<gnu build note>"" (field_expression "prVar2->file" identifier -> field_identifier) = (string_literal ""<gnu build note>"" " string_content ")) ;) (expression_statement "prVar2->next = reloc_list;" (assignment_expression "prVar2->next = reloc_list" (field_expression "prVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "reloc_list = prVar2;" (assignment_expression "reloc_list = prVar2" identifier = identifier) ;) (expression_statement "local_28 = (char)addend;" (assignment_expression "local_28 = (char)addend" identifier = (cast_expression "(char)addend" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)) {\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }" if (parenthesized_expression "(((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0))" ( (binary_expression "((sec->field_0x19 & 4) == 0) ||\n       (pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)" (parenthesized_expression "((sec->field_0x19 & 4) == 0)" ( (binary_expression "(sec->field_0x19 & 4) == 0" (parenthesized_expression "(sec->field_0x19 & 4)" ( (binary_expression "sec->field_0x19 & 4" (field_expression "sec->field_0x19" identifier -> field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "(pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = strstr(stdoutput->xvec->name,"-sh"), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(stdoutput->xvec->name,"-sh")" identifier = (call_expression "strstr(stdoutput->xvec->name,"-sh")" identifier (argument_list "(stdoutput->xvec->name,"-sh")" ( (field_expression "stdoutput->xvec->name" (field_expression "stdoutput->xvec" identifier -> field_identifier) -> field_identifier) , (string_literal ""-sh"" " string_content ") )))) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }\n      note[(int)offset] = local_28;\n    }" { (if_statement "if (target_big_endian != 0) {\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }" if (parenthesized_expression "(target_big_endian != 0)" ( (binary_expression "target_big_endian != 0" identifier != number_literal) )) (compound_statement "{\n        uVar5 = bfd_arch_bits_per_address(stdoutput);\n        if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }\n        note[(int)offset + 7] = local_28;\n        return;\n      }" { (expression_statement "uVar5 = bfd_arch_bits_per_address(stdoutput);" (assignment_expression "uVar5 = bfd_arch_bits_per_address(stdoutput)" identifier = (call_expression "bfd_arch_bits_per_address(stdoutput)" identifier (argument_list "(stdoutput)" ( identifier )))) ;) (if_statement "if (uVar5 < 0x21) {\n          note[(int)offset + 3] = local_28;\n          return;\n        }" if (parenthesized_expression "(uVar5 < 0x21)" ( (binary_expression "uVar5 < 0x21" identifier < number_literal) )) (compound_statement "{\n          note[(int)offset + 3] = local_28;\n          return;\n        }" { (expression_statement "note[(int)offset + 3] = local_28;" (assignment_expression "note[(int)offset + 3] = local_28" (subscript_expression "note[(int)offset + 3]" identifier [ (binary_expression "(int)offset + 3" (cast_expression "(int)offset" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "note[(int)offset + 7] = local_28;" (assignment_expression "note[(int)offset + 7] = local_28" (subscript_expression "note[(int)offset + 7]" identifier [ (binary_expression "(int)offset + 7" (cast_expression "(int)offset" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "note[(int)offset] = local_28;" (assignment_expression "note[(int)offset] = local_28" (subscript_expression "note[(int)offset]" identifier [ (cast_expression "(int)offset" ( (type_descriptor "int" primitive_type) ) identifier) ]) = identifier) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm2\nFUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm2\nFUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 local_28;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x2c);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x2c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x2c)" identifier (argument_list "(0x2c)" ( number_literal ))))) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar5 = *param_2;" (assignment_expression "uVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar1[7] = param_7;" (assignment_expression "puVar1[7] = param_7" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = uVar5;" (assignment_expression "puVar1[2] = uVar5" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = puVar1 + 2;" (assignment_expression "puVar1[3] = puVar1 + 2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (binary_expression "puVar1 + 2" identifier + number_literal)) ;) (expression_statement "puVar1[4] = param_3;" (assignment_expression "puVar1[4] = param_3" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = param_4;" (assignment_expression "puVar1[5] = param_4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = param_6;" (assignment_expression "puVar1[6] = param_6" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);" (assignment_expression "iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5)" identifier = (call_expression "bfd_reloc_type_lookup(DAT_00081984,param_5)" identifier (argument_list "(DAT_00081984,param_5)" ( identifier , identifier )))) ;) (expression_statement "puVar1[8] = iVar2;" (assignment_expression "puVar1[8] = iVar2" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }" { (expression_statement "uVar5 = dcgettext(0,"unable to create reloc for build note",5);" (assignment_expression "uVar5 = dcgettext(0,"unable to create reloc for build note",5)" identifier = (call_expression "dcgettext(0,"unable to create reloc for build note",5)" identifier (argument_list "(0,"unable to create reloc for build note",5)" ( number_literal , (string_literal ""unable to create reloc for build note"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002cea0(uVar5);" (call_expression "FUN_0002cea0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) }) (else_clause "else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" else (compound_statement "{\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" { (expression_statement "puVar1[10] = 0;" (assignment_expression "puVar1[10] = 0" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[9] = "<gnu build note>";" (assignment_expression "puVar1[9] = "<gnu build note>"" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = (string_literal ""<gnu build note>"" " string_content ")) ;) (expression_statement "*puVar1 = DAT_00081b24;" (assignment_expression "*puVar1 = DAT_00081b24" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "DAT_00081b24 = puVar1;" (assignment_expression "DAT_00081b24 = puVar1" identifier = identifier) ;) (expression_statement "local_28 = (undefined1)param_6;" (assignment_expression "local_28 = (undefined1)param_6" identifier = (cast_expression "(undefined1)param_6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (if_statement "if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))" ( (binary_expression "((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x19) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x19) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x19) & 4" (pointer_expression "*(byte *)(param_1 + 0x19)" * (cast_expression "(byte *)(param_1 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19)" ( (binary_expression "param_1 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" identifier = (call_expression "strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" identifier (argument_list "((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" ( (cast_expression "(char *)**(undefined4 **)(DAT_00081984 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_00081984 + 4)" * (pointer_expression "*(undefined4 **)(DAT_00081984 + 4)" * (cast_expression "(undefined4 **)(DAT_00081984 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00081984 + 4)" ( (binary_expression "DAT_00081984 + 4" identifier + number_literal) )))))) , (string_literal ""-sh"" " string_content ") )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }" { (if_statement "if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }" if (parenthesized_expression "(DAT_0008125c != 0)" ( (binary_expression "DAT_0008125c != 0" identifier != number_literal) )) (compound_statement "{\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }" { (expression_statement "uVar4 = bfd_arch_bits_per_address(DAT_00081984);" (assignment_expression "uVar4 = bfd_arch_bits_per_address(DAT_00081984)" identifier = (call_expression "bfd_arch_bits_per_address(DAT_00081984)" identifier (argument_list "(DAT_00081984)" ( identifier )))) ;) (if_statement "if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }" if (parenthesized_expression "(uVar4 < 0x21)" ( (binary_expression "uVar4 < 0x21" identifier < number_literal) )) (compound_statement "{\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }" { (expression_statement "*(undefined1 *)(param_8 + 3 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + 3 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + 3 + param_3)" * (cast_expression "(undefined1 *)(param_8 + 3 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + 3 + param_3)" ( (binary_expression "param_8 + 3 + param_3" (binary_expression "param_8 + 3" identifier + number_literal) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_8 + 7 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + 7 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + 7 + param_3)" * (cast_expression "(undefined1 *)(param_8 + 7 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + 7 + param_3)" ( (binary_expression "param_8 + 7 + param_3" (binary_expression "param_8 + 7" identifier + number_literal) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_8 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + param_3)" * (cast_expression "(undefined1 *)(param_8 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + param_3)" ( (binary_expression "param_8 + param_3" identifier + identifier) )))) = identifier) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) , (string_literal " string_content ") )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) })) }))) (return_statement return ;) })))
(function_definition "void __regparm2\nFUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0003fdf0(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)" (identifier "FUN_0003fdf0") (parameter_list "(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6,undefined4 param_7,int param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined1 local_28;\n  \n  puVar1 = (undefined4 *)xmalloc(0x2c);\n  puVar1[1] = param_1;\n  uVar5 = *param_2;\n  puVar1[7] = param_7;\n  puVar1[2] = uVar5;\n  puVar1[3] = puVar1 + 2;\n  puVar1[4] = param_3;\n  puVar1[5] = param_4;\n  puVar1[6] = param_6;\n  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);\n  puVar1[8] = iVar2;\n  if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined1 local_28;" (type_identifier "undefined1") (identifier "local_28") (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x2c);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x2c)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x2c)" (identifier "xmalloc") (argument_list "(0x2c)" (( "(") (number_literal "0x2c") () ")"))))) (; ";")) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "uVar5 = *param_2;" (assignment_expression "uVar5 = *param_2" (identifier "uVar5") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "puVar1[7] = param_7;" (assignment_expression "puVar1[7] = param_7" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "param_7")) (; ";")) (expression_statement "puVar1[2] = uVar5;" (assignment_expression "puVar1[2] = uVar5" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "puVar1[3] = puVar1 + 2;" (assignment_expression "puVar1[3] = puVar1 + 2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar1[4] = param_3;" (assignment_expression "puVar1[4] = param_3" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[5] = param_4;" (assignment_expression "puVar1[5] = param_4" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1[6] = param_6;" (assignment_expression "puVar1[6] = param_6" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);" (assignment_expression "iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5)" (identifier "iVar2") (= "=") (call_expression "bfd_reloc_type_lookup(DAT_00081984,param_5)" (identifier "bfd_reloc_type_lookup") (argument_list "(DAT_00081984,param_5)" (( "(") (identifier "DAT_00081984") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "puVar1[8] = iVar2;" (assignment_expression "puVar1[8] = iVar2" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }\n  else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = dcgettext(0,"unable to create reloc for build note",5);\n    FUN_0002cea0(uVar5);\n  }" ({ "{") (expression_statement "uVar5 = dcgettext(0,"unable to create reloc for build note",5);" (assignment_expression "uVar5 = dcgettext(0,"unable to create reloc for build note",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"unable to create reloc for build note",5)" (identifier "dcgettext") (argument_list "(0,"unable to create reloc for build note",5)" (( "(") (number_literal "0") (, ",") (string_literal ""unable to create reloc for build note"" (" """) (string_content "unable to create reloc for build note") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002cea0(uVar5);" (call_expression "FUN_0002cea0(uVar5)" (identifier "FUN_0002cea0") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" (else "else") (compound_statement "{\n    puVar1[10] = 0;\n    puVar1[9] = "<gnu build note>";\n    *puVar1 = DAT_00081b24;\n    DAT_00081b24 = puVar1;\n    local_28 = (undefined1)param_6;\n    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }\n  }" ({ "{") (expression_statement "puVar1[10] = 0;" (assignment_expression "puVar1[10] = 0" (subscript_expression "puVar1[10]" (identifier "puVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[9] = "<gnu build note>";" (assignment_expression "puVar1[9] = "<gnu build note>"" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (string_literal ""<gnu build note>"" (" """) (string_content "<gnu build note>") (" """))) (; ";")) (expression_statement "*puVar1 = DAT_00081b24;" (assignment_expression "*puVar1 = DAT_00081b24" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "DAT_00081b24")) (; ";")) (expression_statement "DAT_00081b24 = puVar1;" (assignment_expression "DAT_00081b24 = puVar1" (identifier "DAT_00081b24") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "local_28 = (undefined1)param_6;" (assignment_expression "local_28 = (undefined1)param_6" (identifier "local_28") (= "=") (cast_expression "(undefined1)param_6" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "param_6"))) (; ";")) (if_statement "if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))\n    {\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x19) & 4) == 0) ||\n       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0)" (parenthesized_expression "((*(byte *)(param_1 + 0x19) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x19) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x19) & 4" (pointer_expression "*(byte *)(param_1 + 0x19)" (* "*") (cast_expression "(byte *)(param_1 + 0x19)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19)" (( "(") (binary_expression "param_1 + 0x19" (identifier "param_1") (+ "+") (number_literal "0x19")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0)" (( "(") (comma_expression "pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" (identifier "pcVar3") (= "=") (call_expression "strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" (identifier "strstr") (argument_list "((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh")" (( "(") (cast_expression "(char *)**(undefined4 **)(DAT_00081984 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(DAT_00081984 + 4)" (* "*") (pointer_expression "*(undefined4 **)(DAT_00081984 + 4)" (* "*") (cast_expression "(undefined4 **)(DAT_00081984 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_00081984 + 4)" (( "(") (binary_expression "DAT_00081984 + 4" (identifier "DAT_00081984") (+ "+") (number_literal "4")) () ")")))))) (, ",") (string_literal ""-sh"" (" """) (string_content "-sh") (" """)) () ")")))) (, ",") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n      if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }\n      *(undefined1 *)(param_8 + param_3) = local_28;\n    }" ({ "{") (if_statement "if (DAT_0008125c != 0) {\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }" (if "if") (parenthesized_expression "(DAT_0008125c != 0)" (( "(") (binary_expression "DAT_0008125c != 0" (identifier "DAT_0008125c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = bfd_arch_bits_per_address(DAT_00081984);\n        if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }\n        *(undefined1 *)(param_8 + 7 + param_3) = local_28;\n        return;\n      }" ({ "{") (expression_statement "uVar4 = bfd_arch_bits_per_address(DAT_00081984);" (assignment_expression "uVar4 = bfd_arch_bits_per_address(DAT_00081984)" (identifier "uVar4") (= "=") (call_expression "bfd_arch_bits_per_address(DAT_00081984)" (identifier "bfd_arch_bits_per_address") (argument_list "(DAT_00081984)" (( "(") (identifier "DAT_00081984") () ")")))) (; ";")) (if_statement "if (uVar4 < 0x21) {\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }" (if "if") (parenthesized_expression "(uVar4 < 0x21)" (( "(") (binary_expression "uVar4 < 0x21" (identifier "uVar4") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n          *(undefined1 *)(param_8 + 3 + param_3) = local_28;\n          return;\n        }" ({ "{") (expression_statement "*(undefined1 *)(param_8 + 3 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + 3 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + 3 + param_3)" (* "*") (cast_expression "(undefined1 *)(param_8 + 3 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_8 + 3 + param_3)" (( "(") (binary_expression "param_8 + 3 + param_3" (binary_expression "param_8 + 3" (identifier "param_8") (+ "+") (number_literal "3")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_8 + 7 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + 7 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + 7 + param_3)" (* "*") (cast_expression "(undefined1 *)(param_8 + 7 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_8 + 7 + param_3)" (( "(") (binary_expression "param_8 + 7 + param_3" (binary_expression "param_8 + 7" (identifier "param_8") (+ "+") (number_literal "7")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_8 + param_3) = local_28;" (assignment_expression "*(undefined1 *)(param_8 + param_3) = local_28" (pointer_expression "*(undefined1 *)(param_8 + param_3)" (* "*") (cast_expression "(undefined1 *)(param_8 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_8 + param_3)" (( "(") (binary_expression "param_8 + param_3" (identifier "param_8") (+ "+") (identifier "param_3")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm2
function_1(type_1 sec,type_2 *sym,type_3 offset,int reloc_type,type_4 addend,
                 char *note)

{
  type_5 sVar1;
  type_6 *prVar2;
  type_7 *var_3;
  char *var_7;
  type_8 var_10;
  char local_28;
  
  prVar2 = (type_6 *)var_1(0x2c);
  (prVar2->u).a.offset_sym = (type_2 *)sec;
  sVar1 = sym->sy_flags;
  *(type_9 *)((int)&(prVar2->u).b.r.addend + 4) = addend._4_4_;
  (prVar2->u).a.howto = (type_7 *)sVar1;
  (prVar2->u).a.sym = (type_2 *)((int)&prVar2->u + 4);
  (prVar2->u).a.addend = offset;
  *(type_9 *)&(prVar2->u).b.r.addend = (type_9)addend;
  var_3 = (type_7 *)var_2(stdoutput,reloc_type);
  (prVar2->u).b.r.howto = var_3;
  if (var_3 == (type_7 *)0x0) {
    var_7 = (char *)var_4(0,"unable to create reloc for build note",5);
    var_5(var_7);
  }
  else {
    prVar2->line = 0;
    prVar2->file = "<gnu build note>";
    prVar2->next = type_6;
    type_6 = prVar2;
    local_28 = (char)addend;
    if (((sec->field_0x19 & 4) == 0) ||
       (var_7 = var_6(stdoutput->xvec->name,"-sh"), var_7 != (char *)0x0)) {
      if (var_8 != 0) {
        var_10 = var_9(stdoutput);
        if (var_10 < 0x21) {
          note[(int)offset + 3] = local_28;
          return;
        }
        note[(int)offset + 7] = local_28;
        return;
      }
      note[(int)offset] = local_28;
    }
  }
  return;
}


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

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

void __regparm2
MASKED(int param_1,undefined4 *param_2,int param_3,undefined4 param_4,undefined4 param_5,
            undefined4 param_6,undefined4 param_7,int param_8)

{
  undefined4 *puVar1;
  int iVar2;
  char *pcVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined1 local_28;
  
  puVar1 = (undefined4 *)xmalloc(0x2c);
  puVar1[1] = param_1;
  uVar5 = *param_2;
  puVar1[7] = param_7;
  puVar1[2] = uVar5;
  puVar1[3] = puVar1 + 2;
  puVar1[4] = param_3;
  puVar1[5] = param_4;
  puVar1[6] = param_6;
  iVar2 = bfd_reloc_type_lookup(DAT_00081984,param_5);
  puVar1[8] = iVar2;
  if (iVar2 == 0) {
    uVar5 = dcgettext(0,"unable to create reloc for build note",5);
    FUN_0002cea0(uVar5);
  }
  else {
    puVar1[10] = 0;
    puVar1[9] = "<gnu build note>";
    *puVar1 = DAT_00081b24;
    DAT_00081b24 = puVar1;
    local_28 = (undefined1)param_6;
    if (((*(byte *)(param_1 + 0x19) & 4) == 0) ||
       (pcVar3 = strstr((char *)**(undefined4 **)(DAT_00081984 + 4),"-sh"), pcVar3 != (char *)0x0))
    {
      if (DAT_0008125c != 0) {
        uVar4 = bfd_arch_bits_per_address(DAT_00081984);
        if (uVar4 < 0x21) {
          *(undefined1 *)(param_8 + 3 + param_3) = local_28;
          return;
        }
        *(undefined1 *)(param_8 + 7 + param_3) = local_28;
        return;
      }
      *(undefined1 *)(param_8 + param_3) = local_28;
    }
  }
  return;
}

