Start splitting Kyoto

Former-commit-id: ea1c0550fc
This commit is contained in:
Phillip Stephens 2022-04-11 22:41:21 -07:00
parent 5aa1fa8cbe
commit dd24a8a2a6
14 changed files with 24087 additions and 24 deletions

143
asm/Kyoto_CWD/CAxisAngle.s Normal file
View File

@ -0,0 +1,143 @@
.include "macros.inc"
.section .text, "ax"
.global __pl__FRC10CAxisAngleRC10CAxisAngle
__pl__FRC10CAxisAngleRC10CAxisAngle:
/* 8001B424 00018384 C0 24 00 00 */ lfs f1, 0(r4)
/* 8001B428 00018388 C0 05 00 00 */ lfs f0, 0(r5)
/* 8001B42C 0001838C C0 84 00 04 */ lfs f4, 4(r4)
/* 8001B430 00018390 C0 65 00 04 */ lfs f3, 4(r5)
/* 8001B434 00018394 EC 01 00 2A */ fadds f0, f1, f0
/* 8001B438 00018398 C0 44 00 08 */ lfs f2, 8(r4)
/* 8001B43C 0001839C C0 25 00 08 */ lfs f1, 8(r5)
/* 8001B440 000183A0 EC 64 18 2A */ fadds f3, f4, f3
/* 8001B444 000183A4 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B448 000183A8 EC 02 08 2A */ fadds f0, f2, f1
/* 8001B44C 000183AC D0 63 00 04 */ stfs f3, 4(r3)
/* 8001B450 000183B0 D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B454 000183B4 4E 80 00 20 */ blr
.global __ml__FRCfRC10CAxisAngle
__ml__FRCfRC10CAxisAngle:
/* 8001B458 000183B8 C0 64 00 00 */ lfs f3, 0(r4)
/* 8001B45C 000183BC C0 05 00 00 */ lfs f0, 0(r5)
/* 8001B460 000183C0 C0 45 00 04 */ lfs f2, 4(r5)
/* 8001B464 000183C4 C0 25 00 08 */ lfs f1, 8(r5)
/* 8001B468 000183C8 EC 03 00 32 */ fmuls f0, f3, f0
/* 8001B46C 000183CC EC 43 00 B2 */ fmuls f2, f3, f2
/* 8001B470 000183D0 EC 23 00 72 */ fmuls f1, f3, f1
/* 8001B474 000183D4 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B478 000183D8 D0 43 00 04 */ stfs f2, 4(r3)
/* 8001B47C 000183DC D0 23 00 08 */ stfs f1, 8(r3)
/* 8001B480 000183E0 4E 80 00 20 */ blr
.global __ml__FRC10CAxisAngleRCf
__ml__FRC10CAxisAngleRCf:
/* 8001B484 000183E4 C0 65 00 00 */ lfs f3, 0(r5)
/* 8001B488 000183E8 C0 04 00 00 */ lfs f0, 0(r4)
/* 8001B48C 000183EC C0 44 00 04 */ lfs f2, 4(r4)
/* 8001B490 000183F0 C0 24 00 08 */ lfs f1, 8(r4)
/* 8001B494 000183F4 EC 03 00 32 */ fmuls f0, f3, f0
/* 8001B498 000183F8 EC 43 00 B2 */ fmuls f2, f3, f2
/* 8001B49C 000183FC EC 23 00 72 */ fmuls f1, f3, f1
/* 8001B4A0 00018400 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B4A4 00018404 D0 43 00 04 */ stfs f2, 4(r3)
/* 8001B4A8 00018408 D0 23 00 08 */ stfs f1, 8(r3)
/* 8001B4AC 0001840C 4E 80 00 20 */ blr
.global __apl__10CAxisAngleFRC10CAxisAngle
__apl__10CAxisAngleFRC10CAxisAngle:
/* 8001B4B0 00018410 C0 23 00 00 */ lfs f1, 0(r3)
/* 8001B4B4 00018414 C0 04 00 00 */ lfs f0, 0(r4)
/* 8001B4B8 00018418 EC 01 00 2A */ fadds f0, f1, f0
/* 8001B4BC 0001841C D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B4C0 00018420 C0 23 00 04 */ lfs f1, 4(r3)
/* 8001B4C4 00018424 C0 04 00 04 */ lfs f0, 4(r4)
/* 8001B4C8 00018428 EC 01 00 2A */ fadds f0, f1, f0
/* 8001B4CC 0001842C D0 03 00 04 */ stfs f0, 4(r3)
/* 8001B4D0 00018430 C0 23 00 08 */ lfs f1, 8(r3)
/* 8001B4D4 00018434 C0 04 00 08 */ lfs f0, 8(r4)
/* 8001B4D8 00018438 EC 01 00 2A */ fadds f0, f1, f0
/* 8001B4DC 0001843C D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B4E0 00018440 4E 80 00 20 */ blr
.global __amu__10CAxisAngleFRCf
__amu__10CAxisAngleFRCf:
/* 8001B4E4 00018444 C0 24 00 00 */ lfs f1, 0(r4)
/* 8001B4E8 00018448 C0 03 00 00 */ lfs f0, 0(r3)
/* 8001B4EC 0001844C EC 00 00 72 */ fmuls f0, f0, f1
/* 8001B4F0 00018450 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B4F4 00018454 C0 03 00 04 */ lfs f0, 4(r3)
/* 8001B4F8 00018458 EC 00 00 72 */ fmuls f0, f0, f1
/* 8001B4FC 0001845C D0 03 00 04 */ stfs f0, 4(r3)
/* 8001B500 00018460 C0 03 00 08 */ lfs f0, 8(r3)
/* 8001B504 00018464 EC 00 00 72 */ fmuls f0, f0, f1
/* 8001B508 00018468 D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B50C 0001846C 4E 80 00 20 */ blr
.global GetAngle__10CAxisAngleCFv
GetAngle__10CAxisAngleCFv:
/* 8001B510 00018470 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8001B514 00018474 7C 08 02 A6 */ mflr r0
/* 8001B518 00018478 90 01 00 14 */ stw r0, 0x14(r1)
/* 8001B51C 0001847C 48 2F 93 9D */ bl Magnitude__9CVector3fCFv
/* 8001B520 00018480 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8001B524 00018484 7C 08 03 A6 */ mtlr r0
/* 8001B528 00018488 38 21 00 10 */ addi r1, r1, 0x10
/* 8001B52C 0001848C 4E 80 00 20 */ blr
.global GetVector__10CAxisAngleCFv
GetVector__10CAxisAngleCFv:
/* 8001B530 00018490 4E 80 00 20 */ blr
.global Identity__10CAxisAngleFv
Identity__10CAxisAngleFv:
/* 8001B534 00018494 3C 60 80 57 */ lis r3, lbl_8056A5E8@ha
/* 8001B538 00018498 38 63 A5 E8 */ addi r3, r3, lbl_8056A5E8@l
/* 8001B53C 0001849C 4E 80 00 20 */ blr
.global FromVector__10CAxisAngleFRC9CVector3f
FromVector__10CAxisAngleFRC9CVector3f:
/* 8001B540 000184A0 C0 04 00 00 */ lfs f0, 0(r4)
/* 8001B544 000184A4 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B548 000184A8 C0 04 00 04 */ lfs f0, 4(r4)
/* 8001B54C 000184AC D0 03 00 04 */ stfs f0, 4(r3)
/* 8001B550 000184B0 C0 04 00 08 */ lfs f0, 8(r4)
/* 8001B554 000184B4 D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B558 000184B8 4E 80 00 20 */ blr
.global __ct__10CAxisAngleFRC13CUnitVector3ff
__ct__10CAxisAngleFRC13CUnitVector3ff:
/* 8001B55C 000184BC C0 04 00 00 */ lfs f0, 0(r4)
/* 8001B560 000184C0 C0 64 00 04 */ lfs f3, 4(r4)
/* 8001B564 000184C4 EC 01 00 32 */ fmuls f0, f1, f0
/* 8001B568 000184C8 C0 44 00 08 */ lfs f2, 8(r4)
/* 8001B56C 000184CC EC 61 00 F2 */ fmuls f3, f1, f3
/* 8001B570 000184D0 EC 21 00 B2 */ fmuls f1, f1, f2
/* 8001B574 000184D4 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B578 000184D8 D0 63 00 04 */ stfs f3, 4(r3)
/* 8001B57C 000184DC D0 23 00 08 */ stfs f1, 8(r3)
/* 8001B580 000184E0 4E 80 00 20 */ blr
.global __ct__10CAxisAngleFRC9CVector3f
__ct__10CAxisAngleFRC9CVector3f:
/* 8001B584 000184E4 C0 04 00 00 */ lfs f0, 0(r4)
/* 8001B588 000184E8 D0 03 00 00 */ stfs f0, 0(r3)
/* 8001B58C 000184EC C0 04 00 04 */ lfs f0, 4(r4)
/* 8001B590 000184F0 D0 03 00 04 */ stfs f0, 4(r3)
/* 8001B594 000184F4 C0 04 00 08 */ lfs f0, 8(r4)
/* 8001B598 000184F8 D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B59C 000184FC 4E 80 00 20 */ blr
.global __sinit_CAxisAngle_cpp
__sinit_CAxisAngle_cpp:
/* 8001B5A0 00018500 3C 80 80 5A */ lis r4, skZero3f@ha
/* 8001B5A4 00018504 C4 44 66 A0 */ lfsu f2, skZero3f@l(r4)
/* 8001B5A8 00018508 3C 60 80 57 */ lis r3, lbl_8056A5E8@ha
/* 8001B5AC 0001850C C0 24 00 04 */ lfs f1, 4(r4)
/* 8001B5B0 00018510 D4 43 A5 E8 */ stfsu f2, lbl_8056A5E8@l(r3)
/* 8001B5B4 00018514 C0 04 00 08 */ lfs f0, 8(r4)
/* 8001B5B8 00018518 D0 23 00 04 */ stfs f1, 4(r3)
/* 8001B5BC 0001851C D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B5C0 00018520 4E 80 00 20 */ blr

View File

@ -1,5 +1,34 @@
.include "macros.inc"
.section .bss
.global lbl_804578F8
lbl_804578F8:
.skip 0x10
.section .rodata
.global lbl_803CC030
lbl_803CC030:
.incbin "baserom.dol", 0x3C9030, 0x3F0
.section .sdata
.global lbl_805A6BF0
lbl_805A6BF0:
# ROM: 0x3F4590
.4byte 0x01000000
.4byte 0
.section .sdata2
.global lbl_805A9DC8
lbl_805A9DC8:
# ROM: 0x3F6668
.4byte 0
.global lbl_805A9DCC
lbl_805A9DCC:
# ROM: 0x3F666C
.float 1.0
.section .text, "ax"
.global SetCommandFiltered__13ControlMapperFQ213ControlMapper9ECommandsb

View File

