diff --git a/asm/utilityU/PSMainSide_DirectorMgr.s b/asm/utilityU/PSMainSide_DirectorMgr.s deleted file mode 100644 index ac403e1fb..000000000 --- a/asm/utilityU/PSMainSide_DirectorMgr.s +++ /dev/null @@ -1,2310 +0,0 @@ -.include "macros.inc" -.section .rodata # 0x804732E0 - 0x8049E220 -.balign 8 -.obj lbl_8049DA80, local - .asciz "PSMainSide_DirectorMgr.cpp" -.endobj lbl_8049DA80 -.balign 4 -.obj lbl_8049DA9C, local - .asciz "P2Assert" -.endobj lbl_8049DA9C -.balign 4 -.obj lbl_8049DAA8, local - .asciz "caveglass.bms" -.endobj lbl_8049DAA8 -.balign 4 -.obj lbl_8049DAB8, local - .asciz "caverelax.bms" -.endobj lbl_8049DAB8 -.balign 4 -.obj lbl_8049DAC8, local - .asciz "/user/Totaka/trackMap_Seq_T.txt" -.endobj lbl_8049DAC8 -.balign 4 -.obj lbl_8049DAE8, local - .asciz "caveconc.bms" -.endobj lbl_8049DAE8 -.balign 4 -.obj lbl_8049DAF8, local - .asciz "/user/Totaka/trackMap_Cond_T.txt" -.endobj lbl_8049DAF8 -.balign 4 -.obj lbl_8049DB1C, local - .asciz "cavesoil.bms" -.endobj lbl_8049DB1C -.balign 4 -.obj lbl_8049DB2C, local - .asciz "cavemetal.bms" -.endobj lbl_8049DB2C -.balign 4 -.obj lbl_8049DB3C, local - .asciz "/user/Wakai/trackMap_Cond_W.txt" -.endobj lbl_8049DB3C -.balign 4 -.obj lbl_8049DB5C, local - .asciz "/user/Wakai/trackMap_Seq_W.txt" -.endobj lbl_8049DB5C -.balign 4 -.obj lbl_8049DB7C, local - .asciz "track map is\nnot initialized\n" -.endobj lbl_8049DB7C -.balign 4 -.obj lbl_8049DB9C, local - .asciz "kehaiD " -.endobj lbl_8049DB9C -.balign 4 -.obj lbl_8049DBA8, local - .asciz "battleD " -.endobj lbl_8049DBA8 -.balign 4 -.obj lbl_8049DBB4, local - .asciz "OtakaraD" -.endobj lbl_8049DBB4 -.balign 4 -.obj lbl_8049DBC0, local - .asciz "GroundD " -.endobj lbl_8049DBC0 -.balign 4 -.obj lbl_8049DBCC, local - .asciz "PSGame.h" -.endobj lbl_8049DBCC -.balign 4 -.obj lbl_8049DBD8, local - .asciz "PSCommon.h" -.endobj lbl_8049DBD8 -.balign 4 -.obj lbl_8049DBE4, local - .asciz "eventD " -.endobj lbl_8049DBE4 -.balign 4 -.obj lbl_8049DBF0, local - .asciz "OriBeedaD" -.endobj lbl_8049DBF0 -.balign 4 -.obj lbl_8049DBFC, local - .asciz "RugBeedaD" -.endobj lbl_8049DBFC -.balign 4 -.obj lbl_8049DC08, local - .asciz "OriIchouD" -.endobj lbl_8049DC08 -.balign 4 -.obj lbl_8049DC14, local - .asciz "RouIchouD" -.endobj lbl_8049DC14 -.balign 4 -.obj lbl_8049DC20, local - .asciz "PikBattlD" -.endobj lbl_8049DC20 - -.section .data, "wa" # 0x8049E220 - 0x804EFC20 -.balign 8 -.obj lbl_804EF880, local - .4byte .L_8046F928 - .4byte .L_8046FB60 - .4byte .L_8046F9D8 - .4byte .L_8046FA98 - .4byte .L_8046FC0C - .4byte .L_8046FD34 - .4byte .L_8046FEA8 - .4byte .L_8046FF14 -.endobj lbl_804EF880 -.obj lbl_804EF8A0, local - .4byte .L_80470060 - .4byte .L_80470068 - .4byte .L_80470070 - .4byte .L_80470078 - .4byte .L_80470080 - .4byte .L_80470088 - .4byte .L_80470090 - .4byte .L_80470098 -.endobj lbl_804EF8A0 -.obj lbl_804EF8C0, local - .4byte .L_80470518 - .4byte .L_804705F8 - .4byte .L_804706D4 - .4byte .L_804707B0 - .4byte .L_80470850 - .4byte .L_804708F0 - .4byte .L_804709C4 - .4byte .L_80470A98 -.endobj lbl_804EF8C0 -.obj __vt__Q23PSM20DirectorMgr_2PBattle, global - .4byte 0 - .4byte 0 - .4byte __dt__Q23PSM20DirectorMgr_2PBattleFv - .4byte newDirector__Q23PSM20DirectorMgr_2PBattleFUcRQ28PSSystem11DirectedBgm - .4byte 0 - .4byte 0 - .4byte "@12@__dt__Q23PSM20DirectorMgr_2PBattleFv" -.endobj __vt__Q23PSM20DirectorMgr_2PBattle -.obj __vt__Q23PSM18DirectorMgr_Battle, global - .4byte 0 - .4byte 0 - .4byte __dt__Q23PSM18DirectorMgr_BattleFv - .4byte newDirector__Q23PSM18DirectorMgr_BattleFUcRQ28PSSystem11DirectedBgm - .4byte 0 - .4byte 0 - .4byte "@12@__dt__Q23PSM18DirectorMgr_BattleFv" -.endobj __vt__Q23PSM18DirectorMgr_Battle -.obj __vt__Q23PSM25DirectorMgr_Scene_AutoBgm, global - .4byte 0 - .4byte 0 - .4byte __dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv - .4byte newDirector__Q23PSM17DirectorMgr_SceneFUcRQ28PSSystem11DirectedBgm - .4byte 0 - .4byte 0 - .4byte "@12@__dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv" - .4byte isSlave__Q23PSM17DirectorMgr_SceneFv - .4byte newPikminNumberDirector__Q23PSM25DirectorMgr_Scene_AutoBgmFiUcRQ28PSSystem11DirectedBgm -.endobj __vt__Q23PSM25DirectorMgr_Scene_AutoBgm -.obj __vt__Q23PSM19GroundDirector_Cave, weak - .4byte 0 - .4byte 0 - .4byte __dt__Q23PSM19GroundDirector_CaveFv - .4byte exec__Q28PSSystem12DirectorBaseFv - .4byte directOn__Q23PSM19GroundDirector_CaveFv - .4byte directOff__Q23PSM19GroundDirector_CaveFv - .4byte underDirection__Q28PSSystem12DirectorBaseFv - .4byte execInner__Q23PSM21ActorDirector_TrackOnFv - .4byte directOnTrack__Q23PSM19TrackOnDirectorBaseFRQ28PSSystem12SeqTrackBase - .4byte directOffTrack__Q23PSM19TrackOnDirectorBaseFRQ28PSSystem12SeqTrackBase - .4byte doUpdateRequest__Q28PSSystem16SwitcherDirectorFv - .4byte onPlayInit__Q23PSM19TrackOnDirectorBaseFP8JASTrack - .4byte onDirectOn__Q28PSSystem12DirectorBaseFv - .4byte onDirectOff__Q28PSSystem12DirectorBaseFv -.endobj __vt__Q23PSM19GroundDirector_Cave -.obj __vt__Q28PSSystem38SingletonBase, weak - .4byte 0 - .4byte 0 - .4byte "__dt__Q28PSSystem38SingletonBaseFv" -.endobj __vt__Q28PSSystem38SingletonBase -.obj __vt__Q23PSM17DirectorMgr_Scene, global - .4byte 0 - .4byte 0 - .4byte __dt__Q23PSM17DirectorMgr_SceneFv - .4byte newDirector__Q23PSM17DirectorMgr_SceneFUcRQ28PSSystem11DirectedBgm - .4byte 0 - .4byte 0 - .4byte "@12@__dt__Q23PSM17DirectorMgr_SceneFv" - .4byte isSlave__Q23PSM17DirectorMgr_SceneFv - .4byte newPikminNumberDirector__Q23PSM17DirectorMgr_SceneFiUcRQ28PSSystem11DirectedBgm -.endobj __vt__Q23PSM17DirectorMgr_Scene - -.section .sdata2, "a" # 0x80516360 - 0x80520E40 -.balign 8 -.obj lbl_80520D60, local - .asciz "" -.endobj lbl_80520D60 -.balign 4 -.obj lbl_80520D64, local - .asciz "new_" -.endobj lbl_80520D64 -.balign 4 -.obj lbl_80520D6C, local - .asciz "eventD" -.endobj lbl_80520D6C -.balign 4 -.obj lbl_80520D74, local - .float 200.0 -.endobj lbl_80520D74 -.balign 4 -.obj lbl_80520D78, local - .float 1500.0 -.endobj lbl_80520D78 -.balign 4 -.obj lbl_80520D7C, local - .asciz "PSSeq.h" -.endobj lbl_80520D7C -.balign 4 -.obj lbl_80520D84, local - .float 300.0 -.endobj lbl_80520D84 -.balign 4 -.obj lbl_80520D88, local - .float 600.0 -.endobj lbl_80520D88 - -.section .text, "ax" # 0x800056C0 - 0x80472F00 -.fn __ct__Q23PSM17DirectorMgr_SceneFPQ23PSM17DirectorMgr_SceneUc, global -/* 8046F2BC 0046C1FC 94 21 FF E0 */ stwu r1, -0x20(r1) -/* 8046F2C0 0046C200 7C 08 02 A6 */ mflr r0 -/* 8046F2C4 0046C204 90 01 00 24 */ stw r0, 0x24(r1) -/* 8046F2C8 0046C208 93 E1 00 1C */ stw r31, 0x1c(r1) -/* 8046F2CC 0046C20C 93 C1 00 18 */ stw r30, 0x18(r1) -/* 8046F2D0 0046C210 7C 7E 1B 78 */ mr r30, r3 -/* 8046F2D4 0046C214 93 A1 00 14 */ stw r29, 0x14(r1) -/* 8046F2D8 0046C218 93 81 00 10 */ stw r28, 0x10(r1) -/* 8046F2DC 0046C21C 7C 9C 23 78 */ mr r28, r4 -/* 8046F2E0 0046C220 7C A4 2B 78 */ mr r4, r5 -/* 8046F2E4 0046C224 4B ED 45 65 */ bl __ct__Q28PSSystem15DirectorMgrBaseFUc -/* 8046F2E8 0046C228 38 7E 00 0C */ addi r3, r30, 0xc -/* 8046F2EC 0046C22C 4B BA DC E1 */ bl __ct__11JKRDisposerFv -/* 8046F2F0 0046C230 3C 80 80 4F */ lis r4, __vt__Q23PSM17DirectorMgr_Scene@ha -/* 8046F2F4 0046C234 38 60 00 00 */ li r3, 0 -/* 8046F2F8 0046C238 38 84 F9 80 */ addi r4, r4, __vt__Q23PSM17DirectorMgr_Scene@l -/* 8046F2FC 0046C23C 90 9E 00 00 */ stw r4, 0(r30) -/* 8046F300 0046C240 38 04 00 10 */ addi r0, r4, 0x10 -/* 8046F304 0046C244 90 1E 00 0C */ stw r0, 0xc(r30) -/* 8046F308 0046C248 93 9E 00 44 */ stw r28, 0x44(r30) -/* 8046F30C 0046C24C 98 7E 00 68 */ stb r3, 0x68(r30) -/* 8046F310 0046C250 98 7E 00 69 */ stb r3, 0x69(r30) -/* 8046F314 0046C254 98 7E 00 6A */ stb r3, 0x6a(r30) -/* 8046F318 0046C258 98 7E 00 6B */ stb r3, 0x6b(r30) -/* 8046F31C 0046C25C 98 7E 00 6C */ stb r3, 0x6c(r30) -/* 8046F320 0046C260 98 7E 00 6D */ stb r3, 0x6d(r30) -/* 8046F324 0046C264 48 00 00 88 */ b .L_8046F3AC -.L_8046F328: -/* 8046F328 0046C268 54 64 06 3E */ clrlwi r4, r3, 0x18 -/* 8046F32C 0046C26C 38 03 00 01 */ addi r0, r3, 1 -/* 8046F330 0046C270 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F334 0046C274 38 C0 00 00 */ li r6, 0 -/* 8046F338 0046C278 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F33C 0046C27C 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F340 0046C280 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F344 0046C284 38 03 00 02 */ addi r0, r3, 2 -/* 8046F348 0046C288 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F34C 0046C28C 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F350 0046C290 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F354 0046C294 38 03 00 03 */ addi r0, r3, 3 -/* 8046F358 0046C298 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F35C 0046C29C 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F360 0046C2A0 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F364 0046C2A4 38 03 00 04 */ addi r0, r3, 4 -/* 8046F368 0046C2A8 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F36C 0046C2AC 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F370 0046C2B0 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F374 0046C2B4 38 03 00 05 */ addi r0, r3, 5 -/* 8046F378 0046C2B8 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F37C 0046C2BC 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F380 0046C2C0 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F384 0046C2C4 38 03 00 06 */ addi r0, r3, 6 -/* 8046F388 0046C2C8 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F38C 0046C2CC 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F390 0046C2D0 38 03 00 07 */ addi r0, r3, 7 -/* 8046F394 0046C2D4 38 63 00 08 */ addi r3, r3, 8 -/* 8046F398 0046C2D8 38 A4 00 6E */ addi r5, r4, 0x6e -/* 8046F39C 0046C2DC 54 04 06 3E */ clrlwi r4, r0, 0x18 -/* 8046F3A0 0046C2E0 7C DE 29 AE */ stbx r6, r30, r5 -/* 8046F3A4 0046C2E4 38 04 00 6E */ addi r0, r4, 0x6e -/* 8046F3A8 0046C2E8 7C DE 01 AE */ stbx r6, r30, r0 -.L_8046F3AC: -/* 8046F3AC 0046C2EC 54 60 06 3E */ clrlwi r0, r3, 0x18 -/* 8046F3B0 0046C2F0 28 00 00 10 */ cmplwi r0, 0x10 -/* 8046F3B4 0046C2F4 41 80 FF 74 */ blt .L_8046F328 -/* 8046F3B8 0046C2F8 38 00 00 00 */ li r0, 0 -/* 8046F3BC 0046C2FC 38 7E 00 48 */ addi r3, r30, 0x48 -/* 8046F3C0 0046C300 98 1E 00 7E */ stb r0, 0x7e(r30) -/* 8046F3C4 0046C304 38 82 2A 00 */ addi r4, r2, lbl_80520D60@sda21 -/* 8046F3C8 0046C308 98 1E 00 7F */ stb r0, 0x7f(r30) -/* 8046F3CC 0046C30C 98 1E 00 80 */ stb r0, 0x80(r30) -/* 8046F3D0 0046C310 98 1E 00 81 */ stb r0, 0x81(r30) -/* 8046F3D4 0046C314 98 1E 00 82 */ stb r0, 0x82(r30) -/* 8046F3D8 0046C318 98 1E 00 83 */ stb r0, 0x83(r30) -/* 8046F3DC 0046C31C 98 1E 00 84 */ stb r0, 0x84(r30) -/* 8046F3E0 0046C320 98 1E 00 85 */ stb r0, 0x85(r30) -/* 8046F3E4 0046C324 4B C5 B4 75 */ bl strcpy -/* 8046F3E8 0046C328 7F C3 F3 78 */ mr r3, r30 -/* 8046F3EC 0046C32C 81 9E 00 00 */ lwz r12, 0(r30) -/* 8046F3F0 0046C330 81 8C 00 1C */ lwz r12, 0x1c(r12) -/* 8046F3F4 0046C334 7D 89 03 A6 */ mtctr r12 -/* 8046F3F8 0046C338 4E 80 04 21 */ bctrl -/* 8046F3FC 0046C33C 54 60 06 3F */ clrlwi. r0, r3, 0x18 -/* 8046F400 0046C340 40 82 01 14 */ bne .L_8046F514 -/* 8046F404 0046C344 3B E0 00 00 */ li r31, 0 -/* 8046F408 0046C348 48 00 00 FC */ b .L_8046F504 -.L_8046F40C: -/* 8046F40C 0046C34C 57 E0 06 3E */ clrlwi r0, r31, 0x18 -/* 8046F410 0046C350 2C 00 00 04 */ cmpwi r0, 4 -/* 8046F414 0046C354 41 82 00 60 */ beq .L_8046F474 -/* 8046F418 0046C358 40 80 00 10 */ bge .L_8046F428 -/* 8046F41C 0046C35C 2C 00 00 00 */ cmpwi r0, 0 -/* 8046F420 0046C360 40 80 00 14 */ bge .L_8046F434 -/* 8046F424 0046C364 48 00 00 C0 */ b .L_8046F4E4 -.L_8046F428: -/* 8046F428 0046C368 2C 00 00 08 */ cmpwi r0, 8 -/* 8046F42C 0046C36C 40 80 00 B8 */ bge .L_8046F4E4 -/* 8046F430 0046C370 48 00 00 84 */ b .L_8046F4B4 -.L_8046F434: -/* 8046F434 0046C374 38 60 00 18 */ li r3, 0x18 -/* 8046F438 0046C378 4B BB 4A 6D */ bl __nw__FUl -/* 8046F43C 0046C37C 7C 7D 1B 79 */ or. r29, r3, r3 -/* 8046F440 0046C380 41 82 00 24 */ beq .L_8046F464 -/* 8046F444 0046C384 38 80 00 00 */ li r4, 0 -/* 8046F448 0046C388 38 A0 00 00 */ li r5, 0 -/* 8046F44C 0046C38C 4B ED 49 39 */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 8046F450 0046C390 38 7D 00 0C */ addi r3, r29, 0xc -/* 8046F454 0046C394 4B BB 74 7D */ bl initiate__10JSUPtrListFv -/* 8046F458 0046C398 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 8046F45C 0046C39C 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 8046F460 0046C3A0 90 1D 00 00 */ stw r0, 0(r29) -.L_8046F464: -/* 8046F464 0046C3A4 57 E3 15 BA */ rlwinm r3, r31, 2, 0x16, 0x1d -/* 8046F468 0046C3A8 38 03 00 24 */ addi r0, r3, 0x24 -/* 8046F46C 0046C3AC 7F BE 01 2E */ stwx r29, r30, r0 -/* 8046F470 0046C3B0 48 00 00 90 */ b .L_8046F500 -.L_8046F474: -/* 8046F474 0046C3B4 38 60 00 18 */ li r3, 0x18 -/* 8046F478 0046C3B8 4B BB 4A 2D */ bl __nw__FUl -/* 8046F47C 0046C3BC 7C 7D 1B 79 */ or. r29, r3, r3 -/* 8046F480 0046C3C0 41 82 00 24 */ beq .L_8046F4A4 -/* 8046F484 0046C3C4 38 80 00 00 */ li r4, 0 -/* 8046F488 0046C3C8 38 A0 00 00 */ li r5, 0 -/* 8046F48C 0046C3CC 4B ED 48 F9 */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 8046F490 0046C3D0 38 7D 00 0C */ addi r3, r29, 0xc -/* 8046F494 0046C3D4 4B BB 74 3D */ bl initiate__10JSUPtrListFv -/* 8046F498 0046C3D8 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 8046F49C 0046C3DC 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 8046F4A0 0046C3E0 90 1D 00 00 */ stw r0, 0(r29) -.L_8046F4A4: -/* 8046F4A4 0046C3E4 57 E3 15 BA */ rlwinm r3, r31, 2, 0x16, 0x1d -/* 8046F4A8 0046C3E8 38 03 00 24 */ addi r0, r3, 0x24 -/* 8046F4AC 0046C3EC 7F BE 01 2E */ stwx r29, r30, r0 -/* 8046F4B0 0046C3F0 48 00 00 50 */ b .L_8046F500 -.L_8046F4B4: -/* 8046F4B4 0046C3F4 38 60 00 0C */ li r3, 0xc -/* 8046F4B8 0046C3F8 4B BB 49 ED */ bl __nw__FUl -/* 8046F4BC 0046C3FC 7C 64 1B 79 */ or. r4, r3, r3 -/* 8046F4C0 0046C400 41 82 00 14 */ beq .L_8046F4D4 -/* 8046F4C4 0046C404 38 80 00 00 */ li r4, 0 -/* 8046F4C8 0046C408 38 A0 00 00 */ li r5, 0 -/* 8046F4CC 0046C40C 4B ED 48 B9 */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 8046F4D0 0046C410 7C 64 1B 78 */ mr r4, r3 -.L_8046F4D4: -/* 8046F4D4 0046C414 57 E3 15 BA */ rlwinm r3, r31, 2, 0x16, 0x1d -/* 8046F4D8 0046C418 38 03 00 24 */ addi r0, r3, 0x24 -/* 8046F4DC 0046C41C 7C 9E 01 2E */ stwx r4, r30, r0 -/* 8046F4E0 0046C420 48 00 00 20 */ b .L_8046F500 -.L_8046F4E4: -/* 8046F4E4 0046C424 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 8046F4E8 0046C428 3C A0 80 4A */ lis r5, lbl_8049DA9C@ha -/* 8046F4EC 0046C42C 38 63 DA 80 */ addi r3, r3, lbl_8049DA80@l -/* 8046F4F0 0046C430 38 80 00 3C */ li r4, 0x3c -/* 8046F4F4 0046C434 38 A5 DA 9C */ addi r5, r5, lbl_8049DA9C@l -/* 8046F4F8 0046C438 4C C6 31 82 */ crclr 6 -/* 8046F4FC 0046C43C 4B BB B1 45 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F500: -/* 8046F500 0046C440 3B FF 00 01 */ addi r31, r31, 1 -.L_8046F504: -/* 8046F504 0046C444 57 E0 06 3E */ clrlwi r0, r31, 0x18 -/* 8046F508 0046C448 28 00 00 08 */ cmplwi r0, 8 -/* 8046F50C 0046C44C 41 80 FF 00 */ blt .L_8046F40C -/* 8046F510 0046C450 48 00 00 60 */ b .L_8046F570 -.L_8046F514: -/* 8046F514 0046C454 3C 80 80 4A */ lis r4, lbl_8049DA80@ha -/* 8046F518 0046C458 3C 60 80 4A */ lis r3, lbl_8049DA9C@ha -/* 8046F51C 0046C45C 3B A4 DA 80 */ addi r29, r4, lbl_8049DA80@l -/* 8046F520 0046C460 3B 80 00 00 */ li r28, 0 -/* 8046F524 0046C464 3B E3 DA 9C */ addi r31, r3, lbl_8049DA9C@l -/* 8046F528 0046C468 48 00 00 3C */ b .L_8046F564 -.L_8046F52C: -/* 8046F52C 0046C46C 57 84 15 BA */ rlwinm r4, r28, 2, 0x16, 0x1d -/* 8046F530 0046C470 80 7E 00 44 */ lwz r3, 0x44(r30) -/* 8046F534 0046C474 38 04 00 24 */ addi r0, r4, 0x24 -/* 8046F538 0046C478 7C 63 00 2E */ lwzx r3, r3, r0 -/* 8046F53C 0046C47C 7C 7E 01 2E */ stwx r3, r30, r0 -/* 8046F540 0046C480 7C 1E 00 2E */ lwzx r0, r30, r0 -/* 8046F544 0046C484 28 00 00 00 */ cmplwi r0, 0 -/* 8046F548 0046C488 40 82 00 18 */ bne .L_8046F560 -/* 8046F54C 0046C48C 7F A3 EB 78 */ mr r3, r29 -/* 8046F550 0046C490 7F E5 FB 78 */ mr r5, r31 -/* 8046F554 0046C494 38 80 00 45 */ li r4, 0x45 -/* 8046F558 0046C498 4C C6 31 82 */ crclr 6 -/* 8046F55C 0046C49C 4B BB B0 E5 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F560: -/* 8046F560 0046C4A0 3B 9C 00 01 */ addi r28, r28, 1 -.L_8046F564: -/* 8046F564 0046C4A4 57 80 06 3E */ clrlwi r0, r28, 0x18 -/* 8046F568 0046C4A8 28 00 00 08 */ cmplwi r0, 8 -/* 8046F56C 0046C4AC 41 80 FF C0 */ blt .L_8046F52C -.L_8046F570: -/* 8046F570 0046C4B0 80 01 00 24 */ lwz r0, 0x24(r1) -/* 8046F574 0046C4B4 7F C3 F3 78 */ mr r3, r30 -/* 8046F578 0046C4B8 83 E1 00 1C */ lwz r31, 0x1c(r1) -/* 8046F57C 0046C4BC 83 C1 00 18 */ lwz r30, 0x18(r1) -/* 8046F580 0046C4C0 83 A1 00 14 */ lwz r29, 0x14(r1) -/* 8046F584 0046C4C4 83 81 00 10 */ lwz r28, 0x10(r1) -/* 8046F588 0046C4C8 7C 08 03 A6 */ mtlr r0 -/* 8046F58C 0046C4CC 38 21 00 20 */ addi r1, r1, 0x20 -/* 8046F590 0046C4D0 4E 80 00 20 */ blr -.endfn __ct__Q23PSM17DirectorMgr_SceneFPQ23PSM17DirectorMgr_SceneUc - -.fn __dt__Q23PSM17DirectorMgr_SceneFv, global -/* 8046F594 0046C4D4 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8046F598 0046C4D8 7C 08 02 A6 */ mflr r0 -/* 8046F59C 0046C4DC 90 01 00 14 */ stw r0, 0x14(r1) -/* 8046F5A0 0046C4E0 93 E1 00 0C */ stw r31, 0xc(r1) -/* 8046F5A4 0046C4E4 7C 9F 23 78 */ mr r31, r4 -/* 8046F5A8 0046C4E8 93 C1 00 08 */ stw r30, 8(r1) -/* 8046F5AC 0046C4EC 7C 7E 1B 79 */ or. r30, r3, r3 -/* 8046F5B0 0046C4F0 41 82 00 54 */ beq .L_8046F604 -/* 8046F5B4 0046C4F4 3C 80 80 4F */ lis r4, __vt__Q23PSM17DirectorMgr_Scene@ha -/* 8046F5B8 0046C4F8 38 7E 00 0C */ addi r3, r30, 0xc -/* 8046F5BC 0046C4FC 38 A4 F9 80 */ addi r5, r4, __vt__Q23PSM17DirectorMgr_Scene@l -/* 8046F5C0 0046C500 38 80 00 00 */ li r4, 0 -/* 8046F5C4 0046C504 90 BE 00 00 */ stw r5, 0(r30) -/* 8046F5C8 0046C508 38 05 00 10 */ addi r0, r5, 0x10 -/* 8046F5CC 0046C50C 90 1E 00 0C */ stw r0, 0xc(r30) -/* 8046F5D0 0046C510 4B BA DA 65 */ bl __dt__11JKRDisposerFv -/* 8046F5D4 0046C514 28 1E 00 00 */ cmplwi r30, 0 -/* 8046F5D8 0046C518 41 82 00 1C */ beq .L_8046F5F4 -/* 8046F5DC 0046C51C 3C 80 80 4E */ lis r4, __vt__Q28PSSystem15DirectorMgrBase@ha -/* 8046F5E0 0046C520 7F C3 F3 78 */ mr r3, r30 -/* 8046F5E4 0046C524 38 04 AF C0 */ addi r0, r4, __vt__Q28PSSystem15DirectorMgrBase@l -/* 8046F5E8 0046C528 38 80 00 00 */ li r4, 0 -/* 8046F5EC 0046C52C 90 1E 00 00 */ stw r0, 0(r30) -/* 8046F5F0 0046C530 4B C4 AC 0D */ bl __dt__10JADHioNodeFv -.L_8046F5F4: -/* 8046F5F4 0046C534 7F E0 07 35 */ extsh. r0, r31 -/* 8046F5F8 0046C538 40 81 00 0C */ ble .L_8046F604 -/* 8046F5FC 0046C53C 7F C3 F3 78 */ mr r3, r30 -/* 8046F600 0046C540 4B BB 4A B5 */ bl __dl__FPv -.L_8046F604: -/* 8046F604 0046C544 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8046F608 0046C548 7F C3 F3 78 */ mr r3, r30 -/* 8046F60C 0046C54C 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 8046F610 0046C550 83 C1 00 08 */ lwz r30, 8(r1) -/* 8046F614 0046C554 7C 08 03 A6 */ mtlr r0 -/* 8046F618 0046C558 38 21 00 10 */ addi r1, r1, 0x10 -/* 8046F61C 0046C55C 4E 80 00 20 */ blr -.endfn __dt__Q23PSM17DirectorMgr_SceneFv - -.fn initTrackMap__Q23PSM17DirectorMgr_SceneFRQ28PSSystem11DirectedBgm, global -/* 8046F620 0046C560 94 21 FF 70 */ stwu r1, -0x90(r1) -/* 8046F624 0046C564 7C 08 02 A6 */ mflr r0 -/* 8046F628 0046C568 3C A0 80 4A */ lis r5, lbl_8049DA80@ha -/* 8046F62C 0046C56C 90 01 00 94 */ stw r0, 0x94(r1) -/* 8046F630 0046C570 BF 61 00 7C */ stmw r27, 0x7c(r1) -/* 8046F634 0046C574 7C 7F 1B 78 */ mr r31, r3 -/* 8046F638 0046C578 7C 9B 23 78 */ mr r27, r4 -/* 8046F63C 0046C57C 38 61 00 48 */ addi r3, r1, 0x48 -/* 8046F640 0046C580 3B C5 DA 80 */ addi r30, r5, lbl_8049DA80@l -/* 8046F644 0046C584 38 80 00 00 */ li r4, 0 -/* 8046F648 0046C588 48 00 22 89 */ bl __ct__Q23PSM15BgmTrackMapFileFb -/* 8046F64C 0046C58C 83 BB 00 14 */ lwz r29, 0x14(r27) -/* 8046F650 0046C590 38 9E 00 28 */ addi r4, r30, 0x28 -/* 8046F654 0046C594 7F BC EB 78 */ mr r28, r29 -/* 8046F658 0046C598 7F A3 EB 78 */ mr r3, r29 -/* 8046F65C 0046C59C 4B C5 B0 65 */ bl strcmp -/* 8046F660 0046C5A0 2C 03 00 00 */ cmpwi r3, 0 -/* 8046F664 0046C5A4 41 82 00 18 */ beq .L_8046F67C -/* 8046F668 0046C5A8 7F A3 EB 78 */ mr r3, r29 -/* 8046F66C 0046C5AC 38 9E 00 38 */ addi r4, r30, 0x38 -/* 8046F670 0046C5B0 4B C5 B0 51 */ bl strcmp -/* 8046F674 0046C5B4 2C 03 00 00 */ cmpwi r3, 0 -/* 8046F678 0046C5B8 40 82 00 0C */ bne .L_8046F684 -.L_8046F67C: -/* 8046F67C 0046C5BC 3B BE 00 48 */ addi r29, r30, 0x48 -/* 8046F680 0046C5C0 48 00 01 24 */ b .L_8046F7A4 -.L_8046F684: -/* 8046F684 0046C5C4 7F A3 EB 78 */ mr r3, r29 -/* 8046F688 0046C5C8 38 9E 00 68 */ addi r4, r30, 0x68 -/* 8046F68C 0046C5CC 4B C5 B0 35 */ bl strcmp -/* 8046F690 0046C5D0 2C 03 00 00 */ cmpwi r3, 0 -/* 8046F694 0046C5D4 40 82 00 44 */ bne .L_8046F6D8 -/* 8046F698 0046C5D8 7F 63 DB 78 */ mr r3, r27 -/* 8046F69C 0046C5DC 3B BE 00 78 */ addi r29, r30, 0x78 -/* 8046F6A0 0046C5E0 81 9B 00 10 */ lwz r12, 0x10(r27) -/* 8046F6A4 0046C5E4 81 8C 00 24 */ lwz r12, 0x24(r12) -/* 8046F6A8 0046C5E8 7D 89 03 A6 */ mtctr r12 -/* 8046F6AC 0046C5EC 4E 80 04 21 */ bctrl -/* 8046F6B0 0046C5F0 54 60 06 3E */ clrlwi r0, r3, 0x18 -/* 8046F6B4 0046C5F4 28 00 00 03 */ cmplwi r0, 3 -/* 8046F6B8 0046C5F8 41 82 00 18 */ beq .L_8046F6D0 -/* 8046F6BC 0046C5FC 38 7E 00 00 */ addi r3, r30, 0 -/* 8046F6C0 0046C600 38 BE 00 1C */ addi r5, r30, 0x1c -/* 8046F6C4 0046C604 38 80 00 74 */ li r4, 0x74 -/* 8046F6C8 0046C608 4C C6 31 82 */ crclr 6 -/* 8046F6CC 0046C60C 4B BB AF 75 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F6D0: -/* 8046F6D0 0046C610 83 9B 03 30 */ lwz r28, 0x330(r27) -/* 8046F6D4 0046C614 48 00 00 D0 */ b .L_8046F7A4 -.L_8046F6D8: -/* 8046F6D8 0046C618 38 62 2A 04 */ addi r3, r2, lbl_80520D64@sda21 -/* 8046F6DC 0046C61C 4B C5 B2 35 */ bl strlen -/* 8046F6E0 0046C620 7C 65 1B 78 */ mr r5, r3 -/* 8046F6E4 0046C624 7F A4 EB 78 */ mr r4, r29 -/* 8046F6E8 0046C628 38 62 2A 04 */ addi r3, r2, lbl_80520D64@sda21 -/* 8046F6EC 0046C62C 4B C5 AF 95 */ bl strncmp -/* 8046F6F0 0046C630 2C 03 00 00 */ cmpwi r3, 0 -/* 8046F6F4 0046C634 40 82 00 44 */ bne .L_8046F738 -/* 8046F6F8 0046C638 7F 63 DB 78 */ mr r3, r27 -/* 8046F6FC 0046C63C 3B BE 00 78 */ addi r29, r30, 0x78 -/* 8046F700 0046C640 81 9B 00 10 */ lwz r12, 0x10(r27) -/* 8046F704 0046C644 81 8C 00 24 */ lwz r12, 0x24(r12) -/* 8046F708 0046C648 7D 89 03 A6 */ mtctr r12 -/* 8046F70C 0046C64C 4E 80 04 21 */ bctrl -/* 8046F710 0046C650 54 60 06 3E */ clrlwi r0, r3, 0x18 -/* 8046F714 0046C654 28 00 00 03 */ cmplwi r0, 3 -/* 8046F718 0046C658 41 82 00 18 */ beq .L_8046F730 -/* 8046F71C 0046C65C 38 7E 00 00 */ addi r3, r30, 0 -/* 8046F720 0046C660 38 BE 00 1C */ addi r5, r30, 0x1c -/* 8046F724 0046C664 38 80 00 7E */ li r4, 0x7e -/* 8046F728 0046C668 4C C6 31 82 */ crclr 6 -/* 8046F72C 0046C66C 4B BB AF 15 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F730: -/* 8046F730 0046C670 83 9B 03 30 */ lwz r28, 0x330(r27) -/* 8046F734 0046C674 48 00 00 70 */ b .L_8046F7A4 -.L_8046F738: -/* 8046F738 0046C678 7F A3 EB 78 */ mr r3, r29 -/* 8046F73C 0046C67C 38 9E 00 9C */ addi r4, r30, 0x9c -/* 8046F740 0046C680 4B C5 AF 81 */ bl strcmp -/* 8046F744 0046C684 2C 03 00 00 */ cmpwi r3, 0 -/* 8046F748 0046C688 41 82 00 18 */ beq .L_8046F760 -/* 8046F74C 0046C68C 7F A3 EB 78 */ mr r3, r29 -/* 8046F750 0046C690 38 9E 00 AC */ addi r4, r30, 0xac -/* 8046F754 0046C694 4B C5 AF 6D */ bl strcmp -/* 8046F758 0046C698 2C 03 00 00 */ cmpwi r3, 0 -/* 8046F75C 0046C69C 40 82 00 44 */ bne .L_8046F7A0 -.L_8046F760: -/* 8046F760 0046C6A0 7F 63 DB 78 */ mr r3, r27 -/* 8046F764 0046C6A4 3B BE 00 BC */ addi r29, r30, 0xbc -/* 8046F768 0046C6A8 81 9B 00 10 */ lwz r12, 0x10(r27) -/* 8046F76C 0046C6AC 81 8C 00 24 */ lwz r12, 0x24(r12) -/* 8046F770 0046C6B0 7D 89 03 A6 */ mtctr r12 -/* 8046F774 0046C6B4 4E 80 04 21 */ bctrl -/* 8046F778 0046C6B8 54 60 06 3E */ clrlwi r0, r3, 0x18 -/* 8046F77C 0046C6BC 28 00 00 03 */ cmplwi r0, 3 -/* 8046F780 0046C6C0 41 82 00 18 */ beq .L_8046F798 -/* 8046F784 0046C6C4 38 7E 00 00 */ addi r3, r30, 0 -/* 8046F788 0046C6C8 38 BE 00 1C */ addi r5, r30, 0x1c -/* 8046F78C 0046C6CC 38 80 00 8B */ li r4, 0x8b -/* 8046F790 0046C6D0 4C C6 31 82 */ crclr 6 -/* 8046F794 0046C6D4 4B BB AE AD */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F798: -/* 8046F798 0046C6D8 83 9B 03 30 */ lwz r28, 0x330(r27) -/* 8046F79C 0046C6DC 48 00 00 08 */ b .L_8046F7A4 -.L_8046F7A0: -/* 8046F7A0 0046C6E0 3B BE 00 DC */ addi r29, r30, 0xdc -.L_8046F7A4: -/* 8046F7A4 0046C6E4 7F A4 EB 78 */ mr r4, r29 -/* 8046F7A8 0046C6E8 38 61 00 48 */ addi r3, r1, 0x48 -/* 8046F7AC 0046C6EC 38 A0 00 02 */ li r5, 2 -/* 8046F7B0 0046C6F0 4B EC 93 01 */ bl onlyLoad__Q28PSSystem12TextDataBaseFPCcQ212JKRDvdRipper15EAllocDirection -/* 8046F7B4 0046C6F4 7F 85 E3 78 */ mr r5, r28 -/* 8046F7B8 0046C6F8 38 61 00 08 */ addi r3, r1, 8 -/* 8046F7BC 0046C6FC 38 81 00 48 */ addi r4, r1, 0x48 -/* 8046F7C0 0046C700 48 00 21 B9 */ bl readTrackMap__Q23PSM15BgmTrackMapFileFPCc -/* 8046F7C4 0046C704 80 01 00 08 */ lwz r0, 8(r1) -/* 8046F7C8 0046C708 3C 60 80 4F */ lis r3, __vt__Q23PSM15BgmTrackMapFile@ha -/* 8046F7CC 0046C70C 80 81 00 0C */ lwz r4, 0xc(r1) -/* 8046F7D0 0046C710 34 A1 00 64 */ addic. r5, r1, 0x64 -/* 8046F7D4 0046C714 38 63 FA A8 */ addi r3, r3, __vt__Q23PSM15BgmTrackMapFile@l -/* 8046F7D8 0046C718 90 1F 00 48 */ stw r0, 0x48(r31) -/* 8046F7DC 0046C71C 38 03 00 10 */ addi r0, r3, 0x10 -/* 8046F7E0 0046C720 90 9F 00 4C */ stw r4, 0x4c(r31) -/* 8046F7E4 0046C724 80 A1 00 10 */ lwz r5, 0x10(r1) -/* 8046F7E8 0046C728 80 81 00 14 */ lwz r4, 0x14(r1) -/* 8046F7EC 0046C72C 90 BF 00 50 */ stw r5, 0x50(r31) -/* 8046F7F0 0046C730 90 9F 00 54 */ stw r4, 0x54(r31) -/* 8046F7F4 0046C734 80 A1 00 18 */ lwz r5, 0x18(r1) -/* 8046F7F8 0046C738 80 81 00 1C */ lwz r4, 0x1c(r1) -/* 8046F7FC 0046C73C 90 BF 00 58 */ stw r5, 0x58(r31) -/* 8046F800 0046C740 90 9F 00 5C */ stw r4, 0x5c(r31) -/* 8046F804 0046C744 80 A1 00 20 */ lwz r5, 0x20(r1) -/* 8046F808 0046C748 80 81 00 24 */ lwz r4, 0x24(r1) -/* 8046F80C 0046C74C 90 BF 00 60 */ stw r5, 0x60(r31) -/* 8046F810 0046C750 90 9F 00 64 */ stw r4, 0x64(r31) -/* 8046F814 0046C754 88 81 00 28 */ lbz r4, 0x28(r1) -/* 8046F818 0046C758 98 9F 00 68 */ stb r4, 0x68(r31) -/* 8046F81C 0046C75C 88 81 00 29 */ lbz r4, 0x29(r1) -/* 8046F820 0046C760 98 9F 00 69 */ stb r4, 0x69(r31) -/* 8046F824 0046C764 88 81 00 2A */ lbz r4, 0x2a(r1) -/* 8046F828 0046C768 98 9F 00 6A */ stb r4, 0x6a(r31) -/* 8046F82C 0046C76C 88 81 00 2B */ lbz r4, 0x2b(r1) -/* 8046F830 0046C770 98 9F 00 6B */ stb r4, 0x6b(r31) -/* 8046F834 0046C774 88 81 00 2C */ lbz r4, 0x2c(r1) -/* 8046F838 0046C778 98 9F 00 6C */ stb r4, 0x6c(r31) -/* 8046F83C 0046C77C 88 81 00 2D */ lbz r4, 0x2d(r1) -/* 8046F840 0046C780 98 9F 00 6D */ stb r4, 0x6d(r31) -/* 8046F844 0046C784 80 A1 00 2E */ lwz r5, 0x2e(r1) -/* 8046F848 0046C788 80 81 00 32 */ lwz r4, 0x32(r1) -/* 8046F84C 0046C78C 90 BF 00 6E */ stw r5, 0x6e(r31) -/* 8046F850 0046C790 90 9F 00 72 */ stw r4, 0x72(r31) -/* 8046F854 0046C794 80 A1 00 36 */ lwz r5, 0x36(r1) -/* 8046F858 0046C798 80 81 00 3A */ lwz r4, 0x3a(r1) -/* 8046F85C 0046C79C 90 BF 00 76 */ stw r5, 0x76(r31) -/* 8046F860 0046C7A0 90 9F 00 7A */ stw r4, 0x7a(r31) -/* 8046F864 0046C7A4 80 A1 00 3E */ lwz r5, 0x3e(r1) -/* 8046F868 0046C7A8 80 81 00 42 */ lwz r4, 0x42(r1) -/* 8046F86C 0046C7AC 90 BF 00 7E */ stw r5, 0x7e(r31) -/* 8046F870 0046C7B0 90 9F 00 82 */ stw r4, 0x82(r31) -/* 8046F874 0046C7B4 90 61 00 48 */ stw r3, 0x48(r1) -/* 8046F878 0046C7B8 90 01 00 64 */ stw r0, 0x64(r1) -/* 8046F87C 0046C7BC 41 82 00 18 */ beq .L_8046F894 -/* 8046F880 0046C7C0 3C 60 80 4F */ lis r3, "__vt__Q28PSSystem38SingletonBase"@ha -/* 8046F884 0046C7C4 38 00 00 00 */ li r0, 0 -/* 8046F888 0046C7C8 38 63 F9 74 */ addi r3, r3, "__vt__Q28PSSystem38SingletonBase"@l -/* 8046F88C 0046C7CC 90 0D 91 C0 */ stw r0, "sInstance__Q28PSSystem38SingletonBase"@sda21(r13) -/* 8046F890 0046C7D0 90 61 00 64 */ stw r3, 0x64(r1) -.L_8046F894: -/* 8046F894 0046C7D4 38 61 00 48 */ addi r3, r1, 0x48 -/* 8046F898 0046C7D8 38 80 00 00 */ li r4, 0 -/* 8046F89C 0046C7DC 4B EC 91 29 */ bl __dt__Q28PSSystem12TextDataBaseFv -/* 8046F8A0 0046C7E0 BB 61 00 7C */ lmw r27, 0x7c(r1) -/* 8046F8A4 0046C7E4 80 01 00 94 */ lwz r0, 0x94(r1) -/* 8046F8A8 0046C7E8 7C 08 03 A6 */ mtlr r0 -/* 8046F8AC 0046C7EC 38 21 00 90 */ addi r1, r1, 0x90 -/* 8046F8B0 0046C7F0 4E 80 00 20 */ blr -.endfn initTrackMap__Q23PSM17DirectorMgr_SceneFRQ28PSSystem11DirectedBgm - -.fn newDirector__Q23PSM17DirectorMgr_SceneFUcRQ28PSSystem11DirectedBgm, global -/* 8046F8B4 0046C7F4 94 21 FF D0 */ stwu r1, -0x30(r1) -/* 8046F8B8 0046C7F8 7C 08 02 A6 */ mflr r0 -/* 8046F8BC 0046C7FC 90 01 00 34 */ stw r0, 0x34(r1) -/* 8046F8C0 0046C800 BE C1 00 08 */ stmw r22, 8(r1) -/* 8046F8C4 0046C804 7C 7D 1B 78 */ mr r29, r3 -/* 8046F8C8 0046C808 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 8046F8CC 0046C80C 7C 9B 23 78 */ mr r27, r4 -/* 8046F8D0 0046C810 3B 5D 00 48 */ addi r26, r29, 0x48 -/* 8046F8D4 0046C814 7C BE 2B 78 */ mr r30, r5 -/* 8046F8D8 0046C818 3B E3 DA 80 */ addi r31, r3, lbl_8049DA80@l -/* 8046F8DC 0046C81C 88 1D 00 68 */ lbz r0, 0x68(r29) -/* 8046F8E0 0046C820 28 00 00 00 */ cmplwi r0, 0 -/* 8046F8E4 0046C824 40 82 00 18 */ bne .L_8046F8FC -/* 8046F8E8 0046C828 38 7F 00 00 */ addi r3, r31, 0 -/* 8046F8EC 0046C82C 38 BF 00 FC */ addi r5, r31, 0xfc -/* 8046F8F0 0046C830 38 80 00 A1 */ li r4, 0xa1 -/* 8046F8F4 0046C834 4C C6 31 82 */ crclr 6 -/* 8046F8F8 0046C838 4B BB AD 49 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F8FC: -/* 8046F8FC 0046C83C 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 8046F900 0046C840 3B 20 00 00 */ li r25, 0 -/* 8046F904 0046C844 28 00 00 07 */ cmplwi r0, 7 -/* 8046F908 0046C848 3B 80 00 00 */ li r28, 0 -/* 8046F90C 0046C84C 41 81 06 70 */ bgt .L_8046FF7C -/* 8046F910 0046C850 3C 60 80 4F */ lis r3, lbl_804EF880@ha -/* 8046F914 0046C854 54 00 10 3A */ slwi r0, r0, 2 -/* 8046F918 0046C858 38 63 F8 80 */ addi r3, r3, lbl_804EF880@l -/* 8046F91C 0046C85C 7C 03 00 2E */ lwzx r0, r3, r0 -/* 8046F920 0046C860 7C 09 03 A6 */ mtctr r0 -/* 8046F924 0046C864 4E 80 04 20 */ bctr -.L_8046F928: -/* 8046F928 0046C868 38 60 00 68 */ li r3, 0x68 -/* 8046F92C 0046C86C 4B BB 45 79 */ bl __nw__FUl -/* 8046F930 0046C870 7C 60 1B 79 */ or. r0, r3, r3 -/* 8046F934 0046C874 41 82 00 28 */ beq .L_8046F95C -/* 8046F938 0046C878 88 BA 00 21 */ lbz r5, 0x21(r26) -/* 8046F93C 0046C87C 38 82 2A 0C */ addi r4, r2, lbl_80520D6C@sda21 -/* 8046F940 0046C880 C0 22 2A 14 */ lfs f1, lbl_80520D74@sda21(r2) -/* 8046F944 0046C884 38 C0 00 64 */ li r6, 0x64 -/* 8046F948 0046C888 C0 42 2A 18 */ lfs f2, lbl_80520D78@sda21(r2) -/* 8046F94C 0046C88C 38 E0 00 64 */ li r7, 0x64 -/* 8046F950 0046C890 39 00 00 64 */ li r8, 0x64 -/* 8046F954 0046C894 4B FE 7E 05 */ bl __ct__Q23PSM20ActorDirector_ScaledFPCciffllUl -/* 8046F958 0046C898 7C 60 1B 78 */ mr r0, r3 -.L_8046F95C: -/* 8046F95C 0046C89C 28 00 00 00 */ cmplwi r0, 0 -/* 8046F960 0046C8A0 7C 19 03 78 */ mr r25, r0 -/* 8046F964 0046C8A4 40 82 00 18 */ bne .L_8046F97C -/* 8046F968 0046C8A8 38 7F 00 00 */ addi r3, r31, 0 -/* 8046F96C 0046C8AC 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046F970 0046C8B0 38 80 00 AD */ li r4, 0xad -/* 8046F974 0046C8B4 4C C6 31 82 */ crclr 6 -/* 8046F978 0046C8B8 4B BB AC C9 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F97C: -/* 8046F97C 0046C8BC 3A E0 00 00 */ li r23, 0 -/* 8046F980 0046C8C0 48 00 00 44 */ b .L_8046F9C4 -.L_8046F984: -/* 8046F984 0046C8C4 88 1A 00 20 */ lbz r0, 0x20(r26) -/* 8046F988 0046C8C8 7F 03 02 14 */ add r24, r3, r0 -/* 8046F98C 0046C8CC 2C 18 00 10 */ cmpwi r24, 0x10 -/* 8046F990 0046C8D0 41 80 00 18 */ blt .L_8046F9A8 -/* 8046F994 0046C8D4 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046F998 0046C8D8 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046F99C 0046C8DC 38 80 01 A3 */ li r4, 0x1a3 -/* 8046F9A0 0046C8E0 4C C6 31 82 */ crclr 6 -/* 8046F9A4 0046C8E4 4B BB AC 9D */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046F9A8: -/* 8046F9A8 0046C8E8 57 04 10 3A */ slwi r4, r24, 2 -/* 8046F9AC 0046C8EC 7F 23 CB 78 */ mr r3, r25 -/* 8046F9B0 0046C8F0 38 04 00 74 */ addi r0, r4, 0x74 -/* 8046F9B4 0046C8F4 7E E4 BB 78 */ mr r4, r23 -/* 8046F9B8 0046C8F8 7C BE 00 2E */ lwzx r5, r30, r0 -/* 8046F9BC 0046C8FC 4B ED 37 1D */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8046F9C0 0046C900 3A F7 00 01 */ addi r23, r23, 1 -.L_8046F9C4: -/* 8046F9C4 0046C904 88 1A 00 21 */ lbz r0, 0x21(r26) -/* 8046F9C8 0046C908 56 E3 06 3E */ clrlwi r3, r23, 0x18 -/* 8046F9CC 0046C90C 7C 03 00 00 */ cmpw r3, r0 -/* 8046F9D0 0046C910 41 80 FF B4 */ blt .L_8046F984 -/* 8046F9D4 0046C914 48 00 05 A8 */ b .L_8046FF7C -.L_8046F9D8: -/* 8046F9D8 0046C918 38 60 00 6C */ li r3, 0x6c -/* 8046F9DC 0046C91C 4B BB 44 C9 */ bl __nw__FUl -/* 8046F9E0 0046C920 7C 78 1B 79 */ or. r24, r3, r3 -/* 8046F9E4 0046C924 41 82 00 28 */ beq .L_8046FA0C -/* 8046F9E8 0046C928 88 BA 00 23 */ lbz r5, 0x23(r26) -/* 8046F9EC 0046C92C 38 9F 01 1C */ addi r4, r31, 0x11c -/* 8046F9F0 0046C930 38 C0 00 64 */ li r6, 0x64 -/* 8046F9F4 0046C934 38 E0 00 64 */ li r7, 0x64 -/* 8046F9F8 0046C938 39 00 00 64 */ li r8, 0x64 -/* 8046F9FC 0046C93C 4B FE 85 41 */ bl __ct__Q23PSM19ActorDirector_EnemyFPCcillUl -/* 8046FA00 0046C940 3C 60 80 4F */ lis r3, __vt__Q23PSM19ActorDirector_Kehai@ha -/* 8046FA04 0046C944 38 03 DD C0 */ addi r0, r3, __vt__Q23PSM19ActorDirector_Kehai@l -/* 8046FA08 0046C948 90 18 00 00 */ stw r0, 0(r24) -.L_8046FA0C: -/* 8046FA0C 0046C94C 28 18 00 00 */ cmplwi r24, 0 -/* 8046FA10 0046C950 7F 19 C3 78 */ mr r25, r24 -/* 8046FA14 0046C954 40 82 00 18 */ bne .L_8046FA2C -/* 8046FA18 0046C958 38 7F 00 00 */ addi r3, r31, 0 -/* 8046FA1C 0046C95C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FA20 0046C960 38 80 00 BC */ li r4, 0xbc -/* 8046FA24 0046C964 4C C6 31 82 */ crclr 6 -/* 8046FA28 0046C968 4B BB AC 19 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FA2C: -/* 8046FA2C 0046C96C 3A E0 00 00 */ li r23, 0 -/* 8046FA30 0046C970 48 00 00 54 */ b .L_8046FA84 -.L_8046FA34: -/* 8046FA34 0046C974 88 9A 00 22 */ lbz r4, 0x22(r26) -/* 8046FA38 0046C978 88 1A 00 20 */ lbz r0, 0x20(r26) -/* 8046FA3C 0046C97C 88 7A 00 21 */ lbz r3, 0x21(r26) -/* 8046FA40 0046C980 7C 00 22 14 */ add r0, r0, r4 -/* 8046FA44 0046C984 7F 00 2A 14 */ add r24, r0, r5 -/* 8046FA48 0046C988 7F 03 C2 14 */ add r24, r3, r24 -/* 8046FA4C 0046C98C 2C 18 00 10 */ cmpwi r24, 0x10 -/* 8046FA50 0046C990 41 80 00 18 */ blt .L_8046FA68 -/* 8046FA54 0046C994 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FA58 0046C998 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FA5C 0046C99C 38 80 01 A3 */ li r4, 0x1a3 -/* 8046FA60 0046C9A0 4C C6 31 82 */ crclr 6 -/* 8046FA64 0046C9A4 4B BB AB DD */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FA68: -/* 8046FA68 0046C9A8 57 04 10 3A */ slwi r4, r24, 2 -/* 8046FA6C 0046C9AC 7F 23 CB 78 */ mr r3, r25 -/* 8046FA70 0046C9B0 38 04 00 74 */ addi r0, r4, 0x74 -/* 8046FA74 0046C9B4 7E E4 BB 78 */ mr r4, r23 -/* 8046FA78 0046C9B8 7C BE 00 2E */ lwzx r5, r30, r0 -/* 8046FA7C 0046C9BC 4B ED 36 5D */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8046FA80 0046C9C0 3A F7 00 01 */ addi r23, r23, 1 -.L_8046FA84: -/* 8046FA84 0046C9C4 88 1A 00 23 */ lbz r0, 0x23(r26) -/* 8046FA88 0046C9C8 56 E5 06 3E */ clrlwi r5, r23, 0x18 -/* 8046FA8C 0046C9CC 7C 05 00 00 */ cmpw r5, r0 -/* 8046FA90 0046C9D0 41 80 FF A4 */ blt .L_8046FA34 -/* 8046FA94 0046C9D4 48 00 04 E8 */ b .L_8046FF7C -.L_8046FA98: -/* 8046FA98 0046C9D8 38 60 00 6C */ li r3, 0x6c -/* 8046FA9C 0046C9DC 4B BB 44 09 */ bl __nw__FUl -/* 8046FAA0 0046C9E0 7C 78 1B 79 */ or. r24, r3, r3 -/* 8046FAA4 0046C9E4 41 82 00 28 */ beq .L_8046FACC -/* 8046FAA8 0046C9E8 88 BA 00 24 */ lbz r5, 0x24(r26) -/* 8046FAAC 0046C9EC 38 9F 01 28 */ addi r4, r31, 0x128 -/* 8046FAB0 0046C9F0 38 C0 00 64 */ li r6, 0x64 -/* 8046FAB4 0046C9F4 38 E0 00 64 */ li r7, 0x64 -/* 8046FAB8 0046C9F8 39 00 00 64 */ li r8, 0x64 -/* 8046FABC 0046C9FC 4B FE 84 81 */ bl __ct__Q23PSM19ActorDirector_EnemyFPCcillUl -/* 8046FAC0 0046CA00 3C 60 80 4F */ lis r3, __vt__Q23PSM20ActorDirector_Battle@ha -/* 8046FAC4 0046CA04 38 03 DE 08 */ addi r0, r3, __vt__Q23PSM20ActorDirector_Battle@l -/* 8046FAC8 0046CA08 90 18 00 00 */ stw r0, 0(r24) -.L_8046FACC: -/* 8046FACC 0046CA0C 28 18 00 00 */ cmplwi r24, 0 -/* 8046FAD0 0046CA10 7F 19 C3 78 */ mr r25, r24 -/* 8046FAD4 0046CA14 40 82 00 18 */ bne .L_8046FAEC -/* 8046FAD8 0046CA18 38 7F 00 00 */ addi r3, r31, 0 -/* 8046FADC 0046CA1C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FAE0 0046CA20 38 80 00 CE */ li r4, 0xce -/* 8046FAE4 0046CA24 4C C6 31 82 */ crclr 6 -/* 8046FAE8 0046CA28 4B BB AB 59 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FAEC: -/* 8046FAEC 0046CA2C 3B 00 00 00 */ li r24, 0 -/* 8046FAF0 0046CA30 48 00 00 5C */ b .L_8046FB4C -.L_8046FAF4: -/* 8046FAF4 0046CA34 88 7A 00 22 */ lbz r3, 0x22(r26) -/* 8046FAF8 0046CA38 88 1A 00 20 */ lbz r0, 0x20(r26) -/* 8046FAFC 0046CA3C 88 9A 00 23 */ lbz r4, 0x23(r26) -/* 8046FB00 0046CA40 7C 00 1A 14 */ add r0, r0, r3 -/* 8046FB04 0046CA44 88 7A 00 21 */ lbz r3, 0x21(r26) -/* 8046FB08 0046CA48 7C 00 22 14 */ add r0, r0, r4 -/* 8046FB0C 0046CA4C 7E E0 2A 14 */ add r23, r0, r5 -/* 8046FB10 0046CA50 7E E3 BA 14 */ add r23, r3, r23 -/* 8046FB14 0046CA54 2C 17 00 10 */ cmpwi r23, 0x10 -/* 8046FB18 0046CA58 41 80 00 18 */ blt .L_8046FB30 -/* 8046FB1C 0046CA5C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FB20 0046CA60 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FB24 0046CA64 38 80 01 A3 */ li r4, 0x1a3 -/* 8046FB28 0046CA68 4C C6 31 82 */ crclr 6 -/* 8046FB2C 0046CA6C 4B BB AB 15 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FB30: -/* 8046FB30 0046CA70 56 E4 10 3A */ slwi r4, r23, 2 -/* 8046FB34 0046CA74 7F 23 CB 78 */ mr r3, r25 -/* 8046FB38 0046CA78 38 04 00 74 */ addi r0, r4, 0x74 -/* 8046FB3C 0046CA7C 7F 04 C3 78 */ mr r4, r24 -/* 8046FB40 0046CA80 7C BE 00 2E */ lwzx r5, r30, r0 -/* 8046FB44 0046CA84 4B ED 35 95 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8046FB48 0046CA88 3B 18 00 01 */ addi r24, r24, 1 -.L_8046FB4C: -/* 8046FB4C 0046CA8C 88 1A 00 24 */ lbz r0, 0x24(r26) -/* 8046FB50 0046CA90 57 05 06 3E */ clrlwi r5, r24, 0x18 -/* 8046FB54 0046CA94 7C 05 00 00 */ cmpw r5, r0 -/* 8046FB58 0046CA98 41 80 FF 9C */ blt .L_8046FAF4 -/* 8046FB5C 0046CA9C 48 00 04 20 */ b .L_8046FF7C -.L_8046FB60: -/* 8046FB60 0046CAA0 38 60 00 58 */ li r3, 0x58 -/* 8046FB64 0046CAA4 4B BB 43 41 */ bl __nw__FUl -/* 8046FB68 0046CAA8 7C 60 1B 79 */ or. r0, r3, r3 -/* 8046FB6C 0046CAAC 41 82 00 1C */ beq .L_8046FB88 -/* 8046FB70 0046CAB0 88 BA 00 22 */ lbz r5, 0x22(r26) -/* 8046FB74 0046CAB4 38 9F 01 34 */ addi r4, r31, 0x134 -/* 8046FB78 0046CAB8 38 C0 00 64 */ li r6, 0x64 -/* 8046FB7C 0046CABC 38 E0 00 64 */ li r7, 0x64 -/* 8046FB80 0046CAC0 4B FE 7B 05 */ bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill -/* 8046FB84 0046CAC4 7C 60 1B 78 */ mr r0, r3 -.L_8046FB88: -/* 8046FB88 0046CAC8 28 00 00 00 */ cmplwi r0, 0 -/* 8046FB8C 0046CACC 7C 19 03 78 */ mr r25, r0 -/* 8046FB90 0046CAD0 40 82 00 18 */ bne .L_8046FBA8 -/* 8046FB94 0046CAD4 38 7F 00 00 */ addi r3, r31, 0 -/* 8046FB98 0046CAD8 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FB9C 0046CADC 38 80 00 DB */ li r4, 0xdb -/* 8046FBA0 0046CAE0 4C C6 31 82 */ crclr 6 -/* 8046FBA4 0046CAE4 4B BB AA 9D */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FBA8: -/* 8046FBA8 0046CAE8 3B 00 00 00 */ li r24, 0 -/* 8046FBAC 0046CAEC 48 00 00 4C */ b .L_8046FBF8 -.L_8046FBB0: -/* 8046FBB0 0046CAF0 88 1A 00 20 */ lbz r0, 0x20(r26) -/* 8046FBB4 0046CAF4 88 7A 00 21 */ lbz r3, 0x21(r26) -/* 8046FBB8 0046CAF8 7E E0 22 14 */ add r23, r0, r4 -/* 8046FBBC 0046CAFC 7E E3 BA 14 */ add r23, r3, r23 -/* 8046FBC0 0046CB00 2C 17 00 10 */ cmpwi r23, 0x10 -/* 8046FBC4 0046CB04 41 80 00 18 */ blt .L_8046FBDC -/* 8046FBC8 0046CB08 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FBCC 0046CB0C 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FBD0 0046CB10 38 80 01 A3 */ li r4, 0x1a3 -/* 8046FBD4 0046CB14 4C C6 31 82 */ crclr 6 -/* 8046FBD8 0046CB18 4B BB AA 69 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FBDC: -/* 8046FBDC 0046CB1C 56 E4 10 3A */ slwi r4, r23, 2 -/* 8046FBE0 0046CB20 7F 23 CB 78 */ mr r3, r25 -/* 8046FBE4 0046CB24 38 04 00 74 */ addi r0, r4, 0x74 -/* 8046FBE8 0046CB28 7F 04 C3 78 */ mr r4, r24 -/* 8046FBEC 0046CB2C 7C BE 00 2E */ lwzx r5, r30, r0 -/* 8046FBF0 0046CB30 4B ED 34 E9 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8046FBF4 0046CB34 3B 18 00 01 */ addi r24, r24, 1 -.L_8046FBF8: -/* 8046FBF8 0046CB38 88 1A 00 22 */ lbz r0, 0x22(r26) -/* 8046FBFC 0046CB3C 57 04 06 3E */ clrlwi r4, r24, 0x18 -/* 8046FC00 0046CB40 7C 04 00 00 */ cmpw r4, r0 -/* 8046FC04 0046CB44 41 80 FF AC */ blt .L_8046FBB0 -/* 8046FC08 0046CB48 48 00 03 74 */ b .L_8046FF7C -.L_8046FC0C: -/* 8046FC0C 0046CB4C 7F C3 F3 78 */ mr r3, r30 -/* 8046FC10 0046CB50 81 9E 00 10 */ lwz r12, 0x10(r30) -/* 8046FC14 0046CB54 81 8C 00 24 */ lwz r12, 0x24(r12) -/* 8046FC18 0046CB58 7D 89 03 A6 */ mtctr r12 -/* 8046FC1C 0046CB5C 4E 80 04 21 */ bctrl -/* 8046FC20 0046CB60 54 60 06 3E */ clrlwi r0, r3, 0x18 -/* 8046FC24 0046CB64 28 00 00 03 */ cmplwi r0, 3 -/* 8046FC28 0046CB68 40 82 00 3C */ bne .L_8046FC64 -/* 8046FC2C 0046CB6C 38 60 00 58 */ li r3, 0x58 -/* 8046FC30 0046CB70 4B BB 42 75 */ bl __nw__FUl -/* 8046FC34 0046CB74 7C 77 1B 79 */ or. r23, r3, r3 -/* 8046FC38 0046CB78 41 82 00 24 */ beq .L_8046FC5C -/* 8046FC3C 0046CB7C 88 BA 00 25 */ lbz r5, 0x25(r26) -/* 8046FC40 0046CB80 38 9F 01 40 */ addi r4, r31, 0x140 -/* 8046FC44 0046CB84 38 C0 00 64 */ li r6, 0x64 -/* 8046FC48 0046CB88 38 E0 00 64 */ li r7, 0x64 -/* 8046FC4C 0046CB8C 4B FE 7A 39 */ bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill -/* 8046FC50 0046CB90 3C 60 80 4F */ lis r3, __vt__Q23PSM19GroundDirector_Cave@ha -/* 8046FC54 0046CB94 38 03 F9 3C */ addi r0, r3, __vt__Q23PSM19GroundDirector_Cave@l -/* 8046FC58 0046CB98 90 17 00 00 */ stw r0, 0(r23) -.L_8046FC5C: -/* 8046FC5C 0046CB9C 7E F9 BB 78 */ mr r25, r23 -/* 8046FC60 0046CBA0 48 00 00 3C */ b .L_8046FC9C -.L_8046FC64: -/* 8046FC64 0046CBA4 38 60 00 68 */ li r3, 0x68 -/* 8046FC68 0046CBA8 4B BB 42 3D */ bl __nw__FUl -/* 8046FC6C 0046CBAC 7C 60 1B 79 */ or. r0, r3, r3 -/* 8046FC70 0046CBB0 41 82 00 28 */ beq .L_8046FC98 -/* 8046FC74 0046CBB4 88 BA 00 25 */ lbz r5, 0x25(r26) -/* 8046FC78 0046CBB8 38 9F 01 40 */ addi r4, r31, 0x140 -/* 8046FC7C 0046CBBC C0 22 2A 24 */ lfs f1, lbl_80520D84@sda21(r2) -/* 8046FC80 0046CBC0 38 C0 00 C8 */ li r6, 0xc8 -/* 8046FC84 0046CBC4 C0 42 2A 28 */ lfs f2, lbl_80520D88@sda21(r2) -/* 8046FC88 0046CBC8 38 E0 00 C8 */ li r7, 0xc8 -/* 8046FC8C 0046CBCC 39 00 00 0A */ li r8, 0xa -/* 8046FC90 0046CBD0 4B FE 7A C9 */ bl __ct__Q23PSM20ActorDirector_ScaledFPCciffllUl -/* 8046FC94 0046CBD4 7C 60 1B 78 */ mr r0, r3 -.L_8046FC98: -/* 8046FC98 0046CBD8 7C 19 03 78 */ mr r25, r0 -.L_8046FC9C: -/* 8046FC9C 0046CBDC 28 19 00 00 */ cmplwi r25, 0 -/* 8046FCA0 0046CBE0 40 82 00 18 */ bne .L_8046FCB8 -/* 8046FCA4 0046CBE4 38 7F 00 00 */ addi r3, r31, 0 -/* 8046FCA8 0046CBE8 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FCAC 0046CBEC 38 80 01 13 */ li r4, 0x113 -/* 8046FCB0 0046CBF0 4C C6 31 82 */ crclr 6 -/* 8046FCB4 0046CBF4 4B BB A9 8D */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FCB8: -/* 8046FCB8 0046CBF8 3B 00 00 00 */ li r24, 0 -/* 8046FCBC 0046CBFC 48 00 00 64 */ b .L_8046FD20 -.L_8046FCC0: -/* 8046FCC0 0046CC00 88 7A 00 22 */ lbz r3, 0x22(r26) -/* 8046FCC4 0046CC04 88 1A 00 20 */ lbz r0, 0x20(r26) -/* 8046FCC8 0046CC08 88 9A 00 23 */ lbz r4, 0x23(r26) -/* 8046FCCC 0046CC0C 7C 00 1A 14 */ add r0, r0, r3 -/* 8046FCD0 0046CC10 88 BA 00 24 */ lbz r5, 0x24(r26) -/* 8046FCD4 0046CC14 7C 00 22 14 */ add r0, r0, r4 -/* 8046FCD8 0046CC18 88 7A 00 21 */ lbz r3, 0x21(r26) -/* 8046FCDC 0046CC1C 7C 00 2A 14 */ add r0, r0, r5 -/* 8046FCE0 0046CC20 7E E0 32 14 */ add r23, r0, r6 -/* 8046FCE4 0046CC24 7E E3 BA 14 */ add r23, r3, r23 -/* 8046FCE8 0046CC28 2C 17 00 10 */ cmpwi r23, 0x10 -/* 8046FCEC 0046CC2C 41 80 00 18 */ blt .L_8046FD04 -/* 8046FCF0 0046CC30 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FCF4 0046CC34 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FCF8 0046CC38 38 80 01 A3 */ li r4, 0x1a3 -/* 8046FCFC 0046CC3C 4C C6 31 82 */ crclr 6 -/* 8046FD00 0046CC40 4B BB A9 41 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FD04: -/* 8046FD04 0046CC44 56 E4 10 3A */ slwi r4, r23, 2 -/* 8046FD08 0046CC48 7F 23 CB 78 */ mr r3, r25 -/* 8046FD0C 0046CC4C 38 04 00 74 */ addi r0, r4, 0x74 -/* 8046FD10 0046CC50 7F 04 C3 78 */ mr r4, r24 -/* 8046FD14 0046CC54 7C BE 00 2E */ lwzx r5, r30, r0 -/* 8046FD18 0046CC58 4B ED 33 C1 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8046FD1C 0046CC5C 3B 18 00 01 */ addi r24, r24, 1 -.L_8046FD20: -/* 8046FD20 0046CC60 88 1A 00 25 */ lbz r0, 0x25(r26) -/* 8046FD24 0046CC64 57 06 06 3E */ clrlwi r6, r24, 0x18 -/* 8046FD28 0046CC68 7C 06 00 00 */ cmpw r6, r0 -/* 8046FD2C 0046CC6C 41 80 FF 94 */ blt .L_8046FCC0 -/* 8046FD30 0046CC70 48 00 02 4C */ b .L_8046FF7C -.L_8046FD34: -/* 8046FD34 0046CC74 38 80 00 00 */ li r4, 0 -/* 8046FD38 0046CC78 7C 85 23 78 */ mr r5, r4 -/* 8046FD3C 0046CC7C 48 00 00 20 */ b .L_8046FD5C -.L_8046FD40: -/* 8046FD40 0046CC80 54 A3 06 3E */ clrlwi r3, r5, 0x18 -/* 8046FD44 0046CC84 38 03 00 26 */ addi r0, r3, 0x26 -/* 8046FD48 0046CC88 7C 1A 00 AE */ lbzx r0, r26, r0 -/* 8046FD4C 0046CC8C 28 00 00 00 */ cmplwi r0, 0 -/* 8046FD50 0046CC90 41 82 00 08 */ beq .L_8046FD58 -/* 8046FD54 0046CC94 38 84 00 01 */ addi r4, r4, 1 -.L_8046FD58: -/* 8046FD58 0046CC98 38 A5 00 01 */ addi r5, r5, 1 -.L_8046FD5C: -/* 8046FD5C 0046CC9C 54 A0 06 3E */ clrlwi r0, r5, 0x18 -/* 8046FD60 0046CCA0 28 00 00 10 */ cmplwi r0, 0x10 -/* 8046FD64 0046CCA4 41 80 FF DC */ blt .L_8046FD40 -/* 8046FD68 0046CCA8 38 A0 00 00 */ li r5, 0 -/* 8046FD6C 0046CCAC 7C A6 2B 78 */ mr r6, r5 -/* 8046FD70 0046CCB0 48 00 00 2C */ b .L_8046FD9C -.L_8046FD74: -/* 8046FD74 0046CCB4 54 C3 06 3E */ clrlwi r3, r6, 0x18 -/* 8046FD78 0046CCB8 38 03 00 36 */ addi r0, r3, 0x36 -/* 8046FD7C 0046CCBC 7C 1A 00 AE */ lbzx r0, r26, r0 -/* 8046FD80 0046CCC0 28 00 00 00 */ cmplwi r0, 0 -/* 8046FD84 0046CCC4 41 82 00 14 */ beq .L_8046FD98 -/* 8046FD88 0046CCC8 54 00 06 3E */ clrlwi r0, r0, 0x18 -/* 8046FD8C 0046CCCC 7C 00 18 30 */ slw r0, r0, r3 -/* 8046FD90 0046CCD0 7C A0 03 78 */ or r0, r5, r0 -/* 8046FD94 0046CCD4 54 05 06 3E */ clrlwi r5, r0, 0x18 -.L_8046FD98: -/* 8046FD98 0046CCD8 38 C6 00 01 */ addi r6, r6, 1 -.L_8046FD9C: -/* 8046FD9C 0046CCDC 54 C0 06 3E */ clrlwi r0, r6, 0x18 -/* 8046FDA0 0046CCE0 28 00 00 08 */ cmplwi r0, 8 -/* 8046FDA4 0046CCE4 41 80 FF D0 */ blt .L_8046FD74 -/* 8046FDA8 0046CCE8 81 9D 00 00 */ lwz r12, 0(r29) -/* 8046FDAC 0046CCEC 7F A3 EB 78 */ mr r3, r29 -/* 8046FDB0 0046CCF0 7F C6 F3 78 */ mr r6, r30 -/* 8046FDB4 0046CCF4 81 8C 00 20 */ lwz r12, 0x20(r12) -/* 8046FDB8 0046CCF8 7D 89 03 A6 */ mtctr r12 -/* 8046FDBC 0046CCFC 4E 80 04 21 */ bctrl -/* 8046FDC0 0046CD00 7C 79 1B 79 */ or. r25, r3, r3 -/* 8046FDC4 0046CD04 40 82 00 18 */ bne .L_8046FDDC -/* 8046FDC8 0046CD08 38 7F 00 00 */ addi r3, r31, 0 -/* 8046FDCC 0046CD0C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FDD0 0046CD10 38 80 01 22 */ li r4, 0x122 -/* 8046FDD4 0046CD14 4C C6 31 82 */ crclr 6 -/* 8046FDD8 0046CD18 4B BB A8 69 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FDDC: -/* 8046FDDC 0046CD1C 3A E0 00 00 */ li r23, 0 -/* 8046FDE0 0046CD20 3A C0 00 00 */ li r22, 0 -/* 8046FDE4 0046CD24 48 00 00 54 */ b .L_8046FE38 -.L_8046FDE8: -/* 8046FDE8 0046CD28 56 D8 06 3E */ clrlwi r24, r22, 0x18 -/* 8046FDEC 0046CD2C 38 18 00 26 */ addi r0, r24, 0x26 -/* 8046FDF0 0046CD30 7C 1A 00 AE */ lbzx r0, r26, r0 -/* 8046FDF4 0046CD34 28 00 00 00 */ cmplwi r0, 0 -/* 8046FDF8 0046CD38 41 82 00 3C */ beq .L_8046FE34 -/* 8046FDFC 0046CD3C 2C 18 00 10 */ cmpwi r24, 0x10 -/* 8046FE00 0046CD40 41 80 00 18 */ blt .L_8046FE18 -/* 8046FE04 0046CD44 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FE08 0046CD48 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FE0C 0046CD4C 38 80 01 A3 */ li r4, 0x1a3 -/* 8046FE10 0046CD50 4C C6 31 82 */ crclr 6 -/* 8046FE14 0046CD54 4B BB A8 2D */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FE18: -/* 8046FE18 0046CD58 57 03 10 3A */ slwi r3, r24, 2 -/* 8046FE1C 0046CD5C 7E E4 BB 78 */ mr r4, r23 -/* 8046FE20 0046CD60 38 03 00 74 */ addi r0, r3, 0x74 -/* 8046FE24 0046CD64 7F 23 CB 78 */ mr r3, r25 -/* 8046FE28 0046CD68 7C BE 00 2E */ lwzx r5, r30, r0 -/* 8046FE2C 0046CD6C 3A F7 00 01 */ addi r23, r23, 1 -/* 8046FE30 0046CD70 4B ED 32 A9 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -.L_8046FE34: -/* 8046FE34 0046CD74 3A D6 00 01 */ addi r22, r22, 1 -.L_8046FE38: -/* 8046FE38 0046CD78 56 C0 06 3E */ clrlwi r0, r22, 0x18 -/* 8046FE3C 0046CD7C 28 00 00 10 */ cmplwi r0, 0x10 -/* 8046FE40 0046CD80 41 80 FF A8 */ blt .L_8046FDE8 -/* 8046FE44 0046CD84 7F C3 F3 78 */ mr r3, r30 -/* 8046FE48 0046CD88 81 9E 00 10 */ lwz r12, 0x10(r30) -/* 8046FE4C 0046CD8C 81 8C 00 24 */ lwz r12, 0x24(r12) -/* 8046FE50 0046CD90 7D 89 03 A6 */ mtctr r12 -/* 8046FE54 0046CD94 4E 80 04 21 */ bctrl -/* 8046FE58 0046CD98 54 60 06 3E */ clrlwi r0, r3, 0x18 -/* 8046FE5C 0046CD9C 28 00 00 03 */ cmplwi r0, 3 -/* 8046FE60 0046CDA0 40 82 01 1C */ bne .L_8046FF7C -/* 8046FE64 0046CDA4 38 A0 00 00 */ li r5, 0 -/* 8046FE68 0046CDA8 7C A4 2B 78 */ mr r4, r5 -/* 8046FE6C 0046CDAC 48 00 00 28 */ b .L_8046FE94 -.L_8046FE70: -/* 8046FE70 0046CDB0 54 83 06 3E */ clrlwi r3, r4, 0x18 -/* 8046FE74 0046CDB4 38 03 00 26 */ addi r0, r3, 0x26 -/* 8046FE78 0046CDB8 7C 1A 00 AE */ lbzx r0, r26, r0 -/* 8046FE7C 0046CDBC 28 00 00 00 */ cmplwi r0, 0 -/* 8046FE80 0046CDC0 41 82 00 10 */ beq .L_8046FE90 -/* 8046FE84 0046CDC4 7C 00 18 30 */ slw r0, r0, r3 -/* 8046FE88 0046CDC8 7C A0 03 78 */ or r0, r5, r0 -/* 8046FE8C 0046CDCC 54 05 04 3E */ clrlwi r5, r0, 0x10 -.L_8046FE90: -/* 8046FE90 0046CDD0 38 84 00 01 */ addi r4, r4, 1 -.L_8046FE94: -/* 8046FE94 0046CDD4 54 80 06 3E */ clrlwi r0, r4, 0x18 -/* 8046FE98 0046CDD8 28 00 00 10 */ cmplwi r0, 0x10 -/* 8046FE9C 0046CDDC 41 80 FF D4 */ blt .L_8046FE70 -/* 8046FEA0 0046CDE0 B0 BE 03 4C */ sth r5, 0x34c(r30) -/* 8046FEA4 0046CDE4 48 00 00 D8 */ b .L_8046FF7C -.L_8046FEA8: -/* 8046FEA8 0046CDE8 38 60 00 58 */ li r3, 0x58 -/* 8046FEAC 0046CDEC 4B BB 3F F9 */ bl __nw__FUl -/* 8046FEB0 0046CDF0 7C 64 1B 79 */ or. r4, r3, r3 -/* 8046FEB4 0046CDF4 41 82 00 0C */ beq .L_8046FEC0 -/* 8046FEB8 0046CDF8 4B FE 6C 41 */ bl __ct__Q23PSM14DamageDirectorFv -/* 8046FEBC 0046CDFC 7C 64 1B 78 */ mr r4, r3 -.L_8046FEC0: -/* 8046FEC0 0046CE00 88 1E 00 B4 */ lbz r0, 0xb4(r30) -/* 8046FEC4 0046CE04 7C 9C 23 78 */ mr r28, r4 -/* 8046FEC8 0046CE08 38 60 00 00 */ li r3, 0 -/* 8046FECC 0046CE0C 28 00 00 01 */ cmplwi r0, 1 -/* 8046FED0 0046CE10 40 82 00 14 */ bne .L_8046FEE4 -/* 8046FED4 0046CE14 80 1E 00 70 */ lwz r0, 0x70(r30) -/* 8046FED8 0046CE18 28 00 00 00 */ cmplwi r0, 0 -/* 8046FEDC 0046CE1C 41 82 00 08 */ beq .L_8046FEE4 -/* 8046FEE0 0046CE20 38 60 00 01 */ li r3, 1 -.L_8046FEE4: -/* 8046FEE4 0046CE24 54 60 06 3F */ clrlwi. r0, r3, 0x18 -/* 8046FEE8 0046CE28 40 82 00 18 */ bne .L_8046FF00 -/* 8046FEEC 0046CE2C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FEF0 0046CE30 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FEF4 0046CE34 38 80 01 9F */ li r4, 0x19f -/* 8046FEF8 0046CE38 4C C6 31 82 */ crclr 6 -/* 8046FEFC 0046CE3C 4B BB A7 45 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FF00: -/* 8046FF00 0046CE40 80 BE 00 70 */ lwz r5, 0x70(r30) -/* 8046FF04 0046CE44 7F 83 E3 78 */ mr r3, r28 -/* 8046FF08 0046CE48 38 80 00 00 */ li r4, 0 -/* 8046FF0C 0046CE4C 4B ED 31 CD */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8046FF10 0046CE50 48 00 00 6C */ b .L_8046FF7C -.L_8046FF14: -/* 8046FF14 0046CE54 38 60 00 54 */ li r3, 0x54 -/* 8046FF18 0046CE58 4B BB 3F 8D */ bl __nw__FUl -/* 8046FF1C 0046CE5C 7C 64 1B 79 */ or. r4, r3, r3 -/* 8046FF20 0046CE60 41 82 00 0C */ beq .L_8046FF2C -/* 8046FF24 0046CE64 4B FE 6E 25 */ bl __ct__Q23PSM25ActorDirector_TempoChangeFv -/* 8046FF28 0046CE68 7C 64 1B 78 */ mr r4, r3 -.L_8046FF2C: -/* 8046FF2C 0046CE6C 88 1E 00 B4 */ lbz r0, 0xb4(r30) -/* 8046FF30 0046CE70 7C 99 23 78 */ mr r25, r4 -/* 8046FF34 0046CE74 38 60 00 00 */ li r3, 0 -/* 8046FF38 0046CE78 28 00 00 01 */ cmplwi r0, 1 -/* 8046FF3C 0046CE7C 40 82 00 14 */ bne .L_8046FF50 -/* 8046FF40 0046CE80 80 1E 00 70 */ lwz r0, 0x70(r30) -/* 8046FF44 0046CE84 28 00 00 00 */ cmplwi r0, 0 -/* 8046FF48 0046CE88 41 82 00 08 */ beq .L_8046FF50 -/* 8046FF4C 0046CE8C 38 60 00 01 */ li r3, 1 -.L_8046FF50: -/* 8046FF50 0046CE90 54 60 06 3F */ clrlwi. r0, r3, 0x18 -/* 8046FF54 0046CE94 40 82 00 18 */ bne .L_8046FF6C -/* 8046FF58 0046CE98 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FF5C 0046CE9C 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8046FF60 0046CEA0 38 80 01 9F */ li r4, 0x19f -/* 8046FF64 0046CEA4 4C C6 31 82 */ crclr 6 -/* 8046FF68 0046CEA8 4B BB A6 D9 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FF6C: -/* 8046FF6C 0046CEAC 80 BE 00 70 */ lwz r5, 0x70(r30) -/* 8046FF70 0046CEB0 7F 23 CB 78 */ mr r3, r25 -/* 8046FF74 0046CEB4 38 80 00 00 */ li r4, 0 -/* 8046FF78 0046CEB8 4B ED 31 61 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -.L_8046FF7C: -/* 8046FF7C 0046CEBC 28 19 00 00 */ cmplwi r25, 0 -/* 8046FF80 0046CEC0 3A C0 00 00 */ li r22, 0 -/* 8046FF84 0046CEC4 40 82 00 14 */ bne .L_8046FF98 -/* 8046FF88 0046CEC8 28 1C 00 00 */ cmplwi r28, 0 -/* 8046FF8C 0046CECC 41 82 00 0C */ beq .L_8046FF98 -/* 8046FF90 0046CED0 7F 96 E3 78 */ mr r22, r28 -/* 8046FF94 0046CED4 48 00 00 18 */ b .L_8046FFAC -.L_8046FF98: -/* 8046FF98 0046CED8 28 19 00 00 */ cmplwi r25, 0 -/* 8046FF9C 0046CEDC 41 82 00 10 */ beq .L_8046FFAC -/* 8046FFA0 0046CEE0 28 1C 00 00 */ cmplwi r28, 0 -/* 8046FFA4 0046CEE4 40 82 00 08 */ bne .L_8046FFAC -/* 8046FFA8 0046CEE8 7F 36 CB 78 */ mr r22, r25 -.L_8046FFAC: -/* 8046FFAC 0046CEEC 28 16 00 00 */ cmplwi r22, 0 -/* 8046FFB0 0046CEF0 40 82 00 18 */ bne .L_8046FFC8 -/* 8046FFB4 0046CEF4 38 7F 00 00 */ addi r3, r31, 0 -/* 8046FFB8 0046CEF8 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8046FFBC 0046CEFC 38 80 01 4E */ li r4, 0x14e -/* 8046FFC0 0046CF00 4C C6 31 82 */ crclr 6 -/* 8046FFC4 0046CF04 4B BB A6 7D */ bl panic_f__12JUTExceptionFPCciPCce -.L_8046FFC8: -/* 8046FFC8 0046CF08 81 9D 00 00 */ lwz r12, 0(r29) -/* 8046FFCC 0046CF0C 57 60 15 BA */ rlwinm r0, r27, 2, 0x16, 0x1d -/* 8046FFD0 0046CF10 7C 9D 02 14 */ add r4, r29, r0 -/* 8046FFD4 0046CF14 7F A3 EB 78 */ mr r3, r29 -/* 8046FFD8 0046CF18 81 8C 00 1C */ lwz r12, 0x1c(r12) -/* 8046FFDC 0046CF1C 82 E4 00 24 */ lwz r23, 0x24(r4) -/* 8046FFE0 0046CF20 7D 89 03 A6 */ mtctr r12 -/* 8046FFE4 0046CF24 4E 80 04 21 */ bctrl -/* 8046FFE8 0046CF28 54 60 06 3F */ clrlwi. r0, r3, 0x18 -/* 8046FFEC 0046CF2C 41 82 00 0C */ beq .L_8046FFF8 -/* 8046FFF0 0046CF30 92 D7 00 08 */ stw r22, 8(r23) -/* 8046FFF4 0046CF34 48 00 00 08 */ b .L_8046FFFC -.L_8046FFF8: -/* 8046FFF8 0046CF38 92 D7 00 04 */ stw r22, 4(r23) -.L_8046FFFC: -/* 8046FFFC 0046CF3C 7F A3 EB 78 */ mr r3, r29 -/* 80470000 0046CF40 7E C4 B3 78 */ mr r4, r22 -/* 80470004 0046CF44 7F 65 DB 78 */ mr r5, r27 -/* 80470008 0046CF48 48 00 00 1D */ bl adaptDirectorActor__Q23PSM17DirectorMgr_SceneFPQ28PSSystem12DirectorBaseUc -/* 8047000C 0046CF4C 7E C3 B3 78 */ mr r3, r22 -/* 80470010 0046CF50 BA C1 00 08 */ lmw r22, 8(r1) -/* 80470014 0046CF54 80 01 00 34 */ lwz r0, 0x34(r1) -/* 80470018 0046CF58 7C 08 03 A6 */ mtlr r0 -/* 8047001C 0046CF5C 38 21 00 30 */ addi r1, r1, 0x30 -/* 80470020 0046CF60 4E 80 00 20 */ blr -.endfn newDirector__Q23PSM17DirectorMgr_SceneFUcRQ28PSSystem11DirectedBgm - -.fn adaptDirectorActor__Q23PSM17DirectorMgr_SceneFPQ28PSSystem12DirectorBaseUc, global -/* 80470024 0046CF64 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470028 0046CF68 7C 08 02 A6 */ mflr r0 -/* 8047002C 0046CF6C 54 A6 06 3E */ clrlwi r6, r5, 0x18 -/* 80470030 0046CF70 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470034 0046CF74 54 A0 15 BA */ rlwinm r0, r5, 2, 0x16, 0x1d -/* 80470038 0046CF78 7C 63 02 14 */ add r3, r3, r0 -/* 8047003C 0046CF7C 28 06 00 07 */ cmplwi r6, 7 -/* 80470040 0046CF80 80 A3 00 24 */ lwz r5, 0x24(r3) -/* 80470044 0046CF84 41 81 00 5C */ bgt .L_804700A0 -/* 80470048 0046CF88 3C 60 80 4F */ lis r3, lbl_804EF8A0@ha -/* 8047004C 0046CF8C 54 C0 10 3A */ slwi r0, r6, 2 -/* 80470050 0046CF90 38 63 F8 A0 */ addi r3, r3, lbl_804EF8A0@l -/* 80470054 0046CF94 7C 03 00 2E */ lwzx r0, r3, r0 -/* 80470058 0046CF98 7C 09 03 A6 */ mtctr r0 -/* 8047005C 0046CF9C 4E 80 04 20 */ bctr -.L_80470060: -/* 80470060 0046CFA0 90 A4 00 64 */ stw r5, 0x64(r4) -/* 80470064 0046CFA4 48 00 00 58 */ b .L_804700BC -.L_80470068: -/* 80470068 0046CFA8 90 A4 00 54 */ stw r5, 0x54(r4) -/* 8047006C 0046CFAC 48 00 00 50 */ b .L_804700BC -.L_80470070: -/* 80470070 0046CFB0 90 A4 00 64 */ stw r5, 0x64(r4) -/* 80470074 0046CFB4 48 00 00 48 */ b .L_804700BC -.L_80470078: -/* 80470078 0046CFB8 90 A4 00 64 */ stw r5, 0x64(r4) -/* 8047007C 0046CFBC 48 00 00 40 */ b .L_804700BC -.L_80470080: -/* 80470080 0046CFC0 90 A4 00 64 */ stw r5, 0x64(r4) -/* 80470084 0046CFC4 48 00 00 38 */ b .L_804700BC -.L_80470088: -/* 80470088 0046CFC8 90 A4 00 48 */ stw r5, 0x48(r4) -/* 8047008C 0046CFCC 48 00 00 30 */ b .L_804700BC -.L_80470090: -/* 80470090 0046CFD0 90 A4 00 48 */ stw r5, 0x48(r4) -/* 80470094 0046CFD4 48 00 00 28 */ b .L_804700BC -.L_80470098: -/* 80470098 0046CFD8 90 A4 00 50 */ stw r5, 0x50(r4) -/* 8047009C 0046CFDC 48 00 00 20 */ b .L_804700BC -.L_804700A0: -/* 804700A0 0046CFE0 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 804700A4 0046CFE4 3C A0 80 4A */ lis r5, lbl_8049DA9C@ha -/* 804700A8 0046CFE8 38 63 DA 80 */ addi r3, r3, lbl_8049DA80@l -/* 804700AC 0046CFEC 38 80 01 95 */ li r4, 0x195 -/* 804700B0 0046CFF0 38 A5 DA 9C */ addi r5, r5, lbl_8049DA9C@l -/* 804700B4 0046CFF4 4C C6 31 82 */ crclr 6 -/* 804700B8 0046CFF8 4B BB A5 89 */ bl panic_f__12JUTExceptionFPCciPCce -.L_804700BC: -/* 804700BC 0046CFFC 80 01 00 14 */ lwz r0, 0x14(r1) -/* 804700C0 0046D000 7C 08 03 A6 */ mtlr r0 -/* 804700C4 0046D004 38 21 00 10 */ addi r1, r1, 0x10 -/* 804700C8 0046D008 4E 80 00 20 */ blr -.endfn adaptDirectorActor__Q23PSM17DirectorMgr_SceneFPQ28PSSystem12DirectorBaseUc - -.fn newPikminNumberDirector__Q23PSM17DirectorMgr_SceneFiUcRQ28PSSystem11DirectedBgm, global -/* 804700CC 0046D00C 94 21 FF E0 */ stwu r1, -0x20(r1) -/* 804700D0 0046D010 7C 08 02 A6 */ mflr r0 -/* 804700D4 0046D014 38 60 00 50 */ li r3, 0x50 -/* 804700D8 0046D018 90 01 00 24 */ stw r0, 0x24(r1) -/* 804700DC 0046D01C 93 E1 00 1C */ stw r31, 0x1c(r1) -/* 804700E0 0046D020 93 C1 00 18 */ stw r30, 0x18(r1) -/* 804700E4 0046D024 7C DE 33 78 */ mr r30, r6 -/* 804700E8 0046D028 93 A1 00 14 */ stw r29, 0x14(r1) -/* 804700EC 0046D02C 7C BD 2B 78 */ mr r29, r5 -/* 804700F0 0046D030 93 81 00 10 */ stw r28, 0x10(r1) -/* 804700F4 0046D034 7C 9C 23 78 */ mr r28, r4 -/* 804700F8 0046D038 4B BB 3D AD */ bl __nw__FUl -/* 804700FC 0046D03C 7C 7F 1B 79 */ or. r31, r3, r3 -/* 80470100 0046D040 41 82 00 18 */ beq .L_80470118 -/* 80470104 0046D044 7F 84 E3 78 */ mr r4, r28 -/* 80470108 0046D048 7F A5 EB 78 */ mr r5, r29 -/* 8047010C 0046D04C 7F C6 F3 78 */ mr r6, r30 -/* 80470110 0046D050 4B FE 6D 89 */ bl __ct__Q23PSM20PikminNumberDirectorFiUcRQ28PSSystem11DirectedBgm -/* 80470114 0046D054 7C 7F 1B 78 */ mr r31, r3 -.L_80470118: -/* 80470118 0046D058 28 1F 00 00 */ cmplwi r31, 0 -/* 8047011C 0046D05C 40 82 00 20 */ bne .L_8047013C -/* 80470120 0046D060 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 80470124 0046D064 3C A0 80 4A */ lis r5, lbl_8049DA9C@ha -/* 80470128 0046D068 38 63 DA 80 */ addi r3, r3, lbl_8049DA80@l -/* 8047012C 0046D06C 38 80 01 9C */ li r4, 0x19c -/* 80470130 0046D070 38 A5 DA 9C */ addi r5, r5, lbl_8049DA9C@l -/* 80470134 0046D074 4C C6 31 82 */ crclr 6 -/* 80470138 0046D078 4B BB A5 09 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8047013C: -/* 8047013C 0046D07C 80 01 00 24 */ lwz r0, 0x24(r1) -/* 80470140 0046D080 7F E3 FB 78 */ mr r3, r31 -/* 80470144 0046D084 83 E1 00 1C */ lwz r31, 0x1c(r1) -/* 80470148 0046D088 83 C1 00 18 */ lwz r30, 0x18(r1) -/* 8047014C 0046D08C 83 A1 00 14 */ lwz r29, 0x14(r1) -/* 80470150 0046D090 83 81 00 10 */ lwz r28, 0x10(r1) -/* 80470154 0046D094 7C 08 03 A6 */ mtlr r0 -/* 80470158 0046D098 38 21 00 20 */ addi r1, r1, 0x20 -/* 8047015C 0046D09C 4E 80 00 20 */ blr -.endfn newPikminNumberDirector__Q23PSM17DirectorMgr_SceneFiUcRQ28PSSystem11DirectedBgm - -.fn newPikminNumberDirector__Q23PSM25DirectorMgr_Scene_AutoBgmFiUcRQ28PSSystem11DirectedBgm, global -/* 80470160 0046D0A0 94 21 FF E0 */ stwu r1, -0x20(r1) -/* 80470164 0046D0A4 7C 08 02 A6 */ mflr r0 -/* 80470168 0046D0A8 38 60 00 54 */ li r3, 0x54 -/* 8047016C 0046D0AC 90 01 00 24 */ stw r0, 0x24(r1) -/* 80470170 0046D0B0 93 E1 00 1C */ stw r31, 0x1c(r1) -/* 80470174 0046D0B4 7C DF 33 78 */ mr r31, r6 -/* 80470178 0046D0B8 93 C1 00 18 */ stw r30, 0x18(r1) -/* 8047017C 0046D0BC 7C BE 2B 78 */ mr r30, r5 -/* 80470180 0046D0C0 93 A1 00 14 */ stw r29, 0x14(r1) -/* 80470184 0046D0C4 7C 9D 23 78 */ mr r29, r4 -/* 80470188 0046D0C8 4B BB 3D 1D */ bl __nw__FUl -/* 8047018C 0046D0CC 7C 60 1B 79 */ or. r0, r3, r3 -/* 80470190 0046D0D0 41 82 00 18 */ beq .L_804701A8 -/* 80470194 0046D0D4 7F A4 EB 78 */ mr r4, r29 -/* 80470198 0046D0D8 7F C5 F3 78 */ mr r5, r30 -/* 8047019C 0046D0DC 7F E6 FB 78 */ mr r6, r31 -/* 804701A0 0046D0E0 4B FE 6E 25 */ bl __ct__Q23PSM28PikminNumberDirector_AutoBgmFiUcRQ28PSSystem11DirectedBgm -/* 804701A4 0046D0E4 7C 60 1B 78 */ mr r0, r3 -.L_804701A8: -/* 804701A8 0046D0E8 28 00 00 00 */ cmplwi r0, 0 -/* 804701AC 0046D0EC 7C 1F 03 78 */ mr r31, r0 -/* 804701B0 0046D0F0 40 82 00 20 */ bne .L_804701D0 -/* 804701B4 0046D0F4 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 804701B8 0046D0F8 3C A0 80 4A */ lis r5, lbl_8049DA9C@ha -/* 804701BC 0046D0FC 38 63 DA 80 */ addi r3, r3, lbl_8049DA80@l -/* 804701C0 0046D100 38 80 01 A9 */ li r4, 0x1a9 -/* 804701C4 0046D104 38 A5 DA 9C */ addi r5, r5, lbl_8049DA9C@l -/* 804701C8 0046D108 4C C6 31 82 */ crclr 6 -/* 804701CC 0046D10C 4B BB A4 75 */ bl panic_f__12JUTExceptionFPCciPCce -.L_804701D0: -/* 804701D0 0046D110 80 01 00 24 */ lwz r0, 0x24(r1) -/* 804701D4 0046D114 7F E3 FB 78 */ mr r3, r31 -/* 804701D8 0046D118 83 E1 00 1C */ lwz r31, 0x1c(r1) -/* 804701DC 0046D11C 83 C1 00 18 */ lwz r30, 0x18(r1) -/* 804701E0 0046D120 83 A1 00 14 */ lwz r29, 0x14(r1) -/* 804701E4 0046D124 7C 08 03 A6 */ mtlr r0 -/* 804701E8 0046D128 38 21 00 20 */ addi r1, r1, 0x20 -/* 804701EC 0046D12C 4E 80 00 20 */ blr -.endfn newPikminNumberDirector__Q23PSM25DirectorMgr_Scene_AutoBgmFiUcRQ28PSSystem11DirectedBgm - -.fn __ct__Q23PSM18DirectorMgr_BattleFv, global -/* 804701F0 0046D130 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 804701F4 0046D134 7C 08 02 A6 */ mflr r0 -/* 804701F8 0046D138 38 80 00 02 */ li r4, 2 -/* 804701FC 0046D13C 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470200 0046D140 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470204 0046D144 7C 7F 1B 78 */ mr r31, r3 -/* 80470208 0046D148 4B ED 36 41 */ bl __ct__Q28PSSystem15DirectorMgrBaseFUc -/* 8047020C 0046D14C 38 7F 00 0C */ addi r3, r31, 0xc -/* 80470210 0046D150 4B BA CD BD */ bl __ct__11JKRDisposerFv -/* 80470214 0046D154 3C 80 80 4F */ lis r4, __vt__Q23PSM18DirectorMgr_Battle@ha -/* 80470218 0046D158 7F E3 FB 78 */ mr r3, r31 -/* 8047021C 0046D15C 38 84 F8 FC */ addi r4, r4, __vt__Q23PSM18DirectorMgr_Battle@l -/* 80470220 0046D160 90 9F 00 00 */ stw r4, 0(r31) -/* 80470224 0046D164 38 04 00 10 */ addi r0, r4, 0x10 -/* 80470228 0046D168 90 1F 00 0C */ stw r0, 0xc(r31) -/* 8047022C 0046D16C 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470230 0046D170 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470234 0046D174 7C 08 03 A6 */ mtlr r0 -/* 80470238 0046D178 38 21 00 10 */ addi r1, r1, 0x10 -/* 8047023C 0046D17C 4E 80 00 20 */ blr -.endfn __ct__Q23PSM18DirectorMgr_BattleFv - -.fn newDirector__Q23PSM18DirectorMgr_BattleFUcRQ28PSSystem11DirectedBgm, global -/* 80470240 0046D180 94 21 FF D0 */ stwu r1, -0x30(r1) -/* 80470244 0046D184 7C 08 02 A6 */ mflr r0 -/* 80470248 0046D188 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 8047024C 0046D18C 90 01 00 34 */ stw r0, 0x34(r1) -/* 80470250 0046D190 BF 21 00 14 */ stmw r25, 0x14(r1) -/* 80470254 0046D194 7C 99 23 78 */ mr r25, r4 -/* 80470258 0046D198 7C BB 2B 78 */ mr r27, r5 -/* 8047025C 0046D19C 3B E3 DA 80 */ addi r31, r3, lbl_8049DA80@l -/* 80470260 0046D1A0 3B C0 00 00 */ li r30, 0 -/* 80470264 0046D1A4 3B A0 00 FF */ li r29, 0xff -/* 80470268 0046D1A8 3B 80 00 FF */ li r28, 0xff -/* 8047026C 0046D1AC 80 0D 98 80 */ lwz r0, spSceneMgr__8PSSystem@sda21(r13) -/* 80470270 0046D1B0 28 00 00 00 */ cmplwi r0, 0 -/* 80470274 0046D1B4 40 82 00 18 */ bne .L_8047028C -/* 80470278 0046D1B8 38 7F 01 4C */ addi r3, r31, 0x14c -/* 8047027C 0046D1BC 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470280 0046D1C0 38 80 01 D3 */ li r4, 0x1d3 -/* 80470284 0046D1C4 4C C6 31 82 */ crclr 6 -/* 80470288 0046D1C8 4B BB A3 B9 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8047028C: -/* 8047028C 0046D1CC 83 4D 98 80 */ lwz r26, spSceneMgr__8PSSystem@sda21(r13) -/* 80470290 0046D1D0 28 1A 00 00 */ cmplwi r26, 0 -/* 80470294 0046D1D4 40 82 00 18 */ bne .L_804702AC -/* 80470298 0046D1D8 38 7F 01 4C */ addi r3, r31, 0x14c -/* 8047029C 0046D1DC 38 BF 00 1C */ addi r5, r31, 0x1c -/* 804702A0 0046D1E0 38 80 01 DC */ li r4, 0x1dc -/* 804702A4 0046D1E4 4C C6 31 82 */ crclr 6 -/* 804702A8 0046D1E8 4B BB A3 99 */ bl panic_f__12JUTExceptionFPCciPCce -.L_804702AC: -/* 804702AC 0046D1EC 7F 43 D3 78 */ mr r3, r26 -/* 804702B0 0046D1F0 81 9A 00 00 */ lwz r12, 0(r26) -/* 804702B4 0046D1F4 81 8C 00 20 */ lwz r12, 0x20(r12) -/* 804702B8 0046D1F8 7D 89 03 A6 */ mtctr r12 -/* 804702BC 0046D1FC 4E 80 04 21 */ bctrl -/* 804702C0 0046D200 57 20 06 3E */ clrlwi r0, r25, 0x18 -/* 804702C4 0046D204 2C 00 00 01 */ cmpwi r0, 1 -/* 804702C8 0046D208 41 82 00 B0 */ beq .L_80470378 -/* 804702CC 0046D20C 40 80 00 E8 */ bge .L_804703B4 -/* 804702D0 0046D210 2C 00 00 00 */ cmpwi r0, 0 -/* 804702D4 0046D214 40 80 00 08 */ bge .L_804702DC -/* 804702D8 0046D218 48 00 00 DC */ b .L_804703B4 -.L_804702DC: -/* 804702DC 0046D21C 54 60 06 3F */ clrlwi. r0, r3, 0x18 -/* 804702E0 0046D220 41 82 00 10 */ beq .L_804702F0 -/* 804702E4 0046D224 3B 80 00 0E */ li r28, 0xe -/* 804702E8 0046D228 3B A0 00 01 */ li r29, 1 -/* 804702EC 0046D22C 48 00 00 0C */ b .L_804702F8 -.L_804702F0: -/* 804702F0 0046D230 3B 80 00 0A */ li r28, 0xa -/* 804702F4 0046D234 3B A0 00 01 */ li r29, 1 -.L_804702F8: -/* 804702F8 0046D238 38 60 00 54 */ li r3, 0x54 -/* 804702FC 0046D23C 4B BB 3B A9 */ bl __nw__FUl -/* 80470300 0046D240 7C 60 1B 79 */ or. r0, r3, r3 -/* 80470304 0046D244 41 82 00 10 */ beq .L_80470314 -/* 80470308 0046D248 57 A4 06 3E */ clrlwi r4, r29, 0x18 -/* 8047030C 0046D24C 4B FE 80 AD */ bl __ct__Q23PSM17PikAttackDirectorFi -/* 80470310 0046D250 7C 60 1B 78 */ mr r0, r3 -.L_80470314: -/* 80470314 0046D254 83 4D 91 B0 */ lwz r26, "sInstance__Q28PSSystem39SingletonBase"@sda21(r13) -/* 80470318 0046D258 7C 1E 03 78 */ mr r30, r0 -/* 8047031C 0046D25C 28 1A 00 00 */ cmplwi r26, 0 -/* 80470320 0046D260 41 82 00 94 */ beq .L_804703B4 -/* 80470324 0046D264 40 82 00 18 */ bne .L_8047033C -/* 80470328 0046D268 38 7F 01 58 */ addi r3, r31, 0x158 -/* 8047032C 0046D26C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470330 0046D270 38 80 00 89 */ li r4, 0x89 -/* 80470334 0046D274 4C C6 31 82 */ crclr 6 -/* 80470338 0046D278 4B BB A3 09 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8047033C: -/* 8047033C 0046D27C 80 6D 91 B0 */ lwz r3, "sInstance__Q28PSSystem39SingletonBase"@sda21(r13) -/* 80470340 0046D280 80 03 00 0C */ lwz r0, 0xc(r3) -/* 80470344 0046D284 54 19 06 3F */ clrlwi. r25, r0, 0x18 -/* 80470348 0046D288 41 82 00 6C */ beq .L_804703B4 -/* 8047034C 0046D28C 38 60 00 10 */ li r3, 0x10 -/* 80470350 0046D290 4B BB 3B 55 */ bl __nw__FUl -/* 80470354 0046D294 7C 60 1B 79 */ or. r0, r3, r3 -/* 80470358 0046D298 41 82 00 18 */ beq .L_80470370 -/* 8047035C 0046D29C 7F C4 F3 78 */ mr r4, r30 -/* 80470360 0046D2A0 7F 25 CB 78 */ mr r5, r25 -/* 80470364 0046D2A4 38 C0 00 00 */ li r6, 0 -/* 80470368 0046D2A8 4B FE 81 49 */ bl __ct__Q23PSM15DirectorUpdatorFPQ28PSSystem12DirectorBaseUcQ33PSM15DirectorUpdator4Type -/* 8047036C 0046D2AC 7C 60 1B 78 */ mr r0, r3 -.L_80470370: -/* 80470370 0046D2B0 90 1A 00 34 */ stw r0, 0x34(r26) -/* 80470374 0046D2B4 48 00 00 40 */ b .L_804703B4 -.L_80470378: -/* 80470378 0046D2B8 54 60 06 3F */ clrlwi. r0, r3, 0x18 -/* 8047037C 0046D2BC 41 82 00 10 */ beq .L_8047038C -/* 80470380 0046D2C0 3B 80 00 0F */ li r28, 0xf -/* 80470384 0046D2C4 3B A0 00 01 */ li r29, 1 -/* 80470388 0046D2C8 48 00 00 0C */ b .L_80470394 -.L_8047038C: -/* 8047038C 0046D2CC 3B 80 00 0B */ li r28, 0xb -/* 80470390 0046D2D0 3B A0 00 01 */ li r29, 1 -.L_80470394: -/* 80470394 0046D2D4 38 60 00 54 */ li r3, 0x54 -/* 80470398 0046D2D8 4B BB 3B 0D */ bl __nw__FUl -/* 8047039C 0046D2DC 7C 60 1B 79 */ or. r0, r3, r3 -/* 804703A0 0046D2E0 41 82 00 10 */ beq .L_804703B0 -/* 804703A4 0046D2E4 57 A4 06 3E */ clrlwi r4, r29, 0x18 -/* 804703A8 0046D2E8 4B FE 80 8D */ bl __ct__Q23PSM13ExiteDirectorFi -/* 804703AC 0046D2EC 7C 60 1B 78 */ mr r0, r3 -.L_804703B0: -/* 804703B0 0046D2F0 7C 1E 03 78 */ mr r30, r0 -.L_804703B4: -/* 804703B4 0046D2F4 57 A0 06 3E */ clrlwi r0, r29, 0x18 -/* 804703B8 0046D2F8 28 00 00 FF */ cmplwi r0, 0xff -/* 804703BC 0046D2FC 40 82 00 18 */ bne .L_804703D4 -/* 804703C0 0046D300 38 7F 00 00 */ addi r3, r31, 0 -/* 804703C4 0046D304 38 BF 00 1C */ addi r5, r31, 0x1c -/* 804703C8 0046D308 38 80 01 EF */ li r4, 0x1ef -/* 804703CC 0046D30C 4C C6 31 82 */ crclr 6 -/* 804703D0 0046D310 4B BB A2 71 */ bl panic_f__12JUTExceptionFPCciPCce -.L_804703D4: -/* 804703D4 0046D314 57 80 06 3E */ clrlwi r0, r28, 0x18 -/* 804703D8 0046D318 28 00 00 FF */ cmplwi r0, 0xff -/* 804703DC 0046D31C 40 82 00 18 */ bne .L_804703F4 -/* 804703E0 0046D320 38 7F 00 00 */ addi r3, r31, 0 -/* 804703E4 0046D324 38 BF 00 1C */ addi r5, r31, 0x1c -/* 804703E8 0046D328 38 80 01 F0 */ li r4, 0x1f0 -/* 804703EC 0046D32C 4C C6 31 82 */ crclr 6 -/* 804703F0 0046D330 4B BB A2 51 */ bl panic_f__12JUTExceptionFPCciPCce -.L_804703F4: -/* 804703F4 0046D334 28 1E 00 00 */ cmplwi r30, 0 -/* 804703F8 0046D338 40 82 00 18 */ bne .L_80470410 -/* 804703FC 0046D33C 38 7F 00 00 */ addi r3, r31, 0 -/* 80470400 0046D340 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470404 0046D344 38 80 01 F1 */ li r4, 0x1f1 -/* 80470408 0046D348 4C C6 31 82 */ crclr 6 -/* 8047040C 0046D34C 4B BB A2 35 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470410: -/* 80470410 0046D350 57 9A 06 3E */ clrlwi r26, r28, 0x18 -/* 80470414 0046D354 57 BC 06 3E */ clrlwi r28, r29, 0x18 -/* 80470418 0046D358 3B 20 00 00 */ li r25, 0 -/* 8047041C 0046D35C 48 00 00 44 */ b .L_80470460 -.L_80470420: -/* 80470420 0046D360 57 20 06 3E */ clrlwi r0, r25, 0x18 -/* 80470424 0046D364 7F BA 02 14 */ add r29, r26, r0 -/* 80470428 0046D368 2C 1D 00 10 */ cmpwi r29, 0x10 -/* 8047042C 0046D36C 41 80 00 18 */ blt .L_80470444 -/* 80470430 0046D370 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470434 0046D374 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470438 0046D378 38 80 01 A3 */ li r4, 0x1a3 -/* 8047043C 0046D37C 4C C6 31 82 */ crclr 6 -/* 80470440 0046D380 4B BB A2 01 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470444: -/* 80470444 0046D384 57 A4 10 3A */ slwi r4, r29, 2 -/* 80470448 0046D388 7F C3 F3 78 */ mr r3, r30 -/* 8047044C 0046D38C 38 04 00 74 */ addi r0, r4, 0x74 -/* 80470450 0046D390 7F 24 CB 78 */ mr r4, r25 -/* 80470454 0046D394 7C BB 00 2E */ lwzx r5, r27, r0 -/* 80470458 0046D398 4B ED 2C 81 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8047045C 0046D39C 3B 39 00 01 */ addi r25, r25, 1 -.L_80470460: -/* 80470460 0046D3A0 57 20 06 3E */ clrlwi r0, r25, 0x18 -/* 80470464 0046D3A4 7C 00 E0 40 */ cmplw r0, r28 -/* 80470468 0046D3A8 41 80 FF B8 */ blt .L_80470420 -/* 8047046C 0046D3AC 7F C3 F3 78 */ mr r3, r30 -/* 80470470 0046D3B0 BB 21 00 14 */ lmw r25, 0x14(r1) -/* 80470474 0046D3B4 80 01 00 34 */ lwz r0, 0x34(r1) -/* 80470478 0046D3B8 7C 08 03 A6 */ mtlr r0 -/* 8047047C 0046D3BC 38 21 00 30 */ addi r1, r1, 0x30 -/* 80470480 0046D3C0 4E 80 00 20 */ blr -.endfn newDirector__Q23PSM18DirectorMgr_BattleFUcRQ28PSSystem11DirectedBgm - -.fn __ct__Q23PSM20DirectorMgr_2PBattleFv, global -/* 80470484 0046D3C4 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470488 0046D3C8 7C 08 02 A6 */ mflr r0 -/* 8047048C 0046D3CC 38 80 00 08 */ li r4, 8 -/* 80470490 0046D3D0 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470494 0046D3D4 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470498 0046D3D8 7C 7F 1B 78 */ mr r31, r3 -/* 8047049C 0046D3DC 4B ED 33 AD */ bl __ct__Q28PSSystem15DirectorMgrBaseFUc -/* 804704A0 0046D3E0 38 7F 00 0C */ addi r3, r31, 0xc -/* 804704A4 0046D3E4 4B BA CB 29 */ bl __ct__11JKRDisposerFv -/* 804704A8 0046D3E8 3C 80 80 4F */ lis r4, __vt__Q23PSM20DirectorMgr_2PBattle@ha -/* 804704AC 0046D3EC 7F E3 FB 78 */ mr r3, r31 -/* 804704B0 0046D3F0 38 84 F8 E0 */ addi r4, r4, __vt__Q23PSM20DirectorMgr_2PBattle@l -/* 804704B4 0046D3F4 90 9F 00 00 */ stw r4, 0(r31) -/* 804704B8 0046D3F8 38 04 00 10 */ addi r0, r4, 0x10 -/* 804704BC 0046D3FC 90 1F 00 0C */ stw r0, 0xc(r31) -/* 804704C0 0046D400 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 804704C4 0046D404 80 01 00 14 */ lwz r0, 0x14(r1) -/* 804704C8 0046D408 7C 08 03 A6 */ mtlr r0 -/* 804704CC 0046D40C 38 21 00 10 */ addi r1, r1, 0x10 -/* 804704D0 0046D410 4E 80 00 20 */ blr -.endfn __ct__Q23PSM20DirectorMgr_2PBattleFv - -.fn newDirector__Q23PSM20DirectorMgr_2PBattleFUcRQ28PSSystem11DirectedBgm, global -/* 804704D4 0046D414 94 21 FF E0 */ stwu r1, -0x20(r1) -/* 804704D8 0046D418 7C 08 02 A6 */ mflr r0 -/* 804704DC 0046D41C 3C 60 80 4A */ lis r3, lbl_8049DA80@ha -/* 804704E0 0046D420 90 01 00 24 */ stw r0, 0x24(r1) -/* 804704E4 0046D424 54 80 06 3E */ clrlwi r0, r4, 0x18 -/* 804704E8 0046D428 28 00 00 07 */ cmplwi r0, 7 -/* 804704EC 0046D42C BF 61 00 0C */ stmw r27, 0xc(r1) -/* 804704F0 0046D430 7C BD 2B 78 */ mr r29, r5 -/* 804704F4 0046D434 3B E3 DA 80 */ addi r31, r3, lbl_8049DA80@l -/* 804704F8 0046D438 3B C0 00 00 */ li r30, 0 -/* 804704FC 0046D43C 41 81 06 48 */ bgt .L_80470B44 -/* 80470500 0046D440 3C 60 80 4F */ lis r3, lbl_804EF8C0@ha -/* 80470504 0046D444 54 00 10 3A */ slwi r0, r0, 2 -/* 80470508 0046D448 38 63 F8 C0 */ addi r3, r3, lbl_804EF8C0@l -/* 8047050C 0046D44C 7C 03 00 2E */ lwzx r0, r3, r0 -/* 80470510 0046D450 7C 09 03 A6 */ mtctr r0 -/* 80470514 0046D454 4E 80 04 20 */ bctr -.L_80470518: -/* 80470518 0046D458 38 60 00 68 */ li r3, 0x68 -/* 8047051C 0046D45C 4B BB 39 89 */ bl __nw__FUl -/* 80470520 0046D460 7C 60 1B 79 */ or. r0, r3, r3 -/* 80470524 0046D464 41 82 00 28 */ beq .L_8047054C -/* 80470528 0046D468 C0 22 2A 14 */ lfs f1, lbl_80520D74@sda21(r2) -/* 8047052C 0046D46C 38 9F 01 64 */ addi r4, r31, 0x164 -/* 80470530 0046D470 C0 42 2A 18 */ lfs f2, lbl_80520D78@sda21(r2) -/* 80470534 0046D474 38 A0 00 01 */ li r5, 1 -/* 80470538 0046D478 38 C0 00 64 */ li r6, 0x64 -/* 8047053C 0046D47C 38 E0 00 64 */ li r7, 0x64 -/* 80470540 0046D480 39 00 00 64 */ li r8, 0x64 -/* 80470544 0046D484 4B FE 72 15 */ bl __ct__Q23PSM20ActorDirector_ScaledFPCciffllUl -/* 80470548 0046D488 7C 60 1B 78 */ mr r0, r3 -.L_8047054C: -/* 8047054C 0046D48C 28 00 00 00 */ cmplwi r0, 0 -/* 80470550 0046D490 7C 1E 03 78 */ mr r30, r0 -/* 80470554 0046D494 40 82 00 18 */ bne .L_8047056C -/* 80470558 0046D498 38 7F 00 00 */ addi r3, r31, 0 -/* 8047055C 0046D49C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470560 0046D4A0 38 80 02 67 */ li r4, 0x267 -/* 80470564 0046D4A4 4C C6 31 82 */ crclr 6 -/* 80470568 0046D4A8 4B BB A0 D9 */ bl panic_f__12JUTExceptionFPCciPCce -.L_8047056C: -/* 8047056C 0046D4AC 3B 60 00 00 */ li r27, 0 -/* 80470570 0046D4B0 48 00 00 44 */ b .L_804705B4 -.L_80470574: -/* 80470574 0046D4B4 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470578 0046D4B8 38 1C 00 08 */ addi r0, r28, 8 -/* 8047057C 0046D4BC 2C 00 00 10 */ cmpwi r0, 0x10 -/* 80470580 0046D4C0 41 80 00 18 */ blt .L_80470598 -/* 80470584 0046D4C4 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470588 0046D4C8 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 8047058C 0046D4CC 38 80 01 A3 */ li r4, 0x1a3 -/* 80470590 0046D4D0 4C C6 31 82 */ crclr 6 -/* 80470594 0046D4D4 4B BB A0 AD */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470598: -/* 80470598 0046D4D8 57 84 10 3A */ slwi r4, r28, 2 -/* 8047059C 0046D4DC 7F C3 F3 78 */ mr r3, r30 -/* 804705A0 0046D4E0 38 04 00 94 */ addi r0, r4, 0x94 -/* 804705A4 0046D4E4 7F 64 DB 78 */ mr r4, r27 -/* 804705A8 0046D4E8 7C BD 00 2E */ lwzx r5, r29, r0 -/* 804705AC 0046D4EC 4B ED 2B 2D */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 804705B0 0046D4F0 3B 7B 00 01 */ addi r27, r27, 1 -.L_804705B4: -/* 804705B4 0046D4F4 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 804705B8 0046D4F8 28 00 00 01 */ cmplwi r0, 1 -/* 804705BC 0046D4FC 41 80 FF B8 */ blt .L_80470574 -/* 804705C0 0046D500 38 60 00 18 */ li r3, 0x18 -/* 804705C4 0046D504 4B BB 38 E1 */ bl __nw__FUl -/* 804705C8 0046D508 7C 7D 1B 79 */ or. r29, r3, r3 -/* 804705CC 0046D50C 41 82 00 24 */ beq .L_804705F0 -/* 804705D0 0046D510 7F C4 F3 78 */ mr r4, r30 -/* 804705D4 0046D514 38 A0 00 00 */ li r5, 0 -/* 804705D8 0046D518 4B ED 37 AD */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 804705DC 0046D51C 38 7D 00 0C */ addi r3, r29, 0xc -/* 804705E0 0046D520 4B BB 62 F1 */ bl initiate__10JSUPtrListFv -/* 804705E4 0046D524 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 804705E8 0046D528 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 804705EC 0046D52C 90 1D 00 00 */ stw r0, 0(r29) -.L_804705F0: -/* 804705F0 0046D530 93 BE 00 64 */ stw r29, 0x64(r30) -/* 804705F4 0046D534 48 00 05 64 */ b .L_80470B58 -.L_804705F8: -/* 804705F8 0046D538 38 60 00 6C */ li r3, 0x6c -/* 804705FC 0046D53C 4B BB 38 A9 */ bl __nw__FUl -/* 80470600 0046D540 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470604 0046D544 41 82 00 28 */ beq .L_8047062C -/* 80470608 0046D548 38 9F 01 1C */ addi r4, r31, 0x11c -/* 8047060C 0046D54C 38 A0 00 01 */ li r5, 1 -/* 80470610 0046D550 38 C0 00 64 */ li r6, 0x64 -/* 80470614 0046D554 38 E0 00 64 */ li r7, 0x64 -/* 80470618 0046D558 39 00 00 64 */ li r8, 0x64 -/* 8047061C 0046D55C 4B FE 79 21 */ bl __ct__Q23PSM19ActorDirector_EnemyFPCcillUl -/* 80470620 0046D560 3C 60 80 4F */ lis r3, __vt__Q23PSM19ActorDirector_Kehai@ha -/* 80470624 0046D564 38 03 DD C0 */ addi r0, r3, __vt__Q23PSM19ActorDirector_Kehai@l -/* 80470628 0046D568 90 1E 00 00 */ stw r0, 0(r30) -.L_8047062C: -/* 8047062C 0046D56C 28 1E 00 00 */ cmplwi r30, 0 -/* 80470630 0046D570 40 82 00 18 */ bne .L_80470648 -/* 80470634 0046D574 38 7F 00 00 */ addi r3, r31, 0 -/* 80470638 0046D578 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8047063C 0046D57C 38 80 02 73 */ li r4, 0x273 -/* 80470640 0046D580 4C C6 31 82 */ crclr 6 -/* 80470644 0046D584 4B BB 9F FD */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470648: -/* 80470648 0046D588 3B 60 00 00 */ li r27, 0 -/* 8047064C 0046D58C 48 00 00 44 */ b .L_80470690 -.L_80470650: -/* 80470650 0046D590 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470654 0046D594 38 1C 00 09 */ addi r0, r28, 9 -/* 80470658 0046D598 2C 00 00 10 */ cmpwi r0, 0x10 -/* 8047065C 0046D59C 41 80 00 18 */ blt .L_80470674 -/* 80470660 0046D5A0 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470664 0046D5A4 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470668 0046D5A8 38 80 01 A3 */ li r4, 0x1a3 -/* 8047066C 0046D5AC 4C C6 31 82 */ crclr 6 -/* 80470670 0046D5B0 4B BB 9F D1 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470674: -/* 80470674 0046D5B4 57 84 10 3A */ slwi r4, r28, 2 -/* 80470678 0046D5B8 7F C3 F3 78 */ mr r3, r30 -/* 8047067C 0046D5BC 38 04 00 98 */ addi r0, r4, 0x98 -/* 80470680 0046D5C0 7F 64 DB 78 */ mr r4, r27 -/* 80470684 0046D5C4 7C BD 00 2E */ lwzx r5, r29, r0 -/* 80470688 0046D5C8 4B ED 2A 51 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8047068C 0046D5CC 3B 7B 00 01 */ addi r27, r27, 1 -.L_80470690: -/* 80470690 0046D5D0 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 80470694 0046D5D4 28 00 00 01 */ cmplwi r0, 1 -/* 80470698 0046D5D8 41 80 FF B8 */ blt .L_80470650 -/* 8047069C 0046D5DC 38 60 00 18 */ li r3, 0x18 -/* 804706A0 0046D5E0 4B BB 38 05 */ bl __nw__FUl -/* 804706A4 0046D5E4 7C 7D 1B 79 */ or. r29, r3, r3 -/* 804706A8 0046D5E8 41 82 00 24 */ beq .L_804706CC -/* 804706AC 0046D5EC 7F C4 F3 78 */ mr r4, r30 -/* 804706B0 0046D5F0 38 A0 00 00 */ li r5, 0 -/* 804706B4 0046D5F4 4B ED 36 D1 */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 804706B8 0046D5F8 38 7D 00 0C */ addi r3, r29, 0xc -/* 804706BC 0046D5FC 4B BB 62 15 */ bl initiate__10JSUPtrListFv -/* 804706C0 0046D600 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 804706C4 0046D604 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 804706C8 0046D608 90 1D 00 00 */ stw r0, 0(r29) -.L_804706CC: -/* 804706CC 0046D60C 93 BE 00 64 */ stw r29, 0x64(r30) -/* 804706D0 0046D610 48 00 04 88 */ b .L_80470B58 -.L_804706D4: -/* 804706D4 0046D614 38 60 00 6C */ li r3, 0x6c -/* 804706D8 0046D618 4B BB 37 CD */ bl __nw__FUl -/* 804706DC 0046D61C 7C 7E 1B 79 */ or. r30, r3, r3 -/* 804706E0 0046D620 41 82 00 28 */ beq .L_80470708 -/* 804706E4 0046D624 38 9F 01 28 */ addi r4, r31, 0x128 -/* 804706E8 0046D628 38 A0 00 01 */ li r5, 1 -/* 804706EC 0046D62C 38 C0 00 64 */ li r6, 0x64 -/* 804706F0 0046D630 38 E0 00 64 */ li r7, 0x64 -/* 804706F4 0046D634 39 00 00 64 */ li r8, 0x64 -/* 804706F8 0046D638 4B FE 78 45 */ bl __ct__Q23PSM19ActorDirector_EnemyFPCcillUl -/* 804706FC 0046D63C 3C 60 80 4F */ lis r3, __vt__Q23PSM20ActorDirector_Battle@ha -/* 80470700 0046D640 38 03 DE 08 */ addi r0, r3, __vt__Q23PSM20ActorDirector_Battle@l -/* 80470704 0046D644 90 1E 00 00 */ stw r0, 0(r30) -.L_80470708: -/* 80470708 0046D648 28 1E 00 00 */ cmplwi r30, 0 -/* 8047070C 0046D64C 40 82 00 18 */ bne .L_80470724 -/* 80470710 0046D650 38 7F 00 00 */ addi r3, r31, 0 -/* 80470714 0046D654 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470718 0046D658 38 80 02 7F */ li r4, 0x27f -/* 8047071C 0046D65C 4C C6 31 82 */ crclr 6 -/* 80470720 0046D660 4B BB 9F 21 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470724: -/* 80470724 0046D664 3B 60 00 00 */ li r27, 0 -/* 80470728 0046D668 48 00 00 44 */ b .L_8047076C -.L_8047072C: -/* 8047072C 0046D66C 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470730 0046D670 38 1C 00 0A */ addi r0, r28, 0xa -/* 80470734 0046D674 2C 00 00 10 */ cmpwi r0, 0x10 -/* 80470738 0046D678 41 80 00 18 */ blt .L_80470750 -/* 8047073C 0046D67C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470740 0046D680 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470744 0046D684 38 80 01 A3 */ li r4, 0x1a3 -/* 80470748 0046D688 4C C6 31 82 */ crclr 6 -/* 8047074C 0046D68C 4B BB 9E F5 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470750: -/* 80470750 0046D690 57 84 10 3A */ slwi r4, r28, 2 -/* 80470754 0046D694 7F C3 F3 78 */ mr r3, r30 -/* 80470758 0046D698 38 04 00 9C */ addi r0, r4, 0x9c -/* 8047075C 0046D69C 7F 64 DB 78 */ mr r4, r27 -/* 80470760 0046D6A0 7C BD 00 2E */ lwzx r5, r29, r0 -/* 80470764 0046D6A4 4B ED 29 75 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 80470768 0046D6A8 3B 7B 00 01 */ addi r27, r27, 1 -.L_8047076C: -/* 8047076C 0046D6AC 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 80470770 0046D6B0 28 00 00 01 */ cmplwi r0, 1 -/* 80470774 0046D6B4 41 80 FF B8 */ blt .L_8047072C -/* 80470778 0046D6B8 38 60 00 18 */ li r3, 0x18 -/* 8047077C 0046D6BC 4B BB 37 29 */ bl __nw__FUl -/* 80470780 0046D6C0 7C 7D 1B 79 */ or. r29, r3, r3 -/* 80470784 0046D6C4 41 82 00 24 */ beq .L_804707A8 -/* 80470788 0046D6C8 7F C4 F3 78 */ mr r4, r30 -/* 8047078C 0046D6CC 38 A0 00 00 */ li r5, 0 -/* 80470790 0046D6D0 4B ED 35 F5 */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 80470794 0046D6D4 38 7D 00 0C */ addi r3, r29, 0xc -/* 80470798 0046D6D8 4B BB 61 39 */ bl initiate__10JSUPtrListFv -/* 8047079C 0046D6DC 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 804707A0 0046D6E0 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 804707A4 0046D6E4 90 1D 00 00 */ stw r0, 0(r29) -.L_804707A8: -/* 804707A8 0046D6E8 93 BE 00 64 */ stw r29, 0x64(r30) -/* 804707AC 0046D6EC 48 00 03 AC */ b .L_80470B58 -.L_804707B0: -/* 804707B0 0046D6F0 38 60 00 58 */ li r3, 0x58 -/* 804707B4 0046D6F4 4B BB 36 F1 */ bl __nw__FUl -/* 804707B8 0046D6F8 7C 60 1B 79 */ or. r0, r3, r3 -/* 804707BC 0046D6FC 41 82 00 1C */ beq .L_804707D8 -/* 804707C0 0046D700 38 9F 01 70 */ addi r4, r31, 0x170 -/* 804707C4 0046D704 38 A0 00 01 */ li r5, 1 -/* 804707C8 0046D708 38 C0 00 64 */ li r6, 0x64 -/* 804707CC 0046D70C 38 E0 00 64 */ li r7, 0x64 -/* 804707D0 0046D710 4B FE 6E B5 */ bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill -/* 804707D4 0046D714 7C 60 1B 78 */ mr r0, r3 -.L_804707D8: -/* 804707D8 0046D718 28 00 00 00 */ cmplwi r0, 0 -/* 804707DC 0046D71C 7C 1E 03 78 */ mr r30, r0 -/* 804707E0 0046D720 40 82 00 18 */ bne .L_804707F8 -/* 804707E4 0046D724 38 7F 00 00 */ addi r3, r31, 0 -/* 804707E8 0046D728 38 BF 00 1C */ addi r5, r31, 0x1c -/* 804707EC 0046D72C 38 80 02 96 */ li r4, 0x296 -/* 804707F0 0046D730 4C C6 31 82 */ crclr 6 -/* 804707F4 0046D734 4B BB 9E 4D */ bl panic_f__12JUTExceptionFPCciPCce -.L_804707F8: -/* 804707F8 0046D738 3B 60 00 00 */ li r27, 0 -/* 804707FC 0046D73C 48 00 00 44 */ b .L_80470840 -.L_80470800: -/* 80470800 0046D740 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470804 0046D744 38 1C 00 0B */ addi r0, r28, 0xb -/* 80470808 0046D748 2C 00 00 10 */ cmpwi r0, 0x10 -/* 8047080C 0046D74C 41 80 00 18 */ blt .L_80470824 -/* 80470810 0046D750 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470814 0046D754 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470818 0046D758 38 80 01 A3 */ li r4, 0x1a3 -/* 8047081C 0046D75C 4C C6 31 82 */ crclr 6 -/* 80470820 0046D760 4B BB 9E 21 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470824: -/* 80470824 0046D764 57 84 10 3A */ slwi r4, r28, 2 -/* 80470828 0046D768 7F C3 F3 78 */ mr r3, r30 -/* 8047082C 0046D76C 38 04 00 A0 */ addi r0, r4, 0xa0 -/* 80470830 0046D770 7F 64 DB 78 */ mr r4, r27 -/* 80470834 0046D774 7C BD 00 2E */ lwzx r5, r29, r0 -/* 80470838 0046D778 4B ED 28 A1 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8047083C 0046D77C 3B 7B 00 01 */ addi r27, r27, 1 -.L_80470840: -/* 80470840 0046D780 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 80470844 0046D784 28 00 00 01 */ cmplwi r0, 1 -/* 80470848 0046D788 41 80 FF B8 */ blt .L_80470800 -/* 8047084C 0046D78C 48 00 03 0C */ b .L_80470B58 -.L_80470850: -/* 80470850 0046D790 38 60 00 58 */ li r3, 0x58 -/* 80470854 0046D794 4B BB 36 51 */ bl __nw__FUl -/* 80470858 0046D798 7C 60 1B 79 */ or. r0, r3, r3 -/* 8047085C 0046D79C 41 82 00 1C */ beq .L_80470878 -/* 80470860 0046D7A0 38 9F 01 7C */ addi r4, r31, 0x17c -/* 80470864 0046D7A4 38 A0 00 01 */ li r5, 1 -/* 80470868 0046D7A8 38 C0 00 64 */ li r6, 0x64 -/* 8047086C 0046D7AC 38 E0 00 64 */ li r7, 0x64 -/* 80470870 0046D7B0 4B FE 6E 15 */ bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill -/* 80470874 0046D7B4 7C 60 1B 78 */ mr r0, r3 -.L_80470878: -/* 80470878 0046D7B8 28 00 00 00 */ cmplwi r0, 0 -/* 8047087C 0046D7BC 7C 1E 03 78 */ mr r30, r0 -/* 80470880 0046D7C0 40 82 00 18 */ bne .L_80470898 -/* 80470884 0046D7C4 38 7F 00 00 */ addi r3, r31, 0 -/* 80470888 0046D7C8 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8047088C 0046D7CC 38 80 02 BB */ li r4, 0x2bb -/* 80470890 0046D7D0 4C C6 31 82 */ crclr 6 -/* 80470894 0046D7D4 4B BB 9D AD */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470898: -/* 80470898 0046D7D8 3B 60 00 00 */ li r27, 0 -/* 8047089C 0046D7DC 48 00 00 44 */ b .L_804708E0 -.L_804708A0: -/* 804708A0 0046D7E0 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 804708A4 0046D7E4 38 1C 00 0C */ addi r0, r28, 0xc -/* 804708A8 0046D7E8 2C 00 00 10 */ cmpwi r0, 0x10 -/* 804708AC 0046D7EC 41 80 00 18 */ blt .L_804708C4 -/* 804708B0 0046D7F0 38 BF 00 1C */ addi r5, r31, 0x1c -/* 804708B4 0046D7F4 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 804708B8 0046D7F8 38 80 01 A3 */ li r4, 0x1a3 -/* 804708BC 0046D7FC 4C C6 31 82 */ crclr 6 -/* 804708C0 0046D800 4B BB 9D 81 */ bl panic_f__12JUTExceptionFPCciPCce -.L_804708C4: -/* 804708C4 0046D804 57 84 10 3A */ slwi r4, r28, 2 -/* 804708C8 0046D808 7F C3 F3 78 */ mr r3, r30 -/* 804708CC 0046D80C 38 04 00 A4 */ addi r0, r4, 0xa4 -/* 804708D0 0046D810 7F 64 DB 78 */ mr r4, r27 -/* 804708D4 0046D814 7C BD 00 2E */ lwzx r5, r29, r0 -/* 804708D8 0046D818 4B ED 28 01 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 804708DC 0046D81C 3B 7B 00 01 */ addi r27, r27, 1 -.L_804708E0: -/* 804708E0 0046D820 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 804708E4 0046D824 28 00 00 01 */ cmplwi r0, 1 -/* 804708E8 0046D828 41 80 FF B8 */ blt .L_804708A0 -/* 804708EC 0046D82C 48 00 02 6C */ b .L_80470B58 -.L_804708F0: -/* 804708F0 0046D830 38 60 00 58 */ li r3, 0x58 -/* 804708F4 0046D834 4B BB 35 B1 */ bl __nw__FUl -/* 804708F8 0046D838 7C 60 1B 79 */ or. r0, r3, r3 -/* 804708FC 0046D83C 41 82 00 1C */ beq .L_80470918 -/* 80470900 0046D840 38 9F 01 88 */ addi r4, r31, 0x188 -/* 80470904 0046D844 38 A0 00 01 */ li r5, 1 -/* 80470908 0046D848 38 C0 00 64 */ li r6, 0x64 -/* 8047090C 0046D84C 38 E0 00 64 */ li r7, 0x64 -/* 80470910 0046D850 4B FE 6D 75 */ bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill -/* 80470914 0046D854 7C 60 1B 78 */ mr r0, r3 -.L_80470918: -/* 80470918 0046D858 28 00 00 00 */ cmplwi r0, 0 -/* 8047091C 0046D85C 7C 1E 03 78 */ mr r30, r0 -/* 80470920 0046D860 40 82 00 18 */ bne .L_80470938 -/* 80470924 0046D864 38 7F 00 00 */ addi r3, r31, 0 -/* 80470928 0046D868 38 BF 00 1C */ addi r5, r31, 0x1c -/* 8047092C 0046D86C 38 80 02 D9 */ li r4, 0x2d9 -/* 80470930 0046D870 4C C6 31 82 */ crclr 6 -/* 80470934 0046D874 4B BB 9D 0D */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470938: -/* 80470938 0046D878 3B 60 00 00 */ li r27, 0 -/* 8047093C 0046D87C 48 00 00 44 */ b .L_80470980 -.L_80470940: -/* 80470940 0046D880 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470944 0046D884 38 1C 00 0D */ addi r0, r28, 0xd -/* 80470948 0046D888 2C 00 00 10 */ cmpwi r0, 0x10 -/* 8047094C 0046D88C 41 80 00 18 */ blt .L_80470964 -/* 80470950 0046D890 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470954 0046D894 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470958 0046D898 38 80 01 A3 */ li r4, 0x1a3 -/* 8047095C 0046D89C 4C C6 31 82 */ crclr 6 -/* 80470960 0046D8A0 4B BB 9C E1 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470964: -/* 80470964 0046D8A4 57 84 10 3A */ slwi r4, r28, 2 -/* 80470968 0046D8A8 7F C3 F3 78 */ mr r3, r30 -/* 8047096C 0046D8AC 38 04 00 A8 */ addi r0, r4, 0xa8 -/* 80470970 0046D8B0 7F 64 DB 78 */ mr r4, r27 -/* 80470974 0046D8B4 7C BD 00 2E */ lwzx r5, r29, r0 -/* 80470978 0046D8B8 4B ED 27 61 */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 8047097C 0046D8BC 3B 7B 00 01 */ addi r27, r27, 1 -.L_80470980: -/* 80470980 0046D8C0 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 80470984 0046D8C4 28 00 00 01 */ cmplwi r0, 1 -/* 80470988 0046D8C8 41 80 FF B8 */ blt .L_80470940 -/* 8047098C 0046D8CC 38 60 00 18 */ li r3, 0x18 -/* 80470990 0046D8D0 4B BB 35 15 */ bl __nw__FUl -/* 80470994 0046D8D4 7C 7D 1B 79 */ or. r29, r3, r3 -/* 80470998 0046D8D8 41 82 00 24 */ beq .L_804709BC -/* 8047099C 0046D8DC 7F C4 F3 78 */ mr r4, r30 -/* 804709A0 0046D8E0 38 A0 00 00 */ li r5, 0 -/* 804709A4 0046D8E4 4B ED 33 E1 */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 804709A8 0046D8E8 38 7D 00 0C */ addi r3, r29, 0xc -/* 804709AC 0046D8EC 4B BB 5F 25 */ bl initiate__10JSUPtrListFv -/* 804709B0 0046D8F0 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 804709B4 0046D8F4 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 804709B8 0046D8F8 90 1D 00 00 */ stw r0, 0(r29) -.L_804709BC: -/* 804709BC 0046D8FC 93 BE 00 54 */ stw r29, 0x54(r30) -/* 804709C0 0046D900 48 00 01 98 */ b .L_80470B58 -.L_804709C4: -/* 804709C4 0046D904 38 60 00 58 */ li r3, 0x58 -/* 804709C8 0046D908 4B BB 34 DD */ bl __nw__FUl -/* 804709CC 0046D90C 7C 60 1B 79 */ or. r0, r3, r3 -/* 804709D0 0046D910 41 82 00 1C */ beq .L_804709EC -/* 804709D4 0046D914 38 9F 01 94 */ addi r4, r31, 0x194 -/* 804709D8 0046D918 38 A0 00 01 */ li r5, 1 -/* 804709DC 0046D91C 38 C0 00 64 */ li r6, 0x64 -/* 804709E0 0046D920 38 E0 00 64 */ li r7, 0x64 -/* 804709E4 0046D924 4B FE 6C A1 */ bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill -/* 804709E8 0046D928 7C 60 1B 78 */ mr r0, r3 -.L_804709EC: -/* 804709EC 0046D92C 28 00 00 00 */ cmplwi r0, 0 -/* 804709F0 0046D930 7C 1E 03 78 */ mr r30, r0 -/* 804709F4 0046D934 40 82 00 18 */ bne .L_80470A0C -/* 804709F8 0046D938 38 7F 00 00 */ addi r3, r31, 0 -/* 804709FC 0046D93C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470A00 0046D940 38 80 02 F5 */ li r4, 0x2f5 -/* 80470A04 0046D944 4C C6 31 82 */ crclr 6 -/* 80470A08 0046D948 4B BB 9C 39 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470A0C: -/* 80470A0C 0046D94C 3B 60 00 00 */ li r27, 0 -/* 80470A10 0046D950 48 00 00 44 */ b .L_80470A54 -.L_80470A14: -/* 80470A14 0046D954 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470A18 0046D958 38 1C 00 0E */ addi r0, r28, 0xe -/* 80470A1C 0046D95C 2C 00 00 10 */ cmpwi r0, 0x10 -/* 80470A20 0046D960 41 80 00 18 */ blt .L_80470A38 -/* 80470A24 0046D964 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470A28 0046D968 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470A2C 0046D96C 38 80 01 A3 */ li r4, 0x1a3 -/* 80470A30 0046D970 4C C6 31 82 */ crclr 6 -/* 80470A34 0046D974 4B BB 9C 0D */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470A38: -/* 80470A38 0046D978 57 84 10 3A */ slwi r4, r28, 2 -/* 80470A3C 0046D97C 7F C3 F3 78 */ mr r3, r30 -/* 80470A40 0046D980 38 04 00 AC */ addi r0, r4, 0xac -/* 80470A44 0046D984 7F 64 DB 78 */ mr r4, r27 -/* 80470A48 0046D988 7C BD 00 2E */ lwzx r5, r29, r0 -/* 80470A4C 0046D98C 4B ED 26 8D */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 80470A50 0046D990 3B 7B 00 01 */ addi r27, r27, 1 -.L_80470A54: -/* 80470A54 0046D994 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 80470A58 0046D998 28 00 00 01 */ cmplwi r0, 1 -/* 80470A5C 0046D99C 41 80 FF B8 */ blt .L_80470A14 -/* 80470A60 0046D9A0 38 60 00 18 */ li r3, 0x18 -/* 80470A64 0046D9A4 4B BB 34 41 */ bl __nw__FUl -/* 80470A68 0046D9A8 7C 7D 1B 79 */ or. r29, r3, r3 -/* 80470A6C 0046D9AC 41 82 00 24 */ beq .L_80470A90 -/* 80470A70 0046D9B0 7F C4 F3 78 */ mr r4, r30 -/* 80470A74 0046D9B4 38 A0 00 00 */ li r5, 0 -/* 80470A78 0046D9B8 4B ED 33 0D */ bl __ct__Q28PSSystem17DirectorCopyActorFPQ28PSSystem12DirectorBasePQ28PSSystem12DirectorBase -/* 80470A7C 0046D9BC 38 7D 00 0C */ addi r3, r29, 0xc -/* 80470A80 0046D9C0 4B BB 5E 51 */ bl initiate__10JSUPtrListFv -/* 80470A84 0046D9C4 3C 60 80 4F */ lis r3, __vt__Q23PSM17ListDirectorActor@ha -/* 80470A88 0046D9C8 38 03 DF 10 */ addi r0, r3, __vt__Q23PSM17ListDirectorActor@l -/* 80470A8C 0046D9CC 90 1D 00 00 */ stw r0, 0(r29) -.L_80470A90: -/* 80470A90 0046D9D0 93 BE 00 54 */ stw r29, 0x54(r30) -/* 80470A94 0046D9D4 48 00 00 C4 */ b .L_80470B58 -.L_80470A98: -/* 80470A98 0046D9D8 38 60 00 58 */ li r3, 0x58 -/* 80470A9C 0046D9DC 4B BB 34 09 */ bl __nw__FUl -/* 80470AA0 0046D9E0 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470AA4 0046D9E4 41 82 00 2C */ beq .L_80470AD0 -/* 80470AA8 0046D9E8 38 BF 01 A0 */ addi r5, r31, 0x1a0 -/* 80470AAC 0046D9EC 38 80 00 01 */ li r4, 1 -/* 80470AB0 0046D9F0 38 C0 00 64 */ li r6, 0x64 -/* 80470AB4 0046D9F4 38 E0 00 64 */ li r7, 0x64 -/* 80470AB8 0046D9F8 4B FE 67 F9 */ bl __ct__Q23PSM19TrackOnDirectorBaseFiPCcll -/* 80470ABC 0046D9FC 3C 60 80 4F */ lis r3, __vt__Q23PSM22TrackOnDirector_Voting@ha -/* 80470AC0 0046DA00 38 00 00 00 */ li r0, 0 -/* 80470AC4 0046DA04 38 63 DF 60 */ addi r3, r3, __vt__Q23PSM22TrackOnDirector_Voting@l -/* 80470AC8 0046DA08 90 7E 00 00 */ stw r3, 0(r30) -/* 80470ACC 0046DA0C 98 1E 00 54 */ stb r0, 0x54(r30) -.L_80470AD0: -/* 80470AD0 0046DA10 28 1E 00 00 */ cmplwi r30, 0 -/* 80470AD4 0046DA14 40 82 00 18 */ bne .L_80470AEC -/* 80470AD8 0046DA18 38 7F 00 00 */ addi r3, r31, 0 -/* 80470ADC 0046DA1C 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470AE0 0046DA20 38 80 03 10 */ li r4, 0x310 -/* 80470AE4 0046DA24 4C C6 31 82 */ crclr 6 -/* 80470AE8 0046DA28 4B BB 9B 59 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470AEC: -/* 80470AEC 0046DA2C 3B 60 00 00 */ li r27, 0 -/* 80470AF0 0046DA30 48 00 00 44 */ b .L_80470B34 -.L_80470AF4: -/* 80470AF4 0046DA34 57 7C 06 3E */ clrlwi r28, r27, 0x18 -/* 80470AF8 0046DA38 38 1C 00 0F */ addi r0, r28, 0xf -/* 80470AFC 0046DA3C 2C 00 00 10 */ cmpwi r0, 0x10 -/* 80470B00 0046DA40 41 80 00 18 */ blt .L_80470B18 -/* 80470B04 0046DA44 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470B08 0046DA48 38 62 2A 1C */ addi r3, r2, lbl_80520D7C@sda21 -/* 80470B0C 0046DA4C 38 80 01 A3 */ li r4, 0x1a3 -/* 80470B10 0046DA50 4C C6 31 82 */ crclr 6 -/* 80470B14 0046DA54 4B BB 9B 2D */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470B18: -/* 80470B18 0046DA58 57 84 10 3A */ slwi r4, r28, 2 -/* 80470B1C 0046DA5C 7F C3 F3 78 */ mr r3, r30 -/* 80470B20 0046DA60 38 04 00 B0 */ addi r0, r4, 0xb0 -/* 80470B24 0046DA64 7F 64 DB 78 */ mr r4, r27 -/* 80470B28 0046DA68 7C BD 00 2E */ lwzx r5, r29, r0 -/* 80470B2C 0046DA6C 4B ED 25 AD */ bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase -/* 80470B30 0046DA70 3B 7B 00 01 */ addi r27, r27, 1 -.L_80470B34: -/* 80470B34 0046DA74 57 60 06 3E */ clrlwi r0, r27, 0x18 -/* 80470B38 0046DA78 28 00 00 01 */ cmplwi r0, 1 -/* 80470B3C 0046DA7C 41 80 FF B8 */ blt .L_80470AF4 -/* 80470B40 0046DA80 48 00 00 18 */ b .L_80470B58 -.L_80470B44: -/* 80470B44 0046DA84 38 7F 00 00 */ addi r3, r31, 0 -/* 80470B48 0046DA88 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470B4C 0046DA8C 38 80 03 17 */ li r4, 0x317 -/* 80470B50 0046DA90 4C C6 31 82 */ crclr 6 -/* 80470B54 0046DA94 4B BB 9A ED */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470B58: -/* 80470B58 0046DA98 28 1E 00 00 */ cmplwi r30, 0 -/* 80470B5C 0046DA9C 40 82 00 18 */ bne .L_80470B74 -/* 80470B60 0046DAA0 38 7F 00 00 */ addi r3, r31, 0 -/* 80470B64 0046DAA4 38 BF 00 1C */ addi r5, r31, 0x1c -/* 80470B68 0046DAA8 38 80 03 1D */ li r4, 0x31d -/* 80470B6C 0046DAAC 4C C6 31 82 */ crclr 6 -/* 80470B70 0046DAB0 4B BB 9A D1 */ bl panic_f__12JUTExceptionFPCciPCce -.L_80470B74: -/* 80470B74 0046DAB4 7F C3 F3 78 */ mr r3, r30 -/* 80470B78 0046DAB8 BB 61 00 0C */ lmw r27, 0xc(r1) -/* 80470B7C 0046DABC 80 01 00 24 */ lwz r0, 0x24(r1) -/* 80470B80 0046DAC0 7C 08 03 A6 */ mtlr r0 -/* 80470B84 0046DAC4 38 21 00 20 */ addi r1, r1, 0x20 -/* 80470B88 0046DAC8 4E 80 00 20 */ blr -.endfn newDirector__Q23PSM20DirectorMgr_2PBattleFUcRQ28PSSystem11DirectedBgm - -.fn __dt__Q23PSM20DirectorMgr_2PBattleFv, weak -/* 80470B8C 0046DACC 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470B90 0046DAD0 7C 08 02 A6 */ mflr r0 -/* 80470B94 0046DAD4 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470B98 0046DAD8 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470B9C 0046DADC 7C 9F 23 78 */ mr r31, r4 -/* 80470BA0 0046DAE0 93 C1 00 08 */ stw r30, 8(r1) -/* 80470BA4 0046DAE4 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470BA8 0046DAE8 41 82 00 54 */ beq .L_80470BFC -/* 80470BAC 0046DAEC 3C 80 80 4F */ lis r4, __vt__Q23PSM20DirectorMgr_2PBattle@ha -/* 80470BB0 0046DAF0 38 7E 00 0C */ addi r3, r30, 0xc -/* 80470BB4 0046DAF4 38 A4 F8 E0 */ addi r5, r4, __vt__Q23PSM20DirectorMgr_2PBattle@l -/* 80470BB8 0046DAF8 38 80 00 00 */ li r4, 0 -/* 80470BBC 0046DAFC 90 BE 00 00 */ stw r5, 0(r30) -/* 80470BC0 0046DB00 38 05 00 10 */ addi r0, r5, 0x10 -/* 80470BC4 0046DB04 90 1E 00 0C */ stw r0, 0xc(r30) -/* 80470BC8 0046DB08 4B BA C4 6D */ bl __dt__11JKRDisposerFv -/* 80470BCC 0046DB0C 28 1E 00 00 */ cmplwi r30, 0 -/* 80470BD0 0046DB10 41 82 00 1C */ beq .L_80470BEC -/* 80470BD4 0046DB14 3C 80 80 4E */ lis r4, __vt__Q28PSSystem15DirectorMgrBase@ha -/* 80470BD8 0046DB18 7F C3 F3 78 */ mr r3, r30 -/* 80470BDC 0046DB1C 38 04 AF C0 */ addi r0, r4, __vt__Q28PSSystem15DirectorMgrBase@l -/* 80470BE0 0046DB20 38 80 00 00 */ li r4, 0 -/* 80470BE4 0046DB24 90 1E 00 00 */ stw r0, 0(r30) -/* 80470BE8 0046DB28 4B C4 96 15 */ bl __dt__10JADHioNodeFv -.L_80470BEC: -/* 80470BEC 0046DB2C 7F E0 07 35 */ extsh. r0, r31 -/* 80470BF0 0046DB30 40 81 00 0C */ ble .L_80470BFC -/* 80470BF4 0046DB34 7F C3 F3 78 */ mr r3, r30 -/* 80470BF8 0046DB38 4B BB 34 BD */ bl __dl__FPv -.L_80470BFC: -/* 80470BFC 0046DB3C 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470C00 0046DB40 7F C3 F3 78 */ mr r3, r30 -/* 80470C04 0046DB44 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470C08 0046DB48 83 C1 00 08 */ lwz r30, 8(r1) -/* 80470C0C 0046DB4C 7C 08 03 A6 */ mtlr r0 -/* 80470C10 0046DB50 38 21 00 10 */ addi r1, r1, 0x10 -/* 80470C14 0046DB54 4E 80 00 20 */ blr -.endfn __dt__Q23PSM20DirectorMgr_2PBattleFv - -.fn __dt__Q23PSM18DirectorMgr_BattleFv, weak -/* 80470C18 0046DB58 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470C1C 0046DB5C 7C 08 02 A6 */ mflr r0 -/* 80470C20 0046DB60 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470C24 0046DB64 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470C28 0046DB68 7C 9F 23 78 */ mr r31, r4 -/* 80470C2C 0046DB6C 93 C1 00 08 */ stw r30, 8(r1) -/* 80470C30 0046DB70 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470C34 0046DB74 41 82 00 54 */ beq .L_80470C88 -/* 80470C38 0046DB78 3C 80 80 4F */ lis r4, __vt__Q23PSM18DirectorMgr_Battle@ha -/* 80470C3C 0046DB7C 38 7E 00 0C */ addi r3, r30, 0xc -/* 80470C40 0046DB80 38 A4 F8 FC */ addi r5, r4, __vt__Q23PSM18DirectorMgr_Battle@l -/* 80470C44 0046DB84 38 80 00 00 */ li r4, 0 -/* 80470C48 0046DB88 90 BE 00 00 */ stw r5, 0(r30) -/* 80470C4C 0046DB8C 38 05 00 10 */ addi r0, r5, 0x10 -/* 80470C50 0046DB90 90 1E 00 0C */ stw r0, 0xc(r30) -/* 80470C54 0046DB94 4B BA C3 E1 */ bl __dt__11JKRDisposerFv -/* 80470C58 0046DB98 28 1E 00 00 */ cmplwi r30, 0 -/* 80470C5C 0046DB9C 41 82 00 1C */ beq .L_80470C78 -/* 80470C60 0046DBA0 3C 80 80 4E */ lis r4, __vt__Q28PSSystem15DirectorMgrBase@ha -/* 80470C64 0046DBA4 7F C3 F3 78 */ mr r3, r30 -/* 80470C68 0046DBA8 38 04 AF C0 */ addi r0, r4, __vt__Q28PSSystem15DirectorMgrBase@l -/* 80470C6C 0046DBAC 38 80 00 00 */ li r4, 0 -/* 80470C70 0046DBB0 90 1E 00 00 */ stw r0, 0(r30) -/* 80470C74 0046DBB4 4B C4 95 89 */ bl __dt__10JADHioNodeFv -.L_80470C78: -/* 80470C78 0046DBB8 7F E0 07 35 */ extsh. r0, r31 -/* 80470C7C 0046DBBC 40 81 00 0C */ ble .L_80470C88 -/* 80470C80 0046DBC0 7F C3 F3 78 */ mr r3, r30 -/* 80470C84 0046DBC4 4B BB 34 31 */ bl __dl__FPv -.L_80470C88: -/* 80470C88 0046DBC8 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470C8C 0046DBCC 7F C3 F3 78 */ mr r3, r30 -/* 80470C90 0046DBD0 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470C94 0046DBD4 83 C1 00 08 */ lwz r30, 8(r1) -/* 80470C98 0046DBD8 7C 08 03 A6 */ mtlr r0 -/* 80470C9C 0046DBDC 38 21 00 10 */ addi r1, r1, 0x10 -/* 80470CA0 0046DBE0 4E 80 00 20 */ blr -.endfn __dt__Q23PSM18DirectorMgr_BattleFv - -.fn __dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv, weak -/* 80470CA4 0046DBE4 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470CA8 0046DBE8 7C 08 02 A6 */ mflr r0 -/* 80470CAC 0046DBEC 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470CB0 0046DBF0 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470CB4 0046DBF4 7C 9F 23 78 */ mr r31, r4 -/* 80470CB8 0046DBF8 93 C1 00 08 */ stw r30, 8(r1) -/* 80470CBC 0046DBFC 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470CC0 0046DC00 41 82 00 6C */ beq .L_80470D2C -/* 80470CC4 0046DC04 3C 60 80 4F */ lis r3, __vt__Q23PSM25DirectorMgr_Scene_AutoBgm@ha -/* 80470CC8 0046DC08 38 63 F9 18 */ addi r3, r3, __vt__Q23PSM25DirectorMgr_Scene_AutoBgm@l -/* 80470CCC 0046DC0C 90 7E 00 00 */ stw r3, 0(r30) -/* 80470CD0 0046DC10 38 03 00 10 */ addi r0, r3, 0x10 -/* 80470CD4 0046DC14 90 1E 00 0C */ stw r0, 0xc(r30) -/* 80470CD8 0046DC18 41 82 00 44 */ beq .L_80470D1C -/* 80470CDC 0046DC1C 3C 80 80 4F */ lis r4, __vt__Q23PSM17DirectorMgr_Scene@ha -/* 80470CE0 0046DC20 38 7E 00 0C */ addi r3, r30, 0xc -/* 80470CE4 0046DC24 38 A4 F9 80 */ addi r5, r4, __vt__Q23PSM17DirectorMgr_Scene@l -/* 80470CE8 0046DC28 38 80 00 00 */ li r4, 0 -/* 80470CEC 0046DC2C 90 BE 00 00 */ stw r5, 0(r30) -/* 80470CF0 0046DC30 38 05 00 10 */ addi r0, r5, 0x10 -/* 80470CF4 0046DC34 90 1E 00 0C */ stw r0, 0xc(r30) -/* 80470CF8 0046DC38 4B BA C3 3D */ bl __dt__11JKRDisposerFv -/* 80470CFC 0046DC3C 28 1E 00 00 */ cmplwi r30, 0 -/* 80470D00 0046DC40 41 82 00 1C */ beq .L_80470D1C -/* 80470D04 0046DC44 3C 80 80 4E */ lis r4, __vt__Q28PSSystem15DirectorMgrBase@ha -/* 80470D08 0046DC48 7F C3 F3 78 */ mr r3, r30 -/* 80470D0C 0046DC4C 38 04 AF C0 */ addi r0, r4, __vt__Q28PSSystem15DirectorMgrBase@l -/* 80470D10 0046DC50 38 80 00 00 */ li r4, 0 -/* 80470D14 0046DC54 90 1E 00 00 */ stw r0, 0(r30) -/* 80470D18 0046DC58 4B C4 94 E5 */ bl __dt__10JADHioNodeFv -.L_80470D1C: -/* 80470D1C 0046DC5C 7F E0 07 35 */ extsh. r0, r31 -/* 80470D20 0046DC60 40 81 00 0C */ ble .L_80470D2C -/* 80470D24 0046DC64 7F C3 F3 78 */ mr r3, r30 -/* 80470D28 0046DC68 4B BB 33 8D */ bl __dl__FPv -.L_80470D2C: -/* 80470D2C 0046DC6C 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470D30 0046DC70 7F C3 F3 78 */ mr r3, r30 -/* 80470D34 0046DC74 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470D38 0046DC78 83 C1 00 08 */ lwz r30, 8(r1) -/* 80470D3C 0046DC7C 7C 08 03 A6 */ mtlr r0 -/* 80470D40 0046DC80 38 21 00 10 */ addi r1, r1, 0x10 -/* 80470D44 0046DC84 4E 80 00 20 */ blr -.endfn __dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv - -.section .text, "ax", unique, 1 -.fn isSlave__Q23PSM17DirectorMgr_SceneFv, weak -/* 80470D48 0046DC88 80 63 00 44 */ lwz r3, 0x44(r3) -/* 80470D4C 0046DC8C 7C 03 00 D0 */ neg r0, r3 -/* 80470D50 0046DC90 7C 00 1B 78 */ or r0, r0, r3 -/* 80470D54 0046DC94 54 03 0F FE */ srwi r3, r0, 0x1f -/* 80470D58 0046DC98 4E 80 00 20 */ blr -.endfn isSlave__Q23PSM17DirectorMgr_SceneFv - -.section .text, "ax", unique, 2 -.fn __dt__Q23PSM15BgmTrackMapFileFv, weak -/* 80470D5C 0046DC9C 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470D60 0046DCA0 7C 08 02 A6 */ mflr r0 -/* 80470D64 0046DCA4 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470D68 0046DCA8 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470D6C 0046DCAC 7C 9F 23 78 */ mr r31, r4 -/* 80470D70 0046DCB0 93 C1 00 08 */ stw r30, 8(r1) -/* 80470D74 0046DCB4 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470D78 0046DCB8 41 82 00 50 */ beq .L_80470DC8 -/* 80470D7C 0046DCBC 3C 60 80 4F */ lis r3, __vt__Q23PSM15BgmTrackMapFile@ha -/* 80470D80 0046DCC0 34 1E 00 1C */ addic. r0, r30, 0x1c -/* 80470D84 0046DCC4 38 63 FA A8 */ addi r3, r3, __vt__Q23PSM15BgmTrackMapFile@l -/* 80470D88 0046DCC8 90 7E 00 00 */ stw r3, 0(r30) -/* 80470D8C 0046DCCC 38 03 00 10 */ addi r0, r3, 0x10 -/* 80470D90 0046DCD0 90 1E 00 1C */ stw r0, 0x1c(r30) -/* 80470D94 0046DCD4 41 82 00 18 */ beq .L_80470DAC -/* 80470D98 0046DCD8 3C 60 80 4F */ lis r3, "__vt__Q28PSSystem38SingletonBase"@ha -/* 80470D9C 0046DCDC 38 00 00 00 */ li r0, 0 -/* 80470DA0 0046DCE0 38 63 F9 74 */ addi r3, r3, "__vt__Q28PSSystem38SingletonBase"@l -/* 80470DA4 0046DCE4 90 7E 00 1C */ stw r3, 0x1c(r30) -/* 80470DA8 0046DCE8 90 0D 91 C0 */ stw r0, "sInstance__Q28PSSystem38SingletonBase"@sda21(r13) -.L_80470DAC: -/* 80470DAC 0046DCEC 7F C3 F3 78 */ mr r3, r30 -/* 80470DB0 0046DCF0 38 80 00 00 */ li r4, 0 -/* 80470DB4 0046DCF4 4B EC 7C 11 */ bl __dt__Q28PSSystem12TextDataBaseFv -/* 80470DB8 0046DCF8 7F E0 07 35 */ extsh. r0, r31 -/* 80470DBC 0046DCFC 40 81 00 0C */ ble .L_80470DC8 -/* 80470DC0 0046DD00 7F C3 F3 78 */ mr r3, r30 -/* 80470DC4 0046DD04 4B BB 32 F1 */ bl __dl__FPv -.L_80470DC8: -/* 80470DC8 0046DD08 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470DCC 0046DD0C 7F C3 F3 78 */ mr r3, r30 -/* 80470DD0 0046DD10 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470DD4 0046DD14 83 C1 00 08 */ lwz r30, 8(r1) -/* 80470DD8 0046DD18 7C 08 03 A6 */ mtlr r0 -/* 80470DDC 0046DD1C 38 21 00 10 */ addi r1, r1, 0x10 -/* 80470DE0 0046DD20 4E 80 00 20 */ blr -.endfn __dt__Q23PSM15BgmTrackMapFileFv - -.section .text, "ax", unique, 3 -.fn __dt__Q23PSM19GroundDirector_CaveFv, weak -/* 80470DE4 0046DD24 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470DE8 0046DD28 7C 08 02 A6 */ mflr r0 -/* 80470DEC 0046DD2C 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470DF0 0046DD30 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470DF4 0046DD34 7C 9F 23 78 */ mr r31, r4 -/* 80470DF8 0046DD38 93 C1 00 08 */ stw r30, 8(r1) -/* 80470DFC 0046DD3C 7C 7E 1B 79 */ or. r30, r3, r3 -/* 80470E00 0046DD40 41 82 00 78 */ beq .L_80470E78 -/* 80470E04 0046DD44 3C 80 80 4F */ lis r4, __vt__Q23PSM19GroundDirector_Cave@ha -/* 80470E08 0046DD48 38 04 F9 3C */ addi r0, r4, __vt__Q23PSM19GroundDirector_Cave@l -/* 80470E0C 0046DD4C 90 1E 00 00 */ stw r0, 0(r30) -/* 80470E10 0046DD50 41 82 00 58 */ beq .L_80470E68 -/* 80470E14 0046DD54 3C 80 80 4F */ lis r4, __vt__Q23PSM21ActorDirector_TrackOn@ha -/* 80470E18 0046DD58 38 04 DE D8 */ addi r0, r4, __vt__Q23PSM21ActorDirector_TrackOn@l -/* 80470E1C 0046DD5C 90 1E 00 00 */ stw r0, 0(r30) -/* 80470E20 0046DD60 41 82 00 48 */ beq .L_80470E68 -/* 80470E24 0046DD64 3C 80 80 4F */ lis r4, __vt__Q23PSM19TrackOnDirectorBase@ha -/* 80470E28 0046DD68 38 04 DF 98 */ addi r0, r4, __vt__Q23PSM19TrackOnDirectorBase@l -/* 80470E2C 0046DD6C 90 1E 00 00 */ stw r0, 0(r30) -/* 80470E30 0046DD70 41 82 00 38 */ beq .L_80470E68 -/* 80470E34 0046DD74 3C 80 80 4F */ lis r4, __vt__Q23PSM16SwitcherDirector@ha -/* 80470E38 0046DD78 38 04 E0 B0 */ addi r0, r4, __vt__Q23PSM16SwitcherDirector@l -/* 80470E3C 0046DD7C 90 1E 00 00 */ stw r0, 0(r30) -/* 80470E40 0046DD80 41 82 00 28 */ beq .L_80470E68 -/* 80470E44 0046DD84 3C 80 80 4E */ lis r4, __vt__Q28PSSystem16SwitcherDirector@ha -/* 80470E48 0046DD88 38 04 AF D0 */ addi r0, r4, __vt__Q28PSSystem16SwitcherDirector@l -/* 80470E4C 0046DD8C 90 1E 00 00 */ stw r0, 0(r30) -/* 80470E50 0046DD90 41 82 00 18 */ beq .L_80470E68 -/* 80470E54 0046DD94 3C A0 80 4E */ lis r5, __vt__Q28PSSystem12DirectorBase@ha -/* 80470E58 0046DD98 38 80 00 00 */ li r4, 0 -/* 80470E5C 0046DD9C 38 05 B0 40 */ addi r0, r5, __vt__Q28PSSystem12DirectorBase@l -/* 80470E60 0046DDA0 90 1E 00 00 */ stw r0, 0(r30) -/* 80470E64 0046DDA4 4B C4 93 99 */ bl __dt__10JADHioNodeFv -.L_80470E68: -/* 80470E68 0046DDA8 7F E0 07 35 */ extsh. r0, r31 -/* 80470E6C 0046DDAC 40 81 00 0C */ ble .L_80470E78 -/* 80470E70 0046DDB0 7F C3 F3 78 */ mr r3, r30 -/* 80470E74 0046DDB4 4B BB 32 41 */ bl __dl__FPv -.L_80470E78: -/* 80470E78 0046DDB8 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470E7C 0046DDBC 7F C3 F3 78 */ mr r3, r30 -/* 80470E80 0046DDC0 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470E84 0046DDC4 83 C1 00 08 */ lwz r30, 8(r1) -/* 80470E88 0046DDC8 7C 08 03 A6 */ mtlr r0 -/* 80470E8C 0046DDCC 38 21 00 10 */ addi r1, r1, 0x10 -/* 80470E90 0046DDD0 4E 80 00 20 */ blr -.endfn __dt__Q23PSM19GroundDirector_CaveFv - -.section .text, "ax", unique, 4 -.fn directOn__Q23PSM19GroundDirector_CaveFv, weak -/* 80470E94 0046DDD4 4E 80 00 20 */ blr -.endfn directOn__Q23PSM19GroundDirector_CaveFv - -.fn directOff__Q23PSM19GroundDirector_CaveFv, weak -/* 80470E98 0046DDD8 4E 80 00 20 */ blr -.endfn directOff__Q23PSM19GroundDirector_CaveFv - -.section .text, "ax", unique, 5 -.fn __dt__Q28PSSystem38SingletonBaseFv, weak -/* 80470E9C 0046DDDC 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 80470EA0 0046DDE0 7C 08 02 A6 */ mflr r0 -/* 80470EA4 0046DDE4 90 01 00 14 */ stw r0, 0x14(r1) -/* 80470EA8 0046DDE8 93 E1 00 0C */ stw r31, 0xc(r1) -/* 80470EAC 0046DDEC 7C 7F 1B 79 */ or. r31, r3, r3 -/* 80470EB0 0046DDF0 41 82 00 24 */ beq .L_80470ED4 -/* 80470EB4 0046DDF4 3C A0 80 4F */ lis r5, "__vt__Q28PSSystem38SingletonBase"@ha -/* 80470EB8 0046DDF8 7C 80 07 35 */ extsh. r0, r4 -/* 80470EBC 0046DDFC 38 85 F9 74 */ addi r4, r5, "__vt__Q28PSSystem38SingletonBase"@l -/* 80470EC0 0046DE00 38 00 00 00 */ li r0, 0 -/* 80470EC4 0046DE04 90 9F 00 00 */ stw r4, 0(r31) -/* 80470EC8 0046DE08 90 0D 91 C0 */ stw r0, "sInstance__Q28PSSystem38SingletonBase"@sda21(r13) -/* 80470ECC 0046DE0C 40 81 00 08 */ ble .L_80470ED4 -/* 80470ED0 0046DE10 4B BB 31 E5 */ bl __dl__FPv -.L_80470ED4: -/* 80470ED4 0046DE14 80 01 00 14 */ lwz r0, 0x14(r1) -/* 80470ED8 0046DE18 7F E3 FB 78 */ mr r3, r31 -/* 80470EDC 0046DE1C 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 80470EE0 0046DE20 7C 08 03 A6 */ mtlr r0 -/* 80470EE4 0046DE24 38 21 00 10 */ addi r1, r1, 0x10 -/* 80470EE8 0046DE28 4E 80 00 20 */ blr -.endfn __dt__Q28PSSystem38SingletonBaseFv - -.fn "@12@__dt__Q23PSM17DirectorMgr_SceneFv", weak -/* 80470EEC 0046DE2C 38 63 FF F4 */ addi r3, r3, -12 -/* 80470EF0 0046DE30 4B FF E6 A4 */ b __dt__Q23PSM17DirectorMgr_SceneFv -.endfn "@12@__dt__Q23PSM17DirectorMgr_SceneFv" - -.fn "@12@__dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv", weak -/* 80470EF4 0046DE34 38 63 FF F4 */ addi r3, r3, -12 -/* 80470EF8 0046DE38 4B FF FD AC */ b __dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv -.endfn "@12@__dt__Q23PSM25DirectorMgr_Scene_AutoBgmFv" - -.fn "@12@__dt__Q23PSM18DirectorMgr_BattleFv", weak -/* 80470EFC 0046DE3C 38 63 FF F4 */ addi r3, r3, -12 -/* 80470F00 0046DE40 4B FF FD 18 */ b __dt__Q23PSM18DirectorMgr_BattleFv -.endfn "@12@__dt__Q23PSM18DirectorMgr_BattleFv" - -.fn "@12@__dt__Q23PSM20DirectorMgr_2PBattleFv", weak -/* 80470F04 0046DE44 38 63 FF F4 */ addi r3, r3, -12 -/* 80470F08 0046DE48 4B FF FC 84 */ b __dt__Q23PSM20DirectorMgr_2PBattleFv -.endfn "@12@__dt__Q23PSM20DirectorMgr_2PBattleFv" diff --git a/docs/recommended_todo.md b/docs/recommended_todo.md index bdf09e7cc..961adabf1 100644 --- a/docs/recommended_todo.md +++ b/docs/recommended_todo.md @@ -29,7 +29,7 @@ | JAudio//JAI/JAIInitData.cpp | 10317 | JStudio_JStage/object-light.cpp | 10504 | | JAudio//JAS/JASDSPChannel.cpp | 11896 | JAudio//JAS/JASTaskThread.cpp | 12200 | | JAudio//JAS/JASWSParser.cpp | 12435 | JParticle/JPADynamicsBlock.cpp | 12718 | -| JMessage/resource.cpp | 13104 | JStudio/stb.cpp | 13283 | +| JMessage/resource.cpp | 13104 | JStudio/stb.cpp | 13328 | | J3D/J3DJoint.cpp | 13780 | JAudio//JAS/JASAiCtrl.cpp | 14267 | | J3D/J3DShape.cpp | 14990 | J2D/J2DMaterial.cpp | 15401 | | JStudio_JParticle/object-particle.cpp | 16851 | J3D/J3DCluster.cpp | 18929 | @@ -183,8 +183,8 @@ | ---- | ---- | ---- | ---- | | PSMainSide_CreaturePrm.cpp | 2600 | PSMainSide_ObjCalc.cpp | 7679 | | PSMainSide_Sound.cpp | 11782 | PSMainSide_BossMgr.cpp | 17462 | -| PSMainSide_DirectorMgr.cpp | 24980 | PSMainSide_Director.cpp | 28380 | -| PSMainSide_Se.cpp | 45066 | PSMainSide_Scene.cpp | 49598 | -| PSMainSide_ObjSound.cpp | 74677 | PSMainSide_Factory.cpp | 88157 | +| PSMainSide_Director.cpp | 28380 | PSMainSide_Se.cpp | 45066 | +| PSMainSide_Scene.cpp | 49598 | PSMainSide_ObjSound.cpp | 74677 | +| PSMainSide_Factory.cpp | 88157 | | | diff --git a/include/PSM/DirectorMgr.h b/include/PSM/DirectorMgr.h index f50ba9ff5..bc81a3916 100644 --- a/include/PSM/DirectorMgr.h +++ b/include/PSM/DirectorMgr.h @@ -19,6 +19,7 @@ struct DirectorMgr_Scene : public ::PSSystem::DirectorMgrBase, public JKRDispose Director_Pikmin = 5, // missing notes when pikmin die Director_Damage = 6, // distortion when getting hit Director_Tempo = 7, // slow music when low health + Director_COUNT, // 8 }; DirectorMgr_Scene(DirectorMgr_Scene*, u8); @@ -50,7 +51,7 @@ struct DirectorMgr_Scene_AutoBgm : public DirectorMgr_Scene { { } - virtual ~DirectorMgr_Scene_AutoBgm() { } // _08 (weak) + // virtual ~DirectorMgr_Scene_AutoBgm() { } // _08 (weak) virtual PikminNumberDirector* newPikminNumberDirector(int, u8, ::PSSystem::DirectedBgm&); // _20 // _00 = VTBL 1 @@ -61,7 +62,7 @@ struct DirectorMgr_Scene_AutoBgm : public DirectorMgr_Scene { struct DirectorMgr_Battle : public ::PSSystem::DirectorMgrBase, public JKRDisposer { DirectorMgr_Battle(); - virtual ~DirectorMgr_Battle() { } // _08 (weak) + // virtual ~DirectorMgr_Battle() { } // _08 (weak) virtual ::PSSystem::DirectorBase* newDirector(u8, ::PSSystem::DirectedBgm&); // _0C // _00 = VTBL 1 (DirectorMgrBase) @@ -85,7 +86,7 @@ struct DirectorMgr_2PBattle : public ::PSSystem::DirectorMgrBase, public JKRDisp DirectorMgr_2PBattle(); - virtual ~DirectorMgr_2PBattle() { } // _08 (weak) + // virtual ~DirectorMgr_2PBattle() { } // _08 (weak) virtual ::PSSystem::DirectorBase* newDirector(u8, ::PSSystem::DirectedBgm&); // _0C // _00 = VTBL 1 (DirectorMgrBase) diff --git a/libs.json b/libs.json index ee625673c..63061cbda 100644 --- a/libs.json +++ b/libs.json @@ -1742,7 +1742,7 @@ ["utilityU/PSMainSide_Scene", false], ["utilityU/PSMainSide_BossMgr", false], ["utilityU/PSMainSide_Se", false], - ["utilityU/PSMainSide_DirectorMgr", false], + ["utilityU/PSMainSide_DirectorMgr", true], ["utilityU/PSMainSide_Sound", false], ["utilityU/PSMainSide_TrackMap", true], ["utilityU/PSMainSide_CreaturePrm", false], diff --git a/src/JSystem/JStudio/stb.cpp b/src/JSystem/JStudio/stb.cpp index 3ba33dc52..bcb4c1779 100644 --- a/src/JSystem/JStudio/stb.cpp +++ b/src/JSystem/JStudio/stb.cpp @@ -463,7 +463,13 @@ bool TControl::forward(u32 time) u32 statusAnd = 0x0f; u32 statusOr = 0; - for (JGadget::TContainerEnumerator_> it(mObjectContainer); it.enumerator;) { + // someone typedef JGadget::TLinkList so we can get rid of this pls + // the issue is C++ requires a space between >s in templates but clang-format eats it + + // clang-format off + for (JGadget::TContainerEnumerator_ > it(mObjectContainer); it.enumerator;) { + // clang-format on + // this sucks, ideally `*it` should return a `TObject&` or `TObject*`, but idk how to set that up p = &**it.enumerator; TObject::TEStatus s; diff --git a/src/utilityU/Makefile b/src/utilityU/Makefile index 4f5769e31..295e7ee98 100644 --- a/src/utilityU/Makefile +++ b/src/utilityU/Makefile @@ -7,7 +7,7 @@ UTILITY_FILES:=\ $(BUILD_DIR)/asm/utilityU/PSMainSide_Scene.o\ $(BUILD_DIR)/asm/utilityU/PSMainSide_BossMgr.o\ $(BUILD_DIR)/asm/utilityU/PSMainSide_Se.o\ - $(BUILD_DIR)/asm/utilityU/PSMainSide_DirectorMgr.o\ + $(BUILD_DIR)/src/utilityU/PSMainSide_DirectorMgr.o\ $(BUILD_DIR)/asm/utilityU/PSMainSide_Sound.o\ $(BUILD_DIR)/src/utilityU/PSMainSide_TrackMap.o\ $(BUILD_DIR)/asm/utilityU/PSMainSide_CreaturePrm.o\ diff --git a/src/utilityU/PSMainSide_DirectorMgr.cpp b/src/utilityU/PSMainSide_DirectorMgr.cpp index 7ddf96842..f3f213f7a 100644 --- a/src/utilityU/PSMainSide_DirectorMgr.cpp +++ b/src/utilityU/PSMainSide_DirectorMgr.cpp @@ -12,32 +12,32 @@ namespace PSM { * @note Size: 0x2D8 */ DirectorMgr_Scene::DirectorMgr_Scene(DirectorMgr_Scene* owner, u8 type) - : ::PSSystem::DirectorMgrBase(type) + : PSSystem::DirectorMgrBase(type) , mOwner(owner) { if (!isSlave()) { - for (u8 i = 0; i < 8; i++) { + for (u8 i = 0; i < Director_COUNT; i++) { switch (i) { - case 0: - case 1: - case 2: - case 3: + case Director_Working: + case Director_Treasure: + case Director_EnemyNear: + case Director_Battle: mCopyActorList[i] = new ListDirectorActor(nullptr); break; - case 4: + case Director_Ground: mCopyActorList[i] = new ListDirectorActor(nullptr); break; - case 5: - case 6: - case 7: - mCopyActorList[i] = new ::PSSystem::DirectorCopyActor(nullptr, nullptr); + case Director_Pikmin: + case Director_Damage: + case Director_Tempo: + mCopyActorList[i] = new PSSystem::DirectorCopyActor(nullptr, nullptr); break; default: JUT_PANICLINE(60, "P2Assert"); } } } else { - for (u8 i = 0; i < 8; i++) { + for (u8 i = 0; i < Director_COUNT; i++) { setCopyActorList(i, mOwner->getCopyActorList(i)); P2ASSERTLINE(69, mCopyActorList[i]); } @@ -54,24 +54,24 @@ DirectorMgr_Scene::~DirectorMgr_Scene() { } * @note Address: 0x8046F620 * @note Size: 0x294 */ -void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) +void DirectorMgr_Scene::initTrackMap(PSSystem::DirectedBgm& bgm) { BgmTrackMapFile file(false); char* path = bgm.mBmsFileName; char* bms = path; // Determine what trackMap file to load, depending on bms/cnd file name - if (!strcmp(bms, "caveglass.bms") || (!strcmp(bms, "caverelax.bms"))) { + if (IS_SAME_STRING(bms, "caveglass.bms") || (IS_SAME_STRING(bms, "caverelax.bms"))) { path = "/user/Totaka/trackMap_Seq_T.txt"; - } else if (!strcmp(bms, "caveconc.bms")) { + } else if (IS_SAME_STRING(bms, "caveconc.bms")) { path = "/user/Totaka/trackMap_Cond_T.txt"; P2ASSERTLINE(116, bgm.getCastType() == PSSystem::SeqBase::TYPE_AutoBgm); bms = static_cast(&bgm)->mConductorFilePath; - } else if (!strncmp("new_", bms, strlen("new_"))) { + } else if (IS_SAME_STRING_N("new_", bms, strlen("new_"))) { path = "/user/Totaka/trackMap_Cond_T.txt"; P2ASSERTLINE(126, bgm.getCastType() == PSSystem::SeqBase::TYPE_AutoBgm); bms = static_cast(&bgm)->mConductorFilePath; - } else if (!strcmp(bms, "cavesoil.bms") || (!strcmp(bms, "cavemetal.bms"))) { + } else if (IS_SAME_STRING(bms, "cavesoil.bms") || (IS_SAME_STRING(bms, "cavemetal.bms"))) { path = "/user/Wakai/trackMap_Cond_W.txt"; P2ASSERTLINE(139, bgm.getCastType() == PSSystem::SeqBase::TYPE_AutoBgm); bms = static_cast(&bgm)->mConductorFilePath; @@ -87,13 +87,13 @@ void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) * @note Address: 0x8046F8B4 * @note Size: 0x770 */ -::PSSystem::DirectorBase* DirectorMgr_Scene::newDirector(u8 type, ::PSSystem::DirectedBgm& bgm) +PSSystem::DirectorBase* DirectorMgr_Scene::newDirector(u8 type, PSSystem::DirectedBgm& bgm) { PSM::BgmTrackMap& trackMap = mBgmTrackMap; JUT_ASSERTLINE(161, trackMap.mBasicTrackCount, "track map is\nnot initialized\n"); - ::PSSystem::DirectorBase* actor = nullptr; - DamageDirector* damage = nullptr; + PSSystem::DirectorBase* actor = nullptr; + PSSystem::DirectorBase* damage = nullptr; switch (type) { case Director_Working: { @@ -108,7 +108,8 @@ void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) actor = new ActorDirector_Kehai("kehaiD ", trackMap.mKehaiTrackCount, 100, 100, 100); P2ASSERTLINE(188, actor); for (u8 i = 0; i < (int)trackMap.mKehaiTrackCount; i++) { - actor->setTrack(i, bgm.getChildTrack(i + trackMap.mBasicTrackCount + trackMap.mOtakaraTrackCount + trackMap.mEventTrackCount)); + actor->setTrack(i, + bgm.getChildTrack(i + (trackMap.mEventTrackCount + trackMap.mBasicTrackCount + trackMap.mOtakaraTrackCount))); } break; } @@ -116,8 +117,9 @@ void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) actor = new ActorDirector_Battle("battleD ", trackMap.mBattleTrackCount, 100, 100, 100); P2ASSERTLINE(206, actor); for (u8 i = 0; i < (int)trackMap.mBattleTrackCount; i++) { - actor->setTrack(i, bgm.getChildTrack(i + trackMap.mBasicTrackCount + trackMap.mOtakaraTrackCount + trackMap.mKehaiTrackCount - + trackMap.mEventTrackCount)); + actor->setTrack(i, bgm.getChildTrack(i + + (trackMap.mEventTrackCount + trackMap.mBasicTrackCount + trackMap.mOtakaraTrackCount + + trackMap.mKehaiTrackCount))); } break; } @@ -125,7 +127,7 @@ void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) actor = new ActorDirector_TrackOn("OtakaraD", trackMap.mOtakaraTrackCount, 100, 100); P2ASSERTLINE(219, actor); for (u8 i = 0; i < (int)trackMap.mOtakaraTrackCount; i++) { - actor->setTrack(i, bgm.getChildTrack(i + trackMap.mEventTrackCount + trackMap.mBasicTrackCount)); + actor->setTrack(i, bgm.getChildTrack(i + (trackMap.mEventTrackCount + trackMap.mBasicTrackCount))); } break; } @@ -171,18 +173,17 @@ void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) } } - // some mess here - ::PSSystem::DirectorBase* ret = nullptr; - if (actor || (ret = damage, !ret)) { - ret = nullptr; - if (actor && !damage) { - ret = actor; - } + PSSystem::DirectorBase* ret = nullptr; + + if (!actor && damage) { + ret = damage; + } else if (actor && !damage) { + ret = actor; } P2ASSERTLINE(334, ret); - ::PSSystem::DirectorCopyActor* obj = mCopyActorList[type]; + PSSystem::DirectorCopyActor* obj = mCopyActorList[type]; if (isSlave()) { obj->mDirectorParent = ret; } else { @@ -190,614 +191,13 @@ void DirectorMgr_Scene::initTrackMap(::PSSystem::DirectedBgm& bgm) } adaptDirectorActor(ret, type); return ret; - /* - stwu r1, -0x30(r1) - mflr r0 - stw r0, 0x34(r1) - stmw r22, 8(r1) - mr r29, r3 - lis r3, lbl_8049DA80@ha - mr r27, r4 - addi r26, r29, 0x48 - mr r30, r5 - addi r31, r3, lbl_8049DA80@l - lbz r0, 0x68(r29) - cmplwi r0, 0 - bne lbl_8046F8FC - addi r3, r31, 0 - addi r5, r31, 0xfc - li r4, 0xa1 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046F8FC: - clrlwi r0, r27, 0x18 - li r25, 0 - cmplwi r0, 7 - li r28, 0 - bgt lbl_8046FF7C - lis r3, lbl_804EF880@ha - slwi r0, r0, 2 - addi r3, r3, lbl_804EF880@l - lwzx r0, r3, r0 - mtctr r0 - bctr - -lbl_8046F928: - li r3, 0x68 - bl __nw__FUl - or. r0, r3, r3 - beq lbl_8046F95C - lbz r5, 0x21(r26) - addi r4, r2, lbl_80520D6C@sda21 - lfs f1, lbl_80520D74@sda21(r2) - li r6, 0x64 - lfs f2, lbl_80520D78@sda21(r2) - li r7, 0x64 - li r8, 0x64 - bl __ct__Q23PSM20ActorDirector_ScaledFPCciffllUl - mr r0, r3 - -lbl_8046F95C: - cmplwi r0, 0 - mr r25, r0 - bne lbl_8046F97C - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0xad - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046F97C: - li r23, 0 - b lbl_8046F9C4 - -lbl_8046F984: - lbz r0, 0x20(r26) - add r24, r3, r0 - cmpwi r24, 0x10 - blt lbl_8046F9A8 - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x1a3 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046F9A8: - slwi r4, r24, 2 - mr r3, r25 - addi r0, r4, 0x74 - mr r4, r23 - lwzx r5, r30, r0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - addi r23, r23, 1 - -lbl_8046F9C4: - lbz r0, 0x21(r26) - clrlwi r3, r23, 0x18 - cmpw r3, r0 - blt lbl_8046F984 - b lbl_8046FF7C - -lbl_8046F9D8: - li r3, 0x6c - bl __nw__FUl - or. r24, r3, r3 - beq lbl_8046FA0C - lbz r5, 0x23(r26) - addi r4, r31, 0x11c - li r6, 0x64 - li r7, 0x64 - li r8, 0x64 - bl __ct__Q23PSM19ActorDirector_EnemyFPCcillUl - lis r3, __vt__Q23PSM19ActorDirector_Kehai@ha - addi r0, r3, __vt__Q23PSM19ActorDirector_Kehai@l - stw r0, 0(r24) - -lbl_8046FA0C: - cmplwi r24, 0 - mr r25, r24 - bne lbl_8046FA2C - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0xbc - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FA2C: - li r23, 0 - b lbl_8046FA84 - -lbl_8046FA34: - lbz r4, 0x22(r26) - lbz r0, 0x20(r26) - lbz r3, 0x21(r26) - add r0, r0, r4 - add r24, r0, r5 - add r24, r3, r24 - cmpwi r24, 0x10 - blt lbl_8046FA68 - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x1a3 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FA68: - slwi r4, r24, 2 - mr r3, r25 - addi r0, r4, 0x74 - mr r4, r23 - lwzx r5, r30, r0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - addi r23, r23, 1 - -lbl_8046FA84: - lbz r0, 0x23(r26) - clrlwi r5, r23, 0x18 - cmpw r5, r0 - blt lbl_8046FA34 - b lbl_8046FF7C - -lbl_8046FA98: - li r3, 0x6c - bl __nw__FUl - or. r24, r3, r3 - beq lbl_8046FACC - lbz r5, 0x24(r26) - addi r4, r31, 0x128 - li r6, 0x64 - li r7, 0x64 - li r8, 0x64 - bl __ct__Q23PSM19ActorDirector_EnemyFPCcillUl - lis r3, __vt__Q23PSM20ActorDirector_Battle@ha - addi r0, r3, __vt__Q23PSM20ActorDirector_Battle@l - stw r0, 0(r24) - -lbl_8046FACC: - cmplwi r24, 0 - mr r25, r24 - bne lbl_8046FAEC - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0xce - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FAEC: - li r24, 0 - b lbl_8046FB4C - -lbl_8046FAF4: - lbz r3, 0x22(r26) - lbz r0, 0x20(r26) - lbz r4, 0x23(r26) - add r0, r0, r3 - lbz r3, 0x21(r26) - add r0, r0, r4 - add r23, r0, r5 - add r23, r3, r23 - cmpwi r23, 0x10 - blt lbl_8046FB30 - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x1a3 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FB30: - slwi r4, r23, 2 - mr r3, r25 - addi r0, r4, 0x74 - mr r4, r24 - lwzx r5, r30, r0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - addi r24, r24, 1 - -lbl_8046FB4C: - lbz r0, 0x24(r26) - clrlwi r5, r24, 0x18 - cmpw r5, r0 - blt lbl_8046FAF4 - b lbl_8046FF7C - -lbl_8046FB60: - li r3, 0x58 - bl __nw__FUl - or. r0, r3, r3 - beq lbl_8046FB88 - lbz r5, 0x22(r26) - addi r4, r31, 0x134 - li r6, 0x64 - li r7, 0x64 - bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill - mr r0, r3 - -lbl_8046FB88: - cmplwi r0, 0 - mr r25, r0 - bne lbl_8046FBA8 - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0xdb - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FBA8: - li r24, 0 - b lbl_8046FBF8 - -lbl_8046FBB0: - lbz r0, 0x20(r26) - lbz r3, 0x21(r26) - add r23, r0, r4 - add r23, r3, r23 - cmpwi r23, 0x10 - blt lbl_8046FBDC - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x1a3 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FBDC: - slwi r4, r23, 2 - mr r3, r25 - addi r0, r4, 0x74 - mr r4, r24 - lwzx r5, r30, r0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - addi r24, r24, 1 - -lbl_8046FBF8: - lbz r0, 0x22(r26) - clrlwi r4, r24, 0x18 - cmpw r4, r0 - blt lbl_8046FBB0 - b lbl_8046FF7C - -lbl_8046FC0C: - mr r3, r30 - lwz r12, 0x10(r30) - lwz r12, 0x24(r12) - mtctr r12 - bctrl - clrlwi r0, r3, 0x18 - cmplwi r0, 3 - bne lbl_8046FC64 - li r3, 0x58 - bl __nw__FUl - or. r23, r3, r3 - beq lbl_8046FC5C - lbz r5, 0x25(r26) - addi r4, r31, 0x140 - li r6, 0x64 - li r7, 0x64 - bl __ct__Q23PSM21ActorDirector_TrackOnFPCcill - lis r3, __vt__Q23PSM19GroundDirector_Cave@ha - addi r0, r3, __vt__Q23PSM19GroundDirector_Cave@l - stw r0, 0(r23) - -lbl_8046FC5C: - mr r25, r23 - b lbl_8046FC9C - -lbl_8046FC64: - li r3, 0x68 - bl __nw__FUl - or. r0, r3, r3 - beq lbl_8046FC98 - lbz r5, 0x25(r26) - addi r4, r31, 0x140 - lfs f1, lbl_80520D84@sda21(r2) - li r6, 0xc8 - lfs f2, lbl_80520D88@sda21(r2) - li r7, 0xc8 - li r8, 0xa - bl __ct__Q23PSM20ActorDirector_ScaledFPCciffllUl - mr r0, r3 - -lbl_8046FC98: - mr r25, r0 - -lbl_8046FC9C: - cmplwi r25, 0 - bne lbl_8046FCB8 - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0x113 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FCB8: - li r24, 0 - b lbl_8046FD20 - -lbl_8046FCC0: - lbz r3, 0x22(r26) - lbz r0, 0x20(r26) - lbz r4, 0x23(r26) - add r0, r0, r3 - lbz r5, 0x24(r26) - add r0, r0, r4 - lbz r3, 0x21(r26) - add r0, r0, r5 - add r23, r0, r6 - add r23, r3, r23 - cmpwi r23, 0x10 - blt lbl_8046FD04 - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x1a3 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FD04: - slwi r4, r23, 2 - mr r3, r25 - addi r0, r4, 0x74 - mr r4, r24 - lwzx r5, r30, r0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - addi r24, r24, 1 - -lbl_8046FD20: - lbz r0, 0x25(r26) - clrlwi r6, r24, 0x18 - cmpw r6, r0 - blt lbl_8046FCC0 - b lbl_8046FF7C - -lbl_8046FD34: - li r4, 0 - mr r5, r4 - b lbl_8046FD5C - -lbl_8046FD40: - clrlwi r3, r5, 0x18 - addi r0, r3, 0x26 - lbzx r0, r26, r0 - cmplwi r0, 0 - beq lbl_8046FD58 - addi r4, r4, 1 - -lbl_8046FD58: - addi r5, r5, 1 - -lbl_8046FD5C: - clrlwi r0, r5, 0x18 - cmplwi r0, 0x10 - blt lbl_8046FD40 - li r5, 0 - mr r6, r5 - b lbl_8046FD9C - -lbl_8046FD74: - clrlwi r3, r6, 0x18 - addi r0, r3, 0x36 - lbzx r0, r26, r0 - cmplwi r0, 0 - beq lbl_8046FD98 - clrlwi r0, r0, 0x18 - slw r0, r0, r3 - or r0, r5, r0 - clrlwi r5, r0, 0x18 - -lbl_8046FD98: - addi r6, r6, 1 - -lbl_8046FD9C: - clrlwi r0, r6, 0x18 - cmplwi r0, 8 - blt lbl_8046FD74 - lwz r12, 0(r29) - mr r3, r29 - mr r6, r30 - lwz r12, 0x20(r12) - mtctr r12 - bctrl - or. r25, r3, r3 - bne lbl_8046FDDC - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0x122 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FDDC: - li r23, 0 - li r22, 0 - b lbl_8046FE38 - -lbl_8046FDE8: - clrlwi r24, r22, 0x18 - addi r0, r24, 0x26 - lbzx r0, r26, r0 - cmplwi r0, 0 - beq lbl_8046FE34 - cmpwi r24, 0x10 - blt lbl_8046FE18 - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x1a3 - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FE18: - slwi r3, r24, 2 - mr r4, r23 - addi r0, r3, 0x74 - mr r3, r25 - lwzx r5, r30, r0 - addi r23, r23, 1 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - -lbl_8046FE34: - addi r22, r22, 1 - -lbl_8046FE38: - clrlwi r0, r22, 0x18 - cmplwi r0, 0x10 - blt lbl_8046FDE8 - mr r3, r30 - lwz r12, 0x10(r30) - lwz r12, 0x24(r12) - mtctr r12 - bctrl - clrlwi r0, r3, 0x18 - cmplwi r0, 3 - bne lbl_8046FF7C - li r5, 0 - mr r4, r5 - b lbl_8046FE94 - -lbl_8046FE70: - clrlwi r3, r4, 0x18 - addi r0, r3, 0x26 - lbzx r0, r26, r0 - cmplwi r0, 0 - beq lbl_8046FE90 - slw r0, r0, r3 - or r0, r5, r0 - clrlwi r5, r0, 0x10 - -lbl_8046FE90: - addi r4, r4, 1 - -lbl_8046FE94: - clrlwi r0, r4, 0x18 - cmplwi r0, 0x10 - blt lbl_8046FE70 - sth r5, 0x34c(r30) - b lbl_8046FF7C - -lbl_8046FEA8: - li r3, 0x58 - bl __nw__FUl - or. r4, r3, r3 - beq lbl_8046FEC0 - bl __ct__Q23PSM14DamageDirectorFv - mr r4, r3 - -lbl_8046FEC0: - lbz r0, 0xb4(r30) - mr r28, r4 - li r3, 0 - cmplwi r0, 1 - bne lbl_8046FEE4 - lwz r0, 0x70(r30) - cmplwi r0, 0 - beq lbl_8046FEE4 - li r3, 1 - -lbl_8046FEE4: - clrlwi. r0, r3, 0x18 - bne lbl_8046FF00 - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x19f - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FF00: - lwz r5, 0x70(r30) - mr r3, r28 - li r4, 0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - b lbl_8046FF7C - -lbl_8046FF14: - li r3, 0x54 - bl __nw__FUl - or. r4, r3, r3 - beq lbl_8046FF2C - bl __ct__Q23PSM25ActorDirector_TempoChangeFv - mr r4, r3 - -lbl_8046FF2C: - lbz r0, 0xb4(r30) - mr r25, r4 - li r3, 0 - cmplwi r0, 1 - bne lbl_8046FF50 - lwz r0, 0x70(r30) - cmplwi r0, 0 - beq lbl_8046FF50 - li r3, 1 - -lbl_8046FF50: - clrlwi. r0, r3, 0x18 - bne lbl_8046FF6C - addi r5, r31, 0x1c - addi r3, r2, lbl_80520D7C@sda21 - li r4, 0x19f - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FF6C: - lwz r5, 0x70(r30) - mr r3, r25 - li r4, 0 - bl setTrack__Q28PSSystem12DirectorBaseFUcPQ28PSSystem12SeqTrackBase - -lbl_8046FF7C: - cmplwi r25, 0 - li r22, 0 - bne lbl_8046FF98 - cmplwi r28, 0 - beq lbl_8046FF98 - mr r22, r28 - b lbl_8046FFAC - -lbl_8046FF98: - cmplwi r25, 0 - beq lbl_8046FFAC - cmplwi r28, 0 - bne lbl_8046FFAC - mr r22, r25 - -lbl_8046FFAC: - cmplwi r22, 0 - bne lbl_8046FFC8 - addi r3, r31, 0 - addi r5, r31, 0x1c - li r4, 0x14e - crclr 6 - bl panic_f__12JUTExceptionFPCciPCce - -lbl_8046FFC8: - lwz r12, 0(r29) - rlwinm r0, r27, 2, 0x16, 0x1d - add r4, r29, r0 - mr r3, r29 - lwz r12, 0x1c(r12) - lwz r23, 0x24(r4) - mtctr r12 - bctrl - clrlwi. r0, r3, 0x18 - beq lbl_8046FFF8 - stw r22, 8(r23) - b lbl_8046FFFC - -lbl_8046FFF8: - stw r22, 4(r23) - -lbl_8046FFFC: - mr r3, r29 - mr r4, r22 - mr r5, r27 - bl -adaptDirectorActor__Q23PSM17DirectorMgr_SceneFPQ28PSSystem12DirectorBaseUc mr -r3, r22 lmw r22, 8(r1) lwz r0, 0x34(r1) mtlr r0 addi r1, r1, -0x30 blr - */ } /** * @note Address: 0x80470024 * @note Size: 0xA8 */ -void DirectorMgr_Scene::adaptDirectorActor(::PSSystem::DirectorBase* director, u8 type) +void DirectorMgr_Scene::adaptDirectorActor(PSSystem::DirectorBase* director, u8 type) { ListDirectorActor* actor = static_cast(mCopyActorList[type]); switch (type) { @@ -834,7 +234,7 @@ void DirectorMgr_Scene::adaptDirectorActor(::PSSystem::DirectorBase* director, u * @note Address: 0x804700CC * @note Size: 0x94 */ -PikminNumberDirector* DirectorMgr_Scene::newPikminNumberDirector(int pikNum, u8 pikMask, ::PSSystem::DirectedBgm& bgm) +PikminNumberDirector* DirectorMgr_Scene::newPikminNumberDirector(int pikNum, u8 pikMask, PSSystem::DirectedBgm& bgm) { PikminNumberDirector* director = new PikminNumberDirector(pikNum, pikMask, bgm); P2ASSERTLINE(412, director); @@ -845,7 +245,7 @@ PikminNumberDirector* DirectorMgr_Scene::newPikminNumberDirector(int pikNum, u8 * @note Address: 0x80470160 * @note Size: 0x90 */ -PikminNumberDirector* DirectorMgr_Scene_AutoBgm::newPikminNumberDirector(int pikNum, u8 pikMask, ::PSSystem::DirectedBgm& bgm) +PikminNumberDirector* DirectorMgr_Scene_AutoBgm::newPikminNumberDirector(int pikNum, u8 pikMask, PSSystem::DirectedBgm& bgm) { PikminNumberDirector* director = new PikminNumberDirector_AutoBgm(pikNum, pikMask, bgm); P2ASSERTLINE(425, director); @@ -857,7 +257,7 @@ PikminNumberDirector* DirectorMgr_Scene_AutoBgm::newPikminNumberDirector(int pik * @note Size: 0x50 */ DirectorMgr_Battle::DirectorMgr_Battle() - : ::PSSystem::DirectorMgrBase(2) + : PSSystem::DirectorMgrBase(2) { } @@ -865,7 +265,7 @@ DirectorMgr_Battle::DirectorMgr_Battle() * @note Address: 0x80470240 * @note Size: 0x244 */ -::PSSystem::DirectorBase* DirectorMgr_Battle::newDirector(u8 flag, ::PSSystem::DirectedBgm& bgm) +PSSystem::DirectorBase* DirectorMgr_Battle::newDirector(u8 flag, PSSystem::DirectedBgm& bgm) { PSSystem::DirectorBase* director = nullptr; u8 trackNum = 255; @@ -887,7 +287,7 @@ DirectorMgr_Battle::DirectorMgr_Battle() BossBgmFader::Mgr* fader = PSSystem::SingletonBase::sInstance; if (fader) { - u8 count = ::PSSystem::SingletonBase::getInstance()->mTypedProc.mLinkCount; + u8 count = PSSystem::SingletonBase::getInstance()->mTypedProc.mLinkCount; if (count) { fader->mTypedProc.mDirectorUpdator = new DirectorUpdator(director, count, DirectorUpdator::TYPE_0); } @@ -922,7 +322,7 @@ DirectorMgr_Battle::DirectorMgr_Battle() * @note Size: 0x50 */ DirectorMgr_2PBattle::DirectorMgr_2PBattle() - : ::PSSystem::DirectorMgrBase(8) + : PSSystem::DirectorMgrBase(8) { } @@ -930,9 +330,9 @@ DirectorMgr_2PBattle::DirectorMgr_2PBattle() * @note Address: 0x804704D4 * @note Size: 0x6B8 */ -::PSSystem::DirectorBase* DirectorMgr_2PBattle::newDirector(u8 type, ::PSSystem::DirectedBgm& bgm) +PSSystem::DirectorBase* DirectorMgr_2PBattle::newDirector(u8 type, PSSystem::DirectedBgm& bgm) { - ::PSSystem::DirectorBase* actor = nullptr; + PSSystem::DirectorBase* actor = nullptr; switch (type) { case Director2P_Working: { actor = new ActorDirector_Scaled("eventD ", 1, 200.0, 1500.0, 100, 100, 100); @@ -1010,4 +410,12 @@ DirectorMgr_2PBattle::DirectorMgr_2PBattle() return actor; } +// I'm not thrilled with this solution but utility is a hunk of junk. This makes the dtors spawn correctly so w/e. -HP +static void fuckingHateSymOn(DirectorMgr_2PBattle* battle2P, DirectorMgr_Battle* battle, DirectorMgr_Scene_AutoBgm* autoBGM) +{ + delete autoBGM; + delete battle; + delete battle2P; +} + } // namespace PSM diff --git a/tools/progress.csv b/tools/progress.csv index d64914092..712dd07a8 100644 --- a/tools/progress.csv +++ b/tools/progress.csv @@ -1049,3 +1049,5 @@ You have 4803 out of 10000 Pokos and 115 out of 201 treasures.",2024-06-13 17:40 You have 4839 out of 10000 Pokos and 115 out of 201 treasures.",2024-06-24 00:11:02.360510 4861,2261872,0.48617817396448076,116,411753,0.5776103448662844," You have 4861 out of 10000 Pokos and 116 out of 201 treasures.",2024-06-24 04:44:22.482235 +4877,2269120,0.48773609563506803,116,412463,0.5786063384470356," +You have 4877 out of 10000 Pokos and 116 out of 201 treasures.",2024-06-25 17:51:04.193751