.include "macros.inc" .section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860 .global LoadMaterial__Q34nw4r3g3d6detailFQ34nw4r3g3d6ResMatUlPQ34nw4r3g3d16Draw1Mat1ShpSwapPQ44nw4r3g3d8G3DState8IndMtxOpb LoadMaterial__Q34nw4r3g3d6detailFQ34nw4r3g3d6ResMatUlPQ34nw4r3g3d16Draw1Mat1ShpSwapPQ44nw4r3g3d8G3DState8IndMtxOpb: /* 800E0070 000DBEB0 94 21 FE D0 */ stwu r1, -0x130(r1) /* 800E0074 000DBEB4 7C 08 02 A6 */ mflr r0 /* 800E0078 000DBEB8 2C 07 00 00 */ cmpwi r7, 0x0 /* 800E007C 000DBEBC 90 01 01 34 */ stw r0, 0x134(r1) /* 800E0080 000DBEC0 93 E1 01 2C */ stw r31, 0x12c(r1) /* 800E0084 000DBEC4 7C DF 33 78 */ mr r31, r6 /* 800E0088 000DBEC8 93 C1 01 28 */ stw r30, 0x128(r1) /* 800E008C 000DBECC 7C BE 2B 78 */ mr r30, r5 /* 800E0090 000DBED0 93 A1 01 24 */ stw r29, 0x124(r1) /* 800E0094 000DBED4 7C 9D 23 78 */ mr r29, r4 /* 800E0098 000DBED8 93 81 01 20 */ stw r28, 0x120(r1) /* 800E009C 000DBEDC 7C 7C 1B 78 */ mr r28, r3 /* 800E00A0 000DBEE0 40 82 03 E8 */ bne lbl_800E0488 /* 800E00A4 000DBEE4 2C 05 00 00 */ cmpwi r5, 0x0 /* 800E00A8 000DBEE8 38 00 00 00 */ li r0, 0x0 /* 800E00AC 000DBEEC 90 01 00 88 */ stw r0, 0x88(r1) /* 800E00B0 000DBEF0 41 82 00 10 */ beq lbl_800E00C0 /* 800E00B4 000DBEF4 80 05 00 24 */ lwz r0, 0x24(r5) /* 800E00B8 000DBEF8 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E00BC 000DBEFC 40 82 00 14 */ bne lbl_800E00D0 .global lbl_800E00C0 lbl_800E00C0: /* 800E00C0 000DBF00 80 63 00 00 */ lwz r3, 0x0(r3) /* 800E00C4 000DBF04 38 03 00 1C */ addi r0, r3, 0x1c /* 800E00C8 000DBF08 90 01 00 88 */ stw r0, 0x88(r1) /* 800E00CC 000DBF0C 48 00 00 0C */ b lbl_800E00D8 .global lbl_800E00D0 lbl_800E00D0: /* 800E00D0 000DBF10 80 05 00 24 */ lwz r0, 0x24(r5) /* 800E00D4 000DBF14 90 01 00 88 */ stw r0, 0x88(r1) .global lbl_800E00D8 lbl_800E00D8: /* 800E00D8 000DBF18 38 61 00 88 */ addi r3, r1, 0x88 /* 800E00DC 000DBF1C 4B FE D1 A5 */ bl GetFogIdx__Q34nw4r3g3d10ResMatMiscCFv /* 800E00E0 000DBF20 4B FF F5 01 */ bl LoadFog__Q34nw4r3g3d8G3DStateFi /* 800E00E4 000DBF24 80 01 00 88 */ lwz r0, 0x88(r1) /* 800E00E8 000DBF28 38 61 00 6C */ addi r3, r1, 0x6c /* 800E00EC 000DBF2C 90 01 00 6C */ stw r0, 0x6c(r1) /* 800E00F0 000DBF30 4B FF D8 D1 */ bl LoadResMatMisc__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResMatMisc /* 800E00F4 000DBF34 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E00F8 000DBF38 41 82 00 10 */ beq lbl_800E0108 /* 800E00FC 000DBF3C 80 1E 00 04 */ lwz r0, 0x4(r30) /* 800E0100 000DBF40 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0104 000DBF44 40 82 00 1C */ bne lbl_800E0120 .global lbl_800E0108 lbl_800E0108: /* 800E0108 000DBF48 80 9C 00 00 */ lwz r4, 0x0(r28) /* 800E010C 000DBF4C 38 61 00 68 */ addi r3, r1, 0x68 /* 800E0110 000DBF50 38 04 01 44 */ addi r0, r4, 0x144 /* 800E0114 000DBF54 90 01 00 68 */ stw r0, 0x68(r1) /* 800E0118 000DBF58 4B FF DB 89 */ bl LoadResTlutObj__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResTlutObj /* 800E011C 000DBF5C 48 00 00 14 */ b lbl_800E0130 .global lbl_800E0120 lbl_800E0120: /* 800E0120 000DBF60 80 1E 00 04 */ lwz r0, 0x4(r30) /* 800E0124 000DBF64 38 61 00 64 */ addi r3, r1, 0x64 /* 800E0128 000DBF68 90 01 00 64 */ stw r0, 0x64(r1) /* 800E012C 000DBF6C 4B FF DB 75 */ bl LoadResTlutObj__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResTlutObj .global lbl_800E0130 lbl_800E0130: /* 800E0130 000DBF70 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E0134 000DBF74 41 82 00 10 */ beq lbl_800E0144 /* 800E0138 000DBF78 80 1E 00 00 */ lwz r0, 0x0(r30) /* 800E013C 000DBF7C 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0140 000DBF80 40 82 00 1C */ bne lbl_800E015C .global lbl_800E0144 lbl_800E0144: /* 800E0144 000DBF84 80 9C 00 00 */ lwz r4, 0x0(r28) /* 800E0148 000DBF88 38 61 00 60 */ addi r3, r1, 0x60 /* 800E014C 000DBF8C 38 04 00 40 */ addi r0, r4, 0x40 /* 800E0150 000DBF90 90 01 00 60 */ stw r0, 0x60(r1) /* 800E0154 000DBF94 4B FF D8 DD */ bl LoadResTexObj__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d9ResTexObj /* 800E0158 000DBF98 48 00 00 14 */ b lbl_800E016C .global lbl_800E015C lbl_800E015C: /* 800E015C 000DBF9C 80 1E 00 00 */ lwz r0, 0x0(r30) /* 800E0160 000DBFA0 38 61 00 5C */ addi r3, r1, 0x5c /* 800E0164 000DBFA4 90 01 00 5C */ stw r0, 0x5c(r1) /* 800E0168 000DBFA8 4B FF D8 C9 */ bl LoadResTexObj__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d9ResTexObj .global lbl_800E016C lbl_800E016C: /* 800E016C 000DBFAC 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E0170 000DBFB0 41 82 00 10 */ beq lbl_800E0180 /* 800E0174 000DBFB4 80 1E 00 08 */ lwz r0, 0x8(r30) /* 800E0178 000DBFB8 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E017C 000DBFBC 40 82 00 1C */ bne lbl_800E0198 .global lbl_800E0180 lbl_800E0180: /* 800E0180 000DBFC0 80 9C 00 00 */ lwz r4, 0x0(r28) /* 800E0184 000DBFC4 38 61 00 58 */ addi r3, r1, 0x58 /* 800E0188 000DBFC8 38 04 00 14 */ addi r0, r4, 0x14 /* 800E018C 000DBFCC 90 01 00 58 */ stw r0, 0x58(r1) /* 800E0190 000DBFD0 4B FF DC 91 */ bl LoadResGenMode__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResGenMode /* 800E0194 000DBFD4 48 00 00 14 */ b lbl_800E01A8 .global lbl_800E0198 lbl_800E0198: /* 800E0198 000DBFD8 80 1E 00 08 */ lwz r0, 0x8(r30) /* 800E019C 000DBFDC 38 61 00 54 */ addi r3, r1, 0x54 /* 800E01A0 000DBFE0 90 01 00 54 */ stw r0, 0x54(r1) /* 800E01A4 000DBFE4 4B FF DC 7D */ bl LoadResGenMode__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResGenMode .global lbl_800E01A8 lbl_800E01A8: /* 800E01A8 000DBFE8 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E01AC 000DBFEC 41 82 00 10 */ beq lbl_800E01BC /* 800E01B0 000DBFF0 80 1E 00 0C */ lwz r0, 0xc(r30) /* 800E01B4 000DBFF4 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E01B8 000DBFF8 40 82 00 1C */ bne lbl_800E01D4 .global lbl_800E01BC lbl_800E01BC: /* 800E01BC 000DBFFC 7F 83 E3 78 */ mr r3, r28 /* 800E01C0 000DC000 4B FE DF 31 */ bl GetResTev__Q34nw4r3g3d6ResMatFv /* 800E01C4 000DC004 90 61 00 50 */ stw r3, 0x50(r1) /* 800E01C8 000DC008 38 61 00 50 */ addi r3, r1, 0x50 /* 800E01CC 000DC00C 4B FF DE 35 */ bl LoadResTev__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d6ResTev /* 800E01D0 000DC010 48 00 00 14 */ b lbl_800E01E4 .global lbl_800E01D4 lbl_800E01D4: /* 800E01D4 000DC014 80 1E 00 0C */ lwz r0, 0xc(r30) /* 800E01D8 000DC018 38 61 00 4C */ addi r3, r1, 0x4c /* 800E01DC 000DC01C 90 01 00 4C */ stw r0, 0x4c(r1) /* 800E01E0 000DC020 4B FF DE 21 */ bl LoadResTev__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d6ResTev .global lbl_800E01E4 lbl_800E01E4: /* 800E01E4 000DC024 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E01E8 000DC028 41 82 00 10 */ beq lbl_800E01F8 /* 800E01EC 000DC02C 80 1E 00 10 */ lwz r0, 0x10(r30) /* 800E01F0 000DC030 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E01F4 000DC034 40 82 00 30 */ bne lbl_800E0224 .global lbl_800E01F8 lbl_800E01F8: /* 800E01F8 000DC038 80 7C 00 00 */ lwz r3, 0x0(r28) /* 800E01FC 000DC03C 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E0200 000DC040 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0204 000DC044 41 82 00 0C */ beq lbl_800E0210 /* 800E0208 000DC048 7C 03 02 14 */ add r0, r3, r0 /* 800E020C 000DC04C 48 00 00 08 */ b lbl_800E0214 .global lbl_800E0210 lbl_800E0210: /* 800E0210 000DC050 38 00 00 00 */ li r0, 0x0 .global lbl_800E0214 lbl_800E0214: /* 800E0214 000DC054 90 01 00 48 */ stw r0, 0x48(r1) /* 800E0218 000DC058 38 61 00 48 */ addi r3, r1, 0x48 /* 800E021C 000DC05C 4B FF DF F5 */ bl LoadResMatPix__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d9ResMatPix /* 800E0220 000DC060 48 00 00 14 */ b lbl_800E0234 .global lbl_800E0224 lbl_800E0224: /* 800E0224 000DC064 80 1E 00 10 */ lwz r0, 0x10(r30) /* 800E0228 000DC068 38 61 00 44 */ addi r3, r1, 0x44 /* 800E022C 000DC06C 90 01 00 44 */ stw r0, 0x44(r1) /* 800E0230 000DC070 4B FF DF E1 */ bl LoadResMatPix__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d9ResMatPix .global lbl_800E0234 lbl_800E0234: /* 800E0234 000DC074 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E0238 000DC078 41 82 00 10 */ beq lbl_800E0248 /* 800E023C 000DC07C 80 1E 00 14 */ lwz r0, 0x14(r30) /* 800E0240 000DC080 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0244 000DC084 40 82 00 34 */ bne lbl_800E0278 .global lbl_800E0248 lbl_800E0248: /* 800E0248 000DC088 80 7C 00 00 */ lwz r3, 0x0(r28) /* 800E024C 000DC08C 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E0250 000DC090 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0254 000DC094 41 82 00 0C */ beq lbl_800E0260 /* 800E0258 000DC098 7C 63 02 14 */ add r3, r3, r0 /* 800E025C 000DC09C 48 00 00 08 */ b lbl_800E0264 .global lbl_800E0260 lbl_800E0260: /* 800E0260 000DC0A0 38 60 00 00 */ li r3, 0x0 .global lbl_800E0264 lbl_800E0264: /* 800E0264 000DC0A4 38 03 00 20 */ addi r0, r3, 0x20 /* 800E0268 000DC0A8 90 01 00 40 */ stw r0, 0x40(r1) /* 800E026C 000DC0AC 38 61 00 40 */ addi r3, r1, 0x40 /* 800E0270 000DC0B0 4B FF E0 51 */ bl LoadResMatTevColor__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d14ResMatTevColor /* 800E0274 000DC0B4 48 00 00 14 */ b lbl_800E0288 .global lbl_800E0278 lbl_800E0278: /* 800E0278 000DC0B8 80 1E 00 14 */ lwz r0, 0x14(r30) /* 800E027C 000DC0BC 38 61 00 3C */ addi r3, r1, 0x3c /* 800E0280 000DC0C0 90 01 00 3C */ stw r0, 0x3c(r1) /* 800E0284 000DC0C4 4B FF E0 3D */ bl LoadResMatTevColor__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d14ResMatTevColor .global lbl_800E0288 lbl_800E0288: /* 800E0288 000DC0C8 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E028C 000DC0CC 41 82 00 10 */ beq lbl_800E029C /* 800E0290 000DC0D0 80 1E 00 18 */ lwz r0, 0x18(r30) /* 800E0294 000DC0D4 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0298 000DC0D8 40 82 00 70 */ bne lbl_800E0308 .global lbl_800E029C lbl_800E029C: /* 800E029C 000DC0DC 2C 1F 00 00 */ cmpwi r31, 0x0 /* 800E02A0 000DC0E0 41 82 00 38 */ beq lbl_800E02D8 /* 800E02A4 000DC0E4 80 7C 00 00 */ lwz r3, 0x0(r28) /* 800E02A8 000DC0E8 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E02AC 000DC0EC 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E02B0 000DC0F0 41 82 00 0C */ beq lbl_800E02BC /* 800E02B4 000DC0F4 7C 63 02 14 */ add r3, r3, r0 /* 800E02B8 000DC0F8 48 00 00 08 */ b lbl_800E02C0 .global lbl_800E02BC lbl_800E02BC: /* 800E02BC 000DC0FC 38 60 00 00 */ li r3, 0x0 .global lbl_800E02C0 lbl_800E02C0: /* 800E02C0 000DC100 38 03 00 A0 */ addi r0, r3, 0xa0 /* 800E02C4 000DC104 90 01 00 38 */ stw r0, 0x38(r1) /* 800E02C8 000DC108 7F E4 FB 78 */ mr r4, r31 /* 800E02CC 000DC10C 38 61 00 38 */ addi r3, r1, 0x38 /* 800E02D0 000DC110 4B FF E1 61 */ bl LoadResMatIndMtxAndScale__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d20ResMatIndMtxAndScaleRQ44nw4r3g3d8G3DState8IndMtxOp /* 800E02D4 000DC114 48 00 00 64 */ b lbl_800E0338 .global lbl_800E02D8 lbl_800E02D8: /* 800E02D8 000DC118 80 7C 00 00 */ lwz r3, 0x0(r28) /* 800E02DC 000DC11C 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E02E0 000DC120 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E02E4 000DC124 41 82 00 0C */ beq lbl_800E02F0 /* 800E02E8 000DC128 7C 63 02 14 */ add r3, r3, r0 /* 800E02EC 000DC12C 48 00 00 08 */ b lbl_800E02F4 .global lbl_800E02F0 lbl_800E02F0: /* 800E02F0 000DC130 38 60 00 00 */ li r3, 0x0 .global lbl_800E02F4 lbl_800E02F4: /* 800E02F4 000DC134 38 03 00 A0 */ addi r0, r3, 0xa0 /* 800E02F8 000DC138 90 01 00 34 */ stw r0, 0x34(r1) /* 800E02FC 000DC13C 38 61 00 34 */ addi r3, r1, 0x34 /* 800E0300 000DC140 4B FF E0 71 */ bl LoadResMatIndMtxAndScale__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d20ResMatIndMtxAndScale /* 800E0304 000DC144 48 00 00 34 */ b lbl_800E0338 .global lbl_800E0308 lbl_800E0308: /* 800E0308 000DC148 2C 1F 00 00 */ cmpwi r31, 0x0 /* 800E030C 000DC14C 41 82 00 1C */ beq lbl_800E0328 /* 800E0310 000DC150 80 1E 00 18 */ lwz r0, 0x18(r30) /* 800E0314 000DC154 7F E4 FB 78 */ mr r4, r31 /* 800E0318 000DC158 90 01 00 30 */ stw r0, 0x30(r1) /* 800E031C 000DC15C 38 61 00 30 */ addi r3, r1, 0x30 /* 800E0320 000DC160 4B FF E1 11 */ bl LoadResMatIndMtxAndScale__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d20ResMatIndMtxAndScaleRQ44nw4r3g3d8G3DState8IndMtxOp /* 800E0324 000DC164 48 00 00 14 */ b lbl_800E0338 .global lbl_800E0328 lbl_800E0328: /* 800E0328 000DC168 80 1E 00 18 */ lwz r0, 0x18(r30) /* 800E032C 000DC16C 38 61 00 2C */ addi r3, r1, 0x2c /* 800E0330 000DC170 90 01 00 2C */ stw r0, 0x2c(r1) /* 800E0334 000DC174 4B FF E0 3D */ bl LoadResMatIndMtxAndScale__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d20ResMatIndMtxAndScale .global lbl_800E0338 lbl_800E0338: /* 800E0338 000DC178 38 61 00 88 */ addi r3, r1, 0x88 /* 800E033C 000DC17C 4B FE CF 25 */ bl GetLightSetIdx__Q34nw4r3g3d10ResMatMiscCFv /* 800E0340 000DC180 38 81 00 84 */ addi r4, r1, 0x84 /* 800E0344 000DC184 38 A1 00 80 */ addi r5, r1, 0x80 /* 800E0348 000DC188 38 C1 00 7C */ addi r6, r1, 0x7c /* 800E034C 000DC18C 38 E1 00 78 */ addi r7, r1, 0x78 /* 800E0350 000DC190 39 01 00 70 */ addi r8, r1, 0x70 /* 800E0354 000DC194 4B FF F3 8D */ bl LoadLightSet__Q34nw4r3g3d8G3DStateFiPUlPUlPUlPUlPQ34nw4r3g3d11AmbLightObj /* 800E0358 000DC198 88 A1 00 70 */ lbz r5, 0x70(r1) /* 800E035C 000DC19C 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E0360 000DC1A0 88 81 00 71 */ lbz r4, 0x71(r1) /* 800E0364 000DC1A4 88 61 00 72 */ lbz r3, 0x72(r1) /* 800E0368 000DC1A8 88 01 00 73 */ lbz r0, 0x73(r1) /* 800E036C 000DC1AC 98 A1 00 74 */ stb r5, 0x74(r1) /* 800E0370 000DC1B0 98 81 00 75 */ stb r4, 0x75(r1) /* 800E0374 000DC1B4 98 61 00 76 */ stb r3, 0x76(r1) /* 800E0378 000DC1B8 98 01 00 77 */ stb r0, 0x77(r1) /* 800E037C 000DC1BC 41 82 00 10 */ beq lbl_800E038C /* 800E0380 000DC1C0 80 1E 00 1C */ lwz r0, 0x1c(r30) /* 800E0384 000DC1C4 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0388 000DC1C8 40 82 00 3C */ bne lbl_800E03C4 .global lbl_800E038C lbl_800E038C: /* 800E038C 000DC1CC 80 01 00 74 */ lwz r0, 0x74(r1) /* 800E0390 000DC1D0 57 A9 EF FE */ extrwi r9, r29, 1, 28 /* 800E0394 000DC1D4 90 01 00 24 */ stw r0, 0x24(r1) /* 800E0398 000DC1D8 38 61 00 28 */ addi r3, r1, 0x28 /* 800E039C 000DC1DC 80 81 00 84 */ lwz r4, 0x84(r1) /* 800E03A0 000DC1E0 39 01 00 24 */ addi r8, r1, 0x24 /* 800E03A4 000DC1E4 80 DC 00 00 */ lwz r6, 0x0(r28) /* 800E03A8 000DC1E8 80 A1 00 80 */ lwz r5, 0x80(r1) /* 800E03AC 000DC1EC 38 06 03 F0 */ addi r0, r6, 0x3f0 /* 800E03B0 000DC1F0 90 01 00 28 */ stw r0, 0x28(r1) /* 800E03B4 000DC1F4 80 C1 00 7C */ lwz r6, 0x7c(r1) /* 800E03B8 000DC1F8 80 E1 00 78 */ lwz r7, 0x78(r1) /* 800E03BC 000DC1FC 4B FF E2 45 */ bl LoadResMatChan__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResMatChanUlUlUlUl8_GXColorb /* 800E03C0 000DC200 48 00 00 34 */ b lbl_800E03F4 .global lbl_800E03C4 lbl_800E03C4: /* 800E03C4 000DC204 80 01 00 74 */ lwz r0, 0x74(r1) /* 800E03C8 000DC208 57 A9 EF FE */ extrwi r9, r29, 1, 28 /* 800E03CC 000DC20C 90 01 00 1C */ stw r0, 0x1c(r1) /* 800E03D0 000DC210 38 61 00 20 */ addi r3, r1, 0x20 /* 800E03D4 000DC214 80 81 00 84 */ lwz r4, 0x84(r1) /* 800E03D8 000DC218 39 01 00 1C */ addi r8, r1, 0x1c /* 800E03DC 000DC21C 80 1E 00 1C */ lwz r0, 0x1c(r30) /* 800E03E0 000DC220 90 01 00 20 */ stw r0, 0x20(r1) /* 800E03E4 000DC224 80 A1 00 80 */ lwz r5, 0x80(r1) /* 800E03E8 000DC228 80 C1 00 7C */ lwz r6, 0x7c(r1) /* 800E03EC 000DC22C 80 E1 00 78 */ lwz r7, 0x78(r1) /* 800E03F0 000DC230 4B FF E2 11 */ bl LoadResMatChan__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d10ResMatChanUlUlUlUl8_GXColorb .global lbl_800E03F4 lbl_800E03F4: /* 800E03F4 000DC234 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E03F8 000DC238 41 82 00 10 */ beq lbl_800E0408 /* 800E03FC 000DC23C 80 1E 00 20 */ lwz r0, 0x20(r30) /* 800E0400 000DC240 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0404 000DC244 40 82 00 34 */ bne lbl_800E0438 .global lbl_800E0408 lbl_800E0408: /* 800E0408 000DC248 80 7C 00 00 */ lwz r3, 0x0(r28) /* 800E040C 000DC24C 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E0410 000DC250 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0414 000DC254 41 82 00 0C */ beq lbl_800E0420 /* 800E0418 000DC258 7C 63 02 14 */ add r3, r3, r0 /* 800E041C 000DC25C 48 00 00 08 */ b lbl_800E0424 .global lbl_800E0420 lbl_800E0420: /* 800E0420 000DC260 38 60 00 00 */ li r3, 0x0 .global lbl_800E0424 lbl_800E0424: /* 800E0424 000DC264 38 03 00 E0 */ addi r0, r3, 0xe0 /* 800E0428 000DC268 90 01 00 18 */ stw r0, 0x18(r1) /* 800E042C 000DC26C 38 61 00 18 */ addi r3, r1, 0x18 /* 800E0430 000DC270 4B FF E7 F1 */ bl LoadResMatTexCoordGen__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d17ResMatTexCoordGen /* 800E0434 000DC274 48 00 00 14 */ b lbl_800E0448 .global lbl_800E0438 lbl_800E0438: /* 800E0438 000DC278 80 1E 00 20 */ lwz r0, 0x20(r30) /* 800E043C 000DC27C 38 61 00 14 */ addi r3, r1, 0x14 /* 800E0440 000DC280 90 01 00 14 */ stw r0, 0x14(r1) /* 800E0444 000DC284 4B FF E7 DD */ bl LoadResMatTexCoordGen__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d17ResMatTexCoordGen .global lbl_800E0448 lbl_800E0448: /* 800E0448 000DC288 2C 1E 00 00 */ cmpwi r30, 0x0 /* 800E044C 000DC28C 41 82 00 10 */ beq lbl_800E045C /* 800E0450 000DC290 80 1E 00 28 */ lwz r0, 0x28(r30) /* 800E0454 000DC294 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0458 000DC298 40 82 00 1C */ bne lbl_800E0474 .global lbl_800E045C lbl_800E045C: /* 800E045C 000DC29C 80 9C 00 00 */ lwz r4, 0x0(r28) /* 800E0460 000DC2A0 38 61 00 10 */ addi r3, r1, 0x10 /* 800E0464 000DC2A4 38 04 01 A8 */ addi r0, r4, 0x1a8 /* 800E0468 000DC2A8 90 01 00 10 */ stw r0, 0x10(r1) /* 800E046C 000DC2AC 4B FF E8 45 */ bl LoadResTexSrt__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d9ResTexSrt /* 800E0470 000DC2B0 48 00 00 74 */ b lbl_800E04E4 .global lbl_800E0474 lbl_800E0474: /* 800E0474 000DC2B4 80 1E 00 28 */ lwz r0, 0x28(r30) /* 800E0478 000DC2B8 38 61 00 0C */ addi r3, r1, 0xc /* 800E047C 000DC2BC 90 01 00 0C */ stw r0, 0xc(r1) /* 800E0480 000DC2C0 4B FF E8 31 */ bl LoadResTexSrt__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d9ResTexSrt /* 800E0484 000DC2C4 48 00 00 60 */ b lbl_800E04E4 .global lbl_800E0488 lbl_800E0488: /* 800E0488 000DC2C8 2C 06 00 00 */ cmpwi r6, 0x0 /* 800E048C 000DC2CC 41 82 00 58 */ beq lbl_800E04E4 /* 800E0490 000DC2D0 2C 05 00 00 */ cmpwi r5, 0x0 /* 800E0494 000DC2D4 41 82 00 10 */ beq lbl_800E04A4 /* 800E0498 000DC2D8 80 05 00 18 */ lwz r0, 0x18(r5) /* 800E049C 000DC2DC 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E04A0 000DC2E0 40 82 00 30 */ bne lbl_800E04D0 .global lbl_800E04A4 lbl_800E04A4: /* 800E04A4 000DC2E4 38 00 00 00 */ li r0, 0x0 /* 800E04A8 000DC2E8 90 01 00 8C */ stw r0, 0x8c(r1) /* 800E04AC 000DC2EC 7F E3 FB 78 */ mr r3, r31 /* 800E04B0 000DC2F0 38 81 00 8C */ addi r4, r1, 0x8c /* 800E04B4 000DC2F4 81 9F 00 00 */ lwz r12, 0x0(r31) /* 800E04B8 000DC2F8 81 8C 00 08 */ lwz r12, 0x8(r12) /* 800E04BC 000DC2FC 7D 89 03 A6 */ mtctr r12 /* 800E04C0 000DC300 4E 80 04 21 */ bctrl /* 800E04C4 000DC304 38 61 00 8C */ addi r3, r1, 0x8c /* 800E04C8 000DC308 4B FF CE 89 */ bl FifoSend__Q44nw4r3g3d8G3DState13IndTexMtxInfoCFv /* 800E04CC 000DC30C 48 00 00 18 */ b lbl_800E04E4 .global lbl_800E04D0 lbl_800E04D0: /* 800E04D0 000DC310 80 05 00 18 */ lwz r0, 0x18(r5) /* 800E04D4 000DC314 7F E4 FB 78 */ mr r4, r31 /* 800E04D8 000DC318 90 01 00 08 */ stw r0, 0x8(r1) /* 800E04DC 000DC31C 38 61 00 08 */ addi r3, r1, 0x8 /* 800E04E0 000DC320 4B FF DF 51 */ bl LoadResMatIndMtxAndScale__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d20ResMatIndMtxAndScaleRQ44nw4r3g3d8G3DState8IndMtxOp .global lbl_800E04E4 lbl_800E04E4: /* 800E04E4 000DC324 80 01 01 34 */ lwz r0, 0x134(r1) /* 800E04E8 000DC328 83 E1 01 2C */ lwz r31, 0x12c(r1) /* 800E04EC 000DC32C 83 C1 01 28 */ lwz r30, 0x128(r1) /* 800E04F0 000DC330 83 A1 01 24 */ lwz r29, 0x124(r1) /* 800E04F4 000DC334 83 81 01 20 */ lwz r28, 0x120(r1) /* 800E04F8 000DC338 7C 08 03 A6 */ mtlr r0 /* 800E04FC 000DC33C 38 21 01 30 */ addi r1, r1, 0x130 /* 800E0500 000DC340 4E 80 00 20 */ blr /* 800E0504 000DC344 00 00 00 00 */ .4byte 0x00000000 /* 800E0508 000DC348 00 00 00 00 */ .4byte 0x00000000 /* 800E050C 000DC34C 00 00 00 00 */ .4byte 0x00000000 .global Draw1Mat1ShpDirectly__Q24nw4r3g3dFQ34nw4r3g3d6ResMatQ34nw4r3g3d6ResShpPCQ34nw4r4math5MTX34PCQ34nw4r4math5MTX34UlPQ34nw4r3g3d16Draw1Mat1ShpSwapPQ44nw4r3g3d8G3DState8IndMtxOp Draw1Mat1ShpDirectly__Q24nw4r3g3dFQ34nw4r3g3d6ResMatQ34nw4r3g3d6ResShpPCQ34nw4r4math5MTX34PCQ34nw4r4math5MTX34UlPQ34nw4r3g3d16Draw1Mat1ShpSwapPQ44nw4r3g3d8G3DState8IndMtxOp: /* 800E0510 000DC350 94 21 FD A0 */ stwu r1, -0x260(r1) /* 800E0514 000DC354 7C 08 02 A6 */ mflr r0 /* 800E0518 000DC358 90 01 02 64 */ stw r0, 0x264(r1) /* 800E051C 000DC35C 39 61 01 D0 */ addi r11, r1, 0x1d0 /* 800E0520 000DC360 DB E1 02 50 */ stfd f31, 0x250(r1) /* 800E0524 000DC364 F3 E1 02 58 */ psq_st f31, 0x258(r1), 0, qr0 /* 800E0528 000DC368 DB C1 02 40 */ stfd f30, 0x240(r1) /* 800E052C 000DC36C F3 C1 02 48 */ psq_st f30, 0x248(r1), 0, qr0 /* 800E0530 000DC370 DB A1 02 30 */ stfd f29, 0x230(r1) /* 800E0534 000DC374 F3 A1 02 38 */ psq_st f29, 0x238(r1), 0, qr0 /* 800E0538 000DC378 DB 81 02 20 */ stfd f28, 0x220(r1) /* 800E053C 000DC37C F3 81 02 28 */ psq_st f28, 0x228(r1), 0, qr0 /* 800E0540 000DC380 DB 61 02 10 */ stfd f27, 0x210(r1) /* 800E0544 000DC384 F3 61 02 18 */ psq_st f27, 0x218(r1), 0, qr0 /* 800E0548 000DC388 DB 41 02 00 */ stfd f26, 0x200(r1) /* 800E054C 000DC38C F3 41 02 08 */ psq_st f26, 0x208(r1), 0, qr0 /* 800E0550 000DC390 DB 21 01 F0 */ stfd f25, 0x1f0(r1) /* 800E0554 000DC394 F3 21 01 F8 */ psq_st f25, 0x1f8(r1), 0, qr0 /* 800E0558 000DC398 DB 01 01 E0 */ stfd f24, 0x1e0(r1) /* 800E055C 000DC39C F3 01 01 E8 */ psq_st f24, 0x1e8(r1), 0, qr0 /* 800E0560 000DC3A0 DA E1 01 D0 */ stfd f23, 0x1d0(r1) /* 800E0564 000DC3A4 F2 E1 01 D8 */ psq_st f23, 0x1d8(r1), 0, qr0 /* 800E0568 000DC3A8 4B F2 6D A5 */ bl lbl_8000730C /* 800E056C 000DC3AC 54 E0 07 FF */ clrlwi. r0, r7, 31 /* 800E0570 000DC3B0 7C 72 1B 78 */ mr r18, r3 /* 800E0574 000DC3B4 3C 00 43 30 */ lis r0, 0x4330 /* 800E0578 000DC3B8 7C 9A 23 78 */ mr r26, r4 /* 800E057C 000DC3BC 90 01 01 58 */ stw r0, 0x158(r1) /* 800E0580 000DC3C0 7C BB 2B 78 */ mr r27, r5 /* 800E0584 000DC3C4 7C DC 33 78 */ mr r28, r6 /* 800E0588 000DC3C8 7C F1 3B 78 */ mr r17, r7 /* 800E058C 000DC3CC 90 01 01 60 */ stw r0, 0x160(r1) /* 800E0590 000DC3D0 7D 0F 43 78 */ mr r15, r8 /* 800E0594 000DC3D4 7D 34 4B 78 */ mr r20, r9 /* 800E0598 000DC3D8 40 82 00 10 */ bne lbl_800E05A8 /* 800E059C 000DC3DC 38 60 00 00 */ li r3, 0x0 /* 800E05A0 000DC3E0 4B F3 C7 91 */ bl LCQueueWait /* 800E05A4 000DC3E4 4B F3 9B 7D */ bl PPCSync .global lbl_800E05A8 lbl_800E05A8: /* 800E05A8 000DC3E8 3A 00 00 00 */ li r16, 0x0 /* 800E05AC 000DC3EC 92 01 00 74 */ stw r16, 0x74(r1) /* 800E05B0 000DC3F0 3A 60 00 00 */ li r19, 0x0 /* 800E05B4 000DC3F4 80 12 00 00 */ lwz r0, 0x0(r18) /* 800E05B8 000DC3F8 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E05BC 000DC3FC 41 82 00 2C */ beq lbl_800E05E8 /* 800E05C0 000DC400 56 20 06 F7 */ rlwinm. r0, r17, 0, 27, 27 /* 800E05C4 000DC404 41 82 00 08 */ beq lbl_800E05CC /* 800E05C8 000DC408 3A 00 00 01 */ li r16, 0x1 .global lbl_800E05CC lbl_800E05CC: /* 800E05CC 000DC40C 7E 43 93 78 */ mr r3, r18 /* 800E05D0 000DC410 4B FE DB 41 */ bl GetResMatFur__Q34nw4r3g3d6ResMatFv /* 800E05D4 000DC414 2C 03 00 00 */ cmpwi r3, 0x0 /* 800E05D8 000DC418 90 61 00 74 */ stw r3, 0x74(r1) /* 800E05DC 000DC41C 41 82 00 10 */ beq lbl_800E05EC /* 800E05E0 000DC420 3A 60 00 01 */ li r19, 0x1 /* 800E05E4 000DC424 48 00 00 08 */ b lbl_800E05EC .global lbl_800E05E8 lbl_800E05E8: /* 800E05E8 000DC428 3A 00 00 01 */ li r16, 0x1 .global lbl_800E05EC lbl_800E05EC: /* 800E05EC 000DC42C 80 12 00 00 */ lwz r0, 0x0(r18) /* 800E05F0 000DC430 7E 24 8B 78 */ mr r4, r17 /* 800E05F4 000DC434 90 01 00 40 */ stw r0, 0x40(r1) /* 800E05F8 000DC438 7D E5 7B 78 */ mr r5, r15 /* 800E05FC 000DC43C 7E 86 A3 78 */ mr r6, r20 /* 800E0600 000DC440 7E 07 83 78 */ mr r7, r16 /* 800E0604 000DC444 38 61 00 40 */ addi r3, r1, 0x40 /* 800E0608 000DC448 4B FF FA 69 */ bl LoadMaterial__Q34nw4r3g3d6detailFQ34nw4r3g3d6ResMatUlPQ34nw4r3g3d16Draw1Mat1ShpSwapPQ44nw4r3g3d8G3DState8IndMtxOpb /* 800E060C 000DC44C 80 7A 00 00 */ lwz r3, 0x0(r26) /* 800E0610 000DC450 2C 03 00 00 */ cmpwi r3, 0x0 /* 800E0614 000DC454 41 82 07 40 */ beq lbl_800E0D54 /* 800E0618 000DC458 80 03 00 34 */ lwz r0, 0x34(r3) /* 800E061C 000DC45C 54 00 07 BD */ rlwinm. r0, r0, 0, 30, 30 /* 800E0620 000DC460 40 82 07 34 */ bne lbl_800E0D54 /* 800E0624 000DC464 2C 13 00 00 */ cmpwi r19, 0x0 /* 800E0628 000DC468 41 82 06 24 */ beq lbl_800E0C4C /* 800E062C 000DC46C 7D E0 00 34 */ cntlzw r0, r15 /* 800E0630 000DC470 3C C0 80 41 */ lis r6, "@10241"@ha /* 800E0634 000DC474 84 A6 8D B8 */ lwzu r5, "@10241"@l(r6) /* 800E0638 000DC478 54 10 D9 7F */ srwi. r16, r0, 5 /* 800E063C 000DC47C 81 01 00 74 */ lwz r8, 0x74(r1) /* 800E0640 000DC480 80 86 00 04 */ lwz r4, 0x4(r6) /* 800E0644 000DC484 80 66 00 08 */ lwz r3, 0x8(r6) /* 800E0648 000DC488 7E 07 83 78 */ mr r7, r16 /* 800E064C 000DC48C 80 06 00 0C */ lwz r0, 0xc(r6) /* 800E0650 000DC490 90 A1 00 80 */ stw r5, 0x80(r1) /* 800E0654 000DC494 C3 48 00 0C */ lfs f26, 0xc(r8) /* 800E0658 000DC498 90 81 00 84 */ stw r4, 0x84(r1) /* 800E065C 000DC49C C3 28 00 10 */ lfs f25, 0x10(r8) /* 800E0660 000DC4A0 90 61 00 88 */ stw r3, 0x88(r1) /* 800E0664 000DC4A4 90 01 00 8C */ stw r0, 0x8c(r1) /* 800E0668 000DC4A8 40 82 00 10 */ bne lbl_800E0678 /* 800E066C 000DC4AC 80 0F 00 14 */ lwz r0, 0x14(r15) /* 800E0670 000DC4B0 7C 00 00 34 */ cntlzw r0, r0 /* 800E0674 000DC4B4 54 07 D9 7E */ srwi r7, r0, 5 .global lbl_800E0678 lbl_800E0678: /* 800E0678 000DC4B8 2C 07 00 00 */ cmpwi r7, 0x0 /* 800E067C 000DC4BC 41 82 00 30 */ beq lbl_800E06AC /* 800E0680 000DC4C0 80 72 00 00 */ lwz r3, 0x0(r18) /* 800E0684 000DC4C4 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E0688 000DC4C8 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E068C 000DC4CC 41 82 00 0C */ beq lbl_800E0698 /* 800E0690 000DC4D0 7C 63 02 14 */ add r3, r3, r0 /* 800E0694 000DC4D4 48 00 00 08 */ b lbl_800E069C .global lbl_800E0698 lbl_800E0698: /* 800E0698 000DC4D8 38 60 00 00 */ li r3, 0x0 .global lbl_800E069C lbl_800E069C: /* 800E069C 000DC4DC 38 03 00 20 */ addi r0, r3, 0x20 /* 800E06A0 000DC4E0 90 01 00 3C */ stw r0, 0x3c(r1) /* 800E06A4 000DC4E4 38 61 00 3C */ addi r3, r1, 0x3c /* 800E06A8 000DC4E8 48 00 00 08 */ b lbl_800E06B0 .global lbl_800E06AC lbl_800E06AC: /* 800E06AC 000DC4EC 38 6F 00 14 */ addi r3, r15, 0x14 .global lbl_800E06B0 lbl_800E06B0: /* 800E06B0 000DC4F0 80 03 00 00 */ lwz r0, 0x0(r3) /* 800E06B4 000DC4F4 38 61 00 5C */ addi r3, r1, 0x5c /* 800E06B8 000DC4F8 90 01 00 5C */ stw r0, 0x5c(r1) /* 800E06BC 000DC4FC 38 A1 00 70 */ addi r5, r1, 0x70 /* 800E06C0 000DC500 38 80 00 00 */ li r4, 0x0 /* 800E06C4 000DC504 4B FE CE AD */ bl GXGetTevKColor__Q34nw4r3g3d14ResMatTevColorCF14_GXTevKColorIDP8_GXColor /* 800E06C8 000DC508 38 61 00 5C */ addi r3, r1, 0x5c /* 800E06CC 000DC50C 38 A1 00 6C */ addi r5, r1, 0x6c /* 800E06D0 000DC510 38 80 00 01 */ li r4, 0x1 /* 800E06D4 000DC514 4B FE CE 9D */ bl GXGetTevKColor__Q34nw4r3g3d14ResMatTevColorCF14_GXTevKColorIDP8_GXColor /* 800E06D8 000DC518 38 61 00 5C */ addi r3, r1, 0x5c /* 800E06DC 000DC51C 38 A1 00 68 */ addi r5, r1, 0x68 /* 800E06E0 000DC520 38 80 00 02 */ li r4, 0x2 /* 800E06E4 000DC524 4B FE CE 8D */ bl GXGetTevKColor__Q34nw4r3g3d14ResMatTevColorCF14_GXTevKColorIDP8_GXColor /* 800E06E8 000DC528 2C 10 00 00 */ cmpwi r16, 0x0 /* 800E06EC 000DC52C 8B E1 00 69 */ lbz r31, 0x69(r1) /* 800E06F0 000DC530 38 60 00 00 */ li r3, 0x0 /* 800E06F4 000DC534 40 82 00 10 */ bne lbl_800E0704 /* 800E06F8 000DC538 80 0F 00 1C */ lwz r0, 0x1c(r15) /* 800E06FC 000DC53C 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0700 000DC540 40 82 00 08 */ bne lbl_800E0708 .global lbl_800E0704 lbl_800E0704: /* 800E0704 000DC544 38 60 00 01 */ li r3, 0x1 .global lbl_800E0708 lbl_800E0708: /* 800E0708 000DC548 2C 03 00 00 */ cmpwi r3, 0x0 /* 800E070C 000DC54C 41 82 00 18 */ beq lbl_800E0724 /* 800E0710 000DC550 80 72 00 00 */ lwz r3, 0x0(r18) /* 800E0714 000DC554 38 81 00 38 */ addi r4, r1, 0x38 /* 800E0718 000DC558 38 03 03 F0 */ addi r0, r3, 0x3f0 /* 800E071C 000DC55C 90 01 00 38 */ stw r0, 0x38(r1) /* 800E0720 000DC560 48 00 00 08 */ b lbl_800E0728 .global lbl_800E0724 lbl_800E0724: /* 800E0724 000DC564 38 8F 00 1C */ addi r4, r15, 0x1c .global lbl_800E0728 lbl_800E0728: /* 800E0728 000DC568 80 04 00 00 */ lwz r0, 0x0(r4) /* 800E072C 000DC56C 38 61 00 58 */ addi r3, r1, 0x58 /* 800E0730 000DC570 90 01 00 58 */ stw r0, 0x58(r1) /* 800E0734 000DC574 38 A1 00 78 */ addi r5, r1, 0x78 /* 800E0738 000DC578 38 80 00 00 */ li r4, 0x0 /* 800E073C 000DC57C 4B FE D5 E5 */ bl GXGetChanMatColor__Q34nw4r3g3d10ResMatChanCF12_GXChannelIDP8_GXColor /* 800E0740 000DC580 38 61 00 58 */ addi r3, r1, 0x58 /* 800E0744 000DC584 38 A1 00 7C */ addi r5, r1, 0x7c /* 800E0748 000DC588 38 80 00 01 */ li r4, 0x1 /* 800E074C 000DC58C 4B FE D5 D5 */ bl GXGetChanMatColor__Q34nw4r3g3d10ResMatChanCF12_GXChannelIDP8_GXColor /* 800E0750 000DC590 3A 61 00 80 */ addi r19, r1, 0x80 /* 800E0754 000DC594 3A 80 00 00 */ li r20, 0x0 .global lbl_800E0758 lbl_800E0758: /* 800E0758 000DC598 56 80 15 BA */ rlwinm r0, r20, 2, 22, 29 /* 800E075C 000DC59C 38 E1 00 A0 */ addi r7, r1, 0xa0 /* 800E0760 000DC5A0 39 41 00 90 */ addi r10, r1, 0x90 /* 800E0764 000DC5A4 7C 93 00 2E */ lwzx r4, r19, r0 /* 800E0768 000DC5A8 38 61 00 58 */ addi r3, r1, 0x58 /* 800E076C 000DC5AC 7C E7 02 14 */ add r7, r7, r0 /* 800E0770 000DC5B0 7D 4A 02 14 */ add r10, r10, r0 /* 800E0774 000DC5B4 38 A0 00 00 */ li r5, 0x0 /* 800E0778 000DC5B8 38 C0 00 00 */ li r6, 0x0 /* 800E077C 000DC5BC 39 00 00 00 */ li r8, 0x0 /* 800E0780 000DC5C0 39 20 00 00 */ li r9, 0x0 /* 800E0784 000DC5C4 4B FE D5 DD */ bl GXGetChanCtrl__Q34nw4r3g3d10ResMatChanCF12_GXChannelIDPUcP11_GXColorSrcP11_GXColorSrcP10_GXLightIDP12_GXDiffuseFnP9_GXAttnFn /* 800E0788 000DC5C8 3A 94 00 01 */ addi r20, r20, 0x1 /* 800E078C 000DC5CC 28 14 00 04 */ cmplwi r20, 0x4 /* 800E0790 000DC5D0 41 80 FF C8 */ blt lbl_800E0758 /* 800E0794 000DC5D4 2C 10 00 00 */ cmpwi r16, 0x0 /* 800E0798 000DC5D8 38 60 00 00 */ li r3, 0x0 /* 800E079C 000DC5DC 40 82 00 10 */ bne lbl_800E07AC /* 800E07A0 000DC5E0 80 0F 00 24 */ lwz r0, 0x24(r15) /* 800E07A4 000DC5E4 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E07A8 000DC5E8 40 82 00 08 */ bne lbl_800E07B0 .global lbl_800E07AC lbl_800E07AC: /* 800E07AC 000DC5EC 38 60 00 01 */ li r3, 0x1 .global lbl_800E07B0 lbl_800E07B0: /* 800E07B0 000DC5F0 2C 03 00 00 */ cmpwi r3, 0x0 /* 800E07B4 000DC5F4 41 82 00 18 */ beq lbl_800E07CC /* 800E07B8 000DC5F8 80 72 00 00 */ lwz r3, 0x0(r18) /* 800E07BC 000DC5FC 38 81 00 34 */ addi r4, r1, 0x34 /* 800E07C0 000DC600 38 03 00 1C */ addi r0, r3, 0x1c /* 800E07C4 000DC604 90 01 00 34 */ stw r0, 0x34(r1) /* 800E07C8 000DC608 48 00 00 08 */ b lbl_800E07D0 .global lbl_800E07CC lbl_800E07CC: /* 800E07CC 000DC60C 38 8F 00 24 */ addi r4, r15, 0x24 .global lbl_800E07D0 lbl_800E07D0: /* 800E07D0 000DC610 80 04 00 00 */ lwz r0, 0x0(r4) /* 800E07D4 000DC614 2C 10 00 00 */ cmpwi r16, 0x0 /* 800E07D8 000DC618 90 01 00 54 */ stw r0, 0x54(r1) /* 800E07DC 000DC61C 40 82 00 10 */ bne lbl_800E07EC /* 800E07E0 000DC620 80 0F 00 18 */ lwz r0, 0x18(r15) /* 800E07E4 000DC624 7C 00 00 34 */ cntlzw r0, r0 /* 800E07E8 000DC628 54 10 D9 7E */ srwi r16, r0, 5 .global lbl_800E07EC lbl_800E07EC: /* 800E07EC 000DC62C 2C 10 00 00 */ cmpwi r16, 0x0 /* 800E07F0 000DC630 41 82 00 30 */ beq lbl_800E0820 /* 800E07F4 000DC634 80 72 00 00 */ lwz r3, 0x0(r18) /* 800E07F8 000DC638 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800E07FC 000DC63C 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0800 000DC640 41 82 00 0C */ beq lbl_800E080C /* 800E0804 000DC644 7C 63 02 14 */ add r3, r3, r0 /* 800E0808 000DC648 48 00 00 08 */ b lbl_800E0810 .global lbl_800E080C lbl_800E080C: /* 800E080C 000DC64C 38 60 00 00 */ li r3, 0x0 .global lbl_800E0810 lbl_800E0810: /* 800E0810 000DC650 38 03 00 A0 */ addi r0, r3, 0xa0 /* 800E0814 000DC654 90 01 00 30 */ stw r0, 0x30(r1) /* 800E0818 000DC658 38 61 00 30 */ addi r3, r1, 0x30 /* 800E081C 000DC65C 48 00 00 08 */ b lbl_800E0824 .global lbl_800E0820 lbl_800E0820: /* 800E0820 000DC660 38 6F 00 18 */ addi r3, r15, 0x18 .global lbl_800E0824 lbl_800E0824: /* 800E0824 000DC664 80 03 00 00 */ lwz r0, 0x0(r3) /* 800E0828 000DC668 3A 41 00 64 */ addi r18, r1, 0x64 /* 800E082C 000DC66C 90 01 00 50 */ stw r0, 0x50(r1) /* 800E0830 000DC670 3A 61 00 60 */ addi r19, r1, 0x60 /* 800E0834 000DC674 3A 81 00 C8 */ addi r20, r1, 0xc8 /* 800E0838 000DC678 3A A0 00 00 */ li r21, 0x0 /* 800E083C 000DC67C 3A 00 00 01 */ li r16, 0x1 /* 800E0840 000DC680 39 E0 00 00 */ li r15, 0x0 .global lbl_800E0844 lbl_800E0844: /* 800E0844 000DC684 3A D5 00 01 */ addi r22, r21, 0x1 /* 800E0848 000DC688 38 61 00 54 */ addi r3, r1, 0x54 /* 800E084C 000DC68C 7E C4 B3 78 */ mr r4, r22 /* 800E0850 000DC690 38 A1 00 4C */ addi r5, r1, 0x4c /* 800E0854 000DC694 38 C1 00 08 */ addi r6, r1, 0x8 /* 800E0858 000DC698 4B FE CA 49 */ bl GetIndirectTexMtxCalcMethod__Q34nw4r3g3d10ResMatMiscF14_GXIndTexMtxIDPQ44nw4r3g3d14ResMatMiscData14IndirectMethodPSc /* 800E085C 000DC69C 80 01 00 4C */ lwz r0, 0x4c(r1) /* 800E0860 000DC6A0 2C 00 00 03 */ cmpwi r0, 0x3 /* 800E0864 000DC6A4 40 82 00 20 */ bne lbl_800E0884 /* 800E0868 000DC6A8 9A 12 00 00 */ stb r16, 0x0(r18) /* 800E086C 000DC6AC 7E C4 B3 78 */ mr r4, r22 /* 800E0870 000DC6B0 7E 85 A3 78 */ mr r5, r20 /* 800E0874 000DC6B4 7E 66 9B 78 */ mr r6, r19 /* 800E0878 000DC6B8 38 61 00 50 */ addi r3, r1, 0x50 /* 800E087C 000DC6BC 4B FE D1 45 */ bl GXGetIndTexMtx__Q34nw4r3g3d20ResMatIndMtxAndScaleCF14_GXIndTexMtxIDPQ34nw4r4math5MTX34PSc /* 800E0880 000DC6C0 48 00 00 08 */ b lbl_800E0888 .global lbl_800E0884 lbl_800E0884: /* 800E0884 000DC6C4 99 F2 00 00 */ stb r15, 0x0(r18) .global lbl_800E0888 lbl_800E0888: /* 800E0888 000DC6C8 3A B5 00 01 */ addi r21, r21, 0x1 /* 800E088C 000DC6CC 3A 73 00 01 */ addi r19, r19, 0x1 /* 800E0890 000DC6D0 28 15 00 03 */ cmplwi r21, 0x3 /* 800E0894 000DC6D4 3A 94 00 30 */ addi r20, r20, 0x30 /* 800E0898 000DC6D8 3A 52 00 01 */ addi r18, r18, 0x1 /* 800E089C 000DC6DC 41 80 FF A8 */ blt lbl_800E0844 /* 800E08A0 000DC6E0 80 1A 00 00 */ lwz r0, 0x0(r26) /* 800E08A4 000DC6E4 38 61 00 2C */ addi r3, r1, 0x2c /* 800E08A8 000DC6E8 90 01 00 2C */ stw r0, 0x2c(r1) /* 800E08AC 000DC6EC 4B FF E6 B5 */ bl LoadResShpPrePrimitive__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d6ResShp /* 800E08B0 000DC6F0 56 20 07 7B */ rlwinm. r0, r17, 0, 29, 29 /* 800E08B4 000DC6F4 41 82 00 14 */ beq lbl_800E08C8 /* 800E08B8 000DC6F8 38 60 00 01 */ li r3, 0x1 /* 800E08BC 000DC6FC 4B FF B7 15 */ bl GDSetCullMode__Q34nw4r3g3d4fifoF11_GXCullMode /* 800E08C0 000DC700 38 60 00 10 */ li r3, 0x10 /* 800E08C4 000DC704 4B FF F0 3D */ bl Invalidate__Q34nw4r3g3d8G3DStateFUl .global lbl_800E08C8 lbl_800E08C8: /* 800E08C8 000DC708 7F 43 D3 78 */ mr r3, r26 /* 800E08CC 000DC70C 4B FE B0 55 */ bl GetResVtxFurPos__Q34nw4r3g3d6ResShpCFv /* 800E08D0 000DC710 90 61 00 48 */ stw r3, 0x48(r1) /* 800E08D4 000DC714 3A 41 00 A0 */ addi r18, r1, 0xa0 /* 800E08D8 000DC718 CB E2 90 90 */ lfd f31, "@11268"@sda21(r2) /* 800E08DC 000DC71C 3A 61 00 90 */ addi r19, r1, 0x90 /* 800E08E0 000DC720 83 C3 00 20 */ lwz r30, 0x20(r3) /* 800E08E4 000DC724 3A 81 00 78 */ addi r20, r1, 0x78 /* 800E08E8 000DC728 C3 A2 90 78 */ lfs f29, "@11256"@sda21(r2) /* 800E08EC 000DC72C 3A A1 00 80 */ addi r21, r1, 0x80 /* 800E08F0 000DC730 C3 C2 90 88 */ lfs f30, "@11258"@sda21(r2) /* 800E08F4 000DC734 3A 21 00 60 */ addi r17, r1, 0x60 /* 800E08F8 000DC738 3A 01 00 64 */ addi r16, r1, 0x64 /* 800E08FC 000DC73C 3B A0 00 00 */ li r29, 0x0 /* 800E0900 000DC740 3A C0 00 10 */ li r22, 0x10 /* 800E0904 000DC744 3E E0 CC 01 */ lis r23, 0xCC008000@ha /* 800E0908 000DC748 3B 00 00 00 */ li r24, 0x0 /* 800E090C 000DC74C 3B 20 00 02 */ li r25, 0x2 /* 800E0910 000DC750 48 00 03 2C */ b lbl_800E0C3C .global lbl_800E0914 lbl_800E0914: /* 800E0914 000DC754 38 61 00 74 */ addi r3, r1, 0x74 /* 800E0918 000DC758 57 A4 04 3E */ clrlwi r4, r29, 16 /* 800E091C 000DC75C 4B FE CA 15 */ bl GetLyrRate__Q34nw4r3g3d9ResMatFurCFUl /* 800E0920 000DC760 FF 00 08 90 */ fmr f24, f1 /* 800E0924 000DC764 FC 40 D0 90 */ fmr f2, f26 /* 800E0928 000DC768 EE FD 08 28 */ fsubs f23, f29, f1 /* 800E092C 000DC76C 4B F3 3C 71 */ bl pow /* 800E0930 000DC770 FF 80 08 18 */ frsp f28, f1 /* 800E0934 000DC774 FC 20 C0 90 */ fmr f1, f24 /* 800E0938 000DC778 FC 40 C8 90 */ fmr f2, f25 /* 800E093C 000DC77C 4B F3 3C 61 */ bl pow /* 800E0940 000DC780 FF 60 08 18 */ frsp f27, f1 /* 800E0944 000DC784 C8 42 90 80 */ lfd f2, "@11257"@sda21(r2) /* 800E0948 000DC788 FC 20 C0 90 */ fmr f1, f24 /* 800E094C 000DC78C 4B F3 3C 51 */ bl pow /* 800E0950 000DC790 93 E1 01 5C */ stw r31, 0x15c(r1) /* 800E0954 000DC794 FC 60 08 18 */ frsp f3, f1 /* 800E0958 000DC798 EC 5E 06 32 */ fmuls f2, f30, f24 /* 800E095C 000DC79C 38 81 00 28 */ addi r4, r1, 0x28 /* 800E0960 000DC7A0 C8 01 01 58 */ lfd f0, 0x158(r1) /* 800E0964 000DC7A4 38 60 00 02 */ li r3, 0x2 /* 800E0968 000DC7A8 EC 00 F8 28 */ fsubs f0, f0, f31 /* 800E096C 000DC7AC FC 20 10 1E */ fctiwz f1, f2 /* 800E0970 000DC7B0 EC 00 00 F2 */ fmuls f0, f0, f3 /* 800E0974 000DC7B4 D8 21 01 68 */ stfd f1, 0x168(r1) /* 800E0978 000DC7B8 80 01 01 6C */ lwz r0, 0x16c(r1) /* 800E097C 000DC7BC FC 00 00 1E */ fctiwz f0, f0 /* 800E0980 000DC7C0 98 01 00 68 */ stb r0, 0x68(r1) /* 800E0984 000DC7C4 D8 01 01 70 */ stfd f0, 0x170(r1) /* 800E0988 000DC7C8 80 01 01 74 */ lwz r0, 0x174(r1) /* 800E098C 000DC7CC 98 01 00 69 */ stb r0, 0x69(r1) /* 800E0990 000DC7D0 80 01 00 68 */ lwz r0, 0x68(r1) /* 800E0994 000DC7D4 90 01 00 28 */ stw r0, 0x28(r1) /* 800E0998 000DC7D8 4B F5 74 D9 */ bl GXSetTevKColor /* 800E099C 000DC7DC 39 E0 00 00 */ li r15, 0x0 .global lbl_800E09A0 lbl_800E09A0: /* 800E09A0 000DC7E0 55 E3 06 3E */ clrlwi r3, r15, 24 /* 800E09A4 000DC7E4 7C 10 18 AE */ lbzx r0, r16, r3 /* 800E09A8 000DC7E8 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E09AC 000DC7EC 41 82 00 60 */ beq lbl_800E0A0C /* 800E09B0 000DC7F0 1C A3 00 30 */ mulli r5, r3, 0x30 /* 800E09B4 000DC7F4 38 C1 00 C8 */ addi r6, r1, 0xc8 /* 800E09B8 000DC7F8 7C 11 18 AE */ lbzx r0, r17, r3 /* 800E09BC 000DC7FC 38 63 00 01 */ addi r3, r3, 0x1 /* 800E09C0 000DC800 38 81 00 B0 */ addi r4, r1, 0xb0 /* 800E09C4 000DC804 7C 06 2C 6E */ lfsux f0, r6, r5 /* 800E09C8 000DC808 7C 05 07 74 */ extsb r5, r0 /* 800E09CC 000DC80C EC B8 00 32 */ fmuls f5, f24, f0 /* 800E09D0 000DC810 C0 46 00 04 */ lfs f2, 0x4(r6) /* 800E09D4 000DC814 C0 26 00 10 */ lfs f1, 0x10(r6) /* 800E09D8 000DC818 EC 98 00 B2 */ fmuls f4, f24, f2 /* 800E09DC 000DC81C C0 06 00 14 */ lfs f0, 0x14(r6) /* 800E09E0 000DC820 EC 58 00 72 */ fmuls f2, f24, f1 /* 800E09E4 000DC824 EC 38 00 32 */ fmuls f1, f24, f0 /* 800E09E8 000DC828 C0 66 00 08 */ lfs f3, 0x8(r6) /* 800E09EC 000DC82C C0 06 00 18 */ lfs f0, 0x18(r6) /* 800E09F0 000DC830 D0 A1 00 B0 */ stfs f5, 0xb0(r1) /* 800E09F4 000DC834 D0 81 00 B4 */ stfs f4, 0xb4(r1) /* 800E09F8 000DC838 D0 61 00 B8 */ stfs f3, 0xb8(r1) /* 800E09FC 000DC83C D0 41 00 BC */ stfs f2, 0xbc(r1) /* 800E0A00 000DC840 D0 21 00 C0 */ stfs f1, 0xc0(r1) /* 800E0A04 000DC844 D0 01 00 C4 */ stfs f0, 0xc4(r1) /* 800E0A08 000DC848 4B F5 6D D9 */ bl GXSetIndTexMtx .global lbl_800E0A0C lbl_800E0A0C: /* 800E0A0C 000DC84C 39 EF 00 01 */ addi r15, r15, 0x1 /* 800E0A10 000DC850 28 0F 00 03 */ cmplwi r15, 0x3 /* 800E0A14 000DC854 41 80 FF 8C */ blt lbl_800E09A0 /* 800E0A18 000DC858 88 61 00 70 */ lbz r3, 0x70(r1) /* 800E0A1C 000DC85C EC 3D E0 28 */ fsubs f1, f29, f28 /* 800E0A20 000DC860 90 61 01 64 */ stw r3, 0x164(r1) /* 800E0A24 000DC864 38 E0 00 00 */ li r7, 0x0 /* 800E0A28 000DC868 88 01 00 6C */ lbz r0, 0x6c(r1) /* 800E0A2C 000DC86C C8 01 01 60 */ lfd f0, 0x160(r1) /* 800E0A30 000DC870 90 01 01 5C */ stw r0, 0x15c(r1) /* 800E0A34 000DC874 EC 60 F8 28 */ fsubs f3, f0, f31 /* 800E0A38 000DC878 88 61 00 71 */ lbz r3, 0x71(r1) /* 800E0A3C 000DC87C C8 01 01 58 */ lfd f0, 0x158(r1) /* 800E0A40 000DC880 90 61 01 64 */ stw r3, 0x164(r1) /* 800E0A44 000DC884 EC 40 F8 28 */ fsubs f2, f0, f31 /* 800E0A48 000DC888 88 01 00 6D */ lbz r0, 0x6d(r1) /* 800E0A4C 000DC88C 90 01 01 5C */ stw r0, 0x15c(r1) /* 800E0A50 000DC890 EC A3 05 F2 */ fmuls f5, f3, f23 /* 800E0A54 000DC894 C8 01 01 60 */ lfd f0, 0x160(r1) /* 800E0A58 000DC898 88 61 00 72 */ lbz r3, 0x72(r1) /* 800E0A5C 000DC89C EC 60 F8 28 */ fsubs f3, f0, f31 /* 800E0A60 000DC8A0 90 61 01 64 */ stw r3, 0x164(r1) /* 800E0A64 000DC8A4 EC 82 06 32 */ fmuls f4, f2, f24 /* 800E0A68 000DC8A8 C8 01 01 58 */ lfd f0, 0x158(r1) /* 800E0A6C 000DC8AC 88 01 00 6E */ lbz r0, 0x6e(r1) /* 800E0A70 000DC8B0 EC 40 F8 28 */ fsubs f2, f0, f31 /* 800E0A74 000DC8B4 EC C5 20 2A */ fadds f6, f5, f4 /* 800E0A78 000DC8B8 C8 01 01 60 */ lfd f0, 0x160(r1) /* 800E0A7C 000DC8BC 90 01 01 5C */ stw r0, 0x15c(r1) /* 800E0A80 000DC8C0 EC A3 05 F2 */ fmuls f5, f3, f23 /* 800E0A84 000DC8C4 EC 80 F8 28 */ fsubs f4, f0, f31 /* 800E0A88 000DC8C8 C8 01 01 58 */ lfd f0, 0x158(r1) /* 800E0A8C 000DC8CC 88 61 00 73 */ lbz r3, 0x73(r1) /* 800E0A90 000DC8D0 EC 42 06 32 */ fmuls f2, f2, f24 /* 800E0A94 000DC8D4 88 01 00 6F */ lbz r0, 0x6f(r1) /* 800E0A98 000DC8D8 EC 60 F8 28 */ fsubs f3, f0, f31 /* 800E0A9C 000DC8DC 90 01 01 5C */ stw r0, 0x15c(r1) /* 800E0AA0 000DC8E0 EC 84 05 F2 */ fmuls f4, f4, f23 /* 800E0AA4 000DC8E4 EC A5 10 2A */ fadds f5, f5, f2 /* 800E0AA8 000DC8E8 90 61 01 64 */ stw r3, 0x164(r1) /* 800E0AAC 000DC8EC EC 63 06 32 */ fmuls f3, f3, f24 /* 800E0AB0 000DC8F0 C8 01 01 58 */ lfd f0, 0x158(r1) /* 800E0AB4 000DC8F4 FC C0 30 1E */ fctiwz f6, f6 /* 800E0AB8 000DC8F8 C8 41 01 60 */ lfd f2, 0x160(r1) /* 800E0ABC 000DC8FC EC 00 F8 28 */ fsubs f0, f0, f31 /* 800E0AC0 000DC900 D8 C1 01 70 */ stfd f6, 0x170(r1) /* 800E0AC4 000DC904 EC 42 F8 28 */ fsubs f2, f2, f31 /* 800E0AC8 000DC908 FC A0 28 1E */ fctiwz f5, f5 /* 800E0ACC 000DC90C 80 01 01 74 */ lwz r0, 0x174(r1) /* 800E0AD0 000DC910 EC 00 07 32 */ fmuls f0, f0, f28 /* 800E0AD4 000DC914 EC 22 00 72 */ fmuls f1, f2, f1 /* 800E0AD8 000DC918 D8 A1 01 68 */ stfd f5, 0x168(r1) /* 800E0ADC 000DC91C EC 44 18 2A */ fadds f2, f4, f3 /* 800E0AE0 000DC920 80 61 01 6C */ lwz r3, 0x16c(r1) /* 800E0AE4 000DC924 EC 01 00 2A */ fadds f0, f1, f0 /* 800E0AE8 000DC928 FC 20 10 1E */ fctiwz f1, f2 /* 800E0AEC 000DC92C FC 00 00 1E */ fctiwz f0, f0 /* 800E0AF0 000DC930 D8 21 01 78 */ stfd f1, 0x178(r1) /* 800E0AF4 000DC934 D8 01 01 80 */ stfd f0, 0x180(r1) /* 800E0AF8 000DC938 80 81 01 7C */ lwz r4, 0x17c(r1) /* 800E0AFC 000DC93C 80 A1 01 84 */ lwz r5, 0x184(r1) /* 800E0B00 000DC940 7F 29 03 A6 */ mtctr r25 /* 800E0B04 000DC944 60 00 00 00 */ nop .global lbl_800E0B08 lbl_800E0B08: /* 800E0B08 000DC948 54 E6 1D B8 */ rlwinm r6, r7, 3, 22, 28 /* 800E0B0C 000DC94C 54 E8 0E 3C */ rlwinm r8, r7, 1, 24, 30 /* 800E0B10 000DC950 7D 32 30 2E */ lwzx r9, r18, r6 /* 800E0B14 000DC954 2C 09 00 00 */ cmpwi r9, 0x0 /* 800E0B18 000DC958 41 82 00 18 */ beq lbl_800E0B30 /* 800E0B1C 000DC95C 55 09 15 BA */ rlwinm r9, r8, 2, 22, 29 /* 800E0B20 000DC960 7D 32 4A 14 */ add r9, r18, r9 /* 800E0B24 000DC964 81 29 00 04 */ lwz r9, 0x4(r9) /* 800E0B28 000DC968 2C 09 00 00 */ cmpwi r9, 0x0 /* 800E0B2C 000DC96C 40 82 00 E0 */ bne lbl_800E0C0C .global lbl_800E0B30 lbl_800E0B30: /* 800E0B30 000DC970 7D 33 30 2E */ lwzx r9, r19, r6 /* 800E0B34 000DC974 2C 09 00 00 */ cmpwi r9, 0x0 /* 800E0B38 000DC978 40 82 00 7C */ bne lbl_800E0BB4 /* 800E0B3C 000DC97C 54 E9 15 BA */ rlwinm r9, r7, 2, 22, 29 /* 800E0B40 000DC980 39 61 00 78 */ addi r11, r1, 0x78 /* 800E0B44 000DC984 7D 2B 48 EE */ lbzux r9, r11, r9 /* 800E0B48 000DC988 91 21 01 64 */ stw r9, 0x164(r1) /* 800E0B4C 000DC98C 89 4B 00 01 */ lbz r10, 0x1(r11) /* 800E0B50 000DC990 C8 01 01 60 */ lfd f0, 0x160(r1) /* 800E0B54 000DC994 89 2B 00 02 */ lbz r9, 0x2(r11) /* 800E0B58 000DC998 EC 00 F8 28 */ fsubs f0, f0, f31 /* 800E0B5C 000DC99C 91 41 01 5C */ stw r10, 0x15c(r1) /* 800E0B60 000DC9A0 91 21 01 64 */ stw r9, 0x164(r1) /* 800E0B64 000DC9A4 EC 5B 00 32 */ fmuls f2, f27, f0 /* 800E0B68 000DC9A8 C8 21 01 58 */ lfd f1, 0x158(r1) /* 800E0B6C 000DC9AC C8 01 01 60 */ lfd f0, 0x160(r1) /* 800E0B70 000DC9B0 EC 21 F8 28 */ fsubs f1, f1, f31 /* 800E0B74 000DC9B4 EC 00 F8 28 */ fsubs f0, f0, f31 /* 800E0B78 000DC9B8 FC 40 10 1E */ fctiwz f2, f2 /* 800E0B7C 000DC9BC EC 3B 00 72 */ fmuls f1, f27, f1 /* 800E0B80 000DC9C0 EC 1B 00 32 */ fmuls f0, f27, f0 /* 800E0B84 000DC9C4 D8 41 01 80 */ stfd f2, 0x180(r1) /* 800E0B88 000DC9C8 FC 20 08 1E */ fctiwz f1, f1 /* 800E0B8C 000DC9CC 81 21 01 84 */ lwz r9, 0x184(r1) /* 800E0B90 000DC9D0 FC 00 00 1E */ fctiwz f0, f0 /* 800E0B94 000DC9D4 99 21 00 44 */ stb r9, 0x44(r1) /* 800E0B98 000DC9D8 D8 21 01 78 */ stfd f1, 0x178(r1) /* 800E0B9C 000DC9DC D8 01 01 70 */ stfd f0, 0x170(r1) /* 800E0BA0 000DC9E0 81 41 01 7C */ lwz r10, 0x17c(r1) /* 800E0BA4 000DC9E4 81 21 01 74 */ lwz r9, 0x174(r1) /* 800E0BA8 000DC9E8 99 41 00 45 */ stb r10, 0x45(r1) /* 800E0BAC 000DC9EC 99 21 00 46 */ stb r9, 0x46(r1) /* 800E0BB0 000DC9F0 48 00 00 10 */ b lbl_800E0BC0 .global lbl_800E0BB4 lbl_800E0BB4: /* 800E0BB4 000DC9F4 98 01 00 44 */ stb r0, 0x44(r1) /* 800E0BB8 000DC9F8 98 61 00 45 */ stb r3, 0x45(r1) /* 800E0BBC 000DC9FC 98 81 00 46 */ stb r4, 0x46(r1) .global lbl_800E0BC0 lbl_800E0BC0: /* 800E0BC0 000DCA00 55 08 15 BA */ rlwinm r8, r8, 2, 22, 29 /* 800E0BC4 000DCA04 7D 13 42 14 */ add r8, r19, r8 /* 800E0BC8 000DCA08 81 08 00 04 */ lwz r8, 0x4(r8) /* 800E0BCC 000DCA0C 2C 08 00 00 */ cmpwi r8, 0x0 /* 800E0BD0 000DCA10 40 82 00 14 */ bne lbl_800E0BE4 /* 800E0BD4 000DCA14 54 E8 15 BA */ rlwinm r8, r7, 2, 22, 29 /* 800E0BD8 000DCA18 7D 14 42 14 */ add r8, r20, r8 /* 800E0BDC 000DCA1C 89 08 00 03 */ lbz r8, 0x3(r8) /* 800E0BE0 000DCA20 48 00 00 08 */ b lbl_800E0BE8 .global lbl_800E0BE4 lbl_800E0BE4: /* 800E0BE4 000DCA24 7C A8 2B 78 */ mr r8, r5 .global lbl_800E0BE8 lbl_800E0BE8: /* 800E0BE8 000DCA28 9A D7 80 00 */ stb r22, 0xCC008000@l(r23) /* 800E0BEC 000DCA2C 7C D5 30 2E */ lwzx r6, r21, r6 /* 800E0BF0 000DCA30 B3 17 80 00 */ sth r24, -0x8000(r23) /* 800E0BF4 000DCA34 54 C6 07 FE */ clrlwi r6, r6, 31 /* 800E0BF8 000DCA38 38 C6 10 0C */ addi r6, r6, 0x100c /* 800E0BFC 000DCA3C 99 01 00 47 */ stb r8, 0x47(r1) /* 800E0C00 000DCA40 B0 D7 80 00 */ sth r6, -0x8000(r23) /* 800E0C04 000DCA44 80 C1 00 44 */ lwz r6, 0x44(r1) /* 800E0C08 000DCA48 90 D7 80 00 */ stw r6, -0x8000(r23) .global lbl_800E0C0C lbl_800E0C0C: /* 800E0C0C 000DCA4C 38 E7 00 01 */ addi r7, r7, 0x1 /* 800E0C10 000DCA50 42 00 FE F8 */ bdnz lbl_800E0B08 /* 800E0C14 000DCA54 38 61 00 48 */ addi r3, r1, 0x48 /* 800E0C18 000DCA58 57 A4 04 3E */ clrlwi r4, r29, 16 /* 800E0C1C 000DCA5C 4B FE D9 75 */ bl SetArray__Q34nw4r3g3d12ResVtxFurPosFUs /* 800E0C20 000DCA60 80 1A 00 00 */ lwz r0, 0x0(r26) /* 800E0C24 000DCA64 7F 64 DB 78 */ mr r4, r27 /* 800E0C28 000DCA68 90 01 00 24 */ stw r0, 0x24(r1) /* 800E0C2C 000DCA6C 7F 85 E3 78 */ mr r5, r28 /* 800E0C30 000DCA70 38 61 00 24 */ addi r3, r1, 0x24 /* 800E0C34 000DCA74 4B FF E4 DD */ bl LoadResShpPrimitive__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d6ResShpPCQ34nw4r4math5MTX34PCQ34nw4r4math5MTX34 /* 800E0C38 000DCA78 3B BD 00 01 */ addi r29, r29, 0x1 .global lbl_800E0C3C lbl_800E0C3C: /* 800E0C3C 000DCA7C 57 A0 04 3E */ clrlwi r0, r29, 16 /* 800E0C40 000DCA80 7C 00 F0 40 */ cmplw r0, r30 /* 800E0C44 000DCA84 41 80 FC D0 */ blt lbl_800E0914 /* 800E0C48 000DCA88 48 00 01 0C */ b lbl_800E0D54 .global lbl_800E0C4C lbl_800E0C4C: /* 800E0C4C 000DCA8C 56 20 07 BD */ rlwinm. r0, r17, 0, 30, 30 /* 800E0C50 000DCA90 40 82 00 D4 */ bne lbl_800E0D24 /* 800E0C54 000DCA94 80 1A 00 00 */ lwz r0, 0x0(r26) /* 800E0C58 000DCA98 38 61 00 20 */ addi r3, r1, 0x20 /* 800E0C5C 000DCA9C 90 01 00 20 */ stw r0, 0x20(r1) /* 800E0C60 000DCAA0 4B FF E3 01 */ bl LoadResShpPrePrimitive__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d6ResShp /* 800E0C64 000DCAA4 2C 0F 00 00 */ cmpwi r15, 0x0 /* 800E0C68 000DCAA8 41 82 00 BC */ beq lbl_800E0D24 /* 800E0C6C 000DCAAC 80 AF 00 2C */ lwz r5, 0x2c(r15) /* 800E0C70 000DCAB0 2C 05 00 00 */ cmpwi r5, 0x0 /* 800E0C74 000DCAB4 41 82 00 20 */ beq lbl_800E0C94 /* 800E0C78 000DCAB8 80 9A 00 00 */ lwz r4, 0x0(r26) /* 800E0C7C 000DCABC 38 61 00 1C */ addi r3, r1, 0x1c /* 800E0C80 000DCAC0 A8 04 00 48 */ lha r0, 0x48(r4) /* 800E0C84 000DCAC4 54 00 10 3A */ slwi r0, r0, 2 /* 800E0C88 000DCAC8 7C 05 00 2E */ lwzx r0, r5, r0 /* 800E0C8C 000DCACC 90 01 00 1C */ stw r0, 0x1c(r1) /* 800E0C90 000DCAD0 4B FE D7 61 */ bl SetArray__Q34nw4r3g3d9ResVtxPosFv .global lbl_800E0C94 lbl_800E0C94: /* 800E0C94 000DCAD4 80 8F 00 30 */ lwz r4, 0x30(r15) /* 800E0C98 000DCAD8 2C 04 00 00 */ cmpwi r4, 0x0 /* 800E0C9C 000DCADC 41 82 00 28 */ beq lbl_800E0CC4 /* 800E0CA0 000DCAE0 80 7A 00 00 */ lwz r3, 0x0(r26) /* 800E0CA4 000DCAE4 A8 03 00 4A */ lha r0, 0x4a(r3) /* 800E0CA8 000DCAE8 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0CAC 000DCAEC 41 80 00 18 */ blt lbl_800E0CC4 /* 800E0CB0 000DCAF0 54 00 10 3A */ slwi r0, r0, 2 /* 800E0CB4 000DCAF4 38 61 00 18 */ addi r3, r1, 0x18 /* 800E0CB8 000DCAF8 7C 04 00 2E */ lwzx r0, r4, r0 /* 800E0CBC 000DCAFC 90 01 00 18 */ stw r0, 0x18(r1) /* 800E0CC0 000DCB00 4B FE D8 11 */ bl SetArray__Q34nw4r3g3d9ResVtxNrmFv .global lbl_800E0CC4 lbl_800E0CC4: /* 800E0CC4 000DCB04 80 8F 00 34 */ lwz r4, 0x34(r15) /* 800E0CC8 000DCB08 2C 04 00 00 */ cmpwi r4, 0x0 /* 800E0CCC 000DCB0C 41 82 00 58 */ beq lbl_800E0D24 /* 800E0CD0 000DCB10 80 7A 00 00 */ lwz r3, 0x0(r26) /* 800E0CD4 000DCB14 A8 03 00 4C */ lha r0, 0x4c(r3) /* 800E0CD8 000DCB18 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0CDC 000DCB1C 41 80 00 1C */ blt lbl_800E0CF8 /* 800E0CE0 000DCB20 54 00 10 3A */ slwi r0, r0, 2 /* 800E0CE4 000DCB24 38 61 00 14 */ addi r3, r1, 0x14 /* 800E0CE8 000DCB28 7C 04 00 2E */ lwzx r0, r4, r0 /* 800E0CEC 000DCB2C 38 80 00 0B */ li r4, 0xb /* 800E0CF0 000DCB30 90 01 00 14 */ stw r0, 0x14(r1) /* 800E0CF4 000DCB34 4B FE D8 1D */ bl SetArray__Q34nw4r3g3d9ResVtxClrF7_GXAttr .global lbl_800E0CF8 lbl_800E0CF8: /* 800E0CF8 000DCB38 80 7A 00 00 */ lwz r3, 0x0(r26) /* 800E0CFC 000DCB3C A8 03 00 4E */ lha r0, 0x4e(r3) /* 800E0D00 000DCB40 2C 00 00 00 */ cmpwi r0, 0x0 /* 800E0D04 000DCB44 41 80 00 20 */ blt lbl_800E0D24 /* 800E0D08 000DCB48 80 AF 00 34 */ lwz r5, 0x34(r15) /* 800E0D0C 000DCB4C 54 00 10 3A */ slwi r0, r0, 2 /* 800E0D10 000DCB50 38 61 00 10 */ addi r3, r1, 0x10 /* 800E0D14 000DCB54 38 80 00 0C */ li r4, 0xc /* 800E0D18 000DCB58 7C 05 00 2E */ lwzx r0, r5, r0 /* 800E0D1C 000DCB5C 90 01 00 10 */ stw r0, 0x10(r1) /* 800E0D20 000DCB60 4B FE D7 F1 */ bl SetArray__Q34nw4r3g3d9ResVtxClrF7_GXAttr .global lbl_800E0D24 lbl_800E0D24: /* 800E0D24 000DCB64 56 20 07 7B */ rlwinm. r0, r17, 0, 29, 29 /* 800E0D28 000DCB68 41 82 00 14 */ beq lbl_800E0D3C /* 800E0D2C 000DCB6C 38 60 00 01 */ li r3, 0x1 /* 800E0D30 000DCB70 4B FF B2 A1 */ bl GDSetCullMode__Q34nw4r3g3d4fifoF11_GXCullMode /* 800E0D34 000DCB74 38 60 00 10 */ li r3, 0x10 /* 800E0D38 000DCB78 4B FF EB C9 */ bl Invalidate__Q34nw4r3g3d8G3DStateFUl .global lbl_800E0D3C lbl_800E0D3C: /* 800E0D3C 000DCB7C 80 1A 00 00 */ lwz r0, 0x0(r26) /* 800E0D40 000DCB80 7F 64 DB 78 */ mr r4, r27 /* 800E0D44 000DCB84 90 01 00 0C */ stw r0, 0xc(r1) /* 800E0D48 000DCB88 7F 85 E3 78 */ mr r5, r28 /* 800E0D4C 000DCB8C 38 61 00 0C */ addi r3, r1, 0xc /* 800E0D50 000DCB90 4B FF E3 C1 */ bl LoadResShpPrimitive__Q34nw4r3g3d8G3DStateFQ34nw4r3g3d6ResShpPCQ34nw4r4math5MTX34PCQ34nw4r4math5MTX34 .global lbl_800E0D54 lbl_800E0D54: /* 800E0D54 000DCB94 39 61 01 D0 */ addi r11, r1, 0x1d0 /* 800E0D58 000DCB98 E3 E1 02 58 */ psq_l f31, 0x258(r1), 0, qr0 /* 800E0D5C 000DCB9C CB E1 02 50 */ lfd f31, 0x250(r1) /* 800E0D60 000DCBA0 E3 C1 02 48 */ psq_l f30, 0x248(r1), 0, qr0 /* 800E0D64 000DCBA4 CB C1 02 40 */ lfd f30, 0x240(r1) /* 800E0D68 000DCBA8 E3 A1 02 38 */ psq_l f29, 0x238(r1), 0, qr0 /* 800E0D6C 000DCBAC CB A1 02 30 */ lfd f29, 0x230(r1) /* 800E0D70 000DCBB0 E3 81 02 28 */ psq_l f28, 0x228(r1), 0, qr0 /* 800E0D74 000DCBB4 CB 81 02 20 */ lfd f28, 0x220(r1) /* 800E0D78 000DCBB8 E3 61 02 18 */ psq_l f27, 0x218(r1), 0, qr0 /* 800E0D7C 000DCBBC CB 61 02 10 */ lfd f27, 0x210(r1) /* 800E0D80 000DCBC0 E3 41 02 08 */ psq_l f26, 0x208(r1), 0, qr0 /* 800E0D84 000DCBC4 CB 41 02 00 */ lfd f26, 0x200(r1) /* 800E0D88 000DCBC8 E3 21 01 F8 */ psq_l f25, 0x1f8(r1), 0, qr0 /* 800E0D8C 000DCBCC CB 21 01 F0 */ lfd f25, 0x1f0(r1) /* 800E0D90 000DCBD0 E3 01 01 E8 */ psq_l f24, 0x1e8(r1), 0, qr0 /* 800E0D94 000DCBD4 CB 01 01 E0 */ lfd f24, 0x1e0(r1) /* 800E0D98 000DCBD8 E2 E1 01 D8 */ psq_l f23, 0x1d8(r1), 0, qr0 /* 800E0D9C 000DCBDC CA E1 01 D0 */ lfd f23, 0x1d0(r1) /* 800E0DA0 000DCBE0 4B F2 65 B9 */ bl lbl_80007358 /* 800E0DA4 000DCBE4 80 01 02 64 */ lwz r0, 0x264(r1) /* 800E0DA8 000DCBE8 7C 08 03 A6 */ mtlr r0 /* 800E0DAC 000DCBEC 38 21 02 60 */ addi r1, r1, 0x260 /* 800E0DB0 000DCBF0 4E 80 00 20 */ blr /* 800E0DB4 000DCBF4 00 00 00 00 */ .4byte 0x00000000 /* 800E0DB8 000DCBF8 00 00 00 00 */ .4byte 0x00000000 /* 800E0DBC 000DCBFC 00 00 00 00 */ .4byte 0x00000000 .include "macros.inc" .section .rodata, "wa" # 0x80406560 - 0x80421040 ; 0x0001AAE0 .global "@10241" "@10241": .4byte 0 .4byte 0x00000002 .4byte 0x00000001 .4byte 0x00000003 .include "macros.inc" .section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440 .global "@11256" "@11256": .4byte 0x3F800000 .4byte 0 .global "@11257" "@11257": .4byte 0x40100000 .4byte 0 .global "@11258" "@11258": .4byte 0x437F0000 .4byte 0 .global "@11268" "@11268": .4byte 0x43300000 .4byte 0