@ -0,0 +1,292 @@
.include "macros.inc"
.section .text, "ax"
.global FromQuaternion__12CEulerAnglesFRC11CQuaternion
FromQuaternion__12CEulerAnglesFRC11CQuaternion:
/* 8001B5C4 00018524 94 21 FF A0 */ stwu r1, -0x60(r1)
/* 8001B5C8 00018528 7C 08 02 A6 */ mflr r0
/* 8001B5CC 0001852C 90 01 00 64 */ stw r0, 0x64(r1)
/* 8001B5D0 00018530 DB E1 00 50 */ stfd f31, 0x50(r1)
/* 8001B5D4 00018534 F3 E1 00 58 */ psq_st f31, 88(r1), 0, qr0
/* 8001B5D8 00018538 DB C1 00 40 */ stfd f30, 0x40(r1)
/* 8001B5DC 0001853C F3 C1 00 48 */ psq_st f30, 72(r1), 0, qr0
/* 8001B5E0 00018540 DB A1 00 30 */ stfd f29, 0x30(r1)
/* 8001B5E4 00018544 F3 A1 00 38 */ psq_st f29, 56(r1), 0, qr0
/* 8001B5E8 00018548 DB 81 00 20 */ stfd f28, 0x20(r1)
/* 8001B5EC 0001854C F3 81 00 28 */ psq_st f28, 40(r1), 0, qr0
/* 8001B5F0 00018550 DB 61 00 10 */ stfd f27, 0x10(r1)
/* 8001B5F4 00018554 F3 61 00 18 */ psq_st f27, 24(r1), 0, qr0
/* 8001B5F8 00018558 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8001B5FC 0001855C C0 84 00 04 */ lfs f4, 4(r4)
/* 8001B600 00018560 7C 7F 1B 78 */ mr r31, r3
/* 8001B604 00018564 C0 E4 00 08 */ lfs f7, 8(r4)
/* 8001B608 00018568 EC 24 01 32 */ fmuls f1, f4, f4
/* 8001B60C 0001856C C0 A4 00 0C */ lfs f5, 0xc(r4)
/* 8001B610 00018570 EC 07 01 F2 */ fmuls f0, f7, f7
/* 8001B614 00018574 C0 C4 00 00 */ lfs f6, 0(r4)
/* 8001B618 00018578 EC 45 01 72 */ fmuls f2, f5, f5
/* 8001B61C 0001857C C0 62 82 5C */ lfs f3, lbl_805A9F7C@sda21(r2)
/* 8001B620 00018580 EC 01 00 2A */ fadds f0, f1, f0
/* 8001B624 00018584 EC 26 01 B2 */ fmuls f1, f6, f6
/* 8001B628 00018588 EC 02 00 2A */ fadds f0, f2, f0
/* 8001B62C 0001858C EC 21 00 2A */ fadds f1, f1, f0
/* 8001B630 00018590 FC 01 18 40 */ fcmpo cr0, f1, f3
/* 8001B634 00018594 40 81 00 0C */ ble lbl_8001B640
/* 8001B638 00018598 C0 02 82 60 */ lfs f0, lbl_805A9F80@sda21(r2)
/* 8001B63C 0001859C EC 60 08 24 */ fdivs f3, f0, f1
lbl_8001B640:
/* 8001B640 000185A0 ED 83 01 72 */ fmuls f12, f3, f5
/* 8001B644 000185A4 C1 02 82 58 */ lfs f8, lbl_805A9F78@sda21(r2)
/* 8001B648 000185A8 ED 63 01 F2 */ fmuls f11, f3, f7
/* 8001B64C 000185AC C9 22 82 68 */ lfd f9, lbl_805A9F88@sda21(r2)
/* 8001B650 000185B0 ED 43 01 32 */ fmuls f10, f3, f4
/* 8001B654 000185B4 EC 6C 01 72 */ fmuls f3, f12, f5
/* 8001B658 000185B8 EC 4B 01 32 */ fmuls f2, f11, f4
/* 8001B65C 000185BC EC AA 01 32 */ fmuls f5, f10, f4
/* 8001B660 000185C0 EC 2C 01 B2 */ fmuls f1, f12, f6
/* 8001B664 000185C4 ED AB 01 F2 */ fmuls f13, f11, f7
/* 8001B668 000185C8 EC 05 18 2A */ fadds f0, f5, f3
/* 8001B66C 000185CC EC 22 08 28 */ fsubs f1, f2, f1
/* 8001B670 000185D0 EC 6D 18 2A */ fadds f3, f13, f3
/* 8001B674 000185D4 EC 48 00 28 */ fsubs f2, f8, f0
/* 8001B678 000185D8 EC 01 00 72 */ fmuls f0, f1, f1
/* 8001B67C 000185DC EC A5 68 2A */ fadds f5, f5, f13
/* 8001B680 000185E0 ED 6B 01 B2 */ fmuls f11, f11, f6
/* 8001B684 000185E4 ED AC 01 32 */ fmuls f13, f12, f4
/* 8001B688 000185E8 EC 82 00 BA */ fmadds f4, f2, f2, f0
/* 8001B68C 000185EC EC EC 01 F2 */ fmuls f7, f12, f7
/* 8001B690 000185F0 EC CA 01 B2 */ fmuls f6, f10, f6
/* 8001B694 000185F4 FC 04 48 40 */ fcmpo cr0, f4, f9
/* 8001B698 000185F8 EC 08 18 28 */ fsubs f0, f8, f3
/* 8001B69C 000185FC EC 6D 58 2A */ fadds f3, f13, f11
/* 8001B6A0 00018600 EF ED 58 28 */ fsubs f31, f13, f11
/* 8001B6A4 00018604 EF C7 30 2A */ fadds f30, f7, f6
/* 8001B6A8 00018608 EF A8 28 28 */ fsubs f29, f8, f5
/* 8001B6AC 0001860C 40 81 00 58 */ ble lbl_8001B704
/* 8001B6B0 00018610 FC C0 20 34 */ frsqrte f6, f4
/* 8001B6B4 00018614 C9 02 82 70 */ lfd f8, lbl_805A9F90@sda21(r2)
/* 8001B6B8 00018618 C8 E2 82 78 */ lfd f7, lbl_805A9F98@sda21(r2)
/* 8001B6BC 0001861C FC A6 01 B2 */ fmul f5, f6, f6
/* 8001B6C0 00018620 FC C8 01 B2 */ fmul f6, f8, f6
/* 8001B6C4 00018624 FC A4 39 7C */ fnmsub f5, f4, f5, f7
/* 8001B6C8 00018628 FC C6 01 72 */ fmul f6, f6, f5
/* 8001B6CC 0001862C FC A6 01 B2 */ fmul f5, f6, f6
/* 8001B6D0 00018630 FC C8 01 B2 */ fmul f6, f8, f6
/* 8001B6D4 00018634 FC A4 39 7C */ fnmsub f5, f4, f5, f7
/* 8001B6D8 00018638 FC C6 01 72 */ fmul f6, f6, f5
/* 8001B6DC 0001863C FC A6 01 B2 */ fmul f5, f6, f6
/* 8001B6E0 00018640 FC C8 01 B2 */ fmul f6, f8, f6
/* 8001B6E4 00018644 FC A4 39 7C */ fnmsub f5, f4, f5, f7
/* 8001B6E8 00018648 FC C6 01 72 */ fmul f6, f6, f5
/* 8001B6EC 0001864C FC A6 01 B2 */ fmul f5, f6, f6
/* 8001B6F0 00018650 FC C8 01 B2 */ fmul f6, f8, f6
/* 8001B6F4 00018654 FC A4 39 7C */ fnmsub f5, f4, f5, f7
/* 8001B6F8 00018658 FC A6 01 72 */ fmul f5, f6, f5
/* 8001B6FC 0001865C FD 24 01 72 */ fmul f9, f4, f5
/* 8001B700 00018660 48 00 00 2C */ b lbl_8001B72C
lbl_8001B704:
/* 8001B704 00018664 FC 09 20 00 */ fcmpu cr0, f9, f4
/* 8001B708 00018668 40 82 00 08 */ bne lbl_8001B710
/* 8001B70C 0001866C 48 00 00 20 */ b lbl_8001B72C
lbl_8001B710:
/* 8001B710 00018670 FC 04 48 00 */ fcmpu cr0, f4, f9
/* 8001B714 00018674 41 82 00 10 */ beq lbl_8001B724
/* 8001B718 00018678 3C 60 80 5B */ lis r3, lbl_805A8BA0@ha
/* 8001B71C 0001867C C1 23 8B A0 */ lfs f9, lbl_805A8BA0@l(r3)
/* 8001B720 00018680 48 00 00 0C */ b lbl_8001B72C
lbl_8001B724:
/* 8001B724 00018684 3C 60 80 5B */ lis r3, lbl_805A8BA4@ha
/* 8001B728 00018688 C1 23 8B A4 */ lfs f9, lbl_805A8BA4@l(r3)
lbl_8001B72C:
/* 8001B72C 0001868C FF 80 48 18 */ frsp f28, f9
/* 8001B730 00018690 C0 A2 82 5C */ lfs f5, lbl_805A9F7C@sda21(r2)
/* 8001B734 00018694 C0 82 82 80 */ lfs f4, lbl_805A9FA0@sda21(r2)
/* 8001B738 00018698 EC BC 28 28 */ fsubs f5, f28, f5
/* 8001B73C 0001869C FC A0 2A 10 */ fabs f5, f5
/* 8001B740 000186A0 FC 05 20 40 */ fcmpo cr0, f5, f4
/* 8001B744 000186A4 41 80 00 48 */ blt lbl_8001B78C
/* 8001B748 000186A8 48 37 95 25 */ bl atan2
/* 8001B74C 000186AC FF 60 08 50 */ fneg f27, f1
/* 8001B750 000186B0 FC 20 F8 90 */ fmr f1, f31
/* 8001B754 000186B4 FC 40 E8 90 */ fmr f2, f29
/* 8001B758 000186B8 48 37 95 15 */ bl atan2
/* 8001B75C 000186BC FF A0 08 50 */ fneg f29, f1
/* 8001B760 000186C0 FC 40 E0 90 */ fmr f2, f28
/* 8001B764 000186C4 FC 20 F0 50 */ fneg f1, f30
/* 8001B768 000186C8 48 37 95 05 */ bl atan2
/* 8001B76C 000186CC FC 40 08 50 */ fneg f2, f1
/* 8001B770 000186D0 FC 20 E8 18 */ frsp f1, f29
/* 8001B774 000186D4 FC 00 D8 18 */ frsp f0, f27
/* 8001B778 000186D8 FC 40 10 18 */ frsp f2, f2
/* 8001B77C 000186DC D0 5F 00 00 */ stfs f2, 0(r31)
/* 8001B780 000186E0 D0 3F 00 04 */ stfs f1, 4(r31)
/* 8001B784 000186E4 D0 1F 00 08 */ stfs f0, 8(r31)
/* 8001B788 000186E8 48 00 00 3C */ b lbl_8001B7C4
lbl_8001B78C:
/* 8001B78C 000186EC FC 40 00 90 */ fmr f2, f0
/* 8001B790 000186F0 FC 20 18 50 */ fneg f1, f3
/* 8001B794 000186F4 48 37 94 D9 */ bl atan2
/* 8001B798 000186F8 FF 60 08 50 */ fneg f27, f1
/* 8001B79C 000186FC FC 40 E0 90 */ fmr f2, f28
/* 8001B7A0 00018700 FC 20 F0 50 */ fneg f1, f30
/* 8001B7A4 00018704 48 37 94 C9 */ bl atan2
/* 8001B7A8 00018708 FC 40 08 50 */ fneg f2, f1
/* 8001B7AC 0001870C C0 02 82 5C */ lfs f0, lbl_805A9F7C@sda21(r2)
/* 8001B7B0 00018710 FC 20 D8 18 */ frsp f1, f27
/* 8001B7B4 00018714 FC 40 10 18 */ frsp f2, f2
/* 8001B7B8 00018718 D0 5F 00 00 */ stfs f2, 0(r31)
/* 8001B7BC 0001871C D0 3F 00 04 */ stfs f1, 4(r31)
/* 8001B7C0 00018720 D0 1F 00 08 */ stfs f0, 8(r31)
lbl_8001B7C4:
/* 8001B7C4 00018724 E3 E1 00 58 */ psq_l f31, 88(r1), 0, qr0
/* 8001B7C8 00018728 CB E1 00 50 */ lfd f31, 0x50(r1)
/* 8001B7CC 0001872C E3 C1 00 48 */ psq_l f30, 72(r1), 0, qr0
/* 8001B7D0 00018730 CB C1 00 40 */ lfd f30, 0x40(r1)
/* 8001B7D4 00018734 E3 A1 00 38 */ psq_l f29, 56(r1), 0, qr0
/* 8001B7D8 00018738 CB A1 00 30 */ lfd f29, 0x30(r1)
/* 8001B7DC 0001873C E3 81 00 28 */ psq_l f28, 40(r1), 0, qr0
/* 8001B7E0 00018740 CB 81 00 20 */ lfd f28, 0x20(r1)
/* 8001B7E4 00018744 E3 61 00 18 */ psq_l f27, 24(r1), 0, qr0
/* 8001B7E8 00018748 CB 61 00 10 */ lfd f27, 0x10(r1)
/* 8001B7EC 0001874C 80 01 00 64 */ lwz r0, 0x64(r1)
/* 8001B7F0 00018750 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8001B7F4 00018754 7C 08 03 A6 */ mtlr r0
/* 8001B7F8 00018758 38 21 00 60 */ addi r1, r1, 0x60
/* 8001B7FC 0001875C 4E 80 00 20 */ blr
.global sub_8001b800
sub_8001b800:
/* 8001B800 00018760 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 8001B804 00018764 7C 08 02 A6 */ mflr r0
/* 8001B808 00018768 90 01 00 74 */ stw r0, 0x74(r1)
/* 8001B80C 0001876C DB E1 00 60 */ stfd f31, 0x60(r1)
/* 8001B810 00018770 F3 E1 00 68 */ psq_st f31, 104(r1), 0, qr0
/* 8001B814 00018774 DB C1 00 50 */ stfd f30, 0x50(r1)
/* 8001B818 00018778 F3 C1 00 58 */ psq_st f30, 88(r1), 0, qr0
/* 8001B81C 0001877C DB A1 00 40 */ stfd f29, 0x40(r1)
/* 8001B820 00018780 F3 A1 00 48 */ psq_st f29, 72(r1), 0, qr0
/* 8001B824 00018784 93 E1 00 3C */ stw r31, 0x3c(r1)
/* 8001B828 00018788 7C 7F 1B 78 */ mr r31, r3
/* 8001B82C 0001878C 38 61 00 08 */ addi r3, r1, 8
/* 8001B830 00018790 48 00 01 8D */ bl FromMatrix3f__12CEulerAnglesFRC9CMatrix3f
/* 8001B834 00018794 C0 01 00 0C */ lfs f0, 0xc(r1)
/* 8001B838 00018798 C0 41 00 18 */ lfs f2, 0x18(r1)
/* 8001B83C 0001879C EC 00 00 32 */ fmuls f0, f0, f0
/* 8001B840 000187A0 C8 22 82 68 */ lfd f1, lbl_805A9F88@sda21(r2)
/* 8001B844 000187A4 EC 82 00 BA */ fmadds f4, f2, f2, f0
/* 8001B848 000187A8 FC 04 08 40 */ fcmpo cr0, f4, f1
/* 8001B84C 000187AC 40 81 00 58 */ ble lbl_8001B8A4
/* 8001B850 000187B0 FC 20 20 34 */ frsqrte f1, f4
/* 8001B854 000187B4 C8 62 82 70 */ lfd f3, lbl_805A9F90@sda21(r2)
/* 8001B858 000187B8 C8 42 82 78 */ lfd f2, lbl_805A9F98@sda21(r2)
/* 8001B85C 000187BC FC 01 00 72 */ fmul f0, f1, f1
/* 8001B860 000187C0 FC 23 00 72 */ fmul f1, f3, f1
/* 8001B864 000187C4 FC 04 10 3C */ fnmsub f0, f4, f0, f2
/* 8001B868 000187C8 FC 21 00 32 */ fmul f1, f1, f0
/* 8001B86C 000187CC FC 01 00 72 */ fmul f0, f1, f1
/* 8001B870 000187D0 FC 23 00 72 */ fmul f1, f3, f1
/* 8001B874 000187D4 FC 04 10 3C */ fnmsub f0, f4, f0, f2
/* 8001B878 000187D8 FC 21 00 32 */ fmul f1, f1, f0
/* 8001B87C 000187DC FC 01 00 72 */ fmul f0, f1, f1
/* 8001B880 000187E0 FC 23 00 72 */ fmul f1, f3, f1
/* 8001B884 000187E4 FC 04 10 3C */ fnmsub f0, f4, f0, f2
/* 8001B888 000187E8 FC 21 00 32 */ fmul f1, f1, f0
/* 8001B88C 000187EC FC 01 00 72 */ fmul f0, f1, f1
/* 8001B890 000187F0 FC 23 00 72 */ fmul f1, f3, f1
/* 8001B894 000187F4 FC 04 10 3C */ fnmsub f0, f4, f0, f2
/* 8001B898 000187F8 FC 01 00 32 */ fmul f0, f1, f0
/* 8001B89C 000187FC FC 24 00 32 */ fmul f1, f4, f0
/* 8001B8A0 00018800 48 00 00 2C */ b lbl_8001B8CC
lbl_8001B8A4:
/* 8001B8A4 00018804 FC 01 20 00 */ fcmpu cr0, f1, f4
/* 8001B8A8 00018808 40 82 00 08 */ bne lbl_8001B8B0
/* 8001B8AC 0001880C 48 00 00 20 */ b lbl_8001B8CC
lbl_8001B8B0:
/* 8001B8B0 00018810 FC 04 08 00 */ fcmpu cr0, f4, f1
/* 8001B8B4 00018814 41 82 00 10 */ beq lbl_8001B8C4
/* 8001B8B8 00018818 3C 60 80 5B */ lis r3, lbl_805A8BA0@ha
/* 8001B8BC 0001881C C0 23 8B A0 */ lfs f1, lbl_805A8BA0@l(r3)
/* 8001B8C0 00018820 48 00 00 0C */ b lbl_8001B8CC
lbl_8001B8C4:
/* 8001B8C4 00018824 3C 60 80 5B */ lis r3, lbl_805A8BA4@ha
/* 8001B8C8 00018828 C0 23 8B A4 */ lfs f1, lbl_805A8BA4@l(r3)
lbl_8001B8CC:
/* 8001B8CC 0001882C FF E0 08 18 */ frsp f31, f1
/* 8001B8D0 00018830 C0 22 82 5C */ lfs f1, lbl_805A9F7C@sda21(r2)
/* 8001B8D4 00018834 C0 02 82 80 */ lfs f0, lbl_805A9FA0@sda21(r2)
/* 8001B8D8 00018838 EC 3F 08 28 */ fsubs f1, f31, f1
/* 8001B8DC 0001883C FC 20 0A 10 */ fabs f1, f1
/* 8001B8E0 00018840 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8001B8E4 00018844 41 80 00 54 */ blt lbl_8001B938
/* 8001B8E8 00018848 C0 21 00 0C */ lfs f1, 0xc(r1)
/* 8001B8EC 0001884C C0 41 00 18 */ lfs f2, 0x18(r1)
/* 8001B8F0 00018850 48 37 93 7D */ bl atan2
/* 8001B8F4 00018854 FF A0 08 50 */ fneg f29, f1
/* 8001B8F8 00018858 C0 21 00 20 */ lfs f1, 0x20(r1)
/* 8001B8FC 0001885C C0 41 00 28 */ lfs f2, 0x28(r1)
/* 8001B900 00018860 48 37 93 6D */ bl atan2
/* 8001B904 00018864 C0 01 00 24 */ lfs f0, 0x24(r1)
/* 8001B908 00018868 FF C0 08 50 */ fneg f30, f1
/* 8001B90C 0001886C FC 40 F8 90 */ fmr f2, f31
/* 8001B910 00018870 FC 20 00 50 */ fneg f1, f0
/* 8001B914 00018874 48 37 93 59 */ bl atan2
/* 8001B918 00018878 FC 40 08 50 */ fneg f2, f1
/* 8001B91C 0001887C FC 20 F0 18 */ frsp f1, f30
/* 8001B920 00018880 FC 00 E8 18 */ frsp f0, f29
/* 8001B924 00018884 FC 40 10 18 */ frsp f2, f2
/* 8001B928 00018888 D0 5F 00 00 */ stfs f2, 0(r31)
/* 8001B92C 0001888C D0 3F 00 04 */ stfs f1, 4(r31)
/* 8001B930 00018890 D0 1F 00 08 */ stfs f0, 8(r31)
/* 8001B934 00018894 48 00 00 44 */ b lbl_8001B978
lbl_8001B938:
/* 8001B938 00018898 C0 01 00 10 */ lfs f0, 0x10(r1)
/* 8001B93C 0001889C C0 41 00 08 */ lfs f2, 8(r1)
/* 8001B940 000188A0 FC 20 00 50 */ fneg f1, f0
/* 8001B944 000188A4 48 37 93 29 */ bl atan2
/* 8001B948 000188A8 C0 01 00 24 */ lfs f0, 0x24(r1)
/* 8001B94C 000188AC FF A0 08 50 */ fneg f29, f1
/* 8001B950 000188B0 FC 40 F8 90 */ fmr f2, f31
/* 8001B954 000188B4 FC 20 00 50 */ fneg f1, f0
/* 8001B958 000188B8 48 37 93 15 */ bl atan2
/* 8001B95C 000188BC FC 40 08 50 */ fneg f2, f1
/* 8001B960 000188C0 C0 02 82 5C */ lfs f0, lbl_805A9F7C@sda21(r2)
/* 8001B964 000188C4 FC 20 E8 18 */ frsp f1, f29
/* 8001B968 000188C8 FC 40 10 18 */ frsp f2, f2
/* 8001B96C 000188CC D0 5F 00 00 */ stfs f2, 0(r31)
/* 8001B970 000188D0 D0 3F 00 04 */ stfs f1, 4(r31)
/* 8001B974 000188D4 D0 1F 00 08 */ stfs f0, 8(r31)
lbl_8001B978:
/* 8001B978 000188D8 E3 E1 00 68 */ psq_l f31, 104(r1), 0, qr0
/* 8001B97C 000188DC CB E1 00 60 */ lfd f31, 0x60(r1)
/* 8001B980 000188E0 E3 C1 00 58 */ psq_l f30, 88(r1), 0, qr0
/* 8001B984 000188E4 CB C1 00 50 */ lfd f30, 0x50(r1)
/* 8001B988 000188E8 E3 A1 00 48 */ psq_l f29, 72(r1), 0, qr0
/* 8001B98C 000188EC CB A1 00 40 */ lfd f29, 0x40(r1)
/* 8001B990 000188F0 80 01 00 74 */ lwz r0, 0x74(r1)
/* 8001B994 000188F4 83 E1 00 3C */ lwz r31, 0x3c(r1)
/* 8001B998 000188F8 7C 08 03 A6 */ mtlr r0
/* 8001B99C 000188FC 38 21 00 70 */ addi r1, r1, 0x70
/* 8001B9A0 00018900 4E 80 00 20 */ blr
.global __sinit_CEulerAngles_cpp
__sinit_CEulerAngles_cpp:
/* 8001B9A4 00018904 C0 02 82 5C */ lfs f0, lbl_805A9F7C@sda21(r2)
/* 8001B9A8 00018908 3C 60 80 57 */ lis r3, lbl_8056A5F4@ha
/* 8001B9AC 0001890C D4 03 A5 F4 */ stfsu f0, lbl_8056A5F4@l(r3)
/* 8001B9B0 00018910 D0 03 00 04 */ stfs f0, 4(r3)
/* 8001B9B4 00018914 D0 03 00 08 */ stfs f0, 8(r3)
/* 8001B9B8 00018918 4E 80 00 20 */ blr
.global FromMatrix3f__12CEulerAnglesFRC9CMatrix3f
FromMatrix3f__12CEulerAnglesFRC9CMatrix3f:
/* 8001B9BC 0001891C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8001B9C0 00018920 7C 08 02 A6 */ mflr r0
/* 8001B9C4 00018924 38 A4 00 10 */ addi r5, r4, 0x10
/* 8001B9C8 00018928 38 C4 00 20 */ addi r6, r4, 0x20
/* 8001B9CC 0001892C 90 01 00 14 */ stw r0, 0x14(r1)
/* 8001B9D0 00018930 48 2F 4C AD */ bl __ct__9CMatrix3fFRC9CVector3fRC9CVector3fRC9CVector3f
/* 8001B9D4 00018934 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8001B9D8 00018938 7C 08 03 A6 */ mtlr r0
/* 8001B9DC 0001893C 38 21 00 10 */ addi r1, r1, 0x10
/* 8001B9E0 00018940 4E 80 00 20 */ blr

