Split SComponent (#45)

* split c_math

* split c_angle

* split c_API_controller_pad

* split c_API_graphic

* split c_bg_s_chk

* c_bg_s_gnd_chk split

* more c_bg split

* split c_cc_d

* delete asm

* split c_cc_s

* split c_lib

* split c_m2d and c_m3d_g_aab

* split c_m3d_g_cir

* split c_m3d_g_cps

* split rest of c_m3d_g

* split c_m3d

* split c_malloc

* split c_request

* split c_sxyz

* split and partly decompile c_xyz

* format

* c_angle.h

* begin c_angle decomp

* c_angle

* progress adding stub classes for SComponent

* more c_m3d

* remove some asm and format

* more m3d headers

* more c_angle decomp

* c_lib headers

* add public to classes

* fix csXyz member names

* c_sxyz partly OK

* move Zero csXyz to c_sxyz header

* c_API_graphic

* delete some unused asm

* move math extern data, decompile some functions

* delete unused asm

* fix duplicated c_angle.h

* fix an inlined function name, add more inlined functions for c_angle.h (currently unused)

* format

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
lepelog
2021-01-06 20:04:53 -05:00
committed by GitHub
co-authored by Pheenoh
parent 792509e0a1
commit 0cf65151b3
921 changed files with 22374 additions and 59192 deletions
@@ -0,0 +1,110 @@
/* 80269E18 00266D58 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80269E1C 00266D5C 7C 08 02 A6 */ mflr r0
/* 80269E20 00266D60 90 01 00 44 */ stw r0, 0x44(r1)
/* 80269E24 00266D64 DB E1 00 30 */ stfd f31, 0x30(r1)
/* 80269E28 00266D68 F3 E1 00 38 */ psq_st f31, 56(r1), 0, 0
/* 80269E2C 00266D6C DB C1 00 20 */ stfd f30, 0x20(r1)
/* 80269E30 00266D70 F3 C1 00 28 */ psq_st f30, 40(r1), 0, 0
/* 80269E34 00266D74 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80269E38 00266D78 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80269E3C 00266D7C 7C 7E 1B 78 */ mr r30, r3
/* 80269E40 00266D80 7C 9F 23 78 */ mr r31, r4
/* 80269E44 00266D84 FF C0 08 90 */ fmr f30, f1
/* 80269E48 00266D88 C0 03 00 00 */ lfs f0, 0(r3)
/* 80269E4C 00266D8C FC 00 02 10 */ fabs f0, f0
/* 80269E50 00266D90 FC 20 00 18 */ frsp f1, f0
/* 80269E54 00266D94 C0 0D 8C 00 */ lfs f0, lbl_80451180-_SDA_BASE_(r13)
/* 80269E58 00266D98 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 80269E5C 00266D9C 40 80 00 0C */ bge lbl_80269E68
/* 80269E60 00266DA0 38 60 00 00 */ li r3, 0
/* 80269E64 00266DA4 48 00 01 30 */ b lbl_80269F94
lbl_80269E68:
/* 80269E68 00266DA8 C0 02 B7 AC */ lfs f0, lbl_804551AC-_SDA2_BASE_(r2)
/* 80269E6C 00266DAC D0 01 00 08 */ stfs f0, 8(r1)
/* 80269E70 00266DB0 C0 3E 00 18 */ lfs f1, 0x18(r30)
/* 80269E74 00266DB4 C0 5E 00 1C */ lfs f2, 0x1c(r30)
/* 80269E78 00266DB8 C0 7E 00 24 */ lfs f3, 0x24(r30)
/* 80269E7C 00266DBC C0 9E 00 28 */ lfs f4, 0x28(r30)
/* 80269E80 00266DC0 C0 BE 00 30 */ lfs f5, 0x30(r30)
/* 80269E84 00266DC4 C0 DE 00 34 */ lfs f6, 0x34(r30)
/* 80269E88 00266DC8 C0 FF 00 04 */ lfs f7, 4(r31)
/* 80269E8C 00266DCC C1 1F 00 08 */ lfs f8, 8(r31)
/* 80269E90 00266DD0 4B FF FE D5 */ bl cM3d_InclusionCheckPosIn3PosBox2d__Ffffffffff
/* 80269E94 00266DD4 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 80269E98 00266DD8 40 82 00 0C */ bne lbl_80269EA4
/* 80269E9C 00266DDC 38 60 00 00 */ li r3, 0
/* 80269EA0 00266DE0 48 00 00 F4 */ b lbl_80269F94
lbl_80269EA4:
/* 80269EA4 00266DE4 C0 3E 00 18 */ lfs f1, 0x18(r30)
/* 80269EA8 00266DE8 C0 5E 00 1C */ lfs f2, 0x1c(r30)
/* 80269EAC 00266DEC C0 7E 00 24 */ lfs f3, 0x24(r30)
/* 80269EB0 00266DF0 C0 9E 00 28 */ lfs f4, 0x28(r30)
/* 80269EB4 00266DF4 C0 BF 00 04 */ lfs f5, 4(r31)
/* 80269EB8 00266DF8 C0 DF 00 08 */ lfs f6, 8(r31)
/* 80269EBC 00266DFC 4B FF E9 D9 */ bl cM3d_VectorProduct2d__Fffffff
/* 80269EC0 00266E00 FF E0 08 90 */ fmr f31, f1
/* 80269EC4 00266E04 FC 1F F0 40 */ fcmpo cr0, f31, f30
/* 80269EC8 00266E08 4C 40 13 82 */ cror 2, 0, 2
/* 80269ECC 00266E0C 40 82 00 5C */ bne lbl_80269F28
/* 80269ED0 00266E10 C0 3E 00 24 */ lfs f1, 0x24(r30)
/* 80269ED4 00266E14 C0 5E 00 28 */ lfs f2, 0x28(r30)
/* 80269ED8 00266E18 C0 7E 00 30 */ lfs f3, 0x30(r30)
/* 80269EDC 00266E1C C0 9E 00 34 */ lfs f4, 0x34(r30)
/* 80269EE0 00266E20 C0 BF 00 04 */ lfs f5, 4(r31)
/* 80269EE4 00266E24 C0 DF 00 08 */ lfs f6, 8(r31)
/* 80269EE8 00266E28 4B FF E9 AD */ bl cM3d_VectorProduct2d__Fffffff
/* 80269EEC 00266E2C FC 01 F0 40 */ fcmpo cr0, f1, f30
/* 80269EF0 00266E30 4C 40 13 82 */ cror 2, 0, 2
/* 80269EF4 00266E34 40 82 00 34 */ bne lbl_80269F28
/* 80269EF8 00266E38 C0 3E 00 30 */ lfs f1, 0x30(r30)
/* 80269EFC 00266E3C C0 5E 00 34 */ lfs f2, 0x34(r30)
/* 80269F00 00266E40 C0 7E 00 18 */ lfs f3, 0x18(r30)
/* 80269F04 00266E44 C0 9E 00 1C */ lfs f4, 0x1c(r30)
/* 80269F08 00266E48 C0 BF 00 04 */ lfs f5, 4(r31)
/* 80269F0C 00266E4C C0 DF 00 08 */ lfs f6, 8(r31)
/* 80269F10 00266E50 4B FF E9 85 */ bl cM3d_VectorProduct2d__Fffffff
/* 80269F14 00266E54 FC 01 F0 40 */ fcmpo cr0, f1, f30
/* 80269F18 00266E58 4C 40 13 82 */ cror 2, 0, 2
/* 80269F1C 00266E5C 40 82 00 0C */ bne lbl_80269F28
/* 80269F20 00266E60 38 60 00 01 */ li r3, 1
/* 80269F24 00266E64 48 00 00 70 */ b lbl_80269F94
lbl_80269F28:
/* 80269F28 00266E68 FF C0 F0 50 */ fneg f30, f30
/* 80269F2C 00266E6C FC 1F F0 40 */ fcmpo cr0, f31, f30
/* 80269F30 00266E70 4C 41 13 82 */ cror 2, 1, 2
/* 80269F34 00266E74 40 82 00 5C */ bne lbl_80269F90
/* 80269F38 00266E78 C0 3E 00 24 */ lfs f1, 0x24(r30)
/* 80269F3C 00266E7C C0 5E 00 28 */ lfs f2, 0x28(r30)
/* 80269F40 00266E80 C0 7E 00 30 */ lfs f3, 0x30(r30)
/* 80269F44 00266E84 C0 9E 00 34 */ lfs f4, 0x34(r30)
/* 80269F48 00266E88 C0 BF 00 04 */ lfs f5, 4(r31)
/* 80269F4C 00266E8C C0 DF 00 08 */ lfs f6, 8(r31)
/* 80269F50 00266E90 4B FF E9 45 */ bl cM3d_VectorProduct2d__Fffffff
/* 80269F54 00266E94 FC 01 F0 40 */ fcmpo cr0, f1, f30
/* 80269F58 00266E98 4C 41 13 82 */ cror 2, 1, 2
/* 80269F5C 00266E9C 40 82 00 34 */ bne lbl_80269F90
/* 80269F60 00266EA0 C0 3E 00 30 */ lfs f1, 0x30(r30)
/* 80269F64 00266EA4 C0 5E 00 34 */ lfs f2, 0x34(r30)
/* 80269F68 00266EA8 C0 7E 00 18 */ lfs f3, 0x18(r30)
/* 80269F6C 00266EAC C0 9E 00 1C */ lfs f4, 0x1c(r30)
/* 80269F70 00266EB0 C0 BF 00 04 */ lfs f5, 4(r31)
/* 80269F74 00266EB4 C0 DF 00 08 */ lfs f6, 8(r31)
/* 80269F78 00266EB8 4B FF E9 1D */ bl cM3d_VectorProduct2d__Fffffff
/* 80269F7C 00266EBC FC 01 F0 40 */ fcmpo cr0, f1, f30
/* 80269F80 00266EC0 4C 41 13 82 */ cror 2, 1, 2
/* 80269F84 00266EC4 40 82 00 0C */ bne lbl_80269F90
/* 80269F88 00266EC8 38 60 00 01 */ li r3, 1
/* 80269F8C 00266ECC 48 00 00 08 */ b lbl_80269F94
lbl_80269F90:
/* 80269F90 00266ED0 38 60 00 00 */ li r3, 0
lbl_80269F94:
/* 80269F94 00266ED4 E3 E1 00 38 */ psq_l f31, 56(r1), 0, 0
/* 80269F98 00266ED8 CB E1 00 30 */ lfd f31, 0x30(r1)
/* 80269F9C 00266EDC E3 C1 00 28 */ psq_l f30, 40(r1), 0, 0
/* 80269FA0 00266EE0 CB C1 00 20 */ lfd f30, 0x20(r1)
/* 80269FA4 00266EE4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80269FA8 00266EE8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80269FAC 00266EEC 80 01 00 44 */ lwz r0, 0x44(r1)
/* 80269FB0 00266EF0 7C 08 03 A6 */ mtlr r0
/* 80269FB4 00266EF4 38 21 00 40 */ addi r1, r1, 0x40
/* 80269FB8 00266EF8 4E 80 00 20 */ blr