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

void __regparm3
sort_toc_sections(lang_statement_list_type *list,lang_statement_union_type **ini,
                 lang_statement_union_type **small)

{
  asection *paVar1;
  lang_statement_union_type *plVar2;
  lang_statement_list_type *to;
  lang_statement_union_type *plVar3;
  int iVar4;
  lang_statement_union_type *u;
  bool bVar5;
  lang_statement_list_type *local_30;
  
  u = (lang_statement_union_type *)list;
  local_30 = (lang_statement_list_type *)small;
LAB_00056562:
  plVar3 = (u->header).next;
  to = local_30;
  do {
    plVar2 = plVar3;
    if (plVar2 == (lang_statement_union_type *)0x0) {
      return;
    }
    iVar4 = (plVar2->header).type;
    local_30 = to;
    if (iVar4 == 5) {
      paVar1 = (plVar2->input_section).section;
      if (paVar1->owner != stub_file->the_bfd) {
        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");
        local_30 = (lang_statement_list_type *)plVar2;
        if ((iVar4 == 0) &&
           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {
          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {
            ini = (lang_statement_union_type **)u;
          }
          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);
          if (iVar4 == 0) {
            local_30 = (lang_statement_list_type *)u;
            if (to != (lang_statement_list_type *)0x0) {
              local_30 = to;
            }
          }
          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;
        }
        else {
          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&
             (((lang_statement_list_type *)ini)->head != plVar2)) {
            move_input_section((lang_statement_list_type *)&list->tail,
                               (lang_statement_union_type **)u,ini);
            bVar5 = (lang_statement_list_type *)ini == to;
            ini = (lang_statement_union_type **)plVar2;
            local_30 = to;
            if (bVar5) {
              local_30 = (lang_statement_list_type *)plVar2;
            }
            goto LAB_00056562;
          }
          bVar5 = (lang_statement_list_type *)ini == to;
          ini = (lang_statement_union_type **)plVar2;
          local_30 = to;
          if (bVar5) {
            local_30 = (lang_statement_list_type *)plVar2;
          }
        }
      }
    }
    else if (iVar4 == 0xd) {
      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);
    }
    else if (iVar4 == 4) {
      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);
    }
    plVar3 = (plVar2->header).next;
    u = plVar2;
    to = local_30;
  } while( true );
  move_input_section((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,
                     &to->head);
  goto LAB_00056562;
}



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

void __regparm3 FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  bool bVar6;
  undefined4 *local_30;
  
  local_30 = param_3;
LAB_00056562:
  puVar3 = (undefined4 *)*param_1;
  puVar2 = local_30;
  do {
    puVar1 = puVar3;
    if (puVar1 == (undefined4 *)0x0) {
      return;
    }
    iVar5 = puVar1[1];
    local_30 = puVar2;
    if (iVar5 == 5) {
      iVar5 = puVar1[2];
      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {
        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");
        local_30 = puVar1;
        if ((iVar4 == 0) &&
           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {
          if (param_2 == (undefined4 *)0x0) {
            param_2 = param_1;
          }
          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);
          if (iVar5 == 0) {
            local_30 = param_1;
            if (puVar2 != (undefined4 *)0x0) {
              local_30 = puVar2;
            }
          }
          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;
        }
        else {
          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {
            FUN_000563e0();
            bVar6 = param_2 == puVar2;
            param_2 = puVar1;
            local_30 = puVar2;
            if (bVar6) {
              local_30 = puVar1;
            }
            goto LAB_00056562;
          }
          bVar6 = param_2 == puVar2;
          param_2 = puVar1;
          local_30 = puVar2;
          if (bVar6) {
            local_30 = puVar1;
          }
        }
      }
    }
    else if (iVar5 == 0xd) {
      FUN_00056530();
    }
    else if (iVar5 == 4) {
      FUN_00056530();
    }
    puVar3 = (undefined4 *)*puVar1;
    param_1 = puVar1;
    puVar2 = local_30;
  } while( true );
  FUN_000563e0();
  goto LAB_00056562;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x168ac3