File diff suppressed because it is too large Load Diff

8341
asm/Kyoto_CWD/CFrontEndUI.s Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,375 @@
.include "macros.inc"
.section .text, "ax"
.global Update__15CInputGeneratorFfR18CArchitectureQueue
Update__15CInputGeneratorFfR18CArchitectureQueue:
/* 80022FD8 0001FF38 94 21 FE B0 */ stwu r1, -0x150(r1)
/* 80022FDC 0001FF3C 7C 08 02 A6 */ mflr r0
/* 80022FE0 0001FF40 90 01 01 54 */ stw r0, 0x154(r1)
/* 80022FE4 0001FF44 DB E1 01 40 */ stfd f31, 0x140(r1)
/* 80022FE8 0001FF48 F3 E1 01 48 */ psq_st f31, 328(r1), 0, qr0
/* 80022FEC 0001FF4C BE 61 01 0C */ stmw r19, 0x10c(r1)
/* 80022FF0 0001FF50 7C 7E 1B 78 */ mr r30, r3
/* 80022FF4 0001FF54 FF E0 08 90 */ fmr f31, f1
/* 80022FF8 0001FF58 80 63 00 00 */ lwz r3, 0(r3)
/* 80022FFC 0001FF5C 7C 9F 23 78 */ mr r31, r4
/* 80023000 0001FF60 3A C0 00 00 */ li r22, 0
/* 80023004 0001FF64 48 2B 36 39 */ bl Update__10COsContextFv
/* 80023008 0001FF68 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 8002300C 0001FF6C 40 82 00 0C */ bne lbl_80023018
/* 80023010 0001FF70 38 60 00 00 */ li r3, 0
/* 80023014 0001FF74 48 00 04 84 */ b lbl_80023498
lbl_80023018:
/* 80023018 0001FF78 80 7E 00 04 */ lwz r3, 4(r30)
/* 8002301C 0001FF7C 3A A0 00 00 */ li r21, 0
/* 80023020 0001FF80 28 03 00 00 */ cmplwi r3, 0
/* 80023024 0001FF84 41 82 02 84 */ beq lbl_800232A8
/* 80023028 0001FF88 81 83 00 00 */ lwz r12, 0(r3)
/* 8002302C 0001FF8C 81 8C 00 10 */ lwz r12, 0x10(r12)
/* 80023030 0001FF90 7D 89 03 A6 */ mtctr r12
/* 80023034 0001FF94 4E 80 04 21 */ bctrl
/* 80023038 0001FF98 7C 7D 1B 78 */ mr r29, r3
/* 8002303C 0001FF9C 80 7E 00 04 */ lwz r3, 4(r30)
/* 80023040 0001FFA0 81 83 00 00 */ lwz r12, 0(r3)
/* 80023044 0001FFA4 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80023048 0001FFA8 7D 89 03 A6 */ mtctr r12
/* 8002304C 0001FFAC 4E 80 04 21 */ bctrl
/* 80023050 0001FFB0 3B 61 00 38 */ addi r27, r1, 0x38
/* 80023054 0001FFB4 3B 41 00 68 */ addi r26, r1, 0x68
/* 80023058 0001FFB8 3B 21 00 2C */ addi r25, r1, 0x2c
/* 8002305C 0001FFBC 3B 01 00 5C */ addi r24, r1, 0x5c
/* 80023060 0001FFC0 3A 80 00 00 */ li r20, 0
/* 80023064 0001FFC4 48 00 02 3C */ b lbl_800232A0
lbl_80023068:
/* 80023068 0001FFC8 80 7E 00 04 */ lwz r3, 4(r30)
/* 8002306C 0001FFCC 7E 84 A3 78 */ mr r4, r20
/* 80023070 0001FFD0 81 83 00 00 */ lwz r12, 0(r3)
/* 80023074 0001FFD4 81 8C 00 14 */ lwz r12, 0x14(r12)
/* 80023078 0001FFD8 7D 89 03 A6 */ mtctr r12
/* 8002307C 0001FFDC 4E 80 04 21 */ bctrl
/* 80023080 0001FFE0 88 03 00 00 */ lbz r0, 0(r3)
/* 80023084 0001FFE4 7C 73 1B 78 */ mr r19, r3
/* 80023088 0001FFE8 28 00 00 00 */ cmplwi r0, 0
/* 8002308C 0001FFEC 41 82 01 0C */ beq lbl_80023198
/* 80023090 0001FFF0 2C 14 00 00 */ cmpwi r20, 0
/* 80023094 0001FFF4 40 82 00 08 */ bne lbl_8002309C
/* 80023098 0001FFF8 3A A0 00 01 */ li r21, 1
lbl_8002309C:
/* 8002309C 0001FFFC FC 20 F8 90 */ fmr f1, f31
/* 800230A0 00020000 C0 5E 00 0C */ lfs f2, 0xc(r30)
/* 800230A4 00020004 C0 7E 00 10 */ lfs f3, 0x10(r30)
/* 800230A8 00020008 7E 84 A3 78 */ mr r4, r20
/* 800230AC 0002000C 7E 65 9B 78 */ mr r5, r19
/* 800230B0 00020010 38 61 00 CC */ addi r3, r1, 0xcc
/* 800230B4 00020014 48 32 6B 59 */ bl __ct__11CFinalInputFifRC22CControllerGamepadDataff
/* 800230B8 00020018 38 61 00 30 */ addi r3, r1, 0x30
/* 800230BC 0002001C 38 A1 00 CC */ addi r5, r1, 0xcc
/* 800230C0 00020020 38 80 00 01 */ li r4, 1
/* 800230C4 00020024 48 02 EA 2D */ bl CreateUserInput__7MakeMsgF14EArchMsgTargetRC11CFinalInput
/* 800230C8 00020028 80 61 00 30 */ lwz r3, 0x30(r1)
/* 800230CC 0002002C 28 1B 00 00 */ cmplwi r27, 0
/* 800230D0 00020030 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800230D4 00020034 80 81 00 38 */ lwz r4, 0x38(r1)
/* 800230D8 00020038 90 61 00 60 */ stw r3, 0x60(r1)
/* 800230DC 0002003C 90 01 00 64 */ stw r0, 0x64(r1)
/* 800230E0 00020040 90 81 00 68 */ stw r4, 0x68(r1)
/* 800230E4 00020044 80 64 00 04 */ lwz r3, 4(r4)
/* 800230E8 00020048 38 03 00 01 */ addi r0, r3, 1
/* 800230EC 0002004C 90 04 00 04 */ stw r0, 4(r4)
/* 800230F0 00020050 41 82 00 0C */ beq lbl_800230FC
/* 800230F4 00020054 7F 63 DB 78 */ mr r3, r27
/* 800230F8 00020058 4B FE 56 15 */ bl sub_8000870c
lbl_800230FC:
/* 800230FC 0002005C 83 9F 00 08 */ lwz r28, 8(r31)
/* 80023100 00020060 3C 60 80 3D */ lis r3, lbl_803CCAA0@ha
/* 80023104 00020064 38 83 CA A0 */ addi r4, r3, lbl_803CCAA0@l
/* 80023108 00020068 38 A0 00 00 */ li r5, 0
/* 8002310C 0002006C 82 FC 00 00 */ lwz r23, 0(r28)
/* 80023110 00020070 38 60 00 14 */ li r3, 0x14
/* 80023114 00020074 48 2F 27 05 */ bl __nwa__FUlPCcPCc
/* 80023118 00020078 28 03 00 00 */ cmplwi r3, 0
/* 8002311C 0002007C 41 82 00 0C */ beq lbl_80023128
/* 80023120 00020080 92 E3 00 00 */ stw r23, 0(r3)
/* 80023124 00020084 93 83 00 04 */ stw r28, 4(r3)
lbl_80023128:
/* 80023128 00020088 34 83 00 08 */ addic. r4, r3, 8
/* 8002312C 0002008C 41 82 00 2C */ beq lbl_80023158
/* 80023130 00020090 80 01 00 60 */ lwz r0, 0x60(r1)
/* 80023134 00020094 90 04 00 00 */ stw r0, 0(r4)
/* 80023138 00020098 80 01 00 64 */ lwz r0, 0x64(r1)
/* 8002313C 0002009C 90 04 00 04 */ stw r0, 4(r4)
/* 80023140 000200A0 80 01 00 68 */ lwz r0, 0x68(r1)
/* 80023144 000200A4 90 04 00 08 */ stw r0, 8(r4)
/* 80023148 000200A8 80 A4 00 08 */ lwz r5, 8(r4)
/* 8002314C 000200AC 80 85 00 04 */ lwz r4, 4(r5)
/* 80023150 000200B0 38 04 00 01 */ addi r0, r4, 1
/* 80023154 000200B4 90 05 00 04 */ stw r0, 4(r5)
lbl_80023158:
/* 80023158 000200B8 80 1F 00 04 */ lwz r0, 4(r31)
/* 8002315C 000200BC 7C 1C 00 40 */ cmplw r28, r0
/* 80023160 000200C0 40 82 00 08 */ bne lbl_80023168
/* 80023164 000200C4 90 7F 00 04 */ stw r3, 4(r31)
lbl_80023168:
/* 80023168 000200C8 80 83 00 00 */ lwz r4, 0(r3)
/* 8002316C 000200CC 28 1A 00 00 */ cmplwi r26, 0
/* 80023170 000200D0 90 64 00 04 */ stw r3, 4(r4)
/* 80023174 000200D4 80 83 00 04 */ lwz r4, 4(r3)
/* 80023178 000200D8 90 64 00 00 */ stw r3, 0(r4)
/* 8002317C 000200DC 80 7F 00 14 */ lwz r3, 0x14(r31)
/* 80023180 000200E0 38 03 00 01 */ addi r0, r3, 1
/* 80023184 000200E4 90 1F 00 14 */ stw r0, 0x14(r31)
/* 80023188 000200E8 41 82 00 0C */ beq lbl_80023194
/* 8002318C 000200EC 7F 43 D3 78 */ mr r3, r26
/* 80023190 000200F0 4B FE 55 7D */ bl sub_8000870c
lbl_80023194:
/* 80023194 000200F4 3A D6 00 01 */ addi r22, r22, 1
lbl_80023198:
/* 80023198 000200F8 3A F4 00 08 */ addi r23, r20, 8
/* 8002319C 000200FC 88 73 00 00 */ lbz r3, 0(r19)
/* 800231A0 00020100 7C 1E B8 AE */ lbzx r0, r30, r23
/* 800231A4 00020104 98 61 00 08 */ stb r3, 8(r1)
/* 800231A8 00020108 7C 00 18 40 */ cmplw r0, r3
/* 800231AC 0002010C 41 82 00 F0 */ beq lbl_8002329C
/* 800231B0 00020110 B2 81 00 0A */ sth r20, 0xa(r1)
/* 800231B4 00020114 38 61 00 24 */ addi r3, r1, 0x24
/* 800231B8 00020118 38 A1 00 0A */ addi r5, r1, 0xa
/* 800231BC 0002011C 38 C1 00 08 */ addi r6, r1, 8
/* 800231C0 00020120 38 80 00 01 */ li r4, 1
/* 800231C4 00020124 48 02 E8 59 */ bl CreateControllerStatus__7MakeMsgF14EArchMsgTargetRCsRCb
/* 800231C8 00020128 80 61 00 24 */ lwz r3, 0x24(r1)
/* 800231CC 0002012C 28 19 00 00 */ cmplwi r25, 0
/* 800231D0 00020130 80 01 00 28 */ lwz r0, 0x28(r1)
/* 800231D4 00020134 80 81 00 2C */ lwz r4, 0x2c(r1)
/* 800231D8 00020138 90 61 00 54 */ stw r3, 0x54(r1)
/* 800231DC 0002013C 90 01 00 58 */ stw r0, 0x58(r1)
/* 800231E0 00020140 90 81 00 5C */ stw r4, 0x5c(r1)
/* 800231E4 00020144 80 64 00 04 */ lwz r3, 4(r4)
/* 800231E8 00020148 38 03 00 01 */ addi r0, r3, 1
/* 800231EC 0002014C 90 04 00 04 */ stw r0, 4(r4)
/* 800231F0 00020150 41 82 00 0C */ beq lbl_800231FC
/* 800231F4 00020154 7F 23 CB 78 */ mr r3, r25
/* 800231F8 00020158 4B FE 55 15 */ bl sub_8000870c
lbl_800231FC:
/* 800231FC 0002015C 83 9F 00 08 */ lwz r28, 8(r31)
/* 80023200 00020160 3C 60 80 3D */ lis r3, lbl_803CCAA0@ha
/* 80023204 00020164 38 83 CA A0 */ addi r4, r3, lbl_803CCAA0@l
/* 80023208 00020168 38 A0 00 00 */ li r5, 0
/* 8002320C 0002016C 82 7C 00 00 */ lwz r19, 0(r28)
/* 80023210 00020170 38 60 00 14 */ li r3, 0x14
/* 80023214 00020174 48 2F 26 05 */ bl __nwa__FUlPCcPCc
/* 80023218 00020178 28 03 00 00 */ cmplwi r3, 0
/* 8002321C 0002017C 41 82 00 0C */ beq lbl_80023228
/* 80023220 00020180 92 63 00 00 */ stw r19, 0(r3)
/* 80023224 00020184 93 83 00 04 */ stw r28, 4(r3)
lbl_80023228:
/* 80023228 00020188 34 83 00 08 */ addic. r4, r3, 8
/* 8002322C 0002018C 41 82 00 2C */ beq lbl_80023258
/* 80023230 00020190 80 01 00 54 */ lwz r0, 0x54(r1)
/* 80023234 00020194 90 04 00 00 */ stw r0, 0(r4)
/* 80023238 00020198 80 01 00 58 */ lwz r0, 0x58(r1)
/* 8002323C 0002019C 90 04 00 04 */ stw r0, 4(r4)
/* 80023240 000201A0 80 01 00 5C */ lwz r0, 0x5c(r1)
/* 80023244 000201A4 90 04 00 08 */ stw r0, 8(r4)
/* 80023248 000201A8 80 A4 00 08 */ lwz r5, 8(r4)
/* 8002324C 000201AC 80 85 00 04 */ lwz r4, 4(r5)
/* 80023250 000201B0 38 04 00 01 */ addi r0, r4, 1
/* 80023254 000201B4 90 05 00 04 */ stw r0, 4(r5)
lbl_80023258:
/* 80023258 000201B8 80 1F 00 04 */ lwz r0, 4(r31)
/* 8002325C 000201BC 7C 1C 00 40 */ cmplw r28, r0
/* 80023260 000201C0 40 82 00 08 */ bne lbl_80023268
/* 80023264 000201C4 90 7F 00 04 */ stw r3, 4(r31)
lbl_80023268:
/* 80023268 000201C8 80 83 00 00 */ lwz r4, 0(r3)
/* 8002326C 000201CC 28 18 00 00 */ cmplwi r24, 0
/* 80023270 000201D0 88 01 00 08 */ lbz r0, 8(r1)
/* 80023274 000201D4 90 64 00 04 */ stw r3, 4(r4)
/* 80023278 000201D8 80 83 00 04 */ lwz r4, 4(r3)
/* 8002327C 000201DC 90 64 00 00 */ stw r3, 0(r4)
/* 80023280 000201E0 80 7F 00 14 */ lwz r3, 0x14(r31)
/* 80023284 000201E4 38 63 00 01 */ addi r3, r3, 1
/* 80023288 000201E8 90 7F 00 14 */ stw r3, 0x14(r31)
/* 8002328C 000201EC 7C 1E B9 AE */ stbx r0, r30, r23
/* 80023290 000201F0 41 82 00 0C */ beq lbl_8002329C
/* 80023294 000201F4 7F 03 C3 78 */ mr r3, r24
/* 80023298 000201F8 4B FE 54 75 */ bl sub_8000870c
lbl_8002329C:
/* 8002329C 000201FC 3A 94 00 01 */ addi r20, r20, 1
lbl_800232A0:
/* 800232A0 00020200 7C 14 E8 00 */ cmpw r20, r29
/* 800232A4 00020204 41 80 FD C4 */ blt lbl_80023068
lbl_800232A8:
/* 800232A8 00020208 56 A0 06 3F */ clrlwi. r0, r21, 0x18
/* 800232AC 0002020C 40 82 00 F8 */ bne lbl_800233A4
/* 800232B0 00020210 FC 20 F8 90 */ fmr f1, f31
/* 800232B4 00020214 80 BE 00 00 */ lwz r5, 0(r30)
/* 800232B8 00020218 38 61 00 9C */ addi r3, r1, 0x9c
/* 800232BC 0002021C 38 80 00 00 */ li r4, 0
/* 800232C0 00020220 48 32 5D A1 */ bl __ct__11CFinalInputFifRC10COsContext
/* 800232C4 00020224 7C 65 1B 78 */ mr r5, r3
/* 800232C8 00020228 38 61 00 18 */ addi r3, r1, 0x18
/* 800232CC 0002022C 38 80 00 01 */ li r4, 1
/* 800232D0 00020230 48 02 E8 21 */ bl CreateUserInput__7MakeMsgF14EArchMsgTargetRC11CFinalInput
/* 800232D4 00020234 80 81 00 18 */ lwz r4, 0x18(r1)
/* 800232D8 00020238 34 61 00 20 */ addic. r3, r1, 0x20
/* 800232DC 0002023C 80 01 00 1C */ lwz r0, 0x1c(r1)
/* 800232E0 00020240 3A E1 00 50 */ addi r23, r1, 0x50
/* 800232E4 00020244 80 A1 00 20 */ lwz r5, 0x20(r1)
/* 800232E8 00020248 90 81 00 48 */ stw r4, 0x48(r1)
/* 800232EC 0002024C 90 01 00 4C */ stw r0, 0x4c(r1)
/* 800232F0 00020250 90 A1 00 50 */ stw r5, 0x50(r1)
/* 800232F4 00020254 80 85 00 04 */ lwz r4, 4(r5)
/* 800232F8 00020258 38 04 00 01 */ addi r0, r4, 1
/* 800232FC 0002025C 90 05 00 04 */ stw r0, 4(r5)
/* 80023300 00020260 41 82 00 08 */ beq lbl_80023308
/* 80023304 00020264 4B FE 54 09 */ bl sub_8000870c
lbl_80023308:
/* 80023308 00020268 82 7F 00 08 */ lwz r19, 8(r31)
/* 8002330C 0002026C 3C 60 80 3D */ lis r3, lbl_803CCAA0@ha
/* 80023310 00020270 38 83 CA A0 */ addi r4, r3, lbl_803CCAA0@l
/* 80023314 00020274 38 A0 00 00 */ li r5, 0
/* 80023318 00020278 82 93 00 00 */ lwz r20, 0(r19)
/* 8002331C 0002027C 38 60 00 14 */ li r3, 0x14
/* 80023320 00020280 48 2F 24 F9 */ bl __nwa__FUlPCcPCc
/* 80023324 00020284 28 03 00 00 */ cmplwi r3, 0
/* 80023328 00020288 41 82 00 0C */ beq lbl_80023334
/* 8002332C 0002028C 92 83 00 00 */ stw r20, 0(r3)
/* 80023330 00020290 92 63 00 04 */ stw r19, 4(r3)
lbl_80023334:
/* 80023334 00020294 34 83 00 08 */ addic. r4, r3, 8
/* 80023338 00020298 41 82 00 2C */ beq lbl_80023364
/* 8002333C 0002029C 80 01 00 48 */ lwz r0, 0x48(r1)
/* 80023340 000202A0 90 04 00 00 */ stw r0, 0(r4)
/* 80023344 000202A4 80 01 00 4C */ lwz r0, 0x4c(r1)
/* 80023348 000202A8 90 04 00 04 */ stw r0, 4(r4)
/* 8002334C 000202AC 80 01 00 50 */ lwz r0, 0x50(r1)
/* 80023350 000202B0 90 04 00 08 */ stw r0, 8(r4)
/* 80023354 000202B4 80 A4 00 08 */ lwz r5, 8(r4)
/* 80023358 000202B8 80 85 00 04 */ lwz r4, 4(r5)
/* 8002335C 000202BC 38 04 00 01 */ addi r0, r4, 1
/* 80023360 000202C0 90 05 00 04 */ stw r0, 4(r5)
lbl_80023364:
/* 80023364 000202C4 80 1F 00 04 */ lwz r0, 4(r31)
/* 80023368 000202C8 7C 13 00 40 */ cmplw r19, r0
/* 8002336C 000202CC 40 82 00 08 */ bne lbl_80023374
/* 80023370 000202D0 90 7F 00 04 */ stw r3, 4(r31)
lbl_80023374:
/* 80023374 000202D4 80 83 00 00 */ lwz r4, 0(r3)
/* 80023378 000202D8 28 17 00 00 */ cmplwi r23, 0
/* 8002337C 000202DC 90 64 00 04 */ stw r3, 4(r4)
/* 80023380 000202E0 80 83 00 04 */ lwz r4, 4(r3)
/* 80023384 000202E4 90 64 00 00 */ stw r3, 0(r4)
/* 80023388 000202E8 80 7F 00 14 */ lwz r3, 0x14(r31)
/* 8002338C 000202EC 38 03 00 01 */ addi r0, r3, 1
/* 80023390 000202F0 90 1F 00 14 */ stw r0, 0x14(r31)
/* 80023394 000202F4 41 82 01 00 */ beq lbl_80023494
/* 80023398 000202F8 7E E3 BB 78 */ mr r3, r23
/* 8002339C 000202FC 4B FE 53 71 */ bl sub_8000870c
/* 800233A0 00020300 48 00 00 F4 */ b lbl_80023494
lbl_800233A4:
/* 800233A4 00020304 FC 20 F8 90 */ fmr f1, f31
/* 800233A8 00020308 80 BE 00 00 */ lwz r5, 0(r30)
/* 800233AC 0002030C 7E C4 B3 78 */ mr r4, r22
/* 800233B0 00020310 38 61 00 6C */ addi r3, r1, 0x6c
/* 800233B4 00020314 48 32 5C AD */ bl __ct__11CFinalInputFifRC10COsContext
/* 800233B8 00020318 7C 65 1B 78 */ mr r5, r3
/* 800233BC 0002031C 38 61 00 0C */ addi r3, r1, 0xc
/* 800233C0 00020320 38 80 00 01 */ li r4, 1
/* 800233C4 00020324 48 02 E7 2D */ bl CreateUserInput__7MakeMsgF14EArchMsgTargetRC11CFinalInput
/* 800233C8 00020328 80 81 00 0C */ lwz r4, 0xc(r1)
/* 800233CC 0002032C 34 61 00 14 */ addic. r3, r1, 0x14
/* 800233D0 00020330 80 01 00 10 */ lwz r0, 0x10(r1)
/* 800233D4 00020334 3A E1 00 44 */ addi r23, r1, 0x44
/* 800233D8 00020338 80 A1 00 14 */ lwz r5, 0x14(r1)
/* 800233DC 0002033C 90 81 00 3C */ stw r4, 0x3c(r1)
/* 800233E0 00020340 90 01 00 40 */ stw r0, 0x40(r1)
/* 800233E4 00020344 90 A1 00 44 */ stw r5, 0x44(r1)
/* 800233E8 00020348 80 85 00 04 */ lwz r4, 4(r5)
/* 800233EC 0002034C 38 04 00 01 */ addi r0, r4, 1
/* 800233F0 00020350 90 05 00 04 */ stw r0, 4(r5)
/* 800233F4 00020354 41 82 00 08 */ beq lbl_800233FC
/* 800233F8 00020358 4B FE 53 15 */ bl sub_8000870c
lbl_800233FC:
/* 800233FC 0002035C 82 7F 00 08 */ lwz r19, 8(r31)
/* 80023400 00020360 3C 60 80 3D */ lis r3, lbl_803CCAA0@ha
/* 80023404 00020364 38 83 CA A0 */ addi r4, r3, lbl_803CCAA0@l
/* 80023408 00020368 38 A0 00 00 */ li r5, 0
/* 8002340C 0002036C 82 93 00 00 */ lwz r20, 0(r19)
/* 80023410 00020370 38 60 00 14 */ li r3, 0x14
/* 80023414 00020374 48 2F 24 05 */ bl __nwa__FUlPCcPCc
/* 80023418 00020378 28 03 00 00 */ cmplwi r3, 0
/* 8002341C 0002037C 41 82 00 0C */ beq lbl_80023428
/* 80023420 00020380 92 83 00 00 */ stw r20, 0(r3)
/* 80023424 00020384 92 63 00 04 */ stw r19, 4(r3)
lbl_80023428:
/* 80023428 00020388 34 83 00 08 */ addic. r4, r3, 8
/* 8002342C 0002038C 41 82 00 2C */ beq lbl_80023458
/* 80023430 00020390 80 01 00 3C */ lwz r0, 0x3c(r1)
/* 80023434 00020394 90 04 00 00 */ stw r0, 0(r4)
/* 80023438 00020398 80 01 00 40 */ lwz r0, 0x40(r1)
/* 8002343C 0002039C 90 04 00 04 */ stw r0, 4(r4)
/* 80023440 000203A0 80 01 00 44 */ lwz r0, 0x44(r1)
/* 80023444 000203A4 90 04 00 08 */ stw r0, 8(r4)
/* 80023448 000203A8 80 A4 00 08 */ lwz r5, 8(r4)
/* 8002344C 000203AC 80 85 00 04 */ lwz r4, 4(r5)
/* 80023450 000203B0 38 04 00 01 */ addi r0, r4, 1
/* 80023454 000203B4 90 05 00 04 */ stw r0, 4(r5)
lbl_80023458:
/* 80023458 000203B8 80 1F 00 04 */ lwz r0, 4(r31)
/* 8002345C 000203BC 7C 13 00 40 */ cmplw r19, r0
/* 80023460 000203C0 40 82 00 08 */ bne lbl_80023468
/* 80023464 000203C4 90 7F 00 04 */ stw r3, 4(r31)
lbl_80023468:
/* 80023468 000203C8 80 83 00 00 */ lwz r4, 0(r3)
/* 8002346C 000203CC 28 17 00 00 */ cmplwi r23, 0
/* 80023470 000203D0 90 64 00 04 */ stw r3, 4(r4)
/* 80023474 000203D4 80 83 00 04 */ lwz r4, 4(r3)
/* 80023478 000203D8 90 64 00 00 */ stw r3, 0(r4)
/* 8002347C 000203DC 80 7F 00 14 */ lwz r3, 0x14(r31)
/* 80023480 000203E0 38 03 00 01 */ addi r0, r3, 1
/* 80023484 000203E4 90 1F 00 14 */ stw r0, 0x14(r31)
/* 80023488 000203E8 41 82 00 0C */ beq lbl_80023494
/* 8002348C 000203EC 7E E3 BB 78 */ mr r3, r23
/* 80023490 000203F0 4B FE 52 7D */ bl sub_8000870c
lbl_80023494:
/* 80023494 000203F4 38 60 00 01 */ li r3, 1
lbl_80023498:
/* 80023498 000203F8 E3 E1 01 48 */ psq_l f31, 328(r1), 0, qr0
/* 8002349C 000203FC CB E1 01 40 */ lfd f31, 0x140(r1)
/* 800234A0 00020400 BA 61 01 0C */ lmw r19, 0x10c(r1)
/* 800234A4 00020404 80 01 01 54 */ lwz r0, 0x154(r1)
/* 800234A8 00020408 7C 08 03 A6 */ mtlr r0
/* 800234AC 0002040C 38 21 01 50 */ addi r1, r1, 0x150
/* 800234B0 00020410 4E 80 00 20 */ blr
.global __ct__15CInputGeneratorFP10COsContextff
__ct__15CInputGeneratorFP10COsContextff:
/* 800234B4 00020414 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800234B8 00020418 7C 08 02 A6 */ mflr r0
/* 800234BC 0002041C 90 01 00 24 */ stw r0, 0x24(r1)
/* 800234C0 00020420 DB E1 00 18 */ stfd f31, 0x18(r1)
/* 800234C4 00020424 FF E0 10 90 */ fmr f31, f2
/* 800234C8 00020428 DB C1 00 10 */ stfd f30, 0x10(r1)
/* 800234CC 0002042C FF C0 08 90 */ fmr f30, f1
/* 800234D0 00020430 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800234D4 00020434 7C 7F 1B 78 */ mr r31, r3
/* 800234D8 00020438 90 83 00 00 */ stw r4, 0(r3)
/* 800234DC 0002043C 7C 83 23 78 */ mr r3, r4
/* 800234E0 00020440 48 32 BA D5 */ bl Create__11IControllerFRC10COsContext
/* 800234E4 00020444 90 7F 00 04 */ stw r3, 4(r31)
/* 800234E8 00020448 38 00 00 00 */ li r0, 0
/* 800234EC 0002044C 7F E3 FB 78 */ mr r3, r31
/* 800234F0 00020450 D3 DF 00 0C */ stfs f30, 0xc(r31)
/* 800234F4 00020454 D3 FF 00 10 */ stfs f31, 0x10(r31)
/* 800234F8 00020458 98 1F 00 08 */ stb r0, 8(r31)
/* 800234FC 0002045C 98 1F 00 09 */ stb r0, 9(r31)
/* 80023500 00020460 98 1F 00 0A */ stb r0, 0xa(r31)
/* 80023504 00020464 98 1F 00 0B */ stb r0, 0xb(r31)
/* 80023508 00020468 CB E1 00 18 */ lfd f31, 0x18(r1)
/* 8002350C 0002046C CB C1 00 10 */ lfd f30, 0x10(r1)
/* 80023510 00020470 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80023514 00020474 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80023518 00020478 7C 08 03 A6 */ mtlr r0
/* 8002351C 0002047C 38 21 00 20 */ addi r1, r1, 0x20
/* 80023520 00020480 4E 80 00 20 */ blr

