.include "macros.inc" .section .init, "ax" # 0x80003100 - 0x80005620 .global __init_hardware __init_hardware: /* 80003354 00000354 7C 00 00 A6 */ mfmsr r0 /* 80003358 00000358 60 00 20 00 */ ori r0, r0, 0x2000 /* 8000335C 0000035C 7C 00 01 24 */ mtmsr r0 /* 80003360 00000360 7F E8 02 A6 */ mflr r31 /* 80003364 00000364 48 0B 19 49 */ bl __OSPSInit /* 80003368 00000368 48 0B 32 8D */ bl __OSCacheInit /* 8000336C 0000036C 7F E8 03 A6 */ mtlr r31 /* 80003370 00000370 4E 80 00 20 */ blr .global __flush_cache __flush_cache: /* 80003374 00000374 3C A0 FF FF */ lis r5, 0xFFFFFFF1@h /* 80003378 00000378 60 A5 FF F1 */ ori r5, r5, 0xFFFFFFF1@l /* 8000337C 0000037C 7C A5 18 38 */ and r5, r5, r3 /* 80003380 00000380 7C 65 18 50 */ subf r3, r5, r3 /* 80003384 00000384 7C 84 1A 14 */ add r4, r4, r3 lbl_80003388: /* 80003388 00000388 7C 00 28 6C */ dcbst r0, r5 /* 8000338C 0000038C 7C 00 04 AC */ sync /* 80003390 00000390 7C 00 2F AC */ icbi r0, r5 /* 80003394 00000394 30 A5 00 08 */ addic r5, r5, 8 /* 80003398 00000398 34 84 FF F8 */ addic. r4, r4, -8 /* 8000339C 0000039C 40 80 FF EC */ bge lbl_80003388 /* 800033A0 000003A0 4C 00 01 2C */ isync /* 800033A4 000003A4 4E 80 00 20 */ blr .section .text, "ax" .global __init_user __init_user: /* 80385824 00382784 7C 08 02 A6 */ mflr r0 /* 80385828 00382788 90 01 00 04 */ stw r0, 4(r1) /* 8038582C 0038278C 94 21 FF F8 */ stwu r1, -8(r1) /* 80385830 00382790 48 00 00 15 */ bl __init_cpp /* 80385834 00382794 80 01 00 0C */ lwz r0, 0xc(r1) /* 80385838 00382798 38 21 00 08 */ addi r1, r1, 8 /* 8038583C 0038279C 7C 08 03 A6 */ mtlr r0 /* 80385840 003827A0 4E 80 00 20 */ blr .global __init_cpp __init_cpp: /* 80385844 003827A4 7C 08 02 A6 */ mflr r0 /* 80385848 003827A8 90 01 00 04 */ stw r0, 4(r1) /* 8038584C 003827AC 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80385850 003827B0 93 E1 00 0C */ stw r31, 0xc(r1) /* 80385854 003827B4 3C 60 80 3D */ lis r3, _ctors@ha /* 80385858 003827B8 38 03 B1 C0 */ addi r0, r3, _ctors@l /* 8038585C 003827BC 7C 1F 03 78 */ mr r31, r0 /* 80385860 003827C0 48 00 00 04 */ b lbl_80385864 lbl_80385864: /* 80385864 003827C4 48 00 00 04 */ b lbl_80385868 lbl_80385868: /* 80385868 003827C8 48 00 00 10 */ b lbl_80385878 lbl_8038586C: /* 8038586C 003827CC 7D 88 03 A6 */ mtlr r12 /* 80385870 003827D0 4E 80 00 21 */ blrl /* 80385874 003827D4 3B FF 00 04 */ addi r31, r31, 4 lbl_80385878: /* 80385878 003827D8 81 9F 00 00 */ lwz r12, 0(r31) /* 8038587C 003827DC 28 0C 00 00 */ cmplwi r12, 0 /* 80385880 003827E0 40 82 FF EC */ bne lbl_8038586C /* 80385884 003827E4 80 01 00 14 */ lwz r0, 0x14(r1) /* 80385888 003827E8 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8038588C 003827EC 38 21 00 10 */ addi r1, r1, 0x10 /* 80385890 003827F0 7C 08 03 A6 */ mtlr r0 /* 80385894 003827F4 4E 80 00 20 */ blr .global _ExitProcess _ExitProcess: /* 80385898 003827F8 7C 08 02 A6 */ mflr r0 /* 8038589C 003827FC 90 01 00 04 */ stw r0, 4(r1) /* 803858A0 00382800 94 21 FF F8 */ stwu r1, -8(r1) /* 803858A4 00382804 4B FE 9F 71 */ bl PPCHalt /* 803858A8 00382808 80 01 00 0C */ lwz r0, 0xc(r1) /* 803858AC 0038280C 38 21 00 08 */ addi r1, r1, 8 /* 803858B0 00382810 7C 08 03 A6 */ mtlr r0 /* 803858B4 00382814 4E 80 00 20 */ blr