
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void ppc_cleanup(void)

{
  segT secptr;
  subsegT subseg;
  segT paVar1;
  char *pcVar2;
  uint uVar3;
  ulong uVar4;
  
  subseg = now_subseg;
  secptr = now_seg;
  if (ppc_apuinfo_list == (ulong *)0x0) {
    return;
  }
  paVar1 = subseg_new(".PPC.EMB.apuinfo",0);
  bfd_set_section_flags(stdoutput,paVar1,0x108);
  pcVar2 = frag_more(4);
  md_number_to_chars(pcVar2,8,4);
  pcVar2 = frag_more(4);
  md_number_to_chars(pcVar2,(ulong)ppc_apuinfo_num << 2,4);
  pcVar2 = frag_more(4);
  md_number_to_chars(pcVar2,2,4);
  pcVar2 = frag_more(8);
  builtin_strncpy(pcVar2,"APUinfo",8);
  if (ppc_apuinfo_num != 0) {
    uVar4 = 0;
    do {
      pcVar2 = frag_more(4);
      uVar3 = (int)uVar4 + 1;
      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);
      uVar4 = (ulong)uVar3;
    } while (uVar3 < ppc_apuinfo_num);
  }
  frag_align(2,0,0);
  if ((secptr != (segT)0x0) && (subseg != 0)) {
    subseg_set(secptr,subseg);
    return;
  }
  return;
}



void FUN_00134f60(void)

{
  long lVar1;
  int iVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  uint uVar5;
  ulong uVar6;
  
  iVar2 = DAT_0019d864;
  lVar1 = DAT_0019d708;
  if (DAT_0019dbd8 == 0) {
    return;
  }
  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);
  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);
  uVar3 = FUN_00118bd0(4);
  FUN_00134f40(uVar3,8,4);
  uVar3 = FUN_00118bd0(4);
  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);
  uVar3 = FUN_00118bd0(4);
  FUN_00134f40(uVar3,2,4);
  puVar4 = (undefined8 *)FUN_00118bd0(8);
  *puVar4 = 0x6f666e69555041;
  if (DAT_0019dbd0 != 0) {
    uVar6 = 0;
    do {
      uVar3 = FUN_00118bd0(4);
      uVar5 = (int)uVar6 + 1;
      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);
      uVar6 = (ulong)uVar5;
    } while (uVar5 < DAT_0019dbd0);
  }
  FUN_00118d30(2,0,0);
  if ((lVar1 != 0) && (iVar2 != 0)) {
    FUN_00129280(lVar1,iVar2);
    return;
  }
  return;
}