345
asm/Kyoto_CWD/CObjectList.s Normal file
View File

@ -0,0 +1,345 @@
.include "macros.inc"
.section .text, "ax"
.global GetObjectByIndex__11CObjectListCFi
GetObjectByIndex__11CObjectListCFi:
/* 8000FCCC 0000CC2C 54 80 18 38 */ slwi r0, r4, 3
/* 8000FCD0 0000CC30 7C 63 02 14 */ add r3, r3, r0
/* 8000FCD4 0000CC34 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FCD8 0000CC38 4E 80 00 20 */ blr
.global __vc__11CObjectListCFi
__vc__11CObjectListCFi:
/* 8000FCDC 0000CC3C 54 80 18 38 */ slwi r0, r4, 3
/* 8000FCE0 0000CC40 38 80 00 00 */ li r4, 0
/* 8000FCE4 0000CC44 7C 63 02 14 */ add r3, r3, r0
/* 8000FCE8 0000CC48 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FCEC 0000CC4C 28 03 00 00 */ cmplwi r3, 0
/* 8000FCF0 0000CC50 41 82 00 10 */ beq lbl_8000FD00
/* 8000FCF4 0000CC54 88 03 00 30 */ lbz r0, 0x30(r3)
/* 8000FCF8 0000CC58 54 00 DF FF */ rlwinm. r0, r0, 0x1b, 0x1f, 0x1f
/* 8000FCFC 0000CC5C 41 82 00 08 */ beq lbl_8000FD04
lbl_8000FD00:
/* 8000FD00 0000CC60 38 80 00 01 */ li r4, 1
lbl_8000FD04:
/* 8000FD04 0000CC64 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8000FD08 0000CC68 4D 82 00 20 */ beqlr
/* 8000FD0C 0000CC6C 38 60 00 00 */ li r3, 0
/* 8000FD10 0000CC70 4E 80 00 20 */ blr
.global __vc__11CObjectListFi
__vc__11CObjectListFi:
/* 8000FD14 0000CC74 54 80 18 38 */ slwi r0, r4, 3
/* 8000FD18 0000CC78 38 80 00 00 */ li r4, 0
/* 8000FD1C 0000CC7C 7C 63 02 14 */ add r3, r3, r0
/* 8000FD20 0000CC80 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FD24 0000CC84 28 03 00 00 */ cmplwi r3, 0
/* 8000FD28 0000CC88 41 82 00 10 */ beq lbl_8000FD38
/* 8000FD2C 0000CC8C 88 03 00 30 */ lbz r0, 0x30(r3)
/* 8000FD30 0000CC90 54 00 DF FF */ rlwinm. r0, r0, 0x1b, 0x1f, 0x1f
/* 8000FD34 0000CC94 41 82 00 08 */ beq lbl_8000FD3C
lbl_8000FD38:
/* 8000FD38 0000CC98 38 80 00 01 */ li r4, 1
lbl_8000FD3C:
/* 8000FD3C 0000CC9C 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8000FD40 0000CCA0 4D 82 00 20 */ beqlr
/* 8000FD44 0000CCA4 38 60 00 00 */ li r3, 0
/* 8000FD48 0000CCA8 4E 80 00 20 */ blr
.global GetValidObjectById__11CObjectListCF9TUniqueId
GetValidObjectById__11CObjectListCF9TUniqueId:
/* 8000FD4C 0000CCAC A0 A4 00 00 */ lhz r5, 0(r4)
/* 8000FD50 0000CCB0 A0 0D A3 8C */ lhz r0, lbl_805A8F4C@sda21(r13)
/* 8000FD54 0000CCB4 7C 05 00 40 */ cmplw r5, r0
/* 8000FD58 0000CCB8 40 82 00 0C */ bne lbl_8000FD64
/* 8000FD5C 0000CCBC 38 60 00 00 */ li r3, 0
/* 8000FD60 0000CCC0 4E 80 00 20 */ blr
lbl_8000FD64:
/* 8000FD64 0000CCC4 54 A0 1C F8 */ rlwinm r0, r5, 3, 0x13, 0x1c
/* 8000FD68 0000CCC8 38 80 00 00 */ li r4, 0
/* 8000FD6C 0000CCCC 7C 63 02 14 */ add r3, r3, r0
/* 8000FD70 0000CCD0 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FD74 0000CCD4 28 03 00 00 */ cmplwi r3, 0
/* 8000FD78 0000CCD8 41 82 00 14 */ beq lbl_8000FD8C
/* 8000FD7C 0000CCDC A0 03 00 08 */ lhz r0, 8(r3)
/* 8000FD80 0000CCE0 7C 05 00 40 */ cmplw r5, r0
/* 8000FD84 0000CCE4 40 82 00 08 */ bne lbl_8000FD8C
/* 8000FD88 0000CCE8 38 80 00 01 */ li r4, 1
lbl_8000FD8C:
/* 8000FD8C 0000CCEC 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8000FD90 0000CCF0 4C 82 00 20 */ bnelr
/* 8000FD94 0000CCF4 38 60 00 00 */ li r3, 0
/* 8000FD98 0000CCF8 4E 80 00 20 */ blr
.global GetValidObjectById__11CObjectListF9TUniqueId
GetValidObjectById__11CObjectListF9TUniqueId:
/* 8000FD9C 0000CCFC A0 A4 00 00 */ lhz r5, 0(r4)
/* 8000FDA0 0000CD00 A0 0D A3 8C */ lhz r0, lbl_805A8F4C@sda21(r13)
/* 8000FDA4 0000CD04 7C 05 00 40 */ cmplw r5, r0
/* 8000FDA8 0000CD08 40 82 00 0C */ bne lbl_8000FDB4
/* 8000FDAC 0000CD0C 38 60 00 00 */ li r3, 0
/* 8000FDB0 0000CD10 4E 80 00 20 */ blr
lbl_8000FDB4:
/* 8000FDB4 0000CD14 54 A0 1C F8 */ rlwinm r0, r5, 3, 0x13, 0x1c
/* 8000FDB8 0000CD18 38 80 00 00 */ li r4, 0
/* 8000FDBC 0000CD1C 7C 63 02 14 */ add r3, r3, r0
/* 8000FDC0 0000CD20 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FDC4 0000CD24 28 03 00 00 */ cmplwi r3, 0
/* 8000FDC8 0000CD28 41 82 00 14 */ beq lbl_8000FDDC
/* 8000FDCC 0000CD2C A0 03 00 08 */ lhz r0, 8(r3)
/* 8000FDD0 0000CD30 7C 05 00 40 */ cmplw r5, r0
/* 8000FDD4 0000CD34 40 82 00 08 */ bne lbl_8000FDDC
/* 8000FDD8 0000CD38 38 80 00 01 */ li r4, 1
lbl_8000FDDC:
/* 8000FDDC 0000CD3C 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8000FDE0 0000CD40 4C 82 00 20 */ bnelr
/* 8000FDE4 0000CD44 38 60 00 00 */ li r3, 0
/* 8000FDE8 0000CD48 4E 80 00 20 */ blr
.global GetObjectById__11CObjectListCF9TUniqueId
GetObjectById__11CObjectListCF9TUniqueId:
/* 8000FDEC 0000CD4C A0 A4 00 00 */ lhz r5, 0(r4)
/* 8000FDF0 0000CD50 A0 0D A3 8C */ lhz r0, lbl_805A8F4C@sda21(r13)
/* 8000FDF4 0000CD54 7C 05 00 40 */ cmplw r5, r0
/* 8000FDF8 0000CD58 40 82 00 0C */ bne lbl_8000FE04
/* 8000FDFC 0000CD5C 38 60 00 00 */ li r3, 0
/* 8000FE00 0000CD60 4E 80 00 20 */ blr
lbl_8000FE04:
/* 8000FE04 0000CD64 54 A0 1C F8 */ rlwinm r0, r5, 3, 0x13, 0x1c
/* 8000FE08 0000CD68 38 80 00 00 */ li r4, 0
/* 8000FE0C 0000CD6C 7C 63 02 14 */ add r3, r3, r0
/* 8000FE10 0000CD70 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FE14 0000CD74 28 03 00 00 */ cmplwi r3, 0
/* 8000FE18 0000CD78 41 82 00 20 */ beq lbl_8000FE38
/* 8000FE1C 0000CD7C A0 03 00 08 */ lhz r0, 8(r3)
/* 8000FE20 0000CD80 7C 05 00 40 */ cmplw r5, r0
/* 8000FE24 0000CD84 40 82 00 14 */ bne lbl_8000FE38
/* 8000FE28 0000CD88 88 03 00 30 */ lbz r0, 0x30(r3)
/* 8000FE2C 0000CD8C 54 00 DF FF */ rlwinm. r0, r0, 0x1b, 0x1f, 0x1f
/* 8000FE30 0000CD90 40 82 00 08 */ bne lbl_8000FE38
/* 8000FE34 0000CD94 38 80 00 01 */ li r4, 1
lbl_8000FE38:
/* 8000FE38 0000CD98 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8000FE3C 0000CD9C 4C 82 00 20 */ bnelr
/* 8000FE40 0000CDA0 38 60 00 00 */ li r3, 0
/* 8000FE44 0000CDA4 4E 80 00 20 */ blr
.global GetObjectById__11CObjectListF9TUniqueId
GetObjectById__11CObjectListF9TUniqueId:
/* 8000FE48 0000CDA8 A0 A4 00 00 */ lhz r5, 0(r4)
/* 8000FE4C 0000CDAC A0 0D A3 8C */ lhz r0, lbl_805A8F4C@sda21(r13)
/* 8000FE50 0000CDB0 7C 05 00 40 */ cmplw r5, r0
/* 8000FE54 0000CDB4 40 82 00 0C */ bne lbl_8000FE60
/* 8000FE58 0000CDB8 38 60 00 00 */ li r3, 0
/* 8000FE5C 0000CDBC 4E 80 00 20 */ blr
lbl_8000FE60:
/* 8000FE60 0000CDC0 54 A0 1C F8 */ rlwinm r0, r5, 3, 0x13, 0x1c
/* 8000FE64 0000CDC4 38 80 00 00 */ li r4, 0
/* 8000FE68 0000CDC8 7C 63 02 14 */ add r3, r3, r0
/* 8000FE6C 0000CDCC 80 63 00 04 */ lwz r3, 4(r3)
/* 8000FE70 0000CDD0 28 03 00 00 */ cmplwi r3, 0
/* 8000FE74 0000CDD4 41 82 00 20 */ beq lbl_8000FE94
/* 8000FE78 0000CDD8 A0 03 00 08 */ lhz r0, 8(r3)
/* 8000FE7C 0000CDDC 7C 05 00 40 */ cmplw r5, r0
/* 8000FE80 0000CDE0 40 82 00 14 */ bne lbl_8000FE94
/* 8000FE84 0000CDE4 88 03 00 30 */ lbz r0, 0x30(r3)
/* 8000FE88 0000CDE8 54 00 DF FF */ rlwinm. r0, r0, 0x1b, 0x1f, 0x1f
/* 8000FE8C 0000CDEC 40 82 00 08 */ bne lbl_8000FE94
/* 8000FE90 0000CDF0 38 80 00 01 */ li r4, 1
lbl_8000FE94:
/* 8000FE94 0000CDF4 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8000FE98 0000CDF8 4C 82 00 20 */ bnelr
/* 8000FE9C 0000CDFC 38 60 00 00 */ li r3, 0
/* 8000FEA0 0000CE00 4E 80 00 20 */ blr
.global RemoveObject__11CObjectListF9TUniqueId
RemoveObject__11CObjectListF9TUniqueId:
/* 8000FEA4 0000CE04 A0 E4 00 00 */ lhz r7, 0(r4)
/* 8000FEA8 0000CE08 54 E0 1C F8 */ rlwinm r0, r7, 3, 0x13, 0x1c
/* 8000FEAC 0000CE0C 54 E8 05 BE */ clrlwi r8, r7, 0x16
/* 8000FEB0 0000CE10 7C A3 02 14 */ add r5, r3, r0
/* 8000FEB4 0000CE14 80 C5 00 04 */ lwz r6, 4(r5)
/* 8000FEB8 0000CE18 28 06 00 00 */ cmplwi r6, 0
/* 8000FEBC 0000CE1C 4D 82 00 20 */ beqlr
/* 8000FEC0 0000CE20 A0 06 00 08 */ lhz r0, 8(r6)
/* 8000FEC4 0000CE24 7C 00 38 40 */ cmplw r0, r7
/* 8000FEC8 0000CE28 4C 82 00 20 */ bnelr
/* 8000FECC 0000CE2C A8 03 20 08 */ lha r0, 0x2008(r3)
/* 8000FED0 0000CE30 7C 00 40 00 */ cmpw r0, r8
/* 8000FED4 0000CE34 40 82 00 38 */ bne lbl_8000FF0C
/* 8000FED8 0000CE38 A8 05 00 08 */ lha r0, 8(r5)
/* 8000FEDC 0000CE3C B0 03 20 08 */ sth r0, 0x2008(r3)
/* 8000FEE0 0000CE40 A0 04 00 00 */ lhz r0, 0(r4)
/* 8000FEE4 0000CE44 54 00 1C F8 */ rlwinm r0, r0, 3, 0x13, 0x1c
/* 8000FEE8 0000CE48 7C A3 02 14 */ add r5, r3, r0
/* 8000FEEC 0000CE4C A8 05 00 08 */ lha r0, 8(r5)
/* 8000FEF0 0000CE50 2C 00 FF FF */ cmpwi r0, -1
/* 8000FEF4 0000CE54 41 82 00 54 */ beq lbl_8000FF48
/* 8000FEF8 0000CE58 54 00 18 38 */ slwi r0, r0, 3
/* 8000FEFC 0000CE5C 38 C0 FF FF */ li r6, -1
/* 8000FF00 0000CE60 7C A3 02 14 */ add r5, r3, r0
/* 8000FF04 0000CE64 B0 C5 00 0A */ sth r6, 0xa(r5)
/* 8000FF08 0000CE68 48 00 00 40 */ b lbl_8000FF48
lbl_8000FF0C:
/* 8000FF0C 0000CE6C A8 05 00 0A */ lha r0, 0xa(r5)
/* 8000FF10 0000CE70 A8 C5 00 08 */ lha r6, 8(r5)
/* 8000FF14 0000CE74 54 00 18 38 */ slwi r0, r0, 3
/* 8000FF18 0000CE78 7C A3 02 14 */ add r5, r3, r0
/* 8000FF1C 0000CE7C B0 C5 00 08 */ sth r6, 8(r5)
/* 8000FF20 0000CE80 A0 04 00 00 */ lhz r0, 0(r4)
/* 8000FF24 0000CE84 54 00 1C F8 */ rlwinm r0, r0, 3, 0x13, 0x1c
/* 8000FF28 0000CE88 7C A3 02 14 */ add r5, r3, r0
/* 8000FF2C 0000CE8C A8 05 00 08 */ lha r0, 8(r5)
/* 8000FF30 0000CE90 2C 00 FF FF */ cmpwi r0, -1
/* 8000FF34 0000CE94 41 82 00 14 */ beq lbl_8000FF48
/* 8000FF38 0000CE98 54 00 18 38 */ slwi r0, r0, 3
/* 8000FF3C 0000CE9C A8 C5 00 0A */ lha r6, 0xa(r5)
/* 8000FF40 0000CEA0 7C A3 02 14 */ add r5, r3, r0
/* 8000FF44 0000CEA4 B0 C5 00 0A */ sth r6, 0xa(r5)
lbl_8000FF48:
/* 8000FF48 0000CEA8 A8 C3 20 0A */ lha r6, 0x200a(r3)
/* 8000FF4C 0000CEAC 38 E0 00 00 */ li r7, 0
/* 8000FF50 0000CEB0 38 A0 FF FF */ li r5, -1
/* 8000FF54 0000CEB4 38 06 FF FF */ addi r0, r6, -1
/* 8000FF58 0000CEB8 B0 03 20 0A */ sth r0, 0x200a(r3)
/* 8000FF5C 0000CEBC A0 04 00 00 */ lhz r0, 0(r4)
/* 8000FF60 0000CEC0 54 00 1C F8 */ rlwinm r0, r0, 3, 0x13, 0x1c
/* 8000FF64 0000CEC4 7C C3 02 14 */ add r6, r3, r0
/* 8000FF68 0000CEC8 90 E6 00 04 */ stw r7, 4(r6)
/* 8000FF6C 0000CECC A0 04 00 00 */ lhz r0, 0(r4)
/* 8000FF70 0000CED0 54 00 1C F8 */ rlwinm r0, r0, 3, 0x13, 0x1c
/* 8000FF74 0000CED4 7C 63 02 14 */ add r3, r3, r0
/* 8000FF78 0000CED8 B0 A3 00 08 */ sth r5, 8(r3)
/* 8000FF7C 0000CEDC B0 A3 00 0A */ sth r5, 0xa(r3)
/* 8000FF80 0000CEE0 4E 80 00 20 */ blr
.global AddObject__11CObjectListFR7CEntity
AddObject__11CObjectListFR7CEntity:
/* 8000FF84 0000CEE4 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8000FF88 0000CEE8 7C 08 02 A6 */ mflr r0
/* 8000FF8C 0000CEEC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8000FF90 0000CEF0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8000FF94 0000CEF4 7C 9F 23 78 */ mr r31, r4
/* 8000FF98 0000CEF8 93 C1 00 08 */ stw r30, 8(r1)
/* 8000FF9C 0000CEFC 7C 7E 1B 78 */ mr r30, r3
/* 8000FFA0 0000CF00 81 83 00 00 */ lwz r12, 0(r3)
/* 8000FFA4 0000CF04 81 8C 00 08 */ lwz r12, 8(r12)
/* 8000FFA8 0000CF08 7D 89 03 A6 */ mtctr r12
/* 8000FFAC 0000CF0C 4E 80 04 21 */ bctrl
/* 8000FFB0 0000CF10 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 8000FFB4 0000CF14 41 82 00 64 */ beq lbl_80010018
/* 8000FFB8 0000CF18 A8 1E 20 08 */ lha r0, 0x2008(r30)
/* 8000FFBC 0000CF1C 38 80 FF FF */ li r4, -1
/* 8000FFC0 0000CF20 2C 00 FF FF */ cmpwi r0, -1
/* 8000FFC4 0000CF24 41 82 00 1C */ beq lbl_8000FFE0
/* 8000FFC8 0000CF28 A0 9F 00 08 */ lhz r4, 8(r31)
/* 8000FFCC 0000CF2C 54 00 18 38 */ slwi r0, r0, 3
/* 8000FFD0 0000CF30 7C 7E 02 14 */ add r3, r30, r0
/* 8000FFD4 0000CF34 54 80 05 BE */ clrlwi r0, r4, 0x16
/* 8000FFD8 0000CF38 B0 03 00 0A */ sth r0, 0xa(r3)
/* 8000FFDC 0000CF3C A8 9E 20 08 */ lha r4, 0x2008(r30)
lbl_8000FFE0:
/* 8000FFE0 0000CF40 A0 7F 00 08 */ lhz r3, 8(r31)
/* 8000FFE4 0000CF44 38 00 FF FF */ li r0, -1
/* 8000FFE8 0000CF48 54 63 05 BE */ clrlwi r3, r3, 0x16
/* 8000FFEC 0000CF4C B0 7E 20 08 */ sth r3, 0x2008(r30)
/* 8000FFF0 0000CF50 A0 7F 00 08 */ lhz r3, 8(r31)
/* 8000FFF4 0000CF54 54 63 1C F8 */ rlwinm r3, r3, 3, 0x13, 0x1c
/* 8000FFF8 0000CF58 38 63 00 04 */ addi r3, r3, 4
/* 8000FFFC 0000CF5C 7C 7E 1A 14 */ add r3, r30, r3
/* 80010000 0000CF60 93 E3 00 00 */ stw r31, 0(r3)
/* 80010004 0000CF64 B0 83 00 04 */ sth r4, 4(r3)
/* 80010008 0000CF68 B0 03 00 06 */ sth r0, 6(r3)
/* 8001000C 0000CF6C A8 7E 20 0A */ lha r3, 0x200a(r30)
/* 80010010 0000CF70 38 03 00 01 */ addi r0, r3, 1
/* 80010014 0000CF74 B0 1E 20 0A */ sth r0, 0x200a(r30)
lbl_80010018:
/* 80010018 0000CF78 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8001001C 0000CF7C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80010020 0000CF80 83 C1 00 08 */ lwz r30, 8(r1)
/* 80010024 0000CF84 7C 08 03 A6 */ mtlr r0
/* 80010028 0000CF88 38 21 00 10 */ addi r1, r1, 0x10
/* 8001002C 0000CF8C 4E 80 00 20 */ blr
.global IsQualified__11CObjectListFRC7CEntity
IsQualified__11CObjectListFRC7CEntity:
/* 80010030 0000CF90 38 60 00 01 */ li r3, 1
/* 80010034 0000CF94 4E 80 00 20 */ blr
.global __ct__11CObjectListF15EGameObjectList
__ct__11CObjectListF15EGameObjectList:
/* 80010038 0000CF98 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8001003C 0000CF9C 7C 08 02 A6 */ mflr r0
/* 80010040 0000CFA0 3C A0 80 3E */ lis r5, lbl_803D96D8@ha
/* 80010044 0000CFA4 38 C0 00 08 */ li r6, 8
/* 80010048 0000CFA8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8001004C 0000CFAC 38 05 96 D8 */ addi r0, r5, lbl_803D96D8@l
/* 80010050 0000CFB0 38 A0 00 00 */ li r5, 0
/* 80010054 0000CFB4 38 E0 04 00 */ li r7, 0x400
/* 80010058 0000CFB8 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8001005C 0000CFBC 7C 9F 23 78 */ mr r31, r4
/* 80010060 0000CFC0 93 C1 00 08 */ stw r30, 8(r1)
/* 80010064 0000CFC4 7C 7E 1B 78 */ mr r30, r3
/* 80010068 0000CFC8 3C 60 80 01 */ lis r3, __ct__Q211CObjectList16SObjectListEntryFv@ha
/* 8001006C 0000CFCC 90 1E 00 00 */ stw r0, 0(r30)
/* 80010070 0000CFD0 38 03 01 2C */ addi r0, r3, __ct__Q211CObjectList16SObjectListEntryFv@l
/* 80010074 0000CFD4 38 7E 00 04 */ addi r3, r30, 4
/* 80010078 0000CFD8 7C 04 03 78 */ mr r4, r0
/* 8001007C 0000CFDC 48 37 96 D1 */ bl __construct_array
/* 80010080 0000CFE0 93 FE 20 04 */ stw r31, 0x2004(r30)
/* 80010084 0000CFE4 38 80 FF FF */ li r4, -1
/* 80010088 0000CFE8 38 60 00 00 */ li r3, 0
/* 8001008C 0000CFEC 38 00 00 80 */ li r0, 0x80
/* 80010090 0000CFF0 B0 9E 20 08 */ sth r4, 0x2008(r30)
/* 80010094 0000CFF4 7F C4 F3 78 */ mr r4, r30
/* 80010098 0000CFF8 B0 7E 20 0A */ sth r3, 0x200a(r30)
/* 8001009C 0000CFFC 7C 09 03 A6 */ mtctr r0
lbl_800100A0:
/* 800100A0 0000D000 38 60 00 00 */ li r3, 0
/* 800100A4 0000D004 38 00 FF FF */ li r0, -1
/* 800100A8 0000D008 90 64 00 04 */ stw r3, 4(r4)
/* 800100AC 0000D00C B0 04 00 08 */ sth r0, 8(r4)
/* 800100B0 0000D010 B0 04 00 0A */ sth r0, 0xa(r4)
/* 800100B4 0000D014 90 64 00 0C */ stw r3, 0xc(r4)
/* 800100B8 0000D018 B0 04 00 10 */ sth r0, 0x10(r4)
/* 800100BC 0000D01C B0 04 00 12 */ sth r0, 0x12(r4)
/* 800100C0 0000D020 90 64 00 14 */ stw r3, 0x14(r4)
/* 800100C4 0000D024 B0 04 00 18 */ sth r0, 0x18(r4)
/* 800100C8 0000D028 B0 04 00 1A */ sth r0, 0x1a(r4)
/* 800100CC 0000D02C 90 64 00 1C */ stw r3, 0x1c(r4)
/* 800100D0 0000D030 B0 04 00 20 */ sth r0, 0x20(r4)
/* 800100D4 0000D034 B0 04 00 22 */ sth r0, 0x22(r4)
/* 800100D8 0000D038 90 64 00 24 */ stw r3, 0x24(r4)
/* 800100DC 0000D03C B0 04 00 28 */ sth r0, 0x28(r4)
/* 800100E0 0000D040 B0 04 00 2A */ sth r0, 0x2a(r4)
/* 800100E4 0000D044 90 64 00 2C */ stw r3, 0x2c(r4)
/* 800100E8 0000D048 B0 04 00 30 */ sth r0, 0x30(r4)
/* 800100EC 0000D04C B0 04 00 32 */ sth r0, 0x32(r4)
/* 800100F0 0000D050 90 64 00 34 */ stw r3, 0x34(r4)
/* 800100F4 0000D054 B0 04 00 38 */ sth r0, 0x38(r4)
/* 800100F8 0000D058 B0 04 00 3A */ sth r0, 0x3a(r4)
/* 800100FC 0000D05C 90 64 00 3C */ stw r3, 0x3c(r4)
/* 80010100 0000D060 B0 04 00 40 */ sth r0, 0x40(r4)
/* 80010104 0000D064 B0 04 00 42 */ sth r0, 0x42(r4)
/* 80010108 0000D068 38 84 00 40 */ addi r4, r4, 0x40
/* 8001010C 0000D06C 42 00 FF 94 */ bdnz lbl_800100A0
/* 80010110 0000D070 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80010114 0000D074 7F C3 F3 78 */ mr r3, r30
/* 80010118 0000D078 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8001011C 0000D07C 83 C1 00 08 */ lwz r30, 8(r1)
/* 80010120 0000D080 7C 08 03 A6 */ mtlr r0
/* 80010124 0000D084 38 21 00 10 */ addi r1, r1, 0x10
.global sub_80010128
sub_80010128:
/* 80010128 0000D088 4E 80 00 20 */ blr
.global __ct__Q211CObjectList16SObjectListEntryFv
__ct__Q211CObjectList16SObjectListEntryFv:
/* 8001012C 0000D08C 38 80 00 00 */ li r4, 0
/* 80010130 0000D090 38 00 FF FF */ li r0, -1
/* 80010134 0000D094 90 83 00 00 */ stw r4, 0(r3)
/* 80010138 0000D098 B0 03 00 04 */ sth r0, 4(r3)
/* 8001013C 0000D09C B0 03 00 06 */ sth r0, 6(r3)
/* 80010140 0000D0A0 4E 80 00 20 */ blr

