
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Object * do_make_elf_object(Target_sparc<64,_true> * this, string *
   name, Input_file * input_file, off_t offset, Ehdr<64,_true> * ehdr) */

Object * __thiscall
anon_unknown.dwarf_484c35::Target_sparc<64,_true>::do_make_elf_object
          (Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,
          Ehdr<64,_true> *ehdr)

{
}



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

void FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,int *param_6)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  uint uVar4;
  uint uVar5;
  undefined4 uVar6;
  uint uVar7;
  
  uVar1 = *(uint *)(*param_6 + 0x30);
  uVar4 = (uVar1 & 0xff0000) >> 8;
  uVar5 = (uVar1 & 0xff00) << 8;
  if (*(short *)(*param_6 + 0x12) == 0x1200) {
    *(undefined2 *)(param_1 + 0x44) = 0x12;
  }
  if (*(char *)(param_1 + 0x4c) == '\0') {
    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;
    *(undefined1 *)(param_1 + 0x4c) = 1;
  }
  else {
    uVar4 = uVar4 & 0xf00;
    uVar2 = *(uint *)(param_1 + 0x48);
    uVar7 = uVar4 | uVar2;
    uVar1 = uVar1 >> 0x18 & 3;
    if ((uVar2 & 3) != uVar1) {
      if (uVar1 == 0) {
        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;
        goto joined_r0x00095deb;
      }
      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {
        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;
      }
    }
    *(uint *)(param_1 + 0x48) = uVar7;
  }