CMP qword ptr [0x0019dbd8],0x0
JZ 0x00135088
PUSH R12
XOR ESI,ESI
LEA RDI,[0x14433c]
MOV R12D,dword ptr [0x0019d864]
PUSH RBP
MOV RBP,qword ptr [0x0019d708]
PUSH RBX
CALL 0x00129220
MOV RDI,qword ptr [0x0019d970]
MOV EDX,0x108
MOV RSI,RAX
CALL 0x0010a760
MOV EDI,0x4
CALL 0x00118bd0
MOV EDX,0x4
MOV ESI,0x8
MOV RDI,RAX
CALL 0x00134f40
MOV EDI,0x4
CALL 0x00118bd0
MOV ESI,dword ptr [0x0019dbd0]
MOV EDX,0x4
MOV RDI,RAX
SHL RSI,0x2
CALL 0x00134f40
MOV EDI,0x4
CALL 0x00118bd0
MOV EDX,0x4
MOV ESI,0x2
MOV RDI,RAX
CALL 0x00134f40
MOV EDI,0x8
CALL 0x00118bd0
MOV RCX,0x6f666e69555041
MOV qword ptr [RAX],RCX
MOV EAX,dword ptr [0x0019dbd0]
TEST EAX,EAX
JZ 0x0013504f
XOR EBX,EBX
NOP
MOV EDI,0x4
CALL 0x00118bd0
MOV RDX,qword ptr [0x0019dbd8]
MOV ECX,EBX
ADD EBX,0x1
MOV RDI,RAX
MOV RSI,qword ptr [RDX + RCX*0x8]
MOV EDX,0x4
CALL 0x00134f40
CMP dword ptr [0x0019dbd0],EBX
JA 0x00135020
XOR EDX,EDX
XOR ESI,ESI
MOV EDI,0x2
CALL 0x00118d30
TEST RBP,RBP
JZ 0x00135080
TEST R12D,R12D
JZ 0x00135080
POP RBX
MOV ESI,R12D
MOV RDI,RBP
POP RBP
POP R12
JMP 0x00129280
POP RBX
POP RBP
POP R12
RET
RET
(translation_unit "void FUN_00134f60(void)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00134f60(void)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00134f60(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (expression_statement "iVar2 = DAT_0019d864;" (assignment_expression "iVar2 = DAT_0019d864" identifier = identifier) ;) (expression_statement "lVar1 = DAT_0019d708;" (assignment_expression "lVar1 = DAT_0019d708" identifier = identifier) ;) (if_statement "if (DAT_0019dbd8 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_0019dbd8 == 0)" ( (binary_expression "DAT_0019dbd8 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);" (assignment_expression "uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0)" identifier = (call_expression "FUN_00129220(".PPC.EMB.apuinfo",0)" identifier (argument_list "(".PPC.EMB.apuinfo",0)" ( (string_literal "".PPC.EMB.apuinfo"" " string_content ") , number_literal )))) ;) (expression_statement "bfd_set_section_flags(DAT_0019d970,uVar3,0x108);" (call_expression "bfd_set_section_flags(DAT_0019d970,uVar3,0x108)" identifier (argument_list "(DAT_0019d970,uVar3,0x108)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "FUN_00134f40(uVar3,8,4);" (call_expression "FUN_00134f40(uVar3,8,4)" identifier (argument_list "(uVar3,8,4)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);" (call_expression "FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4)" identifier (argument_list "(uVar3,(ulong)DAT_0019dbd0 << 2,4)" ( identifier , (binary_expression "(ulong)DAT_0019dbd0 << 2" (cast_expression "(ulong)DAT_0019dbd0" ( (type_descriptor "ulong" type_identifier) ) identifier) << number_literal) , number_literal ))) ;) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "FUN_00134f40(uVar3,2,4);" (call_expression "FUN_00134f40(uVar3,2,4)" identifier (argument_list "(uVar3,2,4)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar4 = (undefined8 *)FUN_00118bd0(8);" (assignment_expression "puVar4 = (undefined8 *)FUN_00118bd0(8)" identifier = (cast_expression "(undefined8 *)FUN_00118bd0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00118bd0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar4 = 0x6f666e69555041;" (assignment_expression "*puVar4 = 0x6f666e69555041" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }" if (parenthesized_expression "(DAT_0019dbd0 != 0)" ( (binary_expression "DAT_0019dbd0 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);" do (compound_statement "{\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    }" { (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "uVar5 = (int)uVar6 + 1;" (assignment_expression "uVar5 = (int)uVar6 + 1" identifier = (binary_expression "(int)uVar6 + 1" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);" (call_expression "FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4)" identifier (argument_list "(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4)" ( identifier , (pointer_expression "*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8)" * (cast_expression "(undefined8 *)(DAT_0019dbd8 + uVar6 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0019dbd8 + uVar6 * 8)" ( (binary_expression "DAT_0019dbd8 + uVar6 * 8" identifier + (binary_expression "uVar6 * 8" identifier * number_literal)) )))) , number_literal ))) ;) (expression_statement "uVar6 = (ulong)uVar5;" (assignment_expression "uVar6 = (ulong)uVar5" identifier = (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(uVar5 < DAT_0019dbd0)" ( (binary_expression "uVar5 < DAT_0019dbd0" identifier < identifier) )) ;) })) (expression_statement "FUN_00118d30(2,0,0);" (call_expression "FUN_00118d30(2,0,0)" identifier (argument_list "(2,0,0)" ( number_literal , number_literal , number_literal ))) ;) (if_statement "if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }" if (parenthesized_expression "((lVar1 != 0) && (iVar2 != 0))" ( (binary_expression "(lVar1 != 0) && (iVar2 != 0)" (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }" { (expression_statement "FUN_00129280(lVar1,iVar2);" (call_expression "FUN_00129280(lVar1,iVar2)" identifier (argument_list "(lVar1,iVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid ppc_cleanup(void)\n\n{\n  segT secptr;\n  subsegT subseg;\n  segT paVar1;\n  char *pcVar2;\n  uint uVar3;\n  ulong uVar4;\n  \n  subseg = now_subseg;\n  secptr = now_seg;\n  if (ppc_apuinfo_list == (ulong *)0x0) {\n    return;\n  }\n  paVar1 = subseg_new(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(stdoutput,paVar1,0x108);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,8,4);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,(ulong)ppc_apuinfo_num << 2,4);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,2,4);\n  pcVar2 = frag_more(8);\n  builtin_strncpy(pcVar2,"APUinfo",8);\n  if (ppc_apuinfo_num != 0) {\n    uVar4 = 0;\n    do {\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    } while (uVar3 < ppc_apuinfo_num);\n  }\n  frag_align(2,0,0);\n  if ((secptr != (segT)0x0) && (subseg != 0)) {\n    subseg_set(secptr,subseg);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void ppc_cleanup(void)\n\n{\n  segT secptr;\n  subsegT subseg;\n  segT paVar1;\n  char *pcVar2;\n  uint uVar3;\n  ulong uVar4;\n  \n  subseg = now_subseg;\n  secptr = now_seg;\n  if (ppc_apuinfo_list == (ulong *)0x0) {\n    return;\n  }\n  paVar1 = subseg_new(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(stdoutput,paVar1,0x108);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,8,4);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,(ulong)ppc_apuinfo_num << 2,4);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,2,4);\n  pcVar2 = frag_more(8);\n  builtin_strncpy(pcVar2,"APUinfo",8);\n  if (ppc_apuinfo_num != 0) {\n    uVar4 = 0;\n    do {\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    } while (uVar3 < ppc_apuinfo_num);\n  }\n  frag_align(2,0,0);\n  if ((secptr != (segT)0x0) && (subseg != 0)) {\n    subseg_set(secptr,subseg);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "ppc_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  segT secptr;\n  subsegT subseg;\n  segT paVar1;\n  char *pcVar2;\n  uint uVar3;\n  ulong uVar4;\n  \n  subseg = now_subseg;\n  secptr = now_seg;\n  if (ppc_apuinfo_list == (ulong *)0x0) {\n    return;\n  }\n  paVar1 = subseg_new(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(stdoutput,paVar1,0x108);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,8,4);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,(ulong)ppc_apuinfo_num << 2,4);\n  pcVar2 = frag_more(4);\n  md_number_to_chars(pcVar2,2,4);\n  pcVar2 = frag_more(8);\n  builtin_strncpy(pcVar2,"APUinfo",8);\n  if (ppc_apuinfo_num != 0) {\n    uVar4 = 0;\n    do {\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    } while (uVar3 < ppc_apuinfo_num);\n  }\n  frag_align(2,0,0);\n  if ((secptr != (segT)0x0) && (subseg != 0)) {\n    subseg_set(secptr,subseg);\n    return;\n  }\n  return;\n}" { (declaration "segT secptr;" type_identifier identifier ;) (declaration "subsegT subseg;" type_identifier identifier ;) (declaration "segT paVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (expression_statement "subseg = now_subseg;" (assignment_expression "subseg = now_subseg" identifier = identifier) ;) (expression_statement "secptr = now_seg;" (assignment_expression "secptr = now_seg" identifier = identifier) ;) (if_statement "if (ppc_apuinfo_list == (ulong *)0x0) {\n    return;\n  }" if (parenthesized_expression "(ppc_apuinfo_list == (ulong *)0x0)" ( (binary_expression "ppc_apuinfo_list == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "paVar1 = subseg_new(".PPC.EMB.apuinfo",0);" (assignment_expression "paVar1 = subseg_new(".PPC.EMB.apuinfo",0)" identifier = (call_expression "subseg_new(".PPC.EMB.apuinfo",0)" identifier (argument_list "(".PPC.EMB.apuinfo",0)" ( (string_literal "".PPC.EMB.apuinfo"" " string_content ") , number_literal )))) ;) (expression_statement "bfd_set_section_flags(stdoutput,paVar1,0x108);" (call_expression "bfd_set_section_flags(stdoutput,paVar1,0x108)" identifier (argument_list "(stdoutput,paVar1,0x108)" ( identifier , identifier , number_literal ))) ;) (expression_statement "pcVar2 = frag_more(4);" (assignment_expression "pcVar2 = frag_more(4)" identifier = (call_expression "frag_more(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "md_number_to_chars(pcVar2,8,4);" (call_expression "md_number_to_chars(pcVar2,8,4)" identifier (argument_list "(pcVar2,8,4)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pcVar2 = frag_more(4);" (assignment_expression "pcVar2 = frag_more(4)" identifier = (call_expression "frag_more(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "md_number_to_chars(pcVar2,(ulong)ppc_apuinfo_num << 2,4);" (call_expression "md_number_to_chars(pcVar2,(ulong)ppc_apuinfo_num << 2,4)" identifier (argument_list "(pcVar2,(ulong)ppc_apuinfo_num << 2,4)" ( identifier , (binary_expression "(ulong)ppc_apuinfo_num << 2" (cast_expression "(ulong)ppc_apuinfo_num" ( (type_descriptor "ulong" type_identifier) ) identifier) << number_literal) , number_literal ))) ;) (expression_statement "pcVar2 = frag_more(4);" (assignment_expression "pcVar2 = frag_more(4)" identifier = (call_expression "frag_more(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "md_number_to_chars(pcVar2,2,4);" (call_expression "md_number_to_chars(pcVar2,2,4)" identifier (argument_list "(pcVar2,2,4)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pcVar2 = frag_more(8);" (assignment_expression "pcVar2 = frag_more(8)" identifier = (call_expression "frag_more(8)" identifier (argument_list "(8)" ( number_literal )))) ;) (expression_statement "builtin_strncpy(pcVar2,"APUinfo",8);" (call_expression "builtin_strncpy(pcVar2,"APUinfo",8)" identifier (argument_list "(pcVar2,"APUinfo",8)" ( identifier , (string_literal ""APUinfo"" " string_content ") , number_literal ))) ;) (if_statement "if (ppc_apuinfo_num != 0) {\n    uVar4 = 0;\n    do {\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    } while (uVar3 < ppc_apuinfo_num);\n  }" if (parenthesized_expression "(ppc_apuinfo_num != 0)" ( (binary_expression "ppc_apuinfo_num != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    } while (uVar3 < ppc_apuinfo_num);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    } while (uVar3 < ppc_apuinfo_num);" do (compound_statement "{\n      pcVar2 = frag_more(4);\n      uVar3 = (int)uVar4 + 1;\n      md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);\n      uVar4 = (ulong)uVar3;\n    }" { (expression_statement "pcVar2 = frag_more(4);" (assignment_expression "pcVar2 = frag_more(4)" identifier = (call_expression "frag_more(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "uVar3 = (int)uVar4 + 1;" (assignment_expression "uVar3 = (int)uVar4 + 1" identifier = (binary_expression "(int)uVar4 + 1" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4);" (call_expression "md_number_to_chars(pcVar2,ppc_apuinfo_list[uVar4],4)" identifier (argument_list "(pcVar2,ppc_apuinfo_list[uVar4],4)" ( identifier , (subscript_expression "ppc_apuinfo_list[uVar4]" identifier [ identifier ]) , number_literal ))) ;) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(uVar3 < ppc_apuinfo_num)" ( (binary_expression "uVar3 < ppc_apuinfo_num" identifier < identifier) )) ;) })) (expression_statement "frag_align(2,0,0);" (call_expression "frag_align(2,0,0)" identifier (argument_list "(2,0,0)" ( number_literal , number_literal , number_literal ))) ;) (if_statement "if ((secptr != (segT)0x0) && (subseg != 0)) {\n    subseg_set(secptr,subseg);\n    return;\n  }" if (parenthesized_expression "((secptr != (segT)0x0) && (subseg != 0))" ( (binary_expression "(secptr != (segT)0x0) && (subseg != 0)" (parenthesized_expression "(secptr != (segT)0x0)" ( (binary_expression "secptr != (segT)0x0" identifier != (cast_expression "(segT)0x0" ( (type_descriptor "segT" type_identifier) ) number_literal)) )) && (parenthesized_expression "(subseg != 0)" ( (binary_expression "subseg != 0" identifier != number_literal) ))) )) (compound_statement "{\n    subseg_set(secptr,subseg);\n    return;\n  }" { (expression_statement "subseg_set(secptr,subseg);" (call_expression "subseg_set(secptr,subseg)" identifier (argument_list "(secptr,subseg)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00134f60(void)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00134f60(void)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00134f60(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (expression_statement "iVar2 = DAT_0019d864;" (assignment_expression "iVar2 = DAT_0019d864" identifier = identifier) ;) (expression_statement "lVar1 = DAT_0019d708;" (assignment_expression "lVar1 = DAT_0019d708" identifier = identifier) ;) (if_statement "if (DAT_0019dbd8 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_0019dbd8 == 0)" ( (binary_expression "DAT_0019dbd8 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);" (assignment_expression "uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0)" identifier = (call_expression "FUN_00129220(".PPC.EMB.apuinfo",0)" identifier (argument_list "(".PPC.EMB.apuinfo",0)" ( (string_literal "".PPC.EMB.apuinfo"" " string_content ") , number_literal )))) ;) (expression_statement "bfd_set_section_flags(DAT_0019d970,uVar3,0x108);" (call_expression "bfd_set_section_flags(DAT_0019d970,uVar3,0x108)" identifier (argument_list "(DAT_0019d970,uVar3,0x108)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "FUN_00134f40(uVar3,8,4);" (call_expression "FUN_00134f40(uVar3,8,4)" identifier (argument_list "(uVar3,8,4)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);" (call_expression "FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4)" identifier (argument_list "(uVar3,(ulong)DAT_0019dbd0 << 2,4)" ( identifier , (binary_expression "(ulong)DAT_0019dbd0 << 2" (cast_expression "(ulong)DAT_0019dbd0" ( (type_descriptor "ulong" type_identifier) ) identifier) << number_literal) , number_literal ))) ;) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "FUN_00134f40(uVar3,2,4);" (call_expression "FUN_00134f40(uVar3,2,4)" identifier (argument_list "(uVar3,2,4)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar4 = (undefined8 *)FUN_00118bd0(8);" (assignment_expression "puVar4 = (undefined8 *)FUN_00118bd0(8)" identifier = (cast_expression "(undefined8 *)FUN_00118bd0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00118bd0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar4 = 0x6f666e69555041;" (assignment_expression "*puVar4 = 0x6f666e69555041" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }" if (parenthesized_expression "(DAT_0019dbd0 != 0)" ( (binary_expression "DAT_0019dbd0 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);" do (compound_statement "{\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    }" { (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" identifier = (call_expression "FUN_00118bd0(4)" identifier (argument_list "(4)" ( number_literal )))) ;) (expression_statement "uVar5 = (int)uVar6 + 1;" (assignment_expression "uVar5 = (int)uVar6 + 1" identifier = (binary_expression "(int)uVar6 + 1" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);" (call_expression "FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4)" identifier (argument_list "(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4)" ( identifier , (pointer_expression "*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8)" * (cast_expression "(undefined8 *)(DAT_0019dbd8 + uVar6 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0019dbd8 + uVar6 * 8)" ( (binary_expression "DAT_0019dbd8 + uVar6 * 8" identifier + (binary_expression "uVar6 * 8" identifier * number_literal)) )))) , number_literal ))) ;) (expression_statement "uVar6 = (ulong)uVar5;" (assignment_expression "uVar6 = (ulong)uVar5" identifier = (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(uVar5 < DAT_0019dbd0)" ( (binary_expression "uVar5 < DAT_0019dbd0" identifier < identifier) )) ;) })) (expression_statement "FUN_00118d30(2,0,0);" (call_expression "FUN_00118d30(2,0,0)" identifier (argument_list "(2,0,0)" ( number_literal , number_literal , number_literal ))) ;) (if_statement "if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }" if (parenthesized_expression "((lVar1 != 0) && (iVar2 != 0))" ( (binary_expression "(lVar1 != 0) && (iVar2 != 0)" (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }" { (expression_statement "FUN_00129280(lVar1,iVar2);" (call_expression "FUN_00129280(lVar1,iVar2)" identifier (argument_list "(lVar1,iVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00134f60(void)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00134f60(void)" (identifier "FUN_00134f60") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  uint uVar5;\n  ulong uVar6;\n  \n  iVar2 = DAT_0019d864;\n  lVar1 = DAT_0019d708;\n  if (DAT_0019dbd8 == 0) {\n    return;\n  }\n  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);\n  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,8,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);\n  uVar3 = FUN_00118bd0(4);\n  FUN_00134f40(uVar3,2,4);\n  puVar4 = (undefined8 *)FUN_00118bd0(8);\n  *puVar4 = 0x6f666e69555041;\n  if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }\n  FUN_00118d30(2,0,0);\n  if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (expression_statement "iVar2 = DAT_0019d864;" (assignment_expression "iVar2 = DAT_0019d864" (identifier "iVar2") (= "=") (identifier "DAT_0019d864")) (; ";")) (expression_statement "lVar1 = DAT_0019d708;" (assignment_expression "lVar1 = DAT_0019d708" (identifier "lVar1") (= "=") (identifier "DAT_0019d708")) (; ";")) (if_statement "if (DAT_0019dbd8 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_0019dbd8 == 0)" (( "(") (binary_expression "DAT_0019dbd8 == 0" (identifier "DAT_0019dbd8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);" (assignment_expression "uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0)" (identifier "uVar3") (= "=") (call_expression "FUN_00129220(".PPC.EMB.apuinfo",0)" (identifier "FUN_00129220") (argument_list "(".PPC.EMB.apuinfo",0)" (( "(") (string_literal "".PPC.EMB.apuinfo"" (" """) (string_content ".PPC.EMB.apuinfo") (" """)) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "bfd_set_section_flags(DAT_0019d970,uVar3,0x108);" (call_expression "bfd_set_section_flags(DAT_0019d970,uVar3,0x108)" (identifier "bfd_set_section_flags") (argument_list "(DAT_0019d970,uVar3,0x108)" (( "(") (identifier "DAT_0019d970") (, ",") (identifier "uVar3") (, ",") (number_literal "0x108") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" (identifier "uVar3") (= "=") (call_expression "FUN_00118bd0(4)" (identifier "FUN_00118bd0") (argument_list "(4)" (( "(") (number_literal "4") () ")")))) (; ";")) (expression_statement "FUN_00134f40(uVar3,8,4);" (call_expression "FUN_00134f40(uVar3,8,4)" (identifier "FUN_00134f40") (argument_list "(uVar3,8,4)" (( "(") (identifier "uVar3") (, ",") (number_literal "8") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" (identifier "uVar3") (= "=") (call_expression "FUN_00118bd0(4)" (identifier "FUN_00118bd0") (argument_list "(4)" (( "(") (number_literal "4") () ")")))) (; ";")) (expression_statement "FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);" (call_expression "FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4)" (identifier "FUN_00134f40") (argument_list "(uVar3,(ulong)DAT_0019dbd0 << 2,4)" (( "(") (identifier "uVar3") (, ",") (binary_expression "(ulong)DAT_0019dbd0 << 2" (cast_expression "(ulong)DAT_0019dbd0" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "DAT_0019dbd0")) (<< "<<") (number_literal "2")) (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" (identifier "uVar3") (= "=") (call_expression "FUN_00118bd0(4)" (identifier "FUN_00118bd0") (argument_list "(4)" (( "(") (number_literal "4") () ")")))) (; ";")) (expression_statement "FUN_00134f40(uVar3,2,4);" (call_expression "FUN_00134f40(uVar3,2,4)" (identifier "FUN_00134f40") (argument_list "(uVar3,2,4)" (( "(") (identifier "uVar3") (, ",") (number_literal "2") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "puVar4 = (undefined8 *)FUN_00118bd0(8);" (assignment_expression "puVar4 = (undefined8 *)FUN_00118bd0(8)" (identifier "puVar4") (= "=") (cast_expression "(undefined8 *)FUN_00118bd0(8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00118bd0(8)" (identifier "FUN_00118bd0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar4 = 0x6f666e69555041;" (assignment_expression "*puVar4 = 0x6f666e69555041" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x6f666e69555041")) (; ";")) (if_statement "if (DAT_0019dbd0 != 0) {\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }" (if "if") (parenthesized_expression "(DAT_0019dbd0 != 0)" (( "(") (binary_expression "DAT_0019dbd0 != 0" (identifier "DAT_0019dbd0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = 0;\n    do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);\n  }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    } while (uVar5 < DAT_0019dbd0);" (do "do") (compound_statement "{\n      uVar3 = FUN_00118bd0(4);\n      uVar5 = (int)uVar6 + 1;\n      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);\n      uVar6 = (ulong)uVar5;\n    }" ({ "{") (expression_statement "uVar3 = FUN_00118bd0(4);" (assignment_expression "uVar3 = FUN_00118bd0(4)" (identifier "uVar3") (= "=") (call_expression "FUN_00118bd0(4)" (identifier "FUN_00118bd0") (argument_list "(4)" (( "(") (number_literal "4") () ")")))) (; ";")) (expression_statement "uVar5 = (int)uVar6 + 1;" (assignment_expression "uVar5 = (int)uVar6 + 1" (identifier "uVar5") (= "=") (binary_expression "(int)uVar6 + 1" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);" (call_expression "FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4)" (identifier "FUN_00134f40") (argument_list "(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4)" (( "(") (identifier "uVar3") (, ",") (pointer_expression "*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8)" (* "*") (cast_expression "(undefined8 *)(DAT_0019dbd8 + uVar6 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0019dbd8 + uVar6 * 8)" (( "(") (binary_expression "DAT_0019dbd8 + uVar6 * 8" (identifier "DAT_0019dbd8") (+ "+") (binary_expression "uVar6 * 8" (identifier "uVar6") (* "*") (number_literal "8"))) () ")")))) (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "uVar6 = (ulong)uVar5;" (assignment_expression "uVar6 = (ulong)uVar5" (identifier "uVar6") (= "=") (cast_expression "(ulong)uVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < DAT_0019dbd0)" (( "(") (binary_expression "uVar5 < DAT_0019dbd0" (identifier "uVar5") (< "<") (identifier "DAT_0019dbd0")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00118d30(2,0,0);" (call_expression "FUN_00118d30(2,0,0)" (identifier "FUN_00118d30") (argument_list "(2,0,0)" (( "(") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if ((lVar1 != 0) && (iVar2 != 0)) {\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }" (if "if") (parenthesized_expression "((lVar1 != 0) && (iVar2 != 0))" (( "(") (binary_expression "(lVar1 != 0) && (iVar2 != 0)" (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00129280(lVar1,iVar2);\n    return;\n  }" ({ "{") (expression_statement "FUN_00129280(lVar1,iVar2);" (call_expression "FUN_00129280(lVar1,iVar2)" (identifier "FUN_00129280") (argument_list "(lVar1,iVar2)" (( "(") (identifier "lVar1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 var_10;
  type_2 var_11;
  type_1 paVar1;
  char *pcVar2;
  type_3 var_8;
  type_4 uVar4;
  
  var_11 = now_subseg;
  var_10 = now_seg;
  if (var_1 == (type_4 *)0x0) {
    return;
  }
  paVar1 = var_2(".PPC.EMB.apuinfo",0);
  var_3(stdoutput,paVar1,0x108);
  pcVar2 = var_4(4);
  var_5(pcVar2,8,4);
  pcVar2 = var_4(4);
  var_5(pcVar2,(type_4)var_7 << 2,4);
  pcVar2 = var_4(4);
  var_5(pcVar2,2,4);
  pcVar2 = var_4(8);
  var_6(pcVar2,"APUinfo",8);
  if (var_7 != 0) {
    uVar4 = 0;
    do {
      pcVar2 = var_4(4);
      var_8 = (int)uVar4 + 1;
      var_5(pcVar2,var_1[uVar4],4);
      uVar4 = (type_4)var_8;
    } while (var_8 < var_7);
  }
  var_9(2,0,0);
  if ((var_10 != (type_1)0x0) && (var_11 != 0)) {
    var_12(var_10,var_11);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (return_statement))))

void MASKED(void)

{
  long lVar1;
  int iVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  uint uVar5;
  ulong uVar6;
  
  iVar2 = DAT_0019d864;
  lVar1 = DAT_0019d708;
  if (DAT_0019dbd8 == 0) {
    return;
  }
  uVar3 = FUN_00129220(".PPC.EMB.apuinfo",0);
  bfd_set_section_flags(DAT_0019d970,uVar3,0x108);
  uVar3 = FUN_00118bd0(4);
  FUN_00134f40(uVar3,8,4);
  uVar3 = FUN_00118bd0(4);
  FUN_00134f40(uVar3,(ulong)DAT_0019dbd0 << 2,4);
  uVar3 = FUN_00118bd0(4);
  FUN_00134f40(uVar3,2,4);
  puVar4 = (undefined8 *)FUN_00118bd0(8);
  *puVar4 = 0x6f666e69555041;
  if (DAT_0019dbd0 != 0) {
    uVar6 = 0;
    do {
      uVar3 = FUN_00118bd0(4);
      uVar5 = (int)uVar6 + 1;
      FUN_00134f40(uVar3,*(undefined8 *)(DAT_0019dbd8 + uVar6 * 8),4);
      uVar6 = (ulong)uVar5;
    } while (uVar5 < DAT_0019dbd0);
  }
  FUN_00118d30(2,0,0);
  if ((lVar1 != 0) && (iVar2 != 0)) {
    FUN_00129280(lVar1,iVar2);
    return;
  }
  return;
}