12658
asm/Kyoto_CWD/CPlayer.s Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,7 @@
.include "macros.inc"
.section .bss, "wa" # 0x803F7560 - 0x805A6BBF
.global lbl_804578F8
lbl_804578F8:
.skip 0x10
.global lbl_80457908
lbl_80457908:
.skip 0xC0

View File

@ -2,9 +2,6 @@
.section .rodata, "a" # 0x803CB3A0 - 0x803D8D60
.global lbl_803CC030
lbl_803CC030:
.incbin "baserom.dol", 0x3C9030, 0x3F0
.global lbl_803CC420
lbl_803CC420:
.incbin "baserom.dol", 0x3C9420, 0x18

View File

@ -2,12 +2,6 @@
.section .sdata, "wa" # 0x805A6BC0 - 0x805A8C1C
.global lbl_805A6BF0
lbl_805A6BF0:
# ROM: 0x3F4590
.4byte 0x01000000
.4byte 0
.global lbl_805A6BF8
lbl_805A6BF8:
# ROM: 0x3F4598

View File

@ -2,16 +2,6 @@
.section .sdata2, "a" # 0x805A9D20 - 0x805AF45C
.global lbl_805A9DC8
lbl_805A9DC8:
# ROM: 0x3F6668
.4byte 0
.global lbl_805A9DCC
lbl_805A9DCC:
# ROM: 0x3F666C
.4byte 0x3F800000
.global lbl_805A9DD0
lbl_805A9DD0:
# ROM: 0x3F6670

View File

@ -1 +1 @@
c5524d39555012d305c4c880bc34c4bbb8fc732d
53a96a3794e4ec562ba56cd07b7d0001ef93cf11

View File

@ -10,7 +10,14 @@ KYOTO_CWD :=\
$(BUILD_DIR)/asm/Kyoto_CWD/main.o\
$(BUILD_DIR)/asm/Kyoto_CWD/text_80008894_80009144.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CCameraManager.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CControlMapper.o
$(BUILD_DIR)/asm/Kyoto_CWD/CControlMapper.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CFirstPersonCamera.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CObjectList.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CPlayer.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CAxisAngle.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CEulerAngles.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CFrontEndUI.o\
$(BUILD_DIR)/asm/Kyoto_CWD/CInputGenerator.o\
AI_FILES :=\
$(BUILD_DIR)/asm/Dolphin/ai.o