joined_r0x00095deb:
  if ((uVar5 & 0x800000) != 0) {
    uVar3 = *param_2;
    uVar6 = gettext("%s: little endian elf flag set on BE object");
    FUN_0023b810(uVar6,uVar3);
  }
  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x5542c7
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x3c]
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,dword ptr [ECX]
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [EDX + 0x30]
CMP word ptr [EDX + 0x12],0x1200
BSWAP EAX
JNZ 0x00095d71
MOV EDI,0x12
MOV word ptr [ESI + 0x44],DI
CMP byte ptr [ESI + 0x4c],0x0
JNZ 0x00095db0
MOV dword ptr [ESI + 0x48],EAX
MOV byte ptr [ESI + 0x4c],0x1
TEST EAX,0x800000
JNZ 0x00095ded
SUB ESP,0x8
PUSH ECX
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH ESI
CALL 0x00364a80
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EAX
MOV EBP,EAX
AND EDX,0xf00
OR EDX,dword ptr [ESI + 0x48]
AND EBP,0x3
MOV EDI,EDX
AND EDI,0x3
MOV dword ptr [ESP + 0xc],EDI
CMP EDI,EBP
JZ 0x00095de3
TEST EBP,EBP
JZ 0x00095e28
CMP EBP,0x1
JNZ 0x00095de3
CMP dword ptr [ESP + 0xc],0x2
JNZ 0x00095de3
AND EDX,0xfffffffc
OR EDX,0x1
MOV dword ptr [ESI + 0x48],EDX
TEST EAX,0x800000
JZ 0x00095d85
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x44],ECX
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
LEA EAX,[EBX + 0xffe69e40]
MOV dword ptr [ESP + 0x18],EDX
PUSH EAX
CALL 0x00039440
POP EDX
POP ECX
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
CALL 0x0023b810
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x44]
JMP 0x00095d85
AND EDX,0xfffffffc
MOV dword ptr [ESI + 0x48],EDX
JMP 0x00095d7e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}\n\n" comment (function_definition "void FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" primitive_type (function_declarator "FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*param_6 + 0x30);" (assignment_expression "uVar1 = *(uint *)(*param_6 + 0x30)" identifier = (pointer_expression "*(uint *)(*param_6 + 0x30)" * (cast_expression "(uint *)(*param_6 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + 0x30)" ( (binary_expression "*param_6 + 0x30" (pointer_expression "*param_6" * identifier) + number_literal) ))))) ;) (expression_statement "uVar4 = (uVar1 & 0xff0000) >> 8;" (assignment_expression "uVar4 = (uVar1 & 0xff0000) >> 8" identifier = (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) ;) (expression_statement "uVar5 = (uVar1 & 0xff00) << 8;" (assignment_expression "uVar5 = (uVar1 & 0xff00) << 8" identifier = (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) ;) (if_statement "if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }" if (parenthesized_expression "(*(short *)(*param_6 + 0x12) == 0x1200)" ( (binary_expression "*(short *)(*param_6 + 0x12) == 0x1200" (pointer_expression "*(short *)(*param_6 + 0x12)" * (cast_expression "(short *)(*param_6 + 0x12)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + 0x12)" ( (binary_expression "*param_6 + 0x12" (pointer_expression "*param_6" * identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }" { (expression_statement "*(undefined2 *)(param_1 + 0x44) = 0x12;" (assignment_expression "*(undefined2 *)(param_1 + 0x44) = 0x12" (pointer_expression "*(undefined2 *)(param_1 + 0x44)" * (cast_expression "(undefined2 *)(param_1 + 0x44)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x4c) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4c) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4c)" * (cast_expression "(char *)(param_1 + 0x4c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }" { (expression_statement "*(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | uVar4 | uVar5" (binary_expression "uVar1 >> 0x18 | uVar4" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | identifier) | identifier) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x4c)" * (cast_expression "(undefined1 *)(param_1 + 0x4c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" else (compound_statement "{\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" { (expression_statement "uVar4 = uVar4 & 0xf00;" (assignment_expression "uVar4 = uVar4 & 0xf00" identifier = (binary_expression "uVar4 & 0xf00" identifier & number_literal)) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x48);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x48)" identifier = (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = uVar4 | uVar2;" (assignment_expression "uVar7 = uVar4 | uVar2" identifier = (binary_expression "uVar4 | uVar2" identifier | identifier)) ;) (expression_statement "uVar1 = uVar1 >> 0x18 & 3;" (assignment_expression "uVar1 = uVar1 >> 0x18 & 3" identifier = (binary_expression "uVar1 >> 0x18 & 3" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) & number_literal)) ;) (if_statement "if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }" if (parenthesized_expression "((uVar2 & 3) != uVar1)" ( (binary_expression "(uVar2 & 3) != uVar1" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) != identifier) )) (compound_statement "{\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }" { (if_statement "if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }" { (expression_statement "*(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "uVar4 | uVar2 & 0xfffffffc" identifier | (binary_expression "uVar2 & 0xfffffffc" identifier & number_literal))) ;) (goto_statement "goto joined_r0x00095deb;" goto statement_identifier ;) })) (if_statement "if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }" if (parenthesized_expression "((uVar1 == 1) && ((uVar2 & 3) == 2))" ( (binary_expression "(uVar1 == 1) && ((uVar2 & 3) == 2)" (parenthesized_expression "(uVar1 == 1)" ( (binary_expression "uVar1 == 1" identifier == number_literal) )) && (parenthesized_expression "((uVar2 & 3) == 2)" ( (binary_expression "(uVar2 & 3) == 2" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }" { (expression_statement "uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;" (assignment_expression "uVar7 = uVar4 | uVar2 & 0xfffffffc | 1" identifier = (binary_expression "uVar4 | uVar2 & 0xfffffffc | 1" (binary_expression "uVar4 | uVar2 & 0xfffffffc" identifier | (binary_expression "uVar2 & 0xfffffffc" identifier & number_literal)) | number_literal)) ;) })) })) (expression_statement "*(uint *)(param_1 + 0x48) = uVar7;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar7" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) }))) (labeled_statement "joined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" statement_identifier : (if_statement "if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" if (parenthesized_expression "((uVar5 & 0x800000) != 0)" ( (binary_expression "(uVar5 & 0x800000) != 0" (parenthesized_expression "(uVar5 & 0x800000)" ( (binary_expression "uVar5 & 0x800000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" { (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar6 = gettext("%s: little endian elf flag set on BE object");" (assignment_expression "uVar6 = gettext("%s: little endian elf flag set on BE object")" identifier = (call_expression "gettext("%s: little endian elf flag set on BE object")" identifier (argument_list "("%s: little endian elf flag set on BE object")" ( (string_literal ""%s: little endian elf flag set on BE object"" " string_content ") )))) ;) (expression_statement "FUN_0023b810(uVar6,uVar3);" (call_expression "FUN_0023b810(uVar6,uVar3)" identifier (argument_list "(uVar6,uVar3)" ( identifier , identifier ))) ;) }))) (expression_statement "FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: Object * do_make_elf_object(Target_sparc<64,_true> * this, string *\n   name, Input_file * input_file, off_t offset, Ehdr<64,_true> * ehdr) */\n\nObject * __thiscall\nanon_unknown.dwarf_484c35::Target_sparc<64,_true>::do_make_elf_object\n          (Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,\n          Ehdr<64,_true> *ehdr)\n\n{\n}\n\n" comment comment (ERROR "Object * __thiscall\nanon_unknown.dwarf_484c35::Target_sparc<64,_true>::do_make_elf_object\n          (Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,\n          Ehdr<64,_true> *ehdr)" (binary_expression "Object * __thiscall\nanon_unknown.dwarf_484c35::Target_sparc<64,_true>::do_make_elf_object\n          (Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,\n          Ehdr<64,_true> *ehdr)" (binary_expression "Object * __thiscall\nanon_unknown.dwarf_484c35::Target_sparc<64" (binary_expression "Object * __thiscall\nanon_unknown.dwarf_484c35" identifier * (ERROR "__thiscall" identifier) (field_expression "anon_unknown.dwarf_484c35" identifier . field_identifier)) (ERROR "::Target_sparc" : : identifier) < number_literal) (ERROR ",_true" , identifier) > (ERROR "::" : :) (call_expression "do_make_elf_object\n          (Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,\n          Ehdr<64,_true> *ehdr)" identifier (argument_list "(Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,\n          Ehdr<64,_true> *ehdr)" ( (binary_expression "Target_sparc<64" identifier < number_literal) , (binary_expression "_true> *this" identifier > (pointer_expression "*this" * identifier)) , (binary_expression "string *name" identifier * identifier) , (binary_expression "Input_file *input_file" identifier * identifier) , (ERROR "off_t" identifier) identifier , (binary_expression "Ehdr<64" identifier < number_literal) , (binary_expression "_true> *ehdr" identifier > (pointer_expression "*ehdr" * identifier)) ))))) (compound_statement "{\n}" { }))
(translation_unit "void FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}\n\n" (function_definition "void FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" primitive_type (function_declarator "FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*param_6 + 0x30);" (assignment_expression "uVar1 = *(uint *)(*param_6 + 0x30)" identifier = (pointer_expression "*(uint *)(*param_6 + 0x30)" * (cast_expression "(uint *)(*param_6 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + 0x30)" ( (binary_expression "*param_6 + 0x30" (pointer_expression "*param_6" * identifier) + number_literal) ))))) ;) (expression_statement "uVar4 = (uVar1 & 0xff0000) >> 8;" (assignment_expression "uVar4 = (uVar1 & 0xff0000) >> 8" identifier = (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) ;) (expression_statement "uVar5 = (uVar1 & 0xff00) << 8;" (assignment_expression "uVar5 = (uVar1 & 0xff00) << 8" identifier = (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) ;) (if_statement "if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }" if (parenthesized_expression "(*(short *)(*param_6 + 0x12) == 0x1200)" ( (binary_expression "*(short *)(*param_6 + 0x12) == 0x1200" (pointer_expression "*(short *)(*param_6 + 0x12)" * (cast_expression "(short *)(*param_6 + 0x12)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + 0x12)" ( (binary_expression "*param_6 + 0x12" (pointer_expression "*param_6" * identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }" { (expression_statement "*(undefined2 *)(param_1 + 0x44) = 0x12;" (assignment_expression "*(undefined2 *)(param_1 + 0x44) = 0x12" (pointer_expression "*(undefined2 *)(param_1 + 0x44)" * (cast_expression "(undefined2 *)(param_1 + 0x44)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x4c) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4c) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4c)" * (cast_expression "(char *)(param_1 + 0x4c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }" { (expression_statement "*(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | uVar4 | uVar5" (binary_expression "uVar1 >> 0x18 | uVar4" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | identifier) | identifier) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x4c)" * (cast_expression "(undefined1 *)(param_1 + 0x4c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" else (compound_statement "{\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" { (expression_statement "uVar4 = uVar4 & 0xf00;" (assignment_expression "uVar4 = uVar4 & 0xf00" identifier = (binary_expression "uVar4 & 0xf00" identifier & number_literal)) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x48);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x48)" identifier = (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = uVar4 | uVar2;" (assignment_expression "uVar7 = uVar4 | uVar2" identifier = (binary_expression "uVar4 | uVar2" identifier | identifier)) ;) (expression_statement "uVar1 = uVar1 >> 0x18 & 3;" (assignment_expression "uVar1 = uVar1 >> 0x18 & 3" identifier = (binary_expression "uVar1 >> 0x18 & 3" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) & number_literal)) ;) (if_statement "if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }" if (parenthesized_expression "((uVar2 & 3) != uVar1)" ( (binary_expression "(uVar2 & 3) != uVar1" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) != identifier) )) (compound_statement "{\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }" { (if_statement "if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }" { (expression_statement "*(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "uVar4 | uVar2 & 0xfffffffc" identifier | (binary_expression "uVar2 & 0xfffffffc" identifier & number_literal))) ;) (goto_statement "goto joined_r0x00095deb;" goto statement_identifier ;) })) (if_statement "if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }" if (parenthesized_expression "((uVar1 == 1) && ((uVar2 & 3) == 2))" ( (binary_expression "(uVar1 == 1) && ((uVar2 & 3) == 2)" (parenthesized_expression "(uVar1 == 1)" ( (binary_expression "uVar1 == 1" identifier == number_literal) )) && (parenthesized_expression "((uVar2 & 3) == 2)" ( (binary_expression "(uVar2 & 3) == 2" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }" { (expression_statement "uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;" (assignment_expression "uVar7 = uVar4 | uVar2 & 0xfffffffc | 1" identifier = (binary_expression "uVar4 | uVar2 & 0xfffffffc | 1" (binary_expression "uVar4 | uVar2 & 0xfffffffc" identifier | (binary_expression "uVar2 & 0xfffffffc" identifier & number_literal)) | number_literal)) ;) })) })) (expression_statement "*(uint *)(param_1 + 0x48) = uVar7;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar7" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) }))) (labeled_statement "joined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" statement_identifier : (if_statement "if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" if (parenthesized_expression "((uVar5 & 0x800000) != 0)" ( (binary_expression "(uVar5 & 0x800000) != 0" (parenthesized_expression "(uVar5 & 0x800000)" ( (binary_expression "uVar5 & 0x800000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" { (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar6 = gettext("%s: little endian elf flag set on BE object");" (assignment_expression "uVar6 = gettext("%s: little endian elf flag set on BE object")" identifier = (call_expression "gettext("%s: little endian elf flag set on BE object")" identifier (argument_list "("%s: little endian elf flag set on BE object")" ( (string_literal ""%s: little endian elf flag set on BE object"" " string_content ") )))) ;) (expression_statement "FUN_0023b810(uVar6,uVar3);" (call_expression "FUN_0023b810(uVar6,uVar3)" identifier (argument_list "(uVar6,uVar3)" ( identifier , identifier ))) ;) }))) (expression_statement "FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | IDENT) | IDENT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | (binary_expression IDENT & LIT))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT | (binary_expression IDENT & LIT)) | LIT)) ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00095d30(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)" (identifier "FUN_00095d30") (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,int *param_6)" (( "(") (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 "undefined4 param_3" (type_identifier "undefined4") (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 "int *param_6" (primitive_type "int") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar1 = *(uint *)(*param_6 + 0x30);\n  uVar4 = (uVar1 & 0xff0000) >> 8;\n  uVar5 = (uVar1 & 0xff00) << 8;\n  if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }\n  if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }\njoined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }\n  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "uVar1 = *(uint *)(*param_6 + 0x30);" (assignment_expression "uVar1 = *(uint *)(*param_6 + 0x30)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(*param_6 + 0x30)" (* "*") (cast_expression "(uint *)(*param_6 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_6 + 0x30)" (( "(") (binary_expression "*param_6 + 0x30" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "uVar4 = (uVar1 & 0xff0000) >> 8;" (assignment_expression "uVar4 = (uVar1 & 0xff0000) >> 8" (identifier "uVar4") (= "=") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "uVar5 = (uVar1 & 0xff00) << 8;" (assignment_expression "uVar5 = (uVar1 & 0xff00) << 8" (identifier "uVar5") (= "=") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (; ";")) (if_statement "if (*(short *)(*param_6 + 0x12) == 0x1200) {\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }" (if "if") (parenthesized_expression "(*(short *)(*param_6 + 0x12) == 0x1200)" (( "(") (binary_expression "*(short *)(*param_6 + 0x12) == 0x1200" (pointer_expression "*(short *)(*param_6 + 0x12)" (* "*") (cast_expression "(short *)(*param_6 + 0x12)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_6 + 0x12)" (( "(") (binary_expression "*param_6 + 0x12" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (+ "+") (number_literal "0x12")) () ")")))) (== "==") (number_literal "0x1200")) () ")")) (compound_statement "{\n    *(undefined2 *)(param_1 + 0x44) = 0x12;\n  }" ({ "{") (expression_statement "*(undefined2 *)(param_1 + 0x44) = 0x12;" (assignment_expression "*(undefined2 *)(param_1 + 0x44) = 0x12" (pointer_expression "*(undefined2 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (number_literal "0x12")) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 0x4c) == '\0') {\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }\n  else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x4c) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x4c) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4c)" (* "*") (cast_expression "(char *)(param_1 + 0x4c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;\n    *(undefined1 *)(param_1 + 0x4c) = 1;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18" (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (binary_expression "uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | uVar4 | uVar5" (binary_expression "uVar1 >> 0x18 | uVar4" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (identifier "uVar4")) (| "|") (identifier "uVar5")) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" (else "else") (compound_statement "{\n    uVar4 = uVar4 & 0xf00;\n    uVar2 = *(uint *)(param_1 + 0x48);\n    uVar7 = uVar4 | uVar2;\n    uVar1 = uVar1 >> 0x18 & 3;\n    if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }\n    *(uint *)(param_1 + 0x48) = uVar7;\n  }" ({ "{") (expression_statement "uVar4 = uVar4 & 0xf00;" (assignment_expression "uVar4 = uVar4 & 0xf00" (identifier "uVar4") (= "=") (binary_expression "uVar4 & 0xf00" (identifier "uVar4") (& "&") (number_literal "0xf00"))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x48);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x48)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "uVar7 = uVar4 | uVar2;" (assignment_expression "uVar7 = uVar4 | uVar2" (identifier "uVar7") (= "=") (binary_expression "uVar4 | uVar2" (identifier "uVar4") (| "|") (identifier "uVar2"))) (; ";")) (expression_statement "uVar1 = uVar1 >> 0x18 & 3;" (assignment_expression "uVar1 = uVar1 >> 0x18 & 3" (identifier "uVar1") (= "=") (binary_expression "uVar1 >> 0x18 & 3" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (& "&") (number_literal "3"))) (; ";")) (if_statement "if ((uVar2 & 3) != uVar1) {\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }" (if "if") (parenthesized_expression "((uVar2 & 3) != uVar1)" (( "(") (binary_expression "(uVar2 & 3) != uVar1" (parenthesized_expression "(uVar2 & 3)" (( "(") (binary_expression "uVar2 & 3" (identifier "uVar2") (& "&") (number_literal "3")) () ")")) (!= "!=") (identifier "uVar1")) () ")")) (compound_statement "{\n      if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }\n      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }\n    }" ({ "{") (if_statement "if (uVar1 == 0) {\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;\n        goto joined_r0x00095deb;\n      }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (binary_expression "uVar4 | uVar2 & 0xfffffffc" (identifier "uVar4") (| "|") (binary_expression "uVar2 & 0xfffffffc" (identifier "uVar2") (& "&") (number_literal "0xfffffffc")))) (; ";")) (goto_statement "goto joined_r0x00095deb;" (goto "goto") (statement_identifier "joined_r0x00095deb") (; ";")) (} "}"))) (if_statement "if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }" (if "if") (parenthesized_expression "((uVar1 == 1) && ((uVar2 & 3) == 2))" (( "(") (binary_expression "(uVar1 == 1) && ((uVar2 & 3) == 2)" (parenthesized_expression "(uVar1 == 1)" (( "(") (binary_expression "uVar1 == 1" (identifier "uVar1") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "((uVar2 & 3) == 2)" (( "(") (binary_expression "(uVar2 & 3) == 2" (parenthesized_expression "(uVar2 & 3)" (( "(") (binary_expression "uVar2 & 3" (identifier "uVar2") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;\n      }" ({ "{") (expression_statement "uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;" (assignment_expression "uVar7 = uVar4 | uVar2 & 0xfffffffc | 1" (identifier "uVar7") (= "=") (binary_expression "uVar4 | uVar2 & 0xfffffffc | 1" (binary_expression "uVar4 | uVar2 & 0xfffffffc" (identifier "uVar4") (| "|") (binary_expression "uVar2 & 0xfffffffc" (identifier "uVar2") (& "&") (number_literal "0xfffffffc"))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x48) = uVar7;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar7" (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (} "}")))) (labeled_statement "joined_r0x00095deb:\n  if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" (statement_identifier "joined_r0x00095deb") (: ":") (if_statement "if ((uVar5 & 0x800000) != 0) {\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" (if "if") (parenthesized_expression "((uVar5 & 0x800000) != 0)" (( "(") (binary_expression "(uVar5 & 0x800000) != 0" (parenthesized_expression "(uVar5 & 0x800000)" (( "(") (binary_expression "uVar5 & 0x800000" (identifier "uVar5") (& "&") (number_literal "0x800000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = *param_2;\n    uVar6 = gettext("%s: little endian elf flag set on BE object");\n    FUN_0023b810(uVar6,uVar3);\n  }" ({ "{") (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" (identifier "uVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar6 = gettext("%s: little endian elf flag set on BE object");" (assignment_expression "uVar6 = gettext("%s: little endian elf flag set on BE object")" (identifier "uVar6") (= "=") (call_expression "gettext("%s: little endian elf flag set on BE object")" (identifier "gettext") (argument_list "("%s: little endian elf flag set on BE object")" (( "(") (string_literal ""%s: little endian elf flag set on BE object"" (" """) (string_content "%s: little endian elf flag set on BE object") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0023b810(uVar6,uVar3);" (call_expression "FUN_0023b810(uVar6,uVar3)" (identifier "FUN_0023b810") (argument_list "(uVar6,uVar3)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);" (call_expression "FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6)" (identifier "FUN_00364a80") (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Object * do_make_elf_object(Target_sparc<64,_true> * this, string *
   name, Input_file * input_file, off_t offset, Ehdr<64,_true> * ehdr) */

Object * __thiscall
anon_unknown.dwarf_484c35::Target_sparc<64,_true>::do_make_elf_object
          (Target_sparc<64,_true> *this,string *name,Input_file *input_file,off_t offset,
          Ehdr<64,_true> *ehdr)

{
}


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

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

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

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  uint uVar4;
  uint uVar5;
  undefined4 uVar6;
  uint uVar7;
  
  uVar1 = *(uint *)(*param_6 + 0x30);
  uVar4 = (uVar1 & 0xff0000) >> 8;
  uVar5 = (uVar1 & 0xff00) << 8;
  if (*(short *)(*param_6 + 0x12) == 0x1200) {
    *(undefined2 *)(param_1 + 0x44) = 0x12;
  }
  if (*(char *)(param_1 + 0x4c) == '\0') {
    *(uint *)(param_1 + 0x48) = uVar1 >> 0x18 | uVar4 | uVar5 | uVar1 << 0x18;
    *(undefined1 *)(param_1 + 0x4c) = 1;
  }
  else {
    uVar4 = uVar4 & 0xf00;
    uVar2 = *(uint *)(param_1 + 0x48);
    uVar7 = uVar4 | uVar2;
    uVar1 = uVar1 >> 0x18 & 3;
    if ((uVar2 & 3) != uVar1) {
      if (uVar1 == 0) {
        *(uint *)(param_1 + 0x48) = uVar4 | uVar2 & 0xfffffffc;
        goto joined_r0x00095deb;
      }
      if ((uVar1 == 1) && ((uVar2 & 3) == 2)) {
        uVar7 = uVar4 | uVar2 & 0xfffffffc | 1;
      }
    }
    *(uint *)(param_1 + 0x48) = uVar7;
  }
joined_r0x00095deb:
  if ((uVar5 & 0x800000) != 0) {
    uVar3 = *param_2;
    uVar6 = gettext("%s: little endian elf flag set on BE object");
    FUN_0023b810(uVar6,uVar3);
  }
  FUN_00364a80(param_1,param_2,param_3,param_4,param_5,param_6);
  return;
}