SUB ESP,0x2c
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0xc],ECX
LEA EAX,[EBX + 0xffeb0dc8]
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[EBX + 0xffeb0dce]
MOV dword ptr [ESP + 0x1c],EAX
MOV ESI,dword ptr [EDI]
TEST ESI,ESI
JZ 0x00056582
MOV EAX,dword ptr [ESI + 0x4]
CMP EAX,0x5
JZ 0x000565c0
CMP EAX,0xd
JZ 0x000565a8
CMP EAX,0x4
JZ 0x00056590
MOV EDI,ESI
MOV ESI,dword ptr [EDI]
TEST ESI,ESI
JNZ 0x00056568
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESP + 0xc]
LEA EAX,[ESI + 0x18]
MOV EDX,EBP
MOV EDI,ESI
CALL 0x00056530
JMP 0x0005657c
MOV ECX,dword ptr [ESP + 0xc]
LEA EAX,[ESI + 0x8]
MOV EDX,EBP
MOV EDI,ESI
CALL 0x00056530
JMP 0x0005657c
MOV EDX,dword ptr [ESI + 0x8]
MOV ECX,dword ptr [EBX + 0x1c04]
MOV EAX,dword ptr [EDX + 0xac]
MOV dword ptr [ESP + 0x14],EDX
CMP EAX,dword ptr [ECX + 0x10]
JZ 0x0005657a
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00016570
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x00056638
TEST EBP,EBP
JZ 0x000565f9
CMP dword ptr [EBP],ESI
JNZ 0x00056610
MOV EAX,dword ptr [ESP + 0xc]
MOV EDI,ESI
CMP EBP,EAX
MOV EBP,ESI
CMOVZ EAX,ESI
MOV dword ptr [ESP + 0xc],EAX
JMP 0x0005657c
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,EBP
MOV EDX,EDI
ADD EAX,0x4
CALL 0x000563e0
MOV EAX,dword ptr [ESP + 0xc]
CMP EBP,EAX
MOV EBP,ESI
CMOVZ EAX,ESI
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00056562
SUB ESP,0x8
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [EDX + 0xac]
MOV dword ptr [ESP + 0x24],EDX
CALL 0x00016570
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JNZ 0x000565f0
TEST EBP,EBP
CMOVZ EBP,EDI
SUB ESP,0xc
PUSH EDX
CALL 0x000168f0
ADD ESP,0x10
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0xc]
JZ 0x00056685
TEST EAX,EAX
JZ 0x0005667a
CMP dword ptr [EAX],ESI
JNZ 0x00056695
MOV dword ptr [ESP + 0xc],ESI
MOV EDI,ESI
JMP 0x0005657c
TEST EAX,EAX
CMOVNZ EDI,EAX
MOV dword ptr [ESP + 0xc],EDI
MOV EDI,ESI
JMP 0x0005657c
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,EDI
ADD EAX,0x4
CALL 0x000563e0
MOV dword ptr [ESP + 0xc],ESI
JMP 0x00056562
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}\n\n" comment (function_definition "void __regparm3 FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "undefined4 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "local_30 = param_3;" (assignment_expression "local_30 = param_3" identifier = identifier) ;) (labeled_statement "LAB_00056562:\n  puVar3 = (undefined4 *)*param_1;" statement_identifier : (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) (expression_statement "puVar2 = local_30;" (assignment_expression "puVar2 = local_30" identifier = identifier) ;) (do_statement "do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );" do (compound_statement "{\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  }" { (expression_statement "puVar1 = puVar3;" (assignment_expression "puVar1 = puVar3" identifier = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar5 = puVar1[1];" (assignment_expression "iVar5 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) (if_statement "if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" if (parenthesized_expression "(iVar5 == 5)" ( (binary_expression "iVar5 == 5" identifier == number_literal) )) (compound_statement "{\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }" { (expression_statement "iVar5 = puVar1[2];" (assignment_expression "iVar5 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10))" ( (binary_expression "*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)" (pointer_expression "*(int *)(iVar5 + 0xac)" * (cast_expression "(int *)(iVar5 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) != (pointer_expression "*(int *)(DAT_001c0c04 + 0x10)" * (cast_expression "(int *)(DAT_001c0c04 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0c04 + 0x10)" ( (binary_expression "DAT_001c0c04 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }" { (expression_statement "iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");" (assignment_expression "iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init")" identifier = (call_expression "bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init")" identifier (argument_list "(*(int *)(iVar5 + 0xac),".init")" ( (pointer_expression "*(int *)(iVar5 + 0xac)" * (cast_expression "(int *)(iVar5 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) , (string_literal "".init"" " string_content ") )))) ;) (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" identifier = identifier) ;) (if_statement "if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" if (parenthesized_expression "((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0))" ( (binary_expression "(iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)" ( (comma_expression "iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0" (assignment_expression "iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini")" identifier = (call_expression "bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini")" identifier (argument_list "(*(undefined4 *)(iVar5 + 0xac),".fini")" ( (pointer_expression "*(undefined4 *)(iVar5 + 0xac)" * (cast_expression "(undefined4 *)(iVar5 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) , (string_literal "".fini"" " string_content ") )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }" { (if_statement "if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            param_2 = param_1;\n          }" { (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) })) (expression_statement "iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);" (assignment_expression "iVar5 = ppc64_elf_has_small_toc_reloc(iVar5)" identifier = (call_expression "ppc64_elf_has_small_toc_reloc(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }" { (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              local_30 = puVar2;\n            }" { (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) })) }) (else_clause "else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" else (if_statement "if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" if (parenthesized_expression "((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1))" ( (binary_expression "(puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)" (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((undefined4 *)*puVar2 != puVar1)" ( (binary_expression "(undefined4 *)*puVar2 != puVar1" (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) != identifier) ))) )) (break_statement "break;" break ;)))) }) (else_clause "else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" else (compound_statement "{\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" { (if_statement "if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }" if (parenthesized_expression "((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1))" ( (binary_expression "(param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)" (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((undefined4 *)*param_2 != puVar1)" ( (binary_expression "(undefined4 *)*param_2 != puVar1" (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) != identifier) ))) )) (compound_statement "{\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }" { (expression_statement "FUN_000563e0();" (call_expression "FUN_000563e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar6 = param_2 == puVar2;" (assignment_expression "bVar6 = param_2 == puVar2" identifier = (binary_expression "param_2 == puVar2" identifier == identifier)) ;) (expression_statement "param_2 = puVar1;" (assignment_expression "param_2 = puVar1" identifier = identifier) ;) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) (if_statement "if (bVar6) {\n              local_30 = puVar1;\n            }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n              local_30 = puVar1;\n            }" { (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" identifier = identifier) ;) })) (goto_statement "goto LAB_00056562;" goto statement_identifier ;) })) (expression_statement "bVar6 = param_2 == puVar2;" (assignment_expression "bVar6 = param_2 == puVar2" identifier = (binary_expression "param_2 == puVar2" identifier == identifier)) ;) (expression_statement "param_2 = puVar1;" (assignment_expression "param_2 = puVar1" identifier = identifier) ;) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) (if_statement "if (bVar6) {\n            local_30 = puVar1;\n          }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n            local_30 = puVar1;\n          }" { (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" identifier = identifier) ;) })) }))) })) }) (else_clause "else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" else (if_statement "if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" if (parenthesized_expression "(iVar5 == 0xd)" ( (binary_expression "iVar5 == 0xd" identifier == number_literal) )) (compound_statement "{\n      FUN_00056530();\n    }" { (expression_statement "FUN_00056530();" (call_expression "FUN_00056530()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else if (iVar5 == 4) {\n      FUN_00056530();\n    }" else (if_statement "if (iVar5 == 4) {\n      FUN_00056530();\n    }" if (parenthesized_expression "(iVar5 == 4)" ( (binary_expression "iVar5 == 4" identifier == number_literal) )) (compound_statement "{\n      FUN_00056530();\n    }" { (expression_statement "FUN_00056530();" (call_expression "FUN_00056530()" identifier (argument_list "()" ( ))) ;) })))))) (expression_statement "puVar3 = (undefined4 *)*puVar1;" (assignment_expression "puVar3 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "param_1 = puVar1;" (assignment_expression "param_1 = puVar1" identifier = identifier) ;) (expression_statement "puVar2 = local_30;" (assignment_expression "puVar2 = local_30" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "FUN_000563e0();" (call_expression "FUN_000563e0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00056562;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nsort_toc_sections(lang_statement_list_type *list,lang_statement_union_type **ini,\n                 lang_statement_union_type **small)\n\n{\n  asection *paVar1;\n  lang_statement_union_type *plVar2;\n  lang_statement_list_type *to;\n  lang_statement_union_type *plVar3;\n  int iVar4;\n  lang_statement_union_type *u;\n  bool bVar5;\n  lang_statement_list_type *local_30;\n  \n  u = (lang_statement_union_type *)list;\n  local_30 = (lang_statement_list_type *)small;\nLAB_00056562:\n  plVar3 = (u->header).next;\n  to = local_30;\n  do {\n    plVar2 = plVar3;\n    if (plVar2 == (lang_statement_union_type *)0x0) {\n      return;\n    }\n    iVar4 = (plVar2->header).type;\n    local_30 = to;\n    if (iVar4 == 5) {\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }\n    else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }\n    plVar3 = (plVar2->header).next;\n    u = plVar2;\n    to = local_30;\n  } while( true );\n  move_input_section((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,\n                     &to->head);\n  goto LAB_00056562;\n}\n\n" comment (function_definition "void __regparm3\nsort_toc_sections(lang_statement_list_type *list,lang_statement_union_type **ini,\n                 lang_statement_union_type **small)\n\n{\n  asection *paVar1;\n  lang_statement_union_type *plVar2;\n  lang_statement_list_type *to;\n  lang_statement_union_type *plVar3;\n  int iVar4;\n  lang_statement_union_type *u;\n  bool bVar5;\n  lang_statement_list_type *local_30;\n  \n  u = (lang_statement_union_type *)list;\n  local_30 = (lang_statement_list_type *)small;\nLAB_00056562:\n  plVar3 = (u->header).next;\n  to = local_30;\n  do {\n    plVar2 = plVar3;\n    if (plVar2 == (lang_statement_union_type *)0x0) {\n      return;\n    }\n    iVar4 = (plVar2->header).type;\n    local_30 = to;\n    if (iVar4 == 5) {\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }\n    else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }\n    plVar3 = (plVar2->header).next;\n    u = plVar2;\n    to = local_30;\n  } while( true );\n  move_input_section((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,\n                     &to->head);\n  goto LAB_00056562;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sort_toc_sections(lang_statement_list_type *list,lang_statement_union_type **ini,\n                 lang_statement_union_type **small)" identifier (parameter_list "(lang_statement_list_type *list,lang_statement_union_type **ini,\n                 lang_statement_union_type **small)" ( (parameter_declaration "lang_statement_list_type *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "lang_statement_union_type **ini" type_identifier (pointer_declarator "**ini" * (pointer_declarator "*ini" * identifier))) , (parameter_declaration "lang_statement_union_type **small" type_identifier (pointer_declarator "**small" * (pointer_declarator "*small" * identifier))) ))) (compound_statement "{\n  asection *paVar1;\n  lang_statement_union_type *plVar2;\n  lang_statement_list_type *to;\n  lang_statement_union_type *plVar3;\n  int iVar4;\n  lang_statement_union_type *u;\n  bool bVar5;\n  lang_statement_list_type *local_30;\n  \n  u = (lang_statement_union_type *)list;\n  local_30 = (lang_statement_list_type *)small;\nLAB_00056562:\n  plVar3 = (u->header).next;\n  to = local_30;\n  do {\n    plVar2 = plVar3;\n    if (plVar2 == (lang_statement_union_type *)0x0) {\n      return;\n    }\n    iVar4 = (plVar2->header).type;\n    local_30 = to;\n    if (iVar4 == 5) {\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }\n    else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }\n    plVar3 = (plVar2->header).next;\n    u = plVar2;\n    to = local_30;\n  } while( true );\n  move_input_section((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,\n                     &to->head);\n  goto LAB_00056562;\n}" { (declaration "asection *paVar1;" type_identifier (pointer_declarator "*paVar1" * identifier) ;) (declaration "lang_statement_union_type *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "lang_statement_list_type *to;" type_identifier (pointer_declarator "*to" * identifier) ;) (declaration "lang_statement_union_type *plVar3;" type_identifier (pointer_declarator "*plVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "lang_statement_union_type *u;" type_identifier (pointer_declarator "*u" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "lang_statement_list_type *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "u = (lang_statement_union_type *)list;" (assignment_expression "u = (lang_statement_union_type *)list" identifier = (cast_expression "(lang_statement_union_type *)list" ( (type_descriptor "lang_statement_union_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_30 = (lang_statement_list_type *)small;" (assignment_expression "local_30 = (lang_statement_list_type *)small" identifier = (cast_expression "(lang_statement_list_type *)small" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (labeled_statement "LAB_00056562:\n  plVar3 = (u->header).next;" statement_identifier : (expression_statement "plVar3 = (u->header).next;" (assignment_expression "plVar3 = (u->header).next" identifier = (field_expression "(u->header).next" (parenthesized_expression "(u->header)" ( (field_expression "u->header" identifier -> field_identifier) )) . field_identifier)) ;)) (expression_statement "to = local_30;" (assignment_expression "to = local_30" identifier = identifier) ;) (do_statement "do {\n    plVar2 = plVar3;\n    if (plVar2 == (lang_statement_union_type *)0x0) {\n      return;\n    }\n    iVar4 = (plVar2->header).type;\n    local_30 = to;\n    if (iVar4 == 5) {\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }\n    else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }\n    plVar3 = (plVar2->header).next;\n    u = plVar2;\n    to = local_30;\n  } while( true );" do (compound_statement "{\n    plVar2 = plVar3;\n    if (plVar2 == (lang_statement_union_type *)0x0) {\n      return;\n    }\n    iVar4 = (plVar2->header).type;\n    local_30 = to;\n    if (iVar4 == 5) {\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }\n    else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }\n    plVar3 = (plVar2->header).next;\n    u = plVar2;\n    to = local_30;\n  }" { (expression_statement "plVar2 = plVar3;" (assignment_expression "plVar2 = plVar3" identifier = identifier) ;) (if_statement "if (plVar2 == (lang_statement_union_type *)0x0) {\n      return;\n    }" if (parenthesized_expression "(plVar2 == (lang_statement_union_type *)0x0)" ( (binary_expression "plVar2 == (lang_statement_union_type *)0x0" identifier == (cast_expression "(lang_statement_union_type *)0x0" ( (type_descriptor "lang_statement_union_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = (plVar2->header).type;" (assignment_expression "iVar4 = (plVar2->header).type" identifier = (field_expression "(plVar2->header).type" (parenthesized_expression "(plVar2->header)" ( (field_expression "plVar2->header" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "local_30 = to;" (assignment_expression "local_30 = to" identifier = identifier) ;) (if_statement "if (iVar4 == 5) {\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }\n    else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }" if (parenthesized_expression "(iVar4 == 5)" ( (binary_expression "iVar4 == 5" identifier == number_literal) )) (compound_statement "{\n      paVar1 = (plVar2->input_section).section;\n      if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }\n    }" { (expression_statement "paVar1 = (plVar2->input_section).section;" (assignment_expression "paVar1 = (plVar2->input_section).section" identifier = (field_expression "(plVar2->input_section).section" (parenthesized_expression "(plVar2->input_section)" ( (field_expression "plVar2->input_section" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (paVar1->owner != stub_file->the_bfd) {\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }" if (parenthesized_expression "(paVar1->owner != stub_file->the_bfd)" ( (binary_expression "paVar1->owner != stub_file->the_bfd" (field_expression "paVar1->owner" identifier -> field_identifier) != (field_expression "stub_file->the_bfd" identifier -> field_identifier)) )) (compound_statement "{\n        iVar4 = bfd_get_section_by_name(paVar1->owner,".init");\n        local_30 = (lang_statement_list_type *)plVar2;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }\n      }" { (expression_statement "iVar4 = bfd_get_section_by_name(paVar1->owner,".init");" (assignment_expression "iVar4 = bfd_get_section_by_name(paVar1->owner,".init")" identifier = (call_expression "bfd_get_section_by_name(paVar1->owner,".init")" identifier (argument_list "(paVar1->owner,".init")" ( (field_expression "paVar1->owner" identifier -> field_identifier) , (string_literal "".init"" " string_content ") )))) ;) (expression_statement "local_30 = (lang_statement_list_type *)plVar2;" (assignment_expression "local_30 = (lang_statement_list_type *)plVar2" identifier = (cast_expression "(lang_statement_list_type *)plVar2" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)) {\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }\n        else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }" if (parenthesized_expression "((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0))" ( (binary_expression "(iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0)" ( (comma_expression "iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce), iVar4 == 0" (assignment_expression "iVar4 = bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce)" identifier = (call_expression "bfd_get_section_by_name(paVar1->owner,&DAT_0006fdce)" identifier (argument_list "(paVar1->owner,&DAT_0006fdce)" ( (field_expression "paVar1->owner" identifier -> field_identifier) , (pointer_expression "&DAT_0006fdce" & identifier) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }\n          iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);\n          if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;\n        }" { (if_statement "if ((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0) {\n            ini = (lang_statement_union_type **)u;\n          }" if (parenthesized_expression "((lang_statement_list_type *)ini == (lang_statement_list_type *)0x0)" ( (binary_expression "(lang_statement_list_type *)ini == (lang_statement_list_type *)0x0" (cast_expression "(lang_statement_list_type *)ini" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(lang_statement_list_type *)0x0" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            ini = (lang_statement_union_type **)u;\n          }" { (expression_statement "ini = (lang_statement_union_type **)u;" (assignment_expression "ini = (lang_statement_union_type **)u" identifier = (cast_expression "(lang_statement_union_type **)u" ( (type_descriptor "lang_statement_union_type **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) })) (expression_statement "iVar4 = ppc64_elf_has_small_toc_reloc(paVar1);" (assignment_expression "iVar4 = ppc64_elf_has_small_toc_reloc(paVar1)" identifier = (call_expression "ppc64_elf_has_small_toc_reloc(paVar1)" identifier (argument_list "(paVar1)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }\n          else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            local_30 = (lang_statement_list_type *)u;\n            if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }\n          }" { (expression_statement "local_30 = (lang_statement_list_type *)u;" (assignment_expression "local_30 = (lang_statement_list_type *)u" identifier = (cast_expression "(lang_statement_list_type *)u" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (to != (lang_statement_list_type *)0x0) {\n              local_30 = to;\n            }" if (parenthesized_expression "(to != (lang_statement_list_type *)0x0)" ( (binary_expression "to != (lang_statement_list_type *)0x0" identifier != (cast_expression "(lang_statement_list_type *)0x0" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              local_30 = to;\n            }" { (expression_statement "local_30 = to;" (assignment_expression "local_30 = to" identifier = identifier) ;) })) }) (else_clause "else if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;" else (if_statement "if ((to != (lang_statement_list_type *)0x0) && (to->head != plVar2)) break;" if (parenthesized_expression "((to != (lang_statement_list_type *)0x0) && (to->head != plVar2))" ( (binary_expression "(to != (lang_statement_list_type *)0x0) && (to->head != plVar2)" (parenthesized_expression "(to != (lang_statement_list_type *)0x0)" ( (binary_expression "to != (lang_statement_list_type *)0x0" identifier != (cast_expression "(lang_statement_list_type *)0x0" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(to->head != plVar2)" ( (binary_expression "to->head != plVar2" (field_expression "to->head" identifier -> field_identifier) != identifier) ))) )) (break_statement "break;" break ;)))) }) (else_clause "else {\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }" else (compound_statement "{\n          if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }\n          bVar5 = (lang_statement_list_type *)ini == to;\n          ini = (lang_statement_union_type **)plVar2;\n          local_30 = to;\n          if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }\n        }" { (if_statement "if (((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)) {\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }" if (parenthesized_expression "(((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2))" ( (binary_expression "((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0) &&\n             (((lang_statement_list_type *)ini)->head != plVar2)" (parenthesized_expression "((lang_statement_list_type *)ini != (lang_statement_list_type *)0x0)" ( (binary_expression "(lang_statement_list_type *)ini != (lang_statement_list_type *)0x0" (cast_expression "(lang_statement_list_type *)ini" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(lang_statement_list_type *)0x0" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(((lang_statement_list_type *)ini)->head != plVar2)" ( (binary_expression "((lang_statement_list_type *)ini)->head != plVar2" (field_expression "((lang_statement_list_type *)ini)->head" (parenthesized_expression "((lang_statement_list_type *)ini)" ( (cast_expression "(lang_statement_list_type *)ini" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) != identifier) ))) )) (compound_statement "{\n            move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);\n            bVar5 = (lang_statement_list_type *)ini == to;\n            ini = (lang_statement_union_type **)plVar2;\n            local_30 = to;\n            if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }\n            goto LAB_00056562;\n          }" { (expression_statement "move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini);" (call_expression "move_input_section((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini)" identifier (argument_list "((lang_statement_list_type *)&list->tail,\n                               (lang_statement_union_type **)u,ini)" ( (cast_expression "(lang_statement_list_type *)&list->tail" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&list->tail" & (field_expression "list->tail" identifier -> field_identifier))) , (cast_expression "(lang_statement_union_type **)u" ( (type_descriptor "lang_statement_union_type **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier ))) ;) (expression_statement "bVar5 = (lang_statement_list_type *)ini == to;" (assignment_expression "bVar5 = (lang_statement_list_type *)ini == to" identifier = (binary_expression "(lang_statement_list_type *)ini == to" (cast_expression "(lang_statement_list_type *)ini" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == identifier)) ;) (expression_statement "ini = (lang_statement_union_type **)plVar2;" (assignment_expression "ini = (lang_statement_union_type **)plVar2" identifier = (cast_expression "(lang_statement_union_type **)plVar2" ( (type_descriptor "lang_statement_union_type **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (expression_statement "local_30 = to;" (assignment_expression "local_30 = to" identifier = identifier) ;) (if_statement "if (bVar5) {\n              local_30 = (lang_statement_list_type *)plVar2;\n            }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n              local_30 = (lang_statement_list_type *)plVar2;\n            }" { (expression_statement "local_30 = (lang_statement_list_type *)plVar2;" (assignment_expression "local_30 = (lang_statement_list_type *)plVar2" identifier = (cast_expression "(lang_statement_list_type *)plVar2" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (goto_statement "goto LAB_00056562;" goto statement_identifier ;) })) (expression_statement "bVar5 = (lang_statement_list_type *)ini == to;" (assignment_expression "bVar5 = (lang_statement_list_type *)ini == to" identifier = (binary_expression "(lang_statement_list_type *)ini == to" (cast_expression "(lang_statement_list_type *)ini" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == identifier)) ;) (expression_statement "ini = (lang_statement_union_type **)plVar2;" (assignment_expression "ini = (lang_statement_union_type **)plVar2" identifier = (cast_expression "(lang_statement_union_type **)plVar2" ( (type_descriptor "lang_statement_union_type **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (expression_statement "local_30 = to;" (assignment_expression "local_30 = to" identifier = identifier) ;) (if_statement "if (bVar5) {\n            local_30 = (lang_statement_list_type *)plVar2;\n          }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n            local_30 = (lang_statement_list_type *)plVar2;\n          }" { (expression_statement "local_30 = (lang_statement_list_type *)plVar2;" (assignment_expression "local_30 = (lang_statement_list_type *)plVar2" identifier = (cast_expression "(lang_statement_list_type *)plVar2" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) }))) })) }) (else_clause "else if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }" else (if_statement "if (iVar4 == 0xd) {\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }\n    else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }" if (parenthesized_expression "(iVar4 == 0xd)" ( (binary_expression "iVar4 == 0xd" identifier == number_literal) )) (compound_statement "{\n      sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);\n    }" { (expression_statement "sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head);" (call_expression "sort_toc_sections(&(plVar2->output_section_statement).children,ini,&to->head)" identifier (argument_list "(&(plVar2->output_section_statement).children,ini,&to->head)" ( (pointer_expression "&(plVar2->output_section_statement).children" & (field_expression "(plVar2->output_section_statement).children" (parenthesized_expression "(plVar2->output_section_statement)" ( (field_expression "plVar2->output_section_statement" identifier -> field_identifier) )) . field_identifier)) , identifier , (pointer_expression "&to->head" & (field_expression "to->head" identifier -> field_identifier)) ))) ;) }) (else_clause "else if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }" else (if_statement "if (iVar4 == 4) {\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }" if (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) (compound_statement "{\n      sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);\n    }" { (expression_statement "sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head);" (call_expression "sort_toc_sections(&(plVar2->wild_statement).children,ini,&to->head)" identifier (argument_list "(&(plVar2->wild_statement).children,ini,&to->head)" ( (pointer_expression "&(plVar2->wild_statement).children" & (field_expression "(plVar2->wild_statement).children" (parenthesized_expression "(plVar2->wild_statement)" ( (field_expression "plVar2->wild_statement" identifier -> field_identifier) )) . field_identifier)) , identifier , (pointer_expression "&to->head" & (field_expression "to->head" identifier -> field_identifier)) ))) ;) })))))) (expression_statement "plVar3 = (plVar2->header).next;" (assignment_expression "plVar3 = (plVar2->header).next" identifier = (field_expression "(plVar2->header).next" (parenthesized_expression "(plVar2->header)" ( (field_expression "plVar2->header" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "u = plVar2;" (assignment_expression "u = plVar2" identifier = identifier) ;) (expression_statement "to = local_30;" (assignment_expression "to = local_30" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "move_input_section((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,\n                     &to->head);" (call_expression "move_input_section((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,\n                     &to->head)" identifier (argument_list "((lang_statement_list_type *)&list->tail,(lang_statement_union_type **)u,\n                     &to->head)" ( (cast_expression "(lang_statement_list_type *)&list->tail" ( (type_descriptor "lang_statement_list_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&list->tail" & (field_expression "list->tail" identifier -> field_identifier))) , (cast_expression "(lang_statement_union_type **)u" ( (type_descriptor "lang_statement_union_type **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , (pointer_expression "&to->head" & (field_expression "to->head" identifier -> field_identifier)) ))) ;) (goto_statement "goto LAB_00056562;" goto statement_identifier ;) })))
(translation_unit "void __regparm3 FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}\n\n" (function_definition "void __regparm3 FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "undefined4 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "local_30 = param_3;" (assignment_expression "local_30 = param_3" identifier = identifier) ;) (labeled_statement "LAB_00056562:\n  puVar3 = (undefined4 *)*param_1;" statement_identifier : (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) (expression_statement "puVar2 = local_30;" (assignment_expression "puVar2 = local_30" identifier = identifier) ;) (do_statement "do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );" do (compound_statement "{\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  }" { (expression_statement "puVar1 = puVar3;" (assignment_expression "puVar1 = puVar3" identifier = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar5 = puVar1[1];" (assignment_expression "iVar5 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) (if_statement "if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" if (parenthesized_expression "(iVar5 == 5)" ( (binary_expression "iVar5 == 5" identifier == number_literal) )) (compound_statement "{\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }" { (expression_statement "iVar5 = puVar1[2];" (assignment_expression "iVar5 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }" if (parenthesized_expression "(*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10))" ( (binary_expression "*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)" (pointer_expression "*(int *)(iVar5 + 0xac)" * (cast_expression "(int *)(iVar5 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) != (pointer_expression "*(int *)(DAT_001c0c04 + 0x10)" * (cast_expression "(int *)(DAT_001c0c04 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c0c04 + 0x10)" ( (binary_expression "DAT_001c0c04 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }" { (expression_statement "iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");" (assignment_expression "iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init")" identifier = (call_expression "bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init")" identifier (argument_list "(*(int *)(iVar5 + 0xac),".init")" ( (pointer_expression "*(int *)(iVar5 + 0xac)" * (cast_expression "(int *)(iVar5 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) , (string_literal "".init"" " string_content ") )))) ;) (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" identifier = identifier) ;) (if_statement "if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" if (parenthesized_expression "((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0))" ( (binary_expression "(iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)" ( (comma_expression "iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0" (assignment_expression "iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini")" identifier = (call_expression "bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini")" identifier (argument_list "(*(undefined4 *)(iVar5 + 0xac),".fini")" ( (pointer_expression "*(undefined4 *)(iVar5 + 0xac)" * (cast_expression "(undefined4 *)(iVar5 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xac)" ( (binary_expression "iVar5 + 0xac" identifier + number_literal) )))) , (string_literal "".fini"" " string_content ") )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }" { (if_statement "if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            param_2 = param_1;\n          }" { (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) })) (expression_statement "iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);" (assignment_expression "iVar5 = ppc64_elf_has_small_toc_reloc(iVar5)" identifier = (call_expression "ppc64_elf_has_small_toc_reloc(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }" { (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" identifier = identifier) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              local_30 = puVar2;\n            }" { (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) })) }) (else_clause "else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" else (if_statement "if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" if (parenthesized_expression "((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1))" ( (binary_expression "(puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)" (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((undefined4 *)*puVar2 != puVar1)" ( (binary_expression "(undefined4 *)*puVar2 != puVar1" (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) != identifier) ))) )) (break_statement "break;" break ;)))) }) (else_clause "else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" else (compound_statement "{\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" { (if_statement "if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }" if (parenthesized_expression "((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1))" ( (binary_expression "(param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)" (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((undefined4 *)*param_2 != puVar1)" ( (binary_expression "(undefined4 *)*param_2 != puVar1" (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) != identifier) ))) )) (compound_statement "{\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }" { (expression_statement "FUN_000563e0();" (call_expression "FUN_000563e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar6 = param_2 == puVar2;" (assignment_expression "bVar6 = param_2 == puVar2" identifier = (binary_expression "param_2 == puVar2" identifier == identifier)) ;) (expression_statement "param_2 = puVar1;" (assignment_expression "param_2 = puVar1" identifier = identifier) ;) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) (if_statement "if (bVar6) {\n              local_30 = puVar1;\n            }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n              local_30 = puVar1;\n            }" { (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" identifier = identifier) ;) })) (goto_statement "goto LAB_00056562;" goto statement_identifier ;) })) (expression_statement "bVar6 = param_2 == puVar2;" (assignment_expression "bVar6 = param_2 == puVar2" identifier = (binary_expression "param_2 == puVar2" identifier == identifier)) ;) (expression_statement "param_2 = puVar1;" (assignment_expression "param_2 = puVar1" identifier = identifier) ;) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" identifier = identifier) ;) (if_statement "if (bVar6) {\n            local_30 = puVar1;\n          }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n            local_30 = puVar1;\n          }" { (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" identifier = identifier) ;) })) }))) })) }) (else_clause "else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" else (if_statement "if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" if (parenthesized_expression "(iVar5 == 0xd)" ( (binary_expression "iVar5 == 0xd" identifier == number_literal) )) (compound_statement "{\n      FUN_00056530();\n    }" { (expression_statement "FUN_00056530();" (call_expression "FUN_00056530()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else if (iVar5 == 4) {\n      FUN_00056530();\n    }" else (if_statement "if (iVar5 == 4) {\n      FUN_00056530();\n    }" if (parenthesized_expression "(iVar5 == 4)" ( (binary_expression "iVar5 == 4" identifier == number_literal) )) (compound_statement "{\n      FUN_00056530();\n    }" { (expression_statement "FUN_00056530();" (call_expression "FUN_00056530()" identifier (argument_list "()" ( ))) ;) })))))) (expression_statement "puVar3 = (undefined4 *)*puVar1;" (assignment_expression "puVar3 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "param_1 = puVar1;" (assignment_expression "param_1 = puVar1" identifier = identifier) ;) (expression_statement "puVar2 = local_30;" (assignment_expression "puVar2 = local_30" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "FUN_000563e0();" (call_expression "FUN_000563e0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00056562;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (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) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != IDENT) ))) )) (break_statement break ;)))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "void __regparm3 FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00056530(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" (identifier "FUN_00056530") (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (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") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  bool bVar6;\n  undefined4 *local_30;\n  \n  local_30 = param_3;\nLAB_00056562:\n  puVar3 = (undefined4 *)*param_1;\n  puVar2 = local_30;\n  do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );\n  FUN_000563e0();\n  goto LAB_00056562;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "undefined4 *local_30;" (type_identifier "undefined4") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (expression_statement "local_30 = param_3;" (assignment_expression "local_30 = param_3" (identifier "local_30") (= "=") (identifier "param_3")) (; ";")) (labeled_statement "LAB_00056562:\n  puVar3 = (undefined4 *)*param_1;" (statement_identifier "LAB_00056562") (: ":") (expression_statement "puVar3 = (undefined4 *)*param_1;" (assignment_expression "puVar3 = (undefined4 *)*param_1" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";"))) (expression_statement "puVar2 = local_30;" (assignment_expression "puVar2 = local_30" (identifier "puVar2") (= "=") (identifier "local_30")) (; ";")) (do_statement "do {\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  } while( true );" (do "do") (compound_statement "{\n    puVar1 = puVar3;\n    if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }\n    iVar5 = puVar1[1];\n    local_30 = puVar2;\n    if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }\n    puVar3 = (undefined4 *)*puVar1;\n    param_1 = puVar1;\n    puVar2 = local_30;\n  }" ({ "{") (expression_statement "puVar1 = puVar3;" (assignment_expression "puVar1 = puVar3" (identifier "puVar1") (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar5 = puVar1[1];" (assignment_expression "iVar5 = puVar1[1]" (identifier "iVar5") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" (identifier "local_30") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (iVar5 == 5) {\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }\n    else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" (if "if") (parenthesized_expression "(iVar5 == 5)" (( "(") (binary_expression "iVar5 == 5" (identifier "iVar5") (== "==") (number_literal "5")) () ")")) (compound_statement "{\n      iVar5 = puVar1[2];\n      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "iVar5 = puVar1[2];" (assignment_expression "iVar5 = puVar1[2]" (identifier "iVar5") (= "=") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10))" (( "(") (binary_expression "*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)" (pointer_expression "*(int *)(iVar5 + 0xac)" (* "*") (cast_expression "(int *)(iVar5 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xac)" (( "(") (binary_expression "iVar5 + 0xac" (identifier "iVar5") (+ "+") (number_literal "0xac")) () ")")))) (!= "!=") (pointer_expression "*(int *)(DAT_001c0c04 + 0x10)" (* "*") (cast_expression "(int *)(DAT_001c0c04 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c0c04 + 0x10)" (( "(") (binary_expression "DAT_001c0c04 + 0x10" (identifier "DAT_001c0c04") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");\n        local_30 = puVar1;\n        if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");" (assignment_expression "iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init")" (identifier "iVar4") (= "=") (call_expression "bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init")" (identifier "bfd_get_section_by_name") (argument_list "(*(int *)(iVar5 + 0xac),".init")" (( "(") (pointer_expression "*(int *)(iVar5 + 0xac)" (* "*") (cast_expression "(int *)(iVar5 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xac)" (( "(") (binary_expression "iVar5 + 0xac" (identifier "iVar5") (+ "+") (number_literal "0xac")) () ")")))) (, ",") (string_literal "".init"" (" """) (string_content ".init") (" """)) () ")")))) (; ";")) (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" (identifier "local_30") (= "=") (identifier "puVar1")) (; ";")) (if_statement "if ((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }\n        else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" (if "if") (parenthesized_expression "((iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0))" (( "(") (binary_expression "(iVar4 == 0) &&\n           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)" (( "(") (comma_expression "iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0" (assignment_expression "iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini")" (identifier "iVar4") (= "=") (call_expression "bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini")" (identifier "bfd_get_section_by_name") (argument_list "(*(undefined4 *)(iVar5 + 0xac),".fini")" (( "(") (pointer_expression "*(undefined4 *)(iVar5 + 0xac)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0xac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xac)" (( "(") (binary_expression "iVar5 + 0xac" (identifier "iVar5") (+ "+") (number_literal "0xac")) () ")")))) (, ",") (string_literal "".fini"" (" """) (string_content ".fini") (" """)) () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }\n          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);\n          if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;\n        }" ({ "{") (if_statement "if (param_2 == (undefined4 *)0x0) {\n            param_2 = param_1;\n          }" (if "if") (parenthesized_expression "(param_2 == (undefined4 *)0x0)" (( "(") (binary_expression "param_2 == (undefined4 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            param_2 = param_1;\n          }" ({ "{") (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" (identifier "param_2") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);" (assignment_expression "iVar5 = ppc64_elf_has_small_toc_reloc(iVar5)" (identifier "iVar5") (= "=") (call_expression "ppc64_elf_has_small_toc_reloc(iVar5)" (identifier "ppc64_elf_has_small_toc_reloc") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }\n          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            local_30 = param_1;\n            if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }\n          }" ({ "{") (expression_statement "local_30 = param_1;" (assignment_expression "local_30 = param_1" (identifier "local_30") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n              local_30 = puVar2;\n            }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              local_30 = puVar2;\n            }" ({ "{") (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" (identifier "local_30") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" (else "else") (if_statement "if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;" (if "if") (parenthesized_expression "((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1))" (( "(") (binary_expression "(puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)" (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "((undefined4 *)*puVar2 != puVar1)" (( "(") (binary_expression "(undefined4 *)*puVar2 != puVar1" (cast_expression "(undefined4 *)*puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (!= "!=") (identifier "puVar1")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))))) (} "}")) (else_clause "else {\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" (else "else") (compound_statement "{\n          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }\n          bVar6 = param_2 == puVar2;\n          param_2 = puVar1;\n          local_30 = puVar2;\n          if (bVar6) {\n            local_30 = puVar1;\n          }\n        }" ({ "{") (if_statement "if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }" (if "if") (parenthesized_expression "((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1))" (( "(") (binary_expression "(param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)" (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "((undefined4 *)*param_2 != puVar1)" (( "(") (binary_expression "(undefined4 *)*param_2 != puVar1" (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (!= "!=") (identifier "puVar1")) () ")"))) () ")")) (compound_statement "{\n            FUN_000563e0();\n            bVar6 = param_2 == puVar2;\n            param_2 = puVar1;\n            local_30 = puVar2;\n            if (bVar6) {\n              local_30 = puVar1;\n            }\n            goto LAB_00056562;\n          }" ({ "{") (expression_statement "FUN_000563e0();" (call_expression "FUN_000563e0()" (identifier "FUN_000563e0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "bVar6 = param_2 == puVar2;" (assignment_expression "bVar6 = param_2 == puVar2" (identifier "bVar6") (= "=") (binary_expression "param_2 == puVar2" (identifier "param_2") (== "==") (identifier "puVar2"))) (; ";")) (expression_statement "param_2 = puVar1;" (assignment_expression "param_2 = puVar1" (identifier "param_2") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" (identifier "local_30") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (bVar6) {\n              local_30 = puVar1;\n            }" (if "if") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (compound_statement "{\n              local_30 = puVar1;\n            }" ({ "{") (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" (identifier "local_30") (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (goto_statement "goto LAB_00056562;" (goto "goto") (statement_identifier "LAB_00056562") (; ";")) (} "}"))) (expression_statement "bVar6 = param_2 == puVar2;" (assignment_expression "bVar6 = param_2 == puVar2" (identifier "bVar6") (= "=") (binary_expression "param_2 == puVar2" (identifier "param_2") (== "==") (identifier "puVar2"))) (; ";")) (expression_statement "param_2 = puVar1;" (assignment_expression "param_2 = puVar1" (identifier "param_2") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "local_30 = puVar2;" (assignment_expression "local_30 = puVar2" (identifier "local_30") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (bVar6) {\n            local_30 = puVar1;\n          }" (if "if") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (compound_statement "{\n            local_30 = puVar1;\n          }" ({ "{") (expression_statement "local_30 = puVar1;" (assignment_expression "local_30 = puVar1" (identifier "local_30") (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}")) (else_clause "else if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" (else "else") (if_statement "if (iVar5 == 0xd) {\n      FUN_00056530();\n    }\n    else if (iVar5 == 4) {\n      FUN_00056530();\n    }" (if "if") (parenthesized_expression "(iVar5 == 0xd)" (( "(") (binary_expression "iVar5 == 0xd" (identifier "iVar5") (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n      FUN_00056530();\n    }" ({ "{") (expression_statement "FUN_00056530();" (call_expression "FUN_00056530()" (identifier "FUN_00056530") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar5 == 4) {\n      FUN_00056530();\n    }" (else "else") (if_statement "if (iVar5 == 4) {\n      FUN_00056530();\n    }" (if "if") (parenthesized_expression "(iVar5 == 4)" (( "(") (binary_expression "iVar5 == 4" (identifier "iVar5") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n      FUN_00056530();\n    }" ({ "{") (expression_statement "FUN_00056530();" (call_expression "FUN_00056530()" (identifier "FUN_00056530") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))))) (expression_statement "puVar3 = (undefined4 *)*puVar1;" (assignment_expression "puVar3 = (undefined4 *)*puVar1" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "param_1 = puVar1;" (assignment_expression "param_1 = puVar1" (identifier "param_1") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar2 = local_30;" (assignment_expression "puVar2 = local_30" (identifier "puVar2") (= "=") (identifier "local_30")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (expression_statement "FUN_000563e0();" (call_expression "FUN_000563e0()" (identifier "FUN_000563e0") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_00056562;" (goto "goto") (statement_identifier "LAB_00056562") (; ";")) (} "}")))

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

void __regparm3
function_1(type_1 *list,type_2 **ini,
                 type_2 **small)

{
  type_3 *paVar1;
  type_2 *var_1;
  type_1 *var_5;
  type_2 *plVar3;
  int var_2;
  type_2 *u;
  bool bVar5;
  type_1 *local_30;
  
  u = (type_2 *)list;
  local_30 = (type_1 *)small;
LAB_00056562:
  plVar3 = (u->header).next;
  var_5 = local_30;
  do {
    var_1 = plVar3;
    if (var_1 == (type_2 *)0x0) {
      return;
    }
    var_2 = (var_1->header).type;
    local_30 = var_5;
    if (var_2 == 5) {
      paVar1 = (var_1->input_section).section;
      if (paVar1->owner != stub_file->the_bfd) {
        var_2 = var_3(paVar1->owner,".init");
        local_30 = (type_1 *)var_1;
        if ((var_2 == 0) &&
           (var_2 = var_3(paVar1->owner,&DAT_0006fdce), var_2 == 0)) {
          if ((type_1 *)ini == (type_1 *)0x0) {
            ini = (type_2 **)u;
          }
          var_2 = var_4(paVar1);
          if (var_2 == 0) {
            local_30 = (type_1 *)u;
            if (var_5 != (type_1 *)0x0) {
              local_30 = var_5;
            }
          }
          else if ((var_5 != (type_1 *)0x0) && (var_5->head != var_1)) break;
        }
        else {
          if (((type_1 *)ini != (type_1 *)0x0) &&
             (((type_1 *)ini)->head != var_1)) {
            var_6((type_1 *)&list->tail,
                               (type_2 **)u,ini);
            bVar5 = (type_1 *)ini == var_5;
            ini = (type_2 **)var_1;
            local_30 = var_5;
            if (bVar5) {
              local_30 = (type_1 *)var_1;
            }
            goto LAB_00056562;
          }
          bVar5 = (type_1 *)ini == var_5;
          ini = (type_2 **)var_1;
          local_30 = var_5;
          if (bVar5) {
            local_30 = (type_1 *)var_1;
          }
        }
      }
    }
    else if (var_2 == 0xd) {
      function_1(&(var_1->output_section_statement).children,ini,&var_5->head);
    }
    else if (var_2 == 4) {
      function_1(&(var_1->wild_statement).children,ini,&var_5->head);
    }
    plVar3 = (var_1->header).next;
    u = var_1;
    var_5 = local_30;
  } while( true );
  var_6((type_1 *)&list->tail,(type_2 **)u,
                     &var_5->head);
  goto LAB_00056562;
}


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

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

void __regparm3 MASKED(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  bool bVar6;
  undefined4 *local_30;
  
  local_30 = param_3;
LAB_00056562:
  puVar3 = (undefined4 *)*param_1;
  puVar2 = local_30;
  do {
    puVar1 = puVar3;
    if (puVar1 == (undefined4 *)0x0) {
      return;
    }
    iVar5 = puVar1[1];
    local_30 = puVar2;
    if (iVar5 == 5) {
      iVar5 = puVar1[2];
      if (*(int *)(iVar5 + 0xac) != *(int *)(DAT_001c0c04 + 0x10)) {
        iVar4 = bfd_get_section_by_name(*(int *)(iVar5 + 0xac),".init");
        local_30 = puVar1;
        if ((iVar4 == 0) &&
           (iVar4 = bfd_get_section_by_name(*(undefined4 *)(iVar5 + 0xac),".fini"), iVar4 == 0)) {
          if (param_2 == (undefined4 *)0x0) {
            param_2 = param_1;
          }
          iVar5 = ppc64_elf_has_small_toc_reloc(iVar5);
          if (iVar5 == 0) {
            local_30 = param_1;
            if (puVar2 != (undefined4 *)0x0) {
              local_30 = puVar2;
            }
          }
          else if ((puVar2 != (undefined4 *)0x0) && ((undefined4 *)*puVar2 != puVar1)) break;
        }
        else {
          if ((param_2 != (undefined4 *)0x0) && ((undefined4 *)*param_2 != puVar1)) {
            FUN_000563e0();
            bVar6 = param_2 == puVar2;
            param_2 = puVar1;
            local_30 = puVar2;
            if (bVar6) {
              local_30 = puVar1;
            }
            goto LAB_00056562;
          }
          bVar6 = param_2 == puVar2;
          param_2 = puVar1;
          local_30 = puVar2;
          if (bVar6) {
            local_30 = puVar1;
          }
        }
      }
    }
    else if (iVar5 == 0xd) {
      MASKED();
    }
    else if (iVar5 == 4) {
      MASKED();
    }
    puVar3 = (undefined4 *)*puVar1;
    param_1 = puVar1;
    puVar2 = local_30;
  } while( true );
  FUN_000563e0();
  goto LAB_00056562;
}

