153 lines
7 KiB
ArmAsm
153 lines
7 KiB
ArmAsm
.include "macros.inc"
|
|
|
|
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
|
|
.global Get__Q34nw4r3lyt6TexMapCFP9_GXTexObj
|
|
Get__Q34nw4r3lyt6TexMapCFP9_GXTexObj:
|
|
/* 800FC000 000F7E40 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
/* 800FC004 000F7E44 7C 08 02 A6 */ mflr r0
|
|
/* 800FC008 000F7E48 81 43 00 18 */ lwz r10, 0x18(r3)
|
|
/* 800FC00C 000F7E4C 90 01 00 24 */ stw r0, 0x24(r1)
|
|
/* 800FC010 000F7E50 55 47 27 3E */ srwi r7, r10, 28
|
|
/* 800FC014 000F7E54 93 E1 00 1C */ stw r31, 0x1c(r1)
|
|
/* 800FC018 000F7E58 38 07 FF F8 */ addi r0, r7, -0x8
|
|
/* 800FC01C 000F7E5C 28 00 00 02 */ cmplwi r0, 0x2
|
|
/* 800FC020 000F7E60 7C 9F 23 78 */ mr r31, r4
|
|
/* 800FC024 000F7E64 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
/* 800FC028 000F7E68 7C 7E 1B 78 */ mr r30, r3
|
|
/* 800FC02C 000F7E6C 41 81 00 3C */ bgt lbl_800FC068
|
|
/* 800FC030 000F7E70 7F E3 FB 78 */ mr r3, r31
|
|
/* 800FC034 000F7E74 48 02 4E 3D */ bl Tell__Q34nw4r2ut13DvdFileStreamCFv
|
|
/* 800FC038 000F7E78 80 1E 00 18 */ lwz r0, 0x18(r30)
|
|
/* 800FC03C 000F7E7C 90 61 00 08 */ stw r3, 0x8(r1)
|
|
/* 800FC040 000F7E80 7F E3 FB 78 */ mr r3, r31
|
|
/* 800FC044 000F7E84 80 9E 00 00 */ lwz r4, 0x0(r30)
|
|
/* 800FC048 000F7E88 54 07 27 3E */ srwi r7, r0, 28
|
|
/* 800FC04C 000F7E8C A0 BE 00 08 */ lhz r5, 0x8(r30)
|
|
/* 800FC050 000F7E90 54 08 3F BE */ extrwi r8, r0, 2, 5
|
|
/* 800FC054 000F7E94 A0 DE 00 0A */ lhz r6, 0xa(r30)
|
|
/* 800FC058 000F7E98 54 09 4F BE */ extrwi r9, r0, 2, 7
|
|
/* 800FC05C 000F7E9C 54 0A 2F FE */ extrwi r10, r0, 1, 4
|
|
/* 800FC060 000F7EA0 4B F3 A9 61 */ bl GXInitTexObjCI
|
|
/* 800FC064 000F7EA4 48 00 00 24 */ b lbl_800FC088
|
|
.global lbl_800FC068
|
|
lbl_800FC068:
|
|
/* 800FC068 000F7EA8 80 9E 00 00 */ lwz r4, 0x0(r30)
|
|
/* 800FC06C 000F7EAC 7F E3 FB 78 */ mr r3, r31
|
|
/* 800FC070 000F7EB0 A0 BE 00 08 */ lhz r5, 0x8(r30)
|
|
/* 800FC074 000F7EB4 55 48 3F BE */ extrwi r8, r10, 2, 5
|
|
/* 800FC078 000F7EB8 55 49 4F BE */ extrwi r9, r10, 2, 7
|
|
/* 800FC07C 000F7EBC A0 DE 00 0A */ lhz r6, 0xa(r30)
|
|
/* 800FC080 000F7EC0 55 4A 2F FE */ extrwi r10, r10, 1, 4
|
|
/* 800FC084 000F7EC4 4B F3 A7 2D */ bl GXInitTexObj
|
|
.global lbl_800FC088
|
|
lbl_800FC088:
|
|
/* 800FC088 000F7EC8 A0 1E 00 14 */ lhz r0, 0x14(r30)
|
|
/* 800FC08C 000F7ECC 3C 80 43 30 */ lis r4, 0x4330
|
|
/* 800FC090 000F7ED0 90 01 00 14 */ stw r0, 0x14(r1)
|
|
/* 800FC094 000F7ED4 7F E3 FB 78 */ mr r3, r31
|
|
/* 800FC098 000F7ED8 80 1E 00 18 */ lwz r0, 0x18(r30)
|
|
/* 800FC09C 000F7EDC 90 81 00 10 */ stw r4, 0x10(r1)
|
|
/* 800FC0A0 000F7EE0 C8 42 92 20 */ lfd f2, "@7568"@sda21(r2)
|
|
/* 800FC0A4 000F7EE4 54 04 67 7E */ extrwi r4, r0, 3, 9
|
|
/* 800FC0A8 000F7EE8 C8 21 00 10 */ lfd f1, 0x10(r1)
|
|
/* 800FC0AC 000F7EEC 54 05 6F FE */ extrwi r5, r0, 1, 12
|
|
/* 800FC0B0 000F7EF0 C0 02 92 18 */ lfs f0, "@7564"@sda21(r2)
|
|
/* 800FC0B4 000F7EF4 54 06 77 FE */ extrwi r6, r0, 1, 13
|
|
/* 800FC0B8 000F7EF8 EC 61 10 28 */ fsubs f3, f1, f2
|
|
/* 800FC0BC 000F7EFC C0 5E 00 10 */ lfs f2, 0x10(r30)
|
|
/* 800FC0C0 000F7F00 C0 3E 00 0C */ lfs f1, 0xc(r30)
|
|
/* 800FC0C4 000F7F04 54 07 7F FE */ extrwi r7, r0, 1, 14
|
|
/* 800FC0C8 000F7F08 54 08 8F BE */ extrwi r8, r0, 2, 15
|
|
/* 800FC0CC 000F7F0C EC 63 00 32 */ fmuls f3, f3, f0
|
|
/* 800FC0D0 000F7F10 4B F3 A9 41 */ bl GXInitTexObjLOD
|
|
/* 800FC0D4 000F7F14 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
/* 800FC0D8 000F7F18 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
/* 800FC0DC 000F7F1C 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
/* 800FC0E0 000F7F20 7C 08 03 A6 */ mtlr r0
|
|
/* 800FC0E4 000F7F24 38 21 00 20 */ addi r1, r1, 0x20
|
|
/* 800FC0E8 000F7F28 4E 80 00 20 */ blr
|
|
/* 800FC0EC 000F7F2C 00 00 00 00 */ .4byte 0x00000000
|
|
.global Get__Q34nw4r3lyt6TexMapCFP10_GXTlutObj
|
|
Get__Q34nw4r3lyt6TexMapCFP10_GXTlutObj:
|
|
/* 800FC0F0 000F7F30 7C 65 1B 78 */ mr r5, r3
|
|
/* 800FC0F4 000F7F34 7C 83 23 78 */ mr r3, r4
|
|
/* 800FC0F8 000F7F38 80 05 00 18 */ lwz r0, 0x18(r5)
|
|
/* 800FC0FC 000F7F3C 80 85 00 04 */ lwz r4, 0x4(r5)
|
|
/* 800FC100 000F7F40 A0 C5 00 16 */ lhz r6, 0x16(r5)
|
|
/* 800FC104 000F7F44 54 05 9F BE */ extrwi r5, r0, 2, 17
|
|
/* 800FC108 000F7F48 4B F3 AD 88 */ b GXInitTlutObj
|
|
/* 800FC10C 000F7F4C 00 00 00 00 */ .4byte 0x00000000
|
|
.global ReplaceImage__Q34nw4r3lyt6TexMapFP10TPLPaletteUl
|
|
ReplaceImage__Q34nw4r3lyt6TexMapFP10TPLPaletteUl:
|
|
/* 800FC110 000F7F50 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
/* 800FC114 000F7F54 7C 08 02 A6 */ mflr r0
|
|
/* 800FC118 000F7F58 90 01 00 24 */ stw r0, 0x24(r1)
|
|
/* 800FC11C 000F7F5C 3C 00 80 00 */ lis r0, 0x8000
|
|
/* 800FC120 000F7F60 93 E1 00 1C */ stw r31, 0x1c(r1)
|
|
/* 800FC124 000F7F64 7C BF 2B 78 */ mr r31, r5
|
|
/* 800FC128 000F7F68 93 C1 00 18 */ stw r30, 0x18(r1)
|
|
/* 800FC12C 000F7F6C 7C 9E 23 78 */ mr r30, r4
|
|
/* 800FC130 000F7F70 93 A1 00 14 */ stw r29, 0x14(r1)
|
|
/* 800FC134 000F7F74 7C 7D 1B 78 */ mr r29, r3
|
|
/* 800FC138 000F7F78 80 C4 00 08 */ lwz r6, 0x8(r4)
|
|
/* 800FC13C 000F7F7C 7C 06 00 40 */ cmplw r6, r0
|
|
/* 800FC140 000F7F80 40 80 00 0C */ bge lbl_800FC14C
|
|
/* 800FC144 000F7F84 7F C3 F3 78 */ mr r3, r30
|
|
/* 800FC148 000F7F88 4B FA 5C B9 */ bl TPLBind
|
|
.global lbl_800FC14C
|
|
lbl_800FC14C:
|
|
/* 800FC14C 000F7F8C 7F C3 F3 78 */ mr r3, r30
|
|
/* 800FC150 000F7F90 7F E4 FB 78 */ mr r4, r31
|
|
/* 800FC154 000F7F94 4B FA 5D CD */ bl TPLGet
|
|
/* 800FC158 000F7F98 80 C3 00 00 */ lwz r6, 0x0(r3)
|
|
/* 800FC15C 000F7F9C 80 9D 00 18 */ lwz r4, 0x18(r29)
|
|
/* 800FC160 000F7FA0 80 06 00 08 */ lwz r0, 0x8(r6)
|
|
/* 800FC164 000F7FA4 90 1D 00 00 */ stw r0, 0x0(r29)
|
|
/* 800FC168 000F7FA8 A0 A6 00 00 */ lhz r5, 0x0(r6)
|
|
/* 800FC16C 000F7FAC A0 06 00 02 */ lhz r0, 0x2(r6)
|
|
/* 800FC170 000F7FB0 B0 1D 00 08 */ sth r0, 0x8(r29)
|
|
/* 800FC174 000F7FB4 B0 BD 00 0A */ sth r5, 0xa(r29)
|
|
/* 800FC178 000F7FB8 80 06 00 04 */ lwz r0, 0x4(r6)
|
|
/* 800FC17C 000F7FBC 50 04 E0 06 */ rlwimi r4, r0, 28, 0, 3
|
|
/* 800FC180 000F7FC0 90 9D 00 18 */ stw r4, 0x18(r29)
|
|
/* 800FC184 000F7FC4 80 63 00 04 */ lwz r3, 0x4(r3)
|
|
/* 800FC188 000F7FC8 2C 03 00 00 */ cmpwi r3, 0x0
|
|
/* 800FC18C 000F7FCC 41 82 00 24 */ beq lbl_800FC1B0
|
|
/* 800FC190 000F7FD0 80 03 00 08 */ lwz r0, 0x8(r3)
|
|
/* 800FC194 000F7FD4 90 1D 00 04 */ stw r0, 0x4(r29)
|
|
/* 800FC198 000F7FD8 80 03 00 04 */ lwz r0, 0x4(r3)
|
|
/* 800FC19C 000F7FDC 50 04 6C 64 */ rlwimi r4, r0, 13, 17, 18
|
|
/* 800FC1A0 000F7FE0 90 9D 00 18 */ stw r4, 0x18(r29)
|
|
/* 800FC1A4 000F7FE4 A0 03 00 00 */ lhz r0, 0x0(r3)
|
|
/* 800FC1A8 000F7FE8 B0 1D 00 16 */ sth r0, 0x16(r29)
|
|
/* 800FC1AC 000F7FEC 48 00 00 18 */ b lbl_800FC1C4
|
|
.global lbl_800FC1B0
|
|
lbl_800FC1B0:
|
|
/* 800FC1B0 000F7FF0 38 60 00 00 */ li r3, 0x0
|
|
/* 800FC1B4 000F7FF4 54 80 04 E0 */ rlwinm r0, r4, 0, 19, 16
|
|
/* 800FC1B8 000F7FF8 90 7D 00 04 */ stw r3, 0x4(r29)
|
|
/* 800FC1BC 000F7FFC 90 1D 00 18 */ stw r0, 0x18(r29)
|
|
/* 800FC1C0 000F8000 B0 7D 00 16 */ sth r3, 0x16(r29)
|
|
.global lbl_800FC1C4
|
|
lbl_800FC1C4:
|
|
/* 800FC1C4 000F8004 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
/* 800FC1C8 000F8008 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
/* 800FC1CC 000F800C 83 C1 00 18 */ lwz r30, 0x18(r1)
|
|
/* 800FC1D0 000F8010 83 A1 00 14 */ lwz r29, 0x14(r1)
|
|
/* 800FC1D4 000F8014 7C 08 03 A6 */ mtlr r0
|
|
/* 800FC1D8 000F8018 38 21 00 20 */ addi r1, r1, 0x20
|
|
/* 800FC1DC 000F801C 4E 80 00 20 */ blr
|
|
.include "macros.inc"
|
|
|
|
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
|
|
.global "@7564"
|
|
"@7564":
|
|
|
|
.4byte 0x3B800000
|
|
.4byte 0
|
|
|
|
.global "@7568"
|
|
"@7568":
|
|
|
|
.4byte 0x43300000
|
|
.4byte 0
|