
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint64_t do_plt_address_for_local(Target_powerpc<32,_false> * this,
   Relobj * object, uint symndx) */

uint64_t __thiscall
anon_unknown.dwarf_6462d4::Target_powerpc<32,_false>::do_plt_address_for_local
          (Target_powerpc<32,_false> *this,Relobj *object,uint symndx)

{
  Plt_stub_key key;
  
}



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

int FUN_000b5a60(int param_1,int *param_2)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  int local_30;
  
  piVar3 = *(int **)(param_1 + 0x4c);
  if (piVar3 != *(int **)(param_1 + 0x50)) {
    do {
      (**(code **)(*param_2 + 0xf0))(param_2);
      FUN_000ab490();
      if (local_30 != 0) {
        iVar1 = *piVar3;
        if (*(int *)(DAT_005ea7c8 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
          FUN_000afd50();
        }
        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);
        if (uVar2 < 0x10) {
          uVar2 = 0x10;
        }
        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {
          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +
                 *(int *)(local_30 + 0x14);
        }
                    /* WARNING: Subroutine does not return */
        FUN_000b0510();
      }
      piVar3 = piVar3 + 1;
    } while (*(int **)(param_1 + 0x50) != piVar3);
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x534597
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [EAX + 0x4c]
CMP ESI,dword ptr [EAX + 0x50]
JZ 0x000b5b40
LEA EAX,[ESP + 0xc]
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[ESP + 0x10]
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
MOV EDI,dword ptr [ESI]
MOV EAX,dword ptr [EBP]
PUSH EBP
CALL dword ptr [EAX + 0xf0]
MOV ECX,dword ptr [ESP + 0x18]
LEA EDX,[EDI + 0x38]
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [ESP + 0x58]
MOV dword ptr [ESP + 0x20],0x0
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x28],0x0
CALL 0x000ab490
MOV EDI,dword ptr [ESP + 0x1c]
ADD ESP,0x10
TEST EDI,EDI
JZ 0x000b5b30
LEA EAX,[EBX + 0x7c8]
MOV ESI,dword ptr [ESI]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000b5b59
MOV ECX,dword ptr [EAX + 0x2b20]
MOV EAX,0x1
MOV EDX,0x10
SHL EAX,CL
CMP EAX,0x10
CMOVC EAX,EDX
TEST byte ptr [ESI + 0x1c],0x1
JNZ 0x000b5b10
CALL 0x000b0510
MOV ECX,EAX
ADD ECX,-0x1
ADD ECX,dword ptr [ESI + 0x4]
ADD ECX,dword ptr [ESI + 0x70]
NEG EAX
AND EAX,ECX
ADD EAX,dword ptr [EDI + 0x14]
ADD ESP,0x2c
XOR EDX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x40]
ADD ESI,0x4
CMP dword ptr [EAX + 0x50],ESI
JNZ 0x000b5a96
PUSH EAX
LEA EAX,[EBX + 0xffe7a788]
PUSH EAX
LEA EAX,[EBX + 0xffe7c4c8]
PUSH 0x29e2
PUSH EAX
CALL 0x002446e0
CALL 0x000afd50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000b5a60(int param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}\n\n" comment (function_definition "int FUN_000b5a60(int param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}" primitive_type (function_declarator "FUN_000b5a60(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "piVar3 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x4c)" identifier = (pointer_expression "*(int **)(param_1 + 0x4c)" * (cast_expression "(int **)(param_1 + 0x4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }" if (parenthesized_expression "(piVar3 != *(int **)(param_1 + 0x50))" ( (binary_expression "piVar3 != *(int **)(param_1 + 0x50)" identifier != (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }" { (do_statement "do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);" do (compound_statement "{\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "(**(code **)(*param_2 + 0xf0))(param_2);" (call_expression "(**(code **)(*param_2 + 0xf0))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xf0))" ( (pointer_expression "**(code **)(*param_2 + 0xf0)" * (pointer_expression "*(code **)(*param_2 + 0xf0)" * (cast_expression "(code **)(*param_2 + 0xf0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xf0)" ( (binary_expression "*param_2 + 0xf0" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "FUN_000ab490();" (call_expression "FUN_000ab490()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_000b0510();\n      }" { (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }" if (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 8) == 0)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 8) == 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 8)" * (cast_expression "(int *)(DAT_005ea7c8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 8)" ( (binary_expression "DAT_005ea7c8 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_000afd50();\n        }" { comment (expression_statement "FUN_000afd50();" (call_expression "FUN_000afd50()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" identifier = (binary_expression "1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" number_literal << (parenthesized_expression "((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" ( (binary_expression "(byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f" (binary_expression "(byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 8) + 0x2b20" (pointer_expression "*(int *)(DAT_005ea7c8 + 8)" * (cast_expression "(int *)(DAT_005ea7c8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 8)" ( (binary_expression "DAT_005ea7c8 + 8" identifier + number_literal) )))) + number_literal) )))) & number_literal) )))) ;) (if_statement "if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }" if (parenthesized_expression "(uVar2 < 0x10)" ( (binary_expression "uVar2 < 0x10" identifier < number_literal) )) (compound_statement "{\n          uVar2 = 0x10;\n        }" { (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" identifier = number_literal) ;) })) (if_statement "if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x1c) & 1) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x1c) & 1) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x1c) & 1)" ( (binary_expression "*(byte *)(iVar1 + 0x1c) & 1" (pointer_expression "*(byte *)(iVar1 + 0x1c)" * (cast_expression "(byte *)(iVar1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }" { (return_statement "return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);" return (binary_expression "(-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14)" (parenthesized_expression "(-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70))" ( (binary_expression "-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)" (unary_expression "-uVar2" - identifier) & (binary_expression "(uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)" (binary_expression "(uVar2 - 1) + *(int *)(iVar1 + 4)" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) + (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) + (pointer_expression "*(int *)(iVar1 + 0x70)" * (cast_expression "(int *)(iVar1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))))) )) + (pointer_expression "*(int *)(local_30 + 0x14)" * (cast_expression "(int *)(local_30 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + 0x14)" ( (binary_expression "local_30 + 0x14" identifier + number_literal) ))))) ;) })) comment (expression_statement "FUN_000b0510();" (call_expression "FUN_000b0510()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x50) != piVar3)" ( (binary_expression "*(int **)(param_1 + 0x50) != piVar3" (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) != identifier) )) ;) })) comment (expression_statement "FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);" (call_expression "FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1)" identifier (argument_list "("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1)" ( (string_literal ""../../gold/powerpc.cc"" " string_content ") , number_literal , (string_literal ""do_plt_address_for_local"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: uint64_t do_plt_address_for_local(Target_powerpc<32,_false> * this,\n   Relobj * object, uint symndx) */\n\nuint64_t __thiscall\nanon_unknown.dwarf_6462d4::Target_powerpc<32,_false>::do_plt_address_for_local\n          (Target_powerpc<32,_false> *this,Relobj *object,uint symndx)\n\n{\n  Plt_stub_key key;\n  \n}\n\n" comment comment comment (declaration "uint64_t __thiscall\nanon_unknown.dwarf_6462d4::Target_powerpc<32,_false>::do_plt_address_for_local\n          (Target_powerpc<32,_false> *this,Relobj *object,uint symndx)\n\n{\n  Plt_stub_key key;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_6462d4::" identifier . identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::do_plt_address_for_local\n          (Target_powerpc<32,_false> *this,Relobj *object,uint symndx)\n\n{\n  Plt_stub_key" identifier > : : (function_declarator "do_plt_address_for_local\n          (Target_powerpc<32,_false> *this,Relobj *object,uint symndx)" identifier (parameter_list "(Target_powerpc<32,_false> *this,Relobj *object,uint symndx)" ( (parameter_declaration "Target_powerpc" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Relobj *object" type_identifier (pointer_declarator "*object" * identifier)) , (parameter_declaration "uint symndx" type_identifier identifier) ))) { identifier) identifier ;) (ERROR "}" }))
(translation_unit "int FUN_000b5a60(int param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    \n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}\n\n" (function_definition "int FUN_000b5a60(int param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    \n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}" primitive_type (function_declarator "FUN_000b5a60(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    \n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "piVar3 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x4c)" identifier = (pointer_expression "*(int **)(param_1 + 0x4c)" * (cast_expression "(int **)(param_1 + 0x4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }" if (parenthesized_expression "(piVar3 != *(int **)(param_1 + 0x50))" ( (binary_expression "piVar3 != *(int **)(param_1 + 0x50)" identifier != (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }" { (do_statement "do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);" do (compound_statement "{\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    }" { (expression_statement "(**(code **)(*param_2 + 0xf0))(param_2);" (call_expression "(**(code **)(*param_2 + 0xf0))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xf0))" ( (pointer_expression "**(code **)(*param_2 + 0xf0)" * (pointer_expression "*(code **)(*param_2 + 0xf0)" * (cast_expression "(code **)(*param_2 + 0xf0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xf0)" ( (binary_expression "*param_2 + 0xf0" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "FUN_000ab490();" (call_expression "FUN_000ab490()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }" { (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }" if (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 8) == 0)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 8) == 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 8)" * (cast_expression "(int *)(DAT_005ea7c8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 8)" ( (binary_expression "DAT_005ea7c8 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n          FUN_000afd50();\n        }" { (expression_statement "FUN_000afd50();" (call_expression "FUN_000afd50()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" identifier = (binary_expression "1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" number_literal << (parenthesized_expression "((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" ( (binary_expression "(byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f" (binary_expression "(byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" (parenthesized_expression "(byte)" ( identifier )) * (cast_expression "(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" ( (binary_expression "*(int *)(DAT_005ea7c8 + 8) + 0x2b20" (pointer_expression "*(int *)(DAT_005ea7c8 + 8)" * (cast_expression "(int *)(DAT_005ea7c8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_005ea7c8 + 8)" ( (binary_expression "DAT_005ea7c8 + 8" identifier + number_literal) )))) + number_literal) )))) & number_literal) )))) ;) (if_statement "if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }" if (parenthesized_expression "(uVar2 < 0x10)" ( (binary_expression "uVar2 < 0x10" identifier < number_literal) )) (compound_statement "{\n          uVar2 = 0x10;\n        }" { (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" identifier = number_literal) ;) })) (if_statement "if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x1c) & 1) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x1c) & 1) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x1c) & 1)" ( (binary_expression "*(byte *)(iVar1 + 0x1c) & 1" (pointer_expression "*(byte *)(iVar1 + 0x1c)" * (cast_expression "(byte *)(iVar1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }" { (return_statement "return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);" return (binary_expression "(-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14)" (parenthesized_expression "(-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70))" ( (binary_expression "-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)" (unary_expression "-uVar2" - identifier) & (binary_expression "(uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)" (binary_expression "(uVar2 - 1) + *(int *)(iVar1 + 4)" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) + (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) + (pointer_expression "*(int *)(iVar1 + 0x70)" * (cast_expression "(int *)(iVar1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))))) )) + (pointer_expression "*(int *)(local_30 + 0x14)" * (cast_expression "(int *)(local_30 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + 0x14)" ( (binary_expression "local_30 + 0x14" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000b0510();" (call_expression "FUN_000b0510()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x50) != piVar3)" ( (binary_expression "*(int **)(param_1 + 0x50) != piVar3" (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);" (call_expression "FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1)" identifier (argument_list "("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1)" ( (string_literal ""../../gold/powerpc.cc"" " string_content ") , number_literal , (string_literal ""do_plt_address_for_local"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (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) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - IDENT) & (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "int FUN_000b5a60(int param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    \n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}" (primitive_type "int") (function_declarator "FUN_000b5a60(int param_1,int *param_2)" (identifier "FUN_000b5a60") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int local_30;\n  \n  piVar3 = *(int **)(param_1 + 0x4c);\n  if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }\n                    \n  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (expression_statement "piVar3 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x4c)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 0x4c)" (* "*") (cast_expression "(int **)(param_1 + 0x4c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (piVar3 != *(int **)(param_1 + 0x50)) {\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }" (if "if") (parenthesized_expression "(piVar3 != *(int **)(param_1 + 0x50))" (( "(") (binary_expression "piVar3 != *(int **)(param_1 + 0x50)" (identifier "piVar3") (!= "!=") (pointer_expression "*(int **)(param_1 + 0x50)" (* "*") (cast_expression "(int **)(param_1 + 0x50)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);\n  }" ({ "{") (do_statement "do {\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    } while (*(int **)(param_1 + 0x50) != piVar3);" (do "do") (compound_statement "{\n      (**(code **)(*param_2 + 0xf0))(param_2);\n      FUN_000ab490();\n      if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }\n      piVar3 = piVar3 + 1;\n    }" ({ "{") (expression_statement "(**(code **)(*param_2 + 0xf0))(param_2);" (call_expression "(**(code **)(*param_2 + 0xf0))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xf0))" (( "(") (pointer_expression "**(code **)(*param_2 + 0xf0)" (* "*") (pointer_expression "*(code **)(*param_2 + 0xf0)" (* "*") (cast_expression "(code **)(*param_2 + 0xf0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xf0)" (( "(") (binary_expression "*param_2 + 0xf0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xf0")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_000ab490();" (call_expression "FUN_000ab490()" (identifier "FUN_000ab490") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_30 != 0) {\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = *piVar3;\n        if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }\n        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);\n        if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }\n        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }\n                    \n        FUN_000b0510();\n      }" ({ "{") (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (*(int *)(DAT_005ea7c8 + 8) == 0) {\n                    \n          FUN_000afd50();\n        }" (if "if") (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_005ea7c8 + 8) == 0" (pointer_expression "*(int *)(DAT_005ea7c8 + 8)" (* "*") (cast_expression "(int *)(DAT_005ea7c8 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 8)" (( "(") (binary_expression "DAT_005ea7c8 + 8" (identifier "DAT_005ea7c8") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n          FUN_000afd50();\n        }" ({ "{") (expression_statement "FUN_000afd50();" (call_expression "FUN_000afd50()" (identifier "FUN_000afd50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" (identifier "uVar2") (= "=") (binary_expression "1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f)" (( "(") (binary_expression "(byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f" (binary_expression "(byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (cast_expression "(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_005ea7c8 + 8) + 0x2b20)" (( "(") (binary_expression "*(int *)(DAT_005ea7c8 + 8) + 0x2b20" (pointer_expression "*(int *)(DAT_005ea7c8 + 8)" (* "*") (cast_expression "(int *)(DAT_005ea7c8 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_005ea7c8 + 8)" (( "(") (binary_expression "DAT_005ea7c8 + 8" (identifier "DAT_005ea7c8") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x2b20")) () ")")))) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (uVar2 < 0x10) {\n          uVar2 = 0x10;\n        }" (if "if") (parenthesized_expression "(uVar2 < 0x10)" (( "(") (binary_expression "uVar2 < 0x10" (identifier "uVar2") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n          uVar2 = 0x10;\n        }" ({ "{") (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" (identifier "uVar2") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x1c) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x1c) & 1) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x1c) & 1)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x1c) & 1" (pointer_expression "*(byte *)(iVar1 + 0x1c)" (* "*") (cast_expression "(byte *)(iVar1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);\n        }" ({ "{") (return_statement "return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14);" (return "return") (binary_expression "(-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +\n                 *(int *)(local_30 + 0x14)" (parenthesized_expression "(-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70))" (( "(") (binary_expression "-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)" (unary_expression "-uVar2" (- "-") (identifier "uVar2")) (& "&") (binary_expression "(uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)" (binary_expression "(uVar2 - 1) + *(int *)(iVar1 + 4)" (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")")) (+ "+") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (+ "+") (pointer_expression "*(int *)(iVar1 + 0x70)" (* "*") (cast_expression "(int *)(iVar1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x70)" (( "(") (binary_expression "iVar1 + 0x70" (identifier "iVar1") (+ "+") (number_literal "0x70")) () ")")))))) () ")")) (+ "+") (pointer_expression "*(int *)(local_30 + 0x14)" (* "*") (cast_expression "(int *)(local_30 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_30 + 0x14)" (( "(") (binary_expression "local_30 + 0x14" (identifier "local_30") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_000b0510();" (call_expression "FUN_000b0510()" (identifier "FUN_000b0510") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int **)(param_1 + 0x50) != piVar3)" (( "(") (binary_expression "*(int **)(param_1 + 0x50) != piVar3" (pointer_expression "*(int **)(param_1 + 0x50)" (* "*") (cast_expression "(int **)(param_1 + 0x50)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (!= "!=") (identifier "piVar3")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);" (call_expression "FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1)" (identifier "FUN_002446e0") (argument_list "("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1)" (( "(") (string_literal ""../../gold/powerpc.cc"" (" """) (string_content "../../gold/powerpc.cc") (" """)) (, ",") (number_literal "0x29e2") (, ",") (string_literal ""do_plt_address_for_local"" (" """) (string_content "do_plt_address_for_local") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint64_t do_plt_address_for_local(Target_powerpc<32,_false> * this,
   Relobj * object, uint symndx) */

uint64_t __thiscall
anon_unknown.dwarf_6462d4::Target_powerpc<32,_false>::do_plt_address_for_local
          (Target_powerpc<32,_false> *this,Relobj *object,uint symndx)

{
  Plt_stub_key key;
  
}


(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (if_statement condition: (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))) consequence: (compound_statement (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (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: (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))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

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

int MASKED(int param_1,int *param_2)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  int local_30;
  
  piVar3 = *(int **)(param_1 + 0x4c);
  if (piVar3 != *(int **)(param_1 + 0x50)) {
    do {
      (**(code **)(*param_2 + 0xf0))(param_2);
      FUN_000ab490();
      if (local_30 != 0) {
        iVar1 = *piVar3;
        if (*(int *)(DAT_005ea7c8 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
          FUN_000afd50();
        }
        uVar2 = 1 << ((byte)*(undefined4 *)(*(int *)(DAT_005ea7c8 + 8) + 0x2b20) & 0x1f);
        if (uVar2 < 0x10) {
          uVar2 = 0x10;
        }
        if ((*(byte *)(iVar1 + 0x1c) & 1) != 0) {
          return (-uVar2 & (uVar2 - 1) + *(int *)(iVar1 + 4) + *(int *)(iVar1 + 0x70)) +
                 *(int *)(local_30 + 0x14);
        }
                    /* WARNING: Subroutine does not return */
        FUN_000b0510();
      }
      piVar3 = piVar3 + 1;
    } while (*(int **)(param_1 + 0x50) != piVar3);
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/powerpc.cc",0x29e2,"do_plt_address_for_local",param_1);
}

