donut-decomp/asm/homebuttonLib/lyt_material.s

3670 lines
180 KiB
ArmAsm
Raw Normal View History

2022-10-16 16:05:58 +00:00
.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
2022-10-16 16:31:36 +00:00
.global "CalcTextureMtx__26@unnamed@lyt_material_cpp@FPQ36nw4hbm4math5MTX34RCQ36nw4hbm3lyt6TexSRT"
"CalcTextureMtx__26@unnamed@lyt_material_cpp@FPQ36nw4hbm4math5MTX34RCQ36nw4hbm3lyt6TexSRT":
2022-10-16 16:05:58 +00:00
/* 80137870 001336B0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80137874 001336B4 7C 08 02 A6 */ mflr r0
/* 80137878 001336B8 C0 24 00 08 */ lfs f1, 0x8(r4)
/* 8013787C 001336BC 90 01 00 34 */ stw r0, 0x34(r1)
/* 80137880 001336C0 DB E1 00 20 */ stfd f31, 0x20(r1)
/* 80137884 001336C4 F3 E1 00 28 */ psq_st f31, 0x28(r1), 0, qr0
/* 80137888 001336C8 93 E1 00 1C */ stw r31, 0x1c(r1)
2022-10-16 16:31:36 +00:00
/* 8013788C 001336CC 3F E0 80 41 */ lis r31, DefaultBlackColor_8040E200@ha
/* 80137890 001336D0 3B FF E2 00 */ addi r31, r31, DefaultBlackColor_8040E200@l
2022-10-16 16:05:58 +00:00
/* 80137894 001336D4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80137898 001336D8 7C 9E 23 78 */ mr r30, r4
/* 8013789C 001336DC C0 5F 00 10 */ lfs f2, 0x10(r31)
/* 801378A0 001336E0 C0 1F 00 14 */ lfs f0, 0x14(r31)
/* 801378A4 001336E4 93 A1 00 14 */ stw r29, 0x14(r1)
/* 801378A8 001336E8 7C 7D 1B 78 */ mr r29, r3
/* 801378AC 001336EC EC 20 00 72 */ fmuls f1, f0, f1
/* 801378B0 001336F0 D0 41 00 08 */ stfs f2, 0x8(r1)
/* 801378B4 001336F4 D0 41 00 0C */ stfs f2, 0xc(r1)
2022-10-16 16:31:36 +00:00
/* 801378B8 001336F8 48 00 82 E9 */ bl CosFIdx__Q26nw4hbm4mathFf
2022-10-16 16:05:58 +00:00
/* 801378BC 001336FC C0 5E 00 08 */ lfs f2, 0x8(r30)
/* 801378C0 00133700 FF E0 08 90 */ fmr f31, f1
/* 801378C4 00133704 C0 1F 00 14 */ lfs f0, 0x14(r31)
/* 801378C8 00133708 EC 20 00 B2 */ fmuls f1, f0, f2
2022-10-16 16:31:36 +00:00
/* 801378CC 0013370C 48 00 82 55 */ bl SinFIdx__Q26nw4hbm4mathFf
2022-10-16 16:05:58 +00:00
/* 801378D0 00133710 C0 7E 00 0C */ lfs f3, 0xc(r30)
/* 801378D4 00133714 FC A0 08 50 */ fneg f5, f1
/* 801378D8 00133718 C0 41 00 08 */ lfs f2, 0x8(r1)
/* 801378DC 0013371C ED 21 00 F2 */ fmuls f9, f1, f3
/* 801378E0 00133720 C1 1F 00 18 */ lfs f8, 0x18(r31)
/* 801378E4 00133724 ED 7F 00 F2 */ fmuls f11, f31, f3
/* 801378E8 00133728 C0 1E 00 10 */ lfs f0, 0x10(r30)
/* 801378EC 0013372C C0 C1 00 0C */ lfs f6, 0xc(r1)
/* 801378F0 00133730 FC 80 10 50 */ fneg f4, f2
/* 801378F4 00133734 ED 85 00 32 */ fmuls f12, f5, f0
/* 801378F8 00133738 C0 7E 00 00 */ lfs f3, 0x0(r30)
/* 801378FC 0013373C ED 5F 00 32 */ fmuls f10, f31, f0
/* 80137900 00133740 C0 3E 00 04 */ lfs f1, 0x4(r30)
/* 80137904 00133744 EC A3 10 2A */ fadds f5, f3, f2
/* 80137908 00133748 C0 1F 00 1C */ lfs f0, 0x1c(r31)
/* 8013790C 0013374C EC 41 30 2A */ fadds f2, f1, f6
/* 80137910 00133750 D1 7D 00 00 */ stfs f11, 0x0(r29)
/* 80137914 00133754 FC E0 30 50 */ fneg f7, f6
/* 80137918 00133758 EC 29 01 32 */ fmuls f1, f9, f4
/* 8013791C 0013375C D1 9D 00 04 */ stfs f12, 0x4(r29)
/* 80137920 00133760 EC 6B 01 32 */ fmuls f3, f11, f4
/* 80137924 00133764 EC CC 01 F2 */ fmuls f6, f12, f7
/* 80137928 00133768 D1 1D 00 08 */ stfs f8, 0x8(r29)
/* 8013792C 0013376C EC 22 08 2A */ fadds f1, f2, f1
/* 80137930 00133770 EC 85 18 2A */ fadds f4, f5, f3
/* 80137934 00133774 D1 3D 00 10 */ stfs f9, 0x10(r29)
/* 80137938 00133778 EC 6A 01 F2 */ fmuls f3, f10, f7
/* 8013793C 0013377C D1 5D 00 14 */ stfs f10, 0x14(r29)
/* 80137940 00133780 EC 46 20 2A */ fadds f2, f6, f4
/* 80137944 00133784 EC 23 08 2A */ fadds f1, f3, f1
/* 80137948 00133788 D1 1D 00 18 */ stfs f8, 0x18(r29)
/* 8013794C 0013378C D0 5D 00 0C */ stfs f2, 0xc(r29)
/* 80137950 00133790 D0 3D 00 1C */ stfs f1, 0x1c(r29)
/* 80137954 00133794 D1 1D 00 20 */ stfs f8, 0x20(r29)
/* 80137958 00133798 D1 1D 00 24 */ stfs f8, 0x24(r29)
/* 8013795C 0013379C D0 1D 00 28 */ stfs f0, 0x28(r29)
/* 80137960 001337A0 D1 1D 00 2C */ stfs f8, 0x2c(r29)
/* 80137964 001337A4 E3 E1 00 28 */ psq_l f31, 0x28(r1), 0, qr0
/* 80137968 001337A8 CB E1 00 20 */ lfd f31, 0x20(r1)
/* 8013796C 001337AC 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80137970 001337B0 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80137974 001337B4 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80137978 001337B8 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8013797C 001337BC 7C 08 03 A6 */ mtlr r0
/* 80137980 001337C0 38 21 00 30 */ addi r1, r1, 0x30
/* 80137984 001337C4 4E 80 00 20 */ blr
/* 80137988 001337C8 00 00 00 00 */ .4byte 0x00000000
/* 8013798C 001337CC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global "SetIndTexMtx__26@unnamed@lyt_material_cpp@F14_GXIndTexMtxIDPA3_Cf"
"SetIndTexMtx__26@unnamed@lyt_material_cpp@F14_GXIndTexMtxIDPA3_Cf":
2022-10-16 16:05:58 +00:00
/* 80137990 001337D0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80137994 001337D4 7C 08 02 A6 */ mflr r0
/* 80137998 001337D8 C0 44 00 00 */ lfs f2, 0x0(r4)
2022-10-16 16:31:36 +00:00
/* 8013799C 001337DC 3C A0 80 41 */ lis r5, DefaultBlackColor_8040E200@ha
/* 801379A0 001337E0 38 A5 E2 00 */ addi r5, r5, DefaultBlackColor_8040E200@l
2022-10-16 16:05:58 +00:00
/* 801379A4 001337E4 C0 64 00 04 */ lfs f3, 0x4(r4)
/* 801379A8 001337E8 FD 00 12 10 */ fabs f8, f2
/* 801379AC 001337EC C0 05 00 1C */ lfs f0, 0x1c(r5)
/* 801379B0 001337F0 C0 84 00 08 */ lfs f4, 0x8(r4)
/* 801379B4 001337F4 FD 20 1A 10 */ fabs f9, f3
/* 801379B8 001337F8 C0 A4 00 0C */ lfs f5, 0xc(r4)
/* 801379BC 001337FC 38 C0 00 00 */ li r6, 0x0
/* 801379C0 00133800 C0 C4 00 10 */ lfs f6, 0x10(r4)
/* 801379C4 00133804 FC 08 00 40 */ fcmpo cr0, f8, f0
/* 801379C8 00133808 C0 E4 00 14 */ lfs f7, 0x14(r4)
/* 801379CC 0013380C FD 40 22 10 */ fabs f10, f4
/* 801379D0 00133810 FD 60 2A 10 */ fabs f11, f5
/* 801379D4 00133814 90 01 00 24 */ stw r0, 0x24(r1)
/* 801379D8 00133818 FD 80 32 10 */ fabs f12, f6
/* 801379DC 0013381C FD A0 3A 10 */ fabs f13, f7
/* 801379E0 00133820 4C 41 13 82 */ cror eq, gt, eq
/* 801379E4 00133824 41 82 00 40 */ beq lbl_80137A24
/* 801379E8 00133828 FC 09 00 40 */ fcmpo cr0, f9, f0
/* 801379EC 0013382C 4C 41 13 82 */ cror eq, gt, eq
/* 801379F0 00133830 41 82 00 34 */ beq lbl_80137A24
/* 801379F4 00133834 FC 0A 00 40 */ fcmpo cr0, f10, f0
/* 801379F8 00133838 4C 41 13 82 */ cror eq, gt, eq
/* 801379FC 0013383C 41 82 00 28 */ beq lbl_80137A24
/* 80137A00 00133840 FC 0B 00 40 */ fcmpo cr0, f11, f0
/* 80137A04 00133844 4C 41 13 82 */ cror eq, gt, eq
/* 80137A08 00133848 41 82 00 1C */ beq lbl_80137A24
/* 80137A0C 0013384C FC 0C 00 40 */ fcmpo cr0, f12, f0
/* 80137A10 00133850 4C 41 13 82 */ cror eq, gt, eq
/* 80137A14 00133854 41 82 00 10 */ beq lbl_80137A24
/* 80137A18 00133858 FC 0D 00 40 */ fcmpo cr0, f13, f0
/* 80137A1C 0013385C 4C 41 13 82 */ cror eq, gt, eq
/* 80137A20 00133860 40 82 00 9C */ bne lbl_80137ABC
.global lbl_80137A24
lbl_80137A24:
/* 80137A24 00133864 C0 25 00 10 */ lfs f1, 0x10(r5)
/* 80137A28 00133868 C0 05 00 1C */ lfs f0, 0x1c(r5)
/* 80137A2C 0013386C 60 00 00 00 */ nop
.global lbl_80137A30
lbl_80137A30:
/* 80137A30 00133870 7C C0 07 74 */ extsb r0, r6
/* 80137A34 00133874 2C 00 00 2E */ cmpwi r0, 0x2e
/* 80137A38 00133878 40 80 01 2C */ bge lbl_80137B64
/* 80137A3C 0013387C ED 08 00 72 */ fmuls f8, f8, f1
/* 80137A40 00133880 EC 42 00 72 */ fmuls f2, f2, f1
/* 80137A44 00133884 EC 63 00 72 */ fmuls f3, f3, f1
/* 80137A48 00133888 FC 08 00 40 */ fcmpo cr0, f8, f0
/* 80137A4C 0013388C EC 84 00 72 */ fmuls f4, f4, f1
/* 80137A50 00133890 EC A5 00 72 */ fmuls f5, f5, f1
/* 80137A54 00133894 EC C6 00 72 */ fmuls f6, f6, f1
/* 80137A58 00133898 EC E7 00 72 */ fmuls f7, f7, f1
/* 80137A5C 0013389C ED 29 00 72 */ fmuls f9, f9, f1
/* 80137A60 001338A0 ED 4A 00 72 */ fmuls f10, f10, f1
/* 80137A64 001338A4 ED 6B 00 72 */ fmuls f11, f11, f1
/* 80137A68 001338A8 ED 8C 00 72 */ fmuls f12, f12, f1
/* 80137A6C 001338AC ED AD 00 72 */ fmuls f13, f13, f1
/* 80137A70 001338B0 4C 41 13 82 */ cror eq, gt, eq
/* 80137A74 001338B4 38 C6 00 01 */ addi r6, r6, 0x1
/* 80137A78 001338B8 41 82 FF B8 */ beq lbl_80137A30
/* 80137A7C 001338BC FC 09 00 40 */ fcmpo cr0, f9, f0
/* 80137A80 001338C0 4C 41 13 82 */ cror eq, gt, eq
/* 80137A84 001338C4 41 82 FF AC */ beq lbl_80137A30
/* 80137A88 001338C8 FC 0A 00 40 */ fcmpo cr0, f10, f0
/* 80137A8C 001338CC 4C 41 13 82 */ cror eq, gt, eq
/* 80137A90 001338D0 41 82 FF A0 */ beq lbl_80137A30
/* 80137A94 001338D4 FC 0B 00 40 */ fcmpo cr0, f11, f0
/* 80137A98 001338D8 4C 41 13 82 */ cror eq, gt, eq
/* 80137A9C 001338DC 41 82 FF 94 */ beq lbl_80137A30
/* 80137AA0 001338E0 FC 0C 00 40 */ fcmpo cr0, f12, f0
/* 80137AA4 001338E4 4C 41 13 82 */ cror eq, gt, eq
/* 80137AA8 001338E8 41 82 FF 88 */ beq lbl_80137A30
/* 80137AAC 001338EC FC 0D 00 40 */ fcmpo cr0, f13, f0
/* 80137AB0 001338F0 4C 41 13 82 */ cror eq, gt, eq
/* 80137AB4 001338F4 41 82 FF 7C */ beq lbl_80137A30
/* 80137AB8 001338F8 48 00 00 AC */ b lbl_80137B64
.global lbl_80137ABC
lbl_80137ABC:
/* 80137ABC 001338FC C0 25 00 10 */ lfs f1, 0x10(r5)
/* 80137AC0 00133900 FC 08 08 40 */ fcmpo cr0, f8, f1
/* 80137AC4 00133904 40 80 00 A0 */ bge lbl_80137B64
/* 80137AC8 00133908 FC 09 08 40 */ fcmpo cr0, f9, f1
/* 80137ACC 0013390C 40 80 00 98 */ bge lbl_80137B64
/* 80137AD0 00133910 FC 0A 08 40 */ fcmpo cr0, f10, f1
/* 80137AD4 00133914 40 80 00 90 */ bge lbl_80137B64
/* 80137AD8 00133918 FC 0B 08 40 */ fcmpo cr0, f11, f1
/* 80137ADC 0013391C 40 80 00 88 */ bge lbl_80137B64
/* 80137AE0 00133920 FC 0C 08 40 */ fcmpo cr0, f12, f1
/* 80137AE4 00133924 40 80 00 80 */ bge lbl_80137B64
/* 80137AE8 00133928 FC 0D 08 40 */ fcmpo cr0, f13, f1
/* 80137AEC 0013392C 40 80 00 78 */ bge lbl_80137B64
/* 80137AF0 00133930 C0 05 00 20 */ lfs f0, 0x20(r5)
.global lbl_80137AF4
lbl_80137AF4:
/* 80137AF4 00133934 ED 08 00 32 */ fmuls f8, f8, f0
/* 80137AF8 00133938 38 C6 FF FF */ addi r6, r6, -0x1
/* 80137AFC 0013393C EC 42 00 32 */ fmuls f2, f2, f0
/* 80137B00 00133940 EC 63 00 32 */ fmuls f3, f3, f0
/* 80137B04 00133944 FC 08 08 40 */ fcmpo cr0, f8, f1
/* 80137B08 00133948 EC 84 00 32 */ fmuls f4, f4, f0
/* 80137B0C 0013394C EC A5 00 32 */ fmuls f5, f5, f0
/* 80137B10 00133950 EC C6 00 32 */ fmuls f6, f6, f0
/* 80137B14 00133954 EC E7 00 32 */ fmuls f7, f7, f0
/* 80137B18 00133958 ED 29 00 32 */ fmuls f9, f9, f0
/* 80137B1C 0013395C ED 4A 00 32 */ fmuls f10, f10, f0
/* 80137B20 00133960 ED 6B 00 32 */ fmuls f11, f11, f0
/* 80137B24 00133964 ED 8C 00 32 */ fmuls f12, f12, f0
/* 80137B28 00133968 ED AD 00 32 */ fmuls f13, f13, f0
/* 80137B2C 0013396C 40 80 00 38 */ bge lbl_80137B64
/* 80137B30 00133970 FC 09 08 40 */ fcmpo cr0, f9, f1
/* 80137B34 00133974 40 80 00 30 */ bge lbl_80137B64
/* 80137B38 00133978 FC 0A 08 40 */ fcmpo cr0, f10, f1
/* 80137B3C 0013397C 40 80 00 28 */ bge lbl_80137B64
/* 80137B40 00133980 FC 0B 08 40 */ fcmpo cr0, f11, f1
/* 80137B44 00133984 40 80 00 20 */ bge lbl_80137B64
/* 80137B48 00133988 FC 0C 08 40 */ fcmpo cr0, f12, f1
/* 80137B4C 0013398C 40 80 00 18 */ bge lbl_80137B64
/* 80137B50 00133990 FC 0D 08 40 */ fcmpo cr0, f13, f1
/* 80137B54 00133994 40 80 00 10 */ bge lbl_80137B64
/* 80137B58 00133998 7C C0 07 74 */ extsb r0, r6
/* 80137B5C 0013399C 2C 00 FF EF */ cmpwi r0, -0x11
/* 80137B60 001339A0 41 81 FF 94 */ bgt lbl_80137AF4
.global lbl_80137B64
lbl_80137B64:
/* 80137B64 001339A4 D0 41 00 08 */ stfs f2, 0x8(r1)
/* 80137B68 001339A8 38 81 00 08 */ addi r4, r1, 0x8
/* 80137B6C 001339AC 7C C5 07 74 */ extsb r5, r6
/* 80137B70 001339B0 D0 61 00 0C */ stfs f3, 0xc(r1)
/* 80137B74 001339B4 D0 81 00 10 */ stfs f4, 0x10(r1)
/* 80137B78 001339B8 D0 A1 00 14 */ stfs f5, 0x14(r1)
/* 80137B7C 001339BC D0 C1 00 18 */ stfs f6, 0x18(r1)
/* 80137B80 001339C0 D0 E1 00 1C */ stfs f7, 0x1c(r1)
2022-10-16 16:31:36 +00:00
/* 80137B84 001339C4 4B EF FC 5D */ bl GXSetIndTexMtx
2022-10-16 16:05:58 +00:00
/* 80137B88 001339C8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80137B8C 001339CC 7C 08 03 A6 */ mtlr r0
/* 80137B90 001339D0 38 21 00 20 */ addi r1, r1, 0x20
/* 80137B94 001339D4 4E 80 00 20 */ blr
/* 80137B98 001339D8 00 00 00 00 */ .4byte 0x00000000
/* 80137B9C 001339DC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global __ct__Q36nw4hbm2ut5ColorFv
__ct__Q36nw4hbm2ut5ColorFv:
/* 80137BA0 001339E0 4B FB B3 00 */ b GetVtxColor__Q34nw4r3lyt4PaneCFUl
2022-10-16 16:05:58 +00:00
/* 80137BA4 001339E4 00 00 00 00 */ .4byte 0x00000000
/* 80137BA8 001339E8 00 00 00 00 */ .4byte 0x00000000
/* 80137BAC 001339EC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global __ct__Q36nw4hbm3lyt8MaterialFPCQ46nw4hbm3lyt3res8MaterialRCQ36nw4hbm3lyt11ResBlockSet
__ct__Q36nw4hbm3lyt8MaterialFPCQ46nw4hbm3lyt3res8MaterialRCQ36nw4hbm3lyt11ResBlockSet:
2022-10-16 16:05:58 +00:00
/* 80137BB0 001339F0 94 21 FF 80 */ stwu r1, -0x80(r1)
/* 80137BB4 001339F4 7C 08 02 A6 */ mflr r0
/* 80137BB8 001339F8 90 01 00 84 */ stw r0, 0x84(r1)
/* 80137BBC 001339FC 39 61 00 80 */ addi r11, r1, 0x80
2022-10-16 16:31:36 +00:00
/* 80137BC0 00133A00 4B EC F7 49 */ bl __save_gpr
/* 80137BC4 00133A04 3C C0 80 44 */ lis r6, __vt__Q36nw4hbm3lyt8Material@ha
2022-10-16 16:05:58 +00:00
/* 80137BC8 00133A08 38 03 00 1C */ addi r0, r3, 0x1c
2022-10-16 16:31:36 +00:00
/* 80137BCC 00133A0C 38 C6 40 50 */ addi r6, r6, __vt__Q36nw4hbm3lyt8Material@l
2022-10-16 16:05:58 +00:00
/* 80137BD0 00133A10 39 C0 00 00 */ li r14, 0x0
/* 80137BD4 00133A14 90 C3 00 00 */ stw r6, 0x0(r3)
2022-10-16 16:31:36 +00:00
/* 80137BD8 00133A18 3C E0 80 13 */ lis r7, __ct__Q36nw4hbm2ut5ColorFv@ha
2022-10-16 16:05:58 +00:00
/* 80137BDC 00133A1C 7C 90 23 78 */ mr r16, r4
2022-10-16 16:31:36 +00:00
/* 80137BE0 00133A20 3C C0 80 13 */ lis r6, __dt__Q36nw4hbm2ut5ColorFv@ha
2022-10-16 16:05:58 +00:00
/* 80137BE4 00133A24 7C B1 2B 78 */ mr r17, r5
2022-10-16 16:31:36 +00:00
/* 80137BE8 00133A28 38 87 7B A0 */ addi r4, r7, __ct__Q36nw4hbm2ut5ColorFv@l
/* 80137BEC 00133A2C 38 A6 5C 40 */ addi r5, r6, __dt__Q36nw4hbm2ut5ColorFv@l
2022-10-16 16:05:58 +00:00
/* 80137BF0 00133A30 91 C3 00 18 */ stw r14, 0x18(r3)
/* 80137BF4 00133A34 7C 6F 1B 78 */ mr r15, r3
/* 80137BF8 00133A38 38 C0 00 04 */ li r6, 0x4
/* 80137BFC 00133A3C 90 03 00 1C */ stw r0, 0x1c(r3)
/* 80137C00 00133A40 38 E0 00 04 */ li r7, 0x4
/* 80137C04 00133A44 90 03 00 20 */ stw r0, 0x20(r3)
/* 80137C08 00133A48 38 63 00 3C */ addi r3, r3, 0x3c
2022-10-16 16:31:36 +00:00
/* 80137C0C 00133A4C 4B EC F4 19 */ bl __construct_array
/* 80137C10 00133A50 3C 80 80 41 */ lis r4, DefaultBlackColor_8040E200@ha
2022-10-16 16:05:58 +00:00
/* 80137C14 00133A54 38 E0 00 FF */ li r7, 0xff
2022-10-16 16:31:36 +00:00
/* 80137C18 00133A58 38 A4 E2 00 */ addi r5, r4, DefaultBlackColor_8040E200@l
2022-10-16 16:05:58 +00:00
/* 80137C1C 00133A5C 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 80137C20 00133A60 A9 64 E2 00 */ lha r11, -0x1e00(r4)
/* 80137C24 00133A64 7E 04 83 78 */ mr r4, r16
/* 80137C28 00133A68 80 6F 00 4C */ lwz r3, 0x4c(r15)
/* 80137C2C 00133A6C 54 00 06 FE */ clrlwi r0, r0, 27
/* 80137C30 00133A70 A9 45 00 02 */ lha r10, 0x2(r5)
/* 80137C34 00133A74 54 66 06 FE */ clrlwi r6, r3, 27
/* 80137C38 00133A78 A9 25 00 04 */ lha r9, 0x4(r5)
/* 80137C3C 00133A7C A9 05 00 06 */ lha r8, 0x6(r5)
/* 80137C40 00133A80 38 6F 00 04 */ addi r3, r15, 0x4
/* 80137C44 00133A84 B1 6F 00 24 */ sth r11, 0x24(r15)
/* 80137C48 00133A88 38 A0 00 14 */ li r5, 0x14
/* 80137C4C 00133A8C B1 4F 00 26 */ sth r10, 0x26(r15)
/* 80137C50 00133A90 B1 2F 00 28 */ sth r9, 0x28(r15)
/* 80137C54 00133A94 B1 0F 00 2A */ sth r8, 0x2a(r15)
/* 80137C58 00133A98 B0 EF 00 2C */ sth r7, 0x2c(r15)
/* 80137C5C 00133A9C B0 EF 00 2E */ sth r7, 0x2e(r15)
/* 80137C60 00133AA0 B0 EF 00 30 */ sth r7, 0x30(r15)
/* 80137C64 00133AA4 B0 EF 00 32 */ sth r7, 0x32(r15)
/* 80137C68 00133AA8 B0 EF 00 34 */ sth r7, 0x34(r15)
/* 80137C6C 00133AAC B0 EF 00 36 */ sth r7, 0x36(r15)
/* 80137C70 00133AB0 B0 EF 00 38 */ sth r7, 0x38(r15)
/* 80137C74 00133AB4 B0 EF 00 3A */ sth r7, 0x3a(r15)
/* 80137C78 00133AB8 90 CF 00 4C */ stw r6, 0x4c(r15)
/* 80137C7C 00133ABC 90 0F 00 50 */ stw r0, 0x50(r15)
/* 80137C80 00133AC0 99 CF 00 54 */ stb r14, 0x54(r15)
/* 80137C84 00133AC4 91 CF 00 58 */ stw r14, 0x58(r15)
2022-10-16 16:31:36 +00:00
/* 80137C88 00133AC8 4B ED 5D F9 */ bl strncpy
2022-10-16 16:05:58 +00:00
/* 80137C8C 00133ACC A8 10 00 14 */ lha r0, 0x14(r16)
/* 80137C90 00133AD0 3A B0 00 40 */ addi r21, r16, 0x40
/* 80137C94 00133AD4 B0 0F 00 24 */ sth r0, 0x24(r15)
/* 80137C98 00133AD8 3A 40 00 08 */ li r18, 0x8
/* 80137C9C 00133ADC A8 10 00 16 */ lha r0, 0x16(r16)
/* 80137CA0 00133AE0 B0 0F 00 26 */ sth r0, 0x26(r15)
/* 80137CA4 00133AE4 A8 10 00 18 */ lha r0, 0x18(r16)
/* 80137CA8 00133AE8 B0 0F 00 28 */ sth r0, 0x28(r15)
/* 80137CAC 00133AEC A8 10 00 1A */ lha r0, 0x1a(r16)
/* 80137CB0 00133AF0 B0 0F 00 2A */ sth r0, 0x2a(r15)
/* 80137CB4 00133AF4 A8 10 00 1C */ lha r0, 0x1c(r16)
/* 80137CB8 00133AF8 B0 0F 00 2C */ sth r0, 0x2c(r15)
/* 80137CBC 00133AFC A8 10 00 1E */ lha r0, 0x1e(r16)
/* 80137CC0 00133B00 B0 0F 00 2E */ sth r0, 0x2e(r15)
/* 80137CC4 00133B04 A8 10 00 20 */ lha r0, 0x20(r16)
/* 80137CC8 00133B08 B0 0F 00 30 */ sth r0, 0x30(r15)
/* 80137CCC 00133B0C A8 10 00 22 */ lha r0, 0x22(r16)
/* 80137CD0 00133B10 B0 0F 00 32 */ sth r0, 0x32(r15)
/* 80137CD4 00133B14 A8 10 00 24 */ lha r0, 0x24(r16)
/* 80137CD8 00133B18 B0 0F 00 34 */ sth r0, 0x34(r15)
/* 80137CDC 00133B1C A8 10 00 26 */ lha r0, 0x26(r16)
/* 80137CE0 00133B20 B0 0F 00 36 */ sth r0, 0x36(r15)
/* 80137CE4 00133B24 A8 10 00 28 */ lha r0, 0x28(r16)
/* 80137CE8 00133B28 B0 0F 00 38 */ sth r0, 0x38(r15)
/* 80137CEC 00133B2C A8 10 00 2A */ lha r0, 0x2a(r16)
/* 80137CF0 00133B30 B0 0F 00 3A */ sth r0, 0x3a(r15)
/* 80137CF4 00133B34 80 10 00 2C */ lwz r0, 0x2c(r16)
/* 80137CF8 00133B38 90 0F 00 3C */ stw r0, 0x3c(r15)
/* 80137CFC 00133B3C 80 10 00 30 */ lwz r0, 0x30(r16)
/* 80137D00 00133B40 90 0F 00 40 */ stw r0, 0x40(r15)
/* 80137D04 00133B44 80 10 00 34 */ lwz r0, 0x34(r16)
/* 80137D08 00133B48 90 0F 00 44 */ stw r0, 0x44(r15)
/* 80137D0C 00133B4C 80 10 00 38 */ lwz r0, 0x38(r16)
/* 80137D10 00133B50 90 0F 00 48 */ stw r0, 0x48(r15)
/* 80137D14 00133B54 80 10 00 3C */ lwz r0, 0x3c(r16)
/* 80137D18 00133B58 54 06 E7 3E */ extrwi r6, r0, 4, 24
/* 80137D1C 00133B5C 54 03 16 BA */ rlwinm r3, r0, 2, 26, 29
/* 80137D20 00133B60 1C 86 00 14 */ mulli r4, r6, 0x14
/* 80137D24 00133B64 54 05 07 3E */ clrlwi r5, r0, 28
/* 80137D28 00133B68 3A C3 00 40 */ addi r22, r3, 0x40
/* 80137D2C 00133B6C 28 05 00 08 */ cmplwi r5, 0x8
/* 80137D30 00133B70 7E 90 B2 14 */ add r20, r16, r22
/* 80137D34 00133B74 54 03 D6 BA */ rlwinm r3, r0, 26, 26, 29
/* 80137D38 00133B78 7E D6 22 14 */ add r22, r22, r4
/* 80137D3C 00133B7C 54 04 C7 3E */ extrwi r4, r0, 4, 20
/* 80137D40 00133B80 7E 70 B2 14 */ add r19, r16, r22
/* 80137D44 00133B84 7E D6 1A 14 */ add r22, r22, r3
/* 80137D48 00133B88 41 81 00 08 */ bgt lbl_80137D50
/* 80137D4C 00133B8C 7C B2 2B 78 */ mr r18, r5
.global lbl_80137D50
lbl_80137D50:
/* 80137D50 00133B90 28 06 00 0A */ cmplwi r6, 0xa
/* 80137D54 00133B94 39 C0 00 0A */ li r14, 0xa
/* 80137D58 00133B98 41 81 00 08 */ bgt lbl_80137D60
/* 80137D5C 00133B9C 7C CE 33 78 */ mr r14, r6
.global lbl_80137D60
lbl_80137D60:
/* 80137D60 00133BA0 28 04 00 08 */ cmplwi r4, 0x8
/* 80137D64 00133BA4 3B 60 00 08 */ li r27, 0x8
/* 80137D68 00133BA8 41 81 00 08 */ bgt lbl_80137D70
/* 80137D6C 00133BAC 7C 9B 23 78 */ mr r27, r4
.global lbl_80137D70
lbl_80137D70:
/* 80137D70 00133BB0 54 06 3F FE */ extrwi r6, r0, 1, 6
/* 80137D74 00133BB4 54 04 2F FE */ extrwi r4, r0, 1, 4
/* 80137D78 00133BB8 54 07 9F BE */ extrwi r7, r0, 2, 17
/* 80137D7C 00133BBC 54 03 A7 FE */ extrwi r3, r0, 1, 19
/* 80137D80 00133BC0 98 61 00 2C */ stb r3, 0x2c(r1)
/* 80137D84 00133BC4 7C A6 00 D0 */ neg r5, r6
/* 80137D88 00133BC8 7C 64 00 D0 */ neg r3, r4
/* 80137D8C 00133BCC 28 07 00 03 */ cmplwi r7, 0x3
/* 80137D90 00133BD0 7C 64 23 78 */ or r4, r3, r4
/* 80137D94 00133BD4 7C A5 33 78 */ or r5, r5, r6
/* 80137D98 00133BD8 54 03 4F FE */ extrwi r3, r0, 1, 8
/* 80137D9C 00133BDC 98 61 00 2B */ stb r3, 0x2b(r1)
/* 80137DA0 00133BE0 54 A3 0F FE */ srwi r3, r5, 31
/* 80137DA4 00133BE4 3B 80 00 03 */ li r28, 0x3
/* 80137DA8 00133BE8 98 61 00 29 */ stb r3, 0x29(r1)
/* 80137DAC 00133BEC 54 03 47 FE */ extrwi r3, r0, 1, 7
/* 80137DB0 00133BF0 98 61 00 2A */ stb r3, 0x2a(r1)
/* 80137DB4 00133BF4 54 83 0F FE */ srwi r3, r4, 31
/* 80137DB8 00133BF8 98 61 00 28 */ stb r3, 0x28(r1)
/* 80137DBC 00133BFC 41 81 00 08 */ bgt lbl_80137DC4
/* 80137DC0 00133C00 7C FC 3B 78 */ mr r28, r7
.global lbl_80137DC4
lbl_80137DC4:
/* 80137DC4 00133C04 54 03 8F 7E */ extrwi r3, r0, 3, 14
/* 80137DC8 00133C08 3B A0 00 04 */ li r29, 0x4
/* 80137DCC 00133C0C 28 03 00 04 */ cmplwi r3, 0x4
/* 80137DD0 00133C10 41 81 00 08 */ bgt lbl_80137DD8
/* 80137DD4 00133C14 7C 7D 1B 78 */ mr r29, r3
.global lbl_80137DD8
lbl_80137DD8:
/* 80137DD8 00133C18 54 00 76 FE */ extrwi r0, r0, 5, 9
/* 80137DDC 00133C1C 3B C0 00 10 */ li r30, 0x10
/* 80137DE0 00133C20 28 00 00 10 */ cmplwi r0, 0x10
/* 80137DE4 00133C24 41 81 00 08 */ bgt lbl_80137DEC
/* 80137DE8 00133C28 7C 1E 03 78 */ mr r30, r0
.global lbl_80137DEC
lbl_80137DEC:
/* 80137DEC 00133C2C 88 01 00 29 */ lbz r0, 0x29(r1)
/* 80137DF0 00133C30 7D E3 7B 78 */ mr r3, r15
/* 80137DF4 00133C34 90 01 00 08 */ stw r0, 0x8(r1)
/* 80137DF8 00133C38 56 44 06 3E */ clrlwi r4, r18, 24
/* 80137DFC 00133C3C 88 01 00 28 */ lbz r0, 0x28(r1)
/* 80137E00 00133C40 55 C5 06 3E */ clrlwi r5, r14, 24
/* 80137E04 00133C44 90 01 00 0C */ stw r0, 0xc(r1)
/* 80137E08 00133C48 57 66 06 3E */ clrlwi r6, r27, 24
/* 80137E0C 00133C4C 88 01 00 2B */ lbz r0, 0x2b(r1)
/* 80137E10 00133C50 57 C7 06 3E */ clrlwi r7, r30, 24
/* 80137E14 00133C54 90 01 00 10 */ stw r0, 0x10(r1)
/* 80137E18 00133C58 57 A9 06 3E */ clrlwi r9, r29, 24
/* 80137E1C 00133C5C 88 01 00 2A */ lbz r0, 0x2a(r1)
/* 80137E20 00133C60 57 8A 06 3E */ clrlwi r10, r28, 24
/* 80137E24 00133C64 89 01 00 2C */ lbz r8, 0x2c(r1)
/* 80137E28 00133C68 90 01 00 14 */ stw r0, 0x14(r1)
2022-10-16 16:31:36 +00:00
/* 80137E2C 00133C6C 48 00 0F C5 */ bl ReserveGXMem__Q36nw4hbm3lyt8MaterialFUcUcUcUcbUcUcbbbb
2022-10-16 16:05:58 +00:00
/* 80137E30 00133C70 80 8F 00 58 */ lwz r4, 0x58(r15)
/* 80137E34 00133C74 2C 04 00 00 */ cmpwi r4, 0x0
/* 80137E38 00133C78 41 82 0E EC */ beq lbl_80138D24
/* 80137E3C 00133C7C 56 57 06 3F */ clrlwi. r23, r18, 24
/* 80137E40 00133C80 41 82 00 44 */ beq lbl_80137E84
/* 80137E44 00133C84 80 6F 00 50 */ lwz r3, 0x50(r15)
/* 80137E48 00133C88 54 60 4D F4 */ rlwinm r0, r3, 9, 23, 26
/* 80137E4C 00133C8C 54 78 27 3E */ srwi r24, r3, 28
/* 80137E50 00133C90 7F 24 02 14 */ add r25, r4, r0
/* 80137E54 00133C94 48 00 00 1C */ b lbl_80137E70
.global lbl_80137E58
lbl_80137E58:
/* 80137E58 00133C98 7F 23 CB 78 */ mr r3, r25
/* 80137E5C 00133C9C 38 80 00 00 */ li r4, 0x0
/* 80137E60 00133CA0 38 A0 00 20 */ li r5, 0x20
2022-10-16 16:31:36 +00:00
/* 80137E64 00133CA4 4B EC C4 ED */ bl memset
2022-10-16 16:05:58 +00:00
/* 80137E68 00133CA8 3B 39 00 20 */ addi r25, r25, 0x20
/* 80137E6C 00133CAC 3B 18 00 01 */ addi r24, r24, 0x1
.global lbl_80137E70
lbl_80137E70:
/* 80137E70 00133CB0 7C 18 B8 40 */ cmplw r24, r23
/* 80137E74 00133CB4 41 80 FF E4 */ blt lbl_80137E58
/* 80137E78 00133CB8 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 80137E7C 00133CBC 52 40 E0 06 */ rlwimi r0, r18, 28, 0, 3
/* 80137E80 00133CC0 90 0F 00 50 */ stw r0, 0x50(r15)
.global lbl_80137E84
lbl_80137E84:
/* 80137E84 00133CC4 56 40 06 3F */ clrlwi. r0, r18, 24
/* 80137E88 00133CC8 41 82 00 90 */ beq lbl_80137F18
/* 80137E8C 00133CCC 80 71 00 00 */ lwz r3, 0x0(r17)
/* 80137E90 00133CD0 3A 40 00 00 */ li r18, 0x0
/* 80137E94 00133CD4 83 2F 00 58 */ lwz r25, 0x58(r15)
/* 80137E98 00133CD8 3F E0 74 69 */ lis r31, 0x7469
/* 80137E9C 00133CDC 3B 43 00 0C */ addi r26, r3, 0xc
/* 80137EA0 00133CE0 48 00 00 64 */ b lbl_80137F04
.global lbl_80137EA4
lbl_80137EA4:
/* 80137EA4 00133CE4 56 40 15 BA */ rlwinm r0, r18, 2, 22, 29
/* 80137EA8 00133CE8 80 71 00 0C */ lwz r3, 0xc(r17)
/* 80137EAC 00133CEC 7F 15 02 14 */ add r24, r21, r0
/* 80137EB0 00133CF0 7C 15 02 2E */ lhzx r0, r21, r0
/* 80137EB4 00133CF4 81 83 00 00 */ lwz r12, 0x0(r3)
/* 80137EB8 00133CF8 38 9F 6D 67 */ addi r4, r31, 0x6d67
/* 80137EBC 00133CFC 54 00 18 38 */ slwi r0, r0, 3
/* 80137EC0 00133D00 38 C0 00 00 */ li r6, 0x0
/* 80137EC4 00133D04 7C 1A 00 2E */ lwzx r0, r26, r0
/* 80137EC8 00133D08 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80137ECC 00133D0C 7C BA 02 14 */ add r5, r26, r0
/* 80137ED0 00133D10 7D 89 03 A6 */ mtctr r12
/* 80137ED4 00133D14 4E 80 04 21 */ bctrl
/* 80137ED8 00133D18 80 0F 00 58 */ lwz r0, 0x58(r15)
/* 80137EDC 00133D1C 56 57 2C F4 */ rlwinm r23, r18, 5, 19, 26
/* 80137EE0 00133D20 7C 64 1B 78 */ mr r4, r3
/* 80137EE4 00133D24 38 A0 00 00 */ li r5, 0x0
/* 80137EE8 00133D28 7C 60 BA 14 */ add r3, r0, r23
2022-10-16 16:31:36 +00:00
/* 80137EEC 00133D2C 4B FF E8 15 */ bl InitGXTexObjFromTPL__Q36nw4hbm3lyt6detailFP9_GXTexObjP10TPLPaletteUl
2022-10-16 16:05:58 +00:00
/* 80137EF0 00133D30 88 98 00 02 */ lbz r4, 0x2(r24)
/* 80137EF4 00133D34 7C 79 BA 14 */ add r3, r25, r23
/* 80137EF8 00133D38 88 B8 00 03 */ lbz r5, 0x3(r24)
2022-10-16 16:31:36 +00:00
/* 80137EFC 00133D3C 4B EF EC 25 */ bl GXInitTexObjWrapMode
2022-10-16 16:05:58 +00:00
/* 80137F00 00133D40 3A 52 00 01 */ addi r18, r18, 0x1
.global lbl_80137F04
lbl_80137F04:
/* 80137F04 00133D44 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 80137F08 00133D48 56 43 06 3E */ clrlwi r3, r18, 24
/* 80137F0C 00133D4C 54 00 27 3E */ srwi r0, r0, 28
/* 80137F10 00133D50 7C 03 00 40 */ cmplw r3, r0
/* 80137F14 00133D54 41 80 FF 90 */ blt lbl_80137EA4
.global lbl_80137F18
lbl_80137F18:
/* 80137F18 00133D58 80 0F 00 4C */ lwz r0, 0x4c(r15)
/* 80137F1C 00133D5C 55 C3 06 3F */ clrlwi. r3, r14, 24
/* 80137F20 00133D60 80 8F 00 58 */ lwz r4, 0x58(r15)
/* 80137F24 00133D64 7E 85 A3 78 */ mr r5, r20
/* 80137F28 00133D68 54 00 4D F4 */ rlwinm r0, r0, 9, 23, 26
/* 80137F2C 00133D6C 7C 84 02 14 */ add r4, r4, r0
/* 80137F30 00133D70 40 81 01 04 */ ble lbl_80138034
/* 80137F34 00133D74 54 60 F0 BF */ srwi. r0, r3, 2
/* 80137F38 00133D78 7C 09 03 A6 */ mtctr r0
/* 80137F3C 00133D7C 41 82 00 BC */ beq lbl_80137FF8
.global lbl_80137F40
lbl_80137F40:
/* 80137F40 00133D80 C0 14 00 00 */ lfs f0, 0x0(r20)
/* 80137F44 00133D84 D0 04 00 00 */ stfs f0, 0x0(r4)
/* 80137F48 00133D88 C0 14 00 04 */ lfs f0, 0x4(r20)
/* 80137F4C 00133D8C D0 04 00 04 */ stfs f0, 0x4(r4)
/* 80137F50 00133D90 C0 05 00 08 */ lfs f0, 0x8(r5)
/* 80137F54 00133D94 D0 04 00 08 */ stfs f0, 0x8(r4)
/* 80137F58 00133D98 C0 05 00 0C */ lfs f0, 0xc(r5)
/* 80137F5C 00133D9C D0 04 00 0C */ stfs f0, 0xc(r4)
/* 80137F60 00133DA0 C0 05 00 10 */ lfs f0, 0x10(r5)
/* 80137F64 00133DA4 D0 04 00 10 */ stfs f0, 0x10(r4)
/* 80137F68 00133DA8 C0 14 00 14 */ lfs f0, 0x14(r20)
/* 80137F6C 00133DAC D0 04 00 14 */ stfs f0, 0x14(r4)
/* 80137F70 00133DB0 C0 14 00 18 */ lfs f0, 0x18(r20)
/* 80137F74 00133DB4 D0 04 00 18 */ stfs f0, 0x18(r4)
/* 80137F78 00133DB8 C0 05 00 1C */ lfs f0, 0x1c(r5)
/* 80137F7C 00133DBC D0 04 00 1C */ stfs f0, 0x1c(r4)
/* 80137F80 00133DC0 C0 05 00 20 */ lfs f0, 0x20(r5)
/* 80137F84 00133DC4 D0 04 00 20 */ stfs f0, 0x20(r4)
/* 80137F88 00133DC8 C0 05 00 24 */ lfs f0, 0x24(r5)
/* 80137F8C 00133DCC D0 04 00 24 */ stfs f0, 0x24(r4)
/* 80137F90 00133DD0 C0 14 00 28 */ lfs f0, 0x28(r20)
/* 80137F94 00133DD4 D0 04 00 28 */ stfs f0, 0x28(r4)
/* 80137F98 00133DD8 C0 14 00 2C */ lfs f0, 0x2c(r20)
/* 80137F9C 00133DDC D0 04 00 2C */ stfs f0, 0x2c(r4)
/* 80137FA0 00133DE0 C0 05 00 30 */ lfs f0, 0x30(r5)
/* 80137FA4 00133DE4 D0 04 00 30 */ stfs f0, 0x30(r4)
/* 80137FA8 00133DE8 C0 05 00 34 */ lfs f0, 0x34(r5)
/* 80137FAC 00133DEC D0 04 00 34 */ stfs f0, 0x34(r4)
/* 80137FB0 00133DF0 C0 05 00 38 */ lfs f0, 0x38(r5)
/* 80137FB4 00133DF4 D0 04 00 38 */ stfs f0, 0x38(r4)
/* 80137FB8 00133DF8 C0 14 00 3C */ lfs f0, 0x3c(r20)
/* 80137FBC 00133DFC D0 04 00 3C */ stfs f0, 0x3c(r4)
/* 80137FC0 00133E00 C0 14 00 40 */ lfs f0, 0x40(r20)
/* 80137FC4 00133E04 3A 94 00 50 */ addi r20, r20, 0x50
/* 80137FC8 00133E08 D0 04 00 40 */ stfs f0, 0x40(r4)
/* 80137FCC 00133E0C C0 05 00 44 */ lfs f0, 0x44(r5)
/* 80137FD0 00133E10 D0 04 00 44 */ stfs f0, 0x44(r4)
/* 80137FD4 00133E14 C0 05 00 48 */ lfs f0, 0x48(r5)
/* 80137FD8 00133E18 D0 04 00 48 */ stfs f0, 0x48(r4)
/* 80137FDC 00133E1C C0 05 00 4C */ lfs f0, 0x4c(r5)
/* 80137FE0 00133E20 38 A5 00 50 */ addi r5, r5, 0x50
/* 80137FE4 00133E24 D0 04 00 4C */ stfs f0, 0x4c(r4)
/* 80137FE8 00133E28 38 84 00 50 */ addi r4, r4, 0x50
/* 80137FEC 00133E2C 42 00 FF 54 */ bdnz lbl_80137F40
/* 80137FF0 00133E30 70 63 00 03 */ andi. r3, r3, 0x3
/* 80137FF4 00133E34 41 82 00 40 */ beq lbl_80138034
.global lbl_80137FF8
lbl_80137FF8:
/* 80137FF8 00133E38 7C 69 03 A6 */ mtctr r3
.global lbl_80137FFC
lbl_80137FFC:
/* 80137FFC 00133E3C C0 14 00 00 */ lfs f0, 0x0(r20)
/* 80138000 00133E40 D0 04 00 00 */ stfs f0, 0x0(r4)
/* 80138004 00133E44 C0 14 00 04 */ lfs f0, 0x4(r20)
/* 80138008 00133E48 3A 94 00 14 */ addi r20, r20, 0x14
/* 8013800C 00133E4C D0 04 00 04 */ stfs f0, 0x4(r4)
/* 80138010 00133E50 C0 05 00 08 */ lfs f0, 0x8(r5)
/* 80138014 00133E54 D0 04 00 08 */ stfs f0, 0x8(r4)
/* 80138018 00133E58 C0 05 00 0C */ lfs f0, 0xc(r5)
/* 8013801C 00133E5C D0 04 00 0C */ stfs f0, 0xc(r4)
/* 80138020 00133E60 C0 05 00 10 */ lfs f0, 0x10(r5)
/* 80138024 00133E64 38 A5 00 14 */ addi r5, r5, 0x14
/* 80138028 00133E68 D0 04 00 10 */ stfs f0, 0x10(r4)
/* 8013802C 00133E6C 38 84 00 14 */ addi r4, r4, 0x14
/* 80138030 00133E70 42 00 FF CC */ bdnz lbl_80137FFC
.global lbl_80138034
lbl_80138034:
/* 80138034 00133E74 80 6F 00 4C */ lwz r3, 0x4c(r15)
/* 80138038 00133E78 57 65 06 3F */ clrlwi. r5, r27, 24
/* 8013803C 00133E7C 80 8F 00 58 */ lwz r4, 0x58(r15)
/* 80138040 00133E80 54 60 47 3E */ extrwi r0, r3, 4, 4
/* 80138044 00133E84 54 63 4D F4 */ rlwinm r3, r3, 9, 23, 26
/* 80138048 00133E88 1C 00 00 14 */ mulli r0, r0, 0x14
/* 8013804C 00133E8C 7C 04 02 14 */ add r0, r4, r0
/* 80138050 00133E90 7C 63 02 14 */ add r3, r3, r0
/* 80138054 00133E94 41 82 01 34 */ beq lbl_80138188
/* 80138058 00133E98 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 8013805C 00133E9C 54 04 67 3E */ extrwi r4, r0, 4, 8
/* 80138060 00133EA0 7C 84 28 40 */ cmplw cr1, r4, r5
/* 80138064 00133EA4 40 84 01 18 */ bge cr1, lbl_8013817C
/* 80138068 00133EA8 7C 04 28 50 */ subf r0, r4, r5
/* 8013806C 00133EAC 39 25 FF F8 */ addi r9, r5, -0x8
/* 80138070 00133EB0 28 00 00 08 */ cmplwi r0, 0x8
/* 80138074 00133EB4 40 81 00 C4 */ ble lbl_80138138
/* 80138078 00133EB8 41 85 00 C0 */ bgt cr1, lbl_80138138
/* 8013807C 00133EBC 38 09 00 07 */ addi r0, r9, 0x7
/* 80138080 00133EC0 54 85 10 3A */ slwi r5, r4, 2
/* 80138084 00133EC4 7C 04 00 50 */ subf r0, r4, r0
/* 80138088 00133EC8 39 00 00 01 */ li r8, 0x1
/* 8013808C 00133ECC 54 00 E8 FE */ srwi r0, r0, 3
/* 80138090 00133ED0 7D 43 2A 14 */ add r10, r3, r5
/* 80138094 00133ED4 38 E0 00 04 */ li r7, 0x4
/* 80138098 00133ED8 38 C0 00 3C */ li r6, 0x3c
/* 8013809C 00133EDC 38 A0 00 00 */ li r5, 0x0
/* 801380A0 00133EE0 7C 09 03 A6 */ mtctr r0
/* 801380A4 00133EE4 7C 04 48 40 */ cmplw r4, r9
/* 801380A8 00133EE8 40 80 00 90 */ bge lbl_80138138
.global lbl_801380AC
lbl_801380AC:
/* 801380AC 00133EEC 99 0A 00 00 */ stb r8, 0x0(r10)
/* 801380B0 00133EF0 38 84 00 08 */ addi r4, r4, 0x8
/* 801380B4 00133EF4 98 EA 00 01 */ stb r7, 0x1(r10)
/* 801380B8 00133EF8 98 CA 00 02 */ stb r6, 0x2(r10)
/* 801380BC 00133EFC 98 AA 00 03 */ stb r5, 0x3(r10)
/* 801380C0 00133F00 99 0A 00 04 */ stb r8, 0x4(r10)
/* 801380C4 00133F04 98 EA 00 05 */ stb r7, 0x5(r10)
/* 801380C8 00133F08 98 CA 00 06 */ stb r6, 0x6(r10)
/* 801380CC 00133F0C 98 AA 00 07 */ stb r5, 0x7(r10)
/* 801380D0 00133F10 99 0A 00 08 */ stb r8, 0x8(r10)
/* 801380D4 00133F14 98 EA 00 09 */ stb r7, 0x9(r10)
/* 801380D8 00133F18 98 CA 00 0A */ stb r6, 0xa(r10)
/* 801380DC 00133F1C 98 AA 00 0B */ stb r5, 0xb(r10)
/* 801380E0 00133F20 99 0A 00 0C */ stb r8, 0xc(r10)
/* 801380E4 00133F24 98 EA 00 0D */ stb r7, 0xd(r10)
/* 801380E8 00133F28 98 CA 00 0E */ stb r6, 0xe(r10)
/* 801380EC 00133F2C 98 AA 00 0F */ stb r5, 0xf(r10)
/* 801380F0 00133F30 99 0A 00 10 */ stb r8, 0x10(r10)
/* 801380F4 00133F34 98 EA 00 11 */ stb r7, 0x11(r10)
/* 801380F8 00133F38 98 CA 00 12 */ stb r6, 0x12(r10)
/* 801380FC 00133F3C 98 AA 00 13 */ stb r5, 0x13(r10)
/* 80138100 00133F40 99 0A 00 14 */ stb r8, 0x14(r10)
/* 80138104 00133F44 98 EA 00 15 */ stb r7, 0x15(r10)
/* 80138108 00133F48 98 CA 00 16 */ stb r6, 0x16(r10)
/* 8013810C 00133F4C 98 AA 00 17 */ stb r5, 0x17(r10)
/* 80138110 00133F50 99 0A 00 18 */ stb r8, 0x18(r10)
/* 80138114 00133F54 98 EA 00 19 */ stb r7, 0x19(r10)
/* 80138118 00133F58 98 CA 00 1A */ stb r6, 0x1a(r10)
/* 8013811C 00133F5C 98 AA 00 1B */ stb r5, 0x1b(r10)
/* 80138120 00133F60 99 0A 00 1C */ stb r8, 0x1c(r10)
/* 80138124 00133F64 98 EA 00 1D */ stb r7, 0x1d(r10)
/* 80138128 00133F68 98 CA 00 1E */ stb r6, 0x1e(r10)
/* 8013812C 00133F6C 98 AA 00 1F */ stb r5, 0x1f(r10)
/* 80138130 00133F70 39 4A 00 20 */ addi r10, r10, 0x20
/* 80138134 00133F74 42 00 FF 78 */ bdnz lbl_801380AC
.global lbl_80138138
lbl_80138138:
/* 80138138 00133F78 57 65 06 3E */ clrlwi r5, r27, 24
/* 8013813C 00133F7C 54 86 10 3A */ slwi r6, r4, 2
/* 80138140 00133F80 7C 04 28 50 */ subf r0, r4, r5
/* 80138144 00133F84 39 20 00 01 */ li r9, 0x1
/* 80138148 00133F88 7D 43 32 14 */ add r10, r3, r6
/* 8013814C 00133F8C 39 00 00 04 */ li r8, 0x4
/* 80138150 00133F90 38 E0 00 3C */ li r7, 0x3c
/* 80138154 00133F94 38 C0 00 00 */ li r6, 0x0
/* 80138158 00133F98 7C 09 03 A6 */ mtctr r0
/* 8013815C 00133F9C 7C 04 28 40 */ cmplw r4, r5
/* 80138160 00133FA0 40 80 00 1C */ bge lbl_8013817C
.global lbl_80138164
lbl_80138164:
/* 80138164 00133FA4 99 2A 00 00 */ stb r9, 0x0(r10)
/* 80138168 00133FA8 99 0A 00 01 */ stb r8, 0x1(r10)
/* 8013816C 00133FAC 98 EA 00 02 */ stb r7, 0x2(r10)
/* 80138170 00133FB0 98 CA 00 03 */ stb r6, 0x3(r10)
/* 80138174 00133FB4 39 4A 00 04 */ addi r10, r10, 0x4
/* 80138178 00133FB8 42 00 FF EC */ bdnz lbl_80138164
.global lbl_8013817C
lbl_8013817C:
/* 8013817C 00133FBC 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 80138180 00133FC0 53 60 A2 16 */ rlwimi r0, r27, 20, 8, 11
/* 80138184 00133FC4 90 0F 00 50 */ stw r0, 0x50(r15)
.global lbl_80138188
lbl_80138188:
/* 80138188 00133FC8 38 80 00 00 */ li r4, 0x0
/* 8013818C 00133FCC 48 00 00 30 */ b lbl_801381BC
.global lbl_80138190
lbl_80138190:
/* 80138190 00133FD0 88 13 00 00 */ lbz r0, 0x0(r19)
/* 80138194 00133FD4 38 84 00 01 */ addi r4, r4, 0x1
/* 80138198 00133FD8 98 03 00 00 */ stb r0, 0x0(r3)
/* 8013819C 00133FDC 88 13 00 01 */ lbz r0, 0x1(r19)
/* 801381A0 00133FE0 98 03 00 01 */ stb r0, 0x1(r3)
/* 801381A4 00133FE4 88 13 00 02 */ lbz r0, 0x2(r19)
/* 801381A8 00133FE8 98 03 00 02 */ stb r0, 0x2(r3)
/* 801381AC 00133FEC 88 13 00 03 */ lbz r0, 0x3(r19)
/* 801381B0 00133FF0 3A 73 00 04 */ addi r19, r19, 0x4
/* 801381B4 00133FF4 98 03 00 03 */ stb r0, 0x3(r3)
/* 801381B8 00133FF8 38 63 00 04 */ addi r3, r3, 0x4
.global lbl_801381BC
lbl_801381BC:
/* 801381BC 00133FFC 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 801381C0 00134000 54 00 67 3E */ extrwi r0, r0, 4, 8
/* 801381C4 00134004 7C 04 00 40 */ cmplw r4, r0
/* 801381C8 00134008 41 80 FF C8 */ blt lbl_80138190
/* 801381CC 0013400C 88 01 00 29 */ lbz r0, 0x29(r1)
/* 801381D0 00134010 2C 00 00 00 */ cmpwi r0, 0x0
/* 801381D4 00134014 41 82 00 4C */ beq lbl_80138220
/* 801381D8 00134018 80 8F 00 4C */ lwz r4, 0x4c(r15)
/* 801381DC 0013401C 7C F0 B2 14 */ add r7, r16, r22
/* 801381E0 00134020 80 CF 00 58 */ lwz r6, 0x58(r15)
/* 801381E4 00134024 54 80 47 3E */ extrwi r0, r4, 4, 4
/* 801381E8 00134028 54 85 76 BA */ rlwinm r5, r4, 14, 26, 29
/* 801381EC 0013402C 1C 60 00 14 */ mulli r3, r0, 0x14
/* 801381F0 00134030 54 84 4D F4 */ rlwinm r4, r4, 9, 23, 26
/* 801381F4 00134034 7C 10 B0 AE */ lbzx r0, r16, r22
/* 801381F8 00134038 3A D6 00 04 */ addi r22, r22, 0x4
/* 801381FC 0013403C 7C 85 22 14 */ add r4, r5, r4
/* 80138200 00134040 7C 66 1A 14 */ add r3, r6, r3
/* 80138204 00134044 7C 03 21 EE */ stbux r0, r3, r4
/* 80138208 00134048 88 07 00 01 */ lbz r0, 0x1(r7)
/* 8013820C 0013404C 98 03 00 01 */ stb r0, 0x1(r3)
/* 80138210 00134050 88 07 00 02 */ lbz r0, 0x2(r7)
/* 80138214 00134054 98 03 00 02 */ stb r0, 0x2(r3)
/* 80138218 00134058 88 07 00 03 */ lbz r0, 0x3(r7)
/* 8013821C 0013405C 98 03 00 03 */ stb r0, 0x3(r3)
.global lbl_80138220
lbl_80138220:
/* 80138220 00134060 88 01 00 28 */ lbz r0, 0x28(r1)
/* 80138224 00134064 2C 00 00 00 */ cmpwi r0, 0x0
/* 80138228 00134068 41 82 00 54 */ beq lbl_8013827C
/* 8013822C 0013406C 80 CF 00 4C */ lwz r6, 0x4c(r15)
/* 80138230 00134070 7D 10 B2 14 */ add r8, r16, r22
/* 80138234 00134074 80 EF 00 58 */ lwz r7, 0x58(r15)
/* 80138238 00134078 54 C0 47 3E */ extrwi r0, r6, 4, 4
/* 8013823C 0013407C 54 C5 76 BA */ rlwinm r5, r6, 14, 26, 29
/* 80138240 00134080 1C 80 00 14 */ mulli r4, r0, 0x14
/* 80138244 00134084 54 C3 4D F4 */ rlwinm r3, r6, 9, 23, 26
/* 80138248 00134088 54 C6 D7 7A */ rlwinm r6, r6, 26, 29, 29
/* 8013824C 0013408C 7C 10 B0 AE */ lbzx r0, r16, r22
/* 80138250 00134090 7C 65 1A 14 */ add r3, r5, r3
/* 80138254 00134094 7C 86 22 14 */ add r4, r6, r4
/* 80138258 00134098 7C 67 1A 14 */ add r3, r7, r3
/* 8013825C 0013409C 7C 03 21 EE */ stbux r0, r3, r4
/* 80138260 001340A0 3A D6 00 04 */ addi r22, r22, 0x4
/* 80138264 001340A4 88 08 00 01 */ lbz r0, 0x1(r8)
/* 80138268 001340A8 98 03 00 01 */ stb r0, 0x1(r3)
/* 8013826C 001340AC 88 08 00 02 */ lbz r0, 0x2(r8)
/* 80138270 001340B0 98 03 00 02 */ stb r0, 0x2(r3)
/* 80138274 001340B4 88 08 00 03 */ lbz r0, 0x3(r8)
/* 80138278 001340B8 98 03 00 03 */ stb r0, 0x3(r3)
.global lbl_8013827C
lbl_8013827C:
/* 8013827C 001340BC 88 01 00 2C */ lbz r0, 0x2c(r1)
/* 80138280 001340C0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80138284 001340C4 41 82 00 5C */ beq lbl_801382E0
/* 80138288 001340C8 80 6F 00 4C */ lwz r3, 0x4c(r15)
/* 8013828C 001340CC 7D 30 B2 14 */ add r9, r16, r22
/* 80138290 001340D0 81 0F 00 58 */ lwz r8, 0x58(r15)
/* 80138294 001340D4 54 60 47 3E */ extrwi r0, r3, 4, 4
/* 80138298 001340D8 54 67 DF 7A */ rlwinm r7, r3, 27, 29, 29
/* 8013829C 001340DC 1C A0 00 14 */ mulli r5, r0, 0x14
/* 801382A0 001340E0 7C 10 B0 AE */ lbzx r0, r16, r22
/* 801382A4 001340E4 54 66 D7 7A */ rlwinm r6, r3, 26, 29, 29
/* 801382A8 001340E8 54 64 76 BA */ rlwinm r4, r3, 14, 26, 29
/* 801382AC 001340EC 54 63 4D F4 */ rlwinm r3, r3, 9, 23, 26
/* 801382B0 001340F0 3A D6 00 04 */ addi r22, r22, 0x4
/* 801382B4 001340F4 7C 84 1A 14 */ add r4, r4, r3
/* 801382B8 001340F8 7C 67 32 14 */ add r3, r7, r6
/* 801382BC 001340FC 7C 85 22 14 */ add r4, r5, r4
/* 801382C0 00134100 7C 68 1A 14 */ add r3, r8, r3
/* 801382C4 00134104 7C 03 21 EE */ stbux r0, r3, r4
/* 801382C8 00134108 88 09 00 01 */ lbz r0, 0x1(r9)
/* 801382CC 0013410C 98 03 00 01 */ stb r0, 0x1(r3)
/* 801382D0 00134110 88 09 00 02 */ lbz r0, 0x2(r9)
/* 801382D4 00134114 98 03 00 02 */ stb r0, 0x2(r3)
/* 801382D8 00134118 88 09 00 03 */ lbz r0, 0x3(r9)
/* 801382DC 0013411C 98 03 00 03 */ stb r0, 0x3(r3)
.global lbl_801382E0
lbl_801382E0:
/* 801382E0 00134120 57 83 06 3E */ clrlwi r3, r28, 24
/* 801382E4 00134124 2C 83 00 00 */ cmpwi cr1, r3, 0x0
/* 801382E8 00134128 41 86 02 54 */ beq cr1, lbl_8013853C
/* 801382EC 0013412C 81 8F 00 4C */ lwz r12, 0x4c(r15)
/* 801382F0 00134130 7C B0 B2 14 */ add r5, r16, r22
/* 801382F4 00134134 82 2F 00 58 */ lwz r17, 0x58(r15)
/* 801382F8 00134138 38 C0 00 00 */ li r6, 0x0
/* 801382FC 0013413C 55 80 47 3E */ extrwi r0, r12, 4, 4
/* 80138300 00134140 55 8B E7 7A */ rlwinm r11, r12, 28, 29, 29
/* 80138304 00134144 1C 80 00 14 */ mulli r4, r0, 0x14
/* 80138308 00134148 55 89 D7 7A */ rlwinm r9, r12, 26, 29, 29
/* 8013830C 0013414C 55 8A A7 7A */ rlwinm r10, r12, 20, 29, 29
/* 80138310 00134150 55 88 DF 7A */ rlwinm r8, r12, 27, 29, 29
/* 80138314 00134154 55 87 76 BA */ rlwinm r7, r12, 14, 26, 29
/* 80138318 00134158 55 80 4D F4 */ rlwinm r0, r12, 9, 23, 26
/* 8013831C 0013415C 7C 07 02 14 */ add r0, r7, r0
/* 80138320 00134160 55 8E 9E FA */ rlwinm r14, r12, 19, 27, 29
/* 80138324 00134164 55 8C EF 7A */ rlwinm r12, r12, 29, 29, 29
/* 80138328 00134168 7D 0A 42 14 */ add r8, r10, r8
/* 8013832C 0013416C 7C EB 4A 14 */ add r7, r11, r9
/* 80138330 00134170 7C 84 02 14 */ add r4, r4, r0
/* 80138334 00134174 7C E8 3A 14 */ add r7, r8, r7
/* 80138338 00134178 7C 0E 62 14 */ add r0, r14, r12
/* 8013833C 0013417C 7C 87 22 14 */ add r4, r7, r4
/* 80138340 00134180 7C 11 02 14 */ add r0, r17, r0
/* 80138344 00134184 7C 04 02 14 */ add r0, r4, r0
/* 80138348 00134188 40 85 01 F4 */ ble cr1, lbl_8013853C
/* 8013834C 0013418C 2C 03 00 08 */ cmpwi r3, 0x8
/* 80138350 00134190 39 03 FF F8 */ addi r8, r3, -0x8
/* 80138354 00134194 40 81 01 94 */ ble lbl_801384E8
/* 80138358 00134198 38 E0 00 00 */ li r7, 0x0
/* 8013835C 0013419C 41 84 00 18 */ blt cr1, lbl_80138374
/* 80138360 001341A0 3C 80 80 00 */ lis r4, 0x8000
/* 80138364 001341A4 38 84 FF FE */ addi r4, r4, -0x2
/* 80138368 001341A8 7C 03 20 00 */ cmpw r3, r4
/* 8013836C 001341AC 41 81 00 08 */ bgt lbl_80138374
/* 80138370 001341B0 38 E0 00 01 */ li r7, 0x1
.global lbl_80138374
lbl_80138374:
/* 80138374 001341B4 2C 07 00 00 */ cmpwi r7, 0x0
/* 80138378 001341B8 41 82 01 70 */ beq lbl_801384E8
/* 8013837C 001341BC 38 E8 00 07 */ addi r7, r8, 0x7
/* 80138380 001341C0 7C A3 2B 78 */ mr r3, r5
/* 80138384 001341C4 54 E7 E8 FE */ srwi r7, r7, 3
/* 80138388 001341C8 7C 04 03 78 */ mr r4, r0
/* 8013838C 001341CC 7C E9 03 A6 */ mtctr r7
/* 80138390 001341D0 2C 08 00 00 */ cmpwi r8, 0x0
/* 80138394 001341D4 40 81 01 54 */ ble lbl_801384E8
.global lbl_80138398
lbl_80138398:
/* 80138398 001341D8 80 E3 00 04 */ lwz r7, 0x4(r3)
/* 8013839C 001341DC 38 C6 00 08 */ addi r6, r6, 0x8
/* 801383A0 001341E0 81 03 00 00 */ lwz r8, 0x0(r3)
/* 801383A4 001341E4 91 04 00 00 */ stw r8, 0x0(r4)
/* 801383A8 001341E8 90 E4 00 04 */ stw r7, 0x4(r4)
/* 801383AC 001341EC C0 03 00 08 */ lfs f0, 0x8(r3)
/* 801383B0 001341F0 D0 04 00 08 */ stfs f0, 0x8(r4)
/* 801383B4 001341F4 80 E3 00 10 */ lwz r7, 0x10(r3)
/* 801383B8 001341F8 81 03 00 0C */ lwz r8, 0xc(r3)
/* 801383BC 001341FC 91 04 00 0C */ stw r8, 0xc(r4)
/* 801383C0 00134200 90 E4 00 10 */ stw r7, 0x10(r4)
/* 801383C4 00134204 80 E3 00 18 */ lwz r7, 0x18(r3)
/* 801383C8 00134208 81 03 00 14 */ lwz r8, 0x14(r3)
/* 801383CC 0013420C 91 04 00 14 */ stw r8, 0x14(r4)
/* 801383D0 00134210 90 E4 00 18 */ stw r7, 0x18(r4)
/* 801383D4 00134214 C0 03 00 1C */ lfs f0, 0x1c(r3)
/* 801383D8 00134218 D0 04 00 1C */ stfs f0, 0x1c(r4)
/* 801383DC 0013421C 80 E3 00 24 */ lwz r7, 0x24(r3)
/* 801383E0 00134220 81 03 00 20 */ lwz r8, 0x20(r3)
/* 801383E4 00134224 91 04 00 20 */ stw r8, 0x20(r4)
/* 801383E8 00134228 90 E4 00 24 */ stw r7, 0x24(r4)
/* 801383EC 0013422C 80 E3 00 2C */ lwz r7, 0x2c(r3)
/* 801383F0 00134230 81 03 00 28 */ lwz r8, 0x28(r3)
/* 801383F4 00134234 91 04 00 28 */ stw r8, 0x28(r4)
/* 801383F8 00134238 90 E4 00 2C */ stw r7, 0x2c(r4)
/* 801383FC 0013423C C0 03 00 30 */ lfs f0, 0x30(r3)
/* 80138400 00134240 D0 04 00 30 */ stfs f0, 0x30(r4)
/* 80138404 00134244 80 E3 00 38 */ lwz r7, 0x38(r3)
/* 80138408 00134248 81 03 00 34 */ lwz r8, 0x34(r3)
/* 8013840C 0013424C 91 04 00 34 */ stw r8, 0x34(r4)
/* 80138410 00134250 90 E4 00 38 */ stw r7, 0x38(r4)
/* 80138414 00134254 80 E3 00 40 */ lwz r7, 0x40(r3)
/* 80138418 00134258 81 03 00 3C */ lwz r8, 0x3c(r3)
/* 8013841C 0013425C 91 04 00 3C */ stw r8, 0x3c(r4)
/* 80138420 00134260 90 E4 00 40 */ stw r7, 0x40(r4)
/* 80138424 00134264 C0 03 00 44 */ lfs f0, 0x44(r3)
/* 80138428 00134268 D0 04 00 44 */ stfs f0, 0x44(r4)
/* 8013842C 0013426C 80 E3 00 4C */ lwz r7, 0x4c(r3)
/* 80138430 00134270 81 03 00 48 */ lwz r8, 0x48(r3)
/* 80138434 00134274 91 04 00 48 */ stw r8, 0x48(r4)
/* 80138438 00134278 90 E4 00 4C */ stw r7, 0x4c(r4)
/* 8013843C 0013427C 80 E3 00 54 */ lwz r7, 0x54(r3)
/* 80138440 00134280 81 03 00 50 */ lwz r8, 0x50(r3)
/* 80138444 00134284 91 04 00 50 */ stw r8, 0x50(r4)
/* 80138448 00134288 90 E4 00 54 */ stw r7, 0x54(r4)
/* 8013844C 0013428C C0 03 00 58 */ lfs f0, 0x58(r3)
/* 80138450 00134290 D0 04 00 58 */ stfs f0, 0x58(r4)
/* 80138454 00134294 80 E3 00 60 */ lwz r7, 0x60(r3)
/* 80138458 00134298 81 03 00 5C */ lwz r8, 0x5c(r3)
/* 8013845C 0013429C 91 04 00 5C */ stw r8, 0x5c(r4)
/* 80138460 001342A0 90 E4 00 60 */ stw r7, 0x60(r4)
/* 80138464 001342A4 80 E3 00 68 */ lwz r7, 0x68(r3)
/* 80138468 001342A8 81 03 00 64 */ lwz r8, 0x64(r3)
/* 8013846C 001342AC 91 04 00 64 */ stw r8, 0x64(r4)
/* 80138470 001342B0 90 E4 00 68 */ stw r7, 0x68(r4)
/* 80138474 001342B4 C0 03 00 6C */ lfs f0, 0x6c(r3)
/* 80138478 001342B8 D0 04 00 6C */ stfs f0, 0x6c(r4)
/* 8013847C 001342BC 80 E3 00 74 */ lwz r7, 0x74(r3)
/* 80138480 001342C0 81 03 00 70 */ lwz r8, 0x70(r3)
/* 80138484 001342C4 91 04 00 70 */ stw r8, 0x70(r4)
/* 80138488 001342C8 90 E4 00 74 */ stw r7, 0x74(r4)
/* 8013848C 001342CC 80 E3 00 7C */ lwz r7, 0x7c(r3)
/* 80138490 001342D0 81 03 00 78 */ lwz r8, 0x78(r3)
/* 80138494 001342D4 91 04 00 78 */ stw r8, 0x78(r4)
/* 80138498 001342D8 90 E4 00 7C */ stw r7, 0x7c(r4)
/* 8013849C 001342DC C0 03 00 80 */ lfs f0, 0x80(r3)
/* 801384A0 001342E0 D0 04 00 80 */ stfs f0, 0x80(r4)
/* 801384A4 001342E4 80 E3 00 88 */ lwz r7, 0x88(r3)
/* 801384A8 001342E8 81 03 00 84 */ lwz r8, 0x84(r3)
/* 801384AC 001342EC 91 04 00 84 */ stw r8, 0x84(r4)
/* 801384B0 001342F0 90 E4 00 88 */ stw r7, 0x88(r4)
/* 801384B4 001342F4 80 E3 00 90 */ lwz r7, 0x90(r3)
/* 801384B8 001342F8 81 03 00 8C */ lwz r8, 0x8c(r3)
/* 801384BC 001342FC 91 04 00 8C */ stw r8, 0x8c(r4)
/* 801384C0 00134300 90 E4 00 90 */ stw r7, 0x90(r4)
/* 801384C4 00134304 C0 03 00 94 */ lfs f0, 0x94(r3)
/* 801384C8 00134308 D0 04 00 94 */ stfs f0, 0x94(r4)
/* 801384CC 0013430C 80 E3 00 9C */ lwz r7, 0x9c(r3)
/* 801384D0 00134310 81 03 00 98 */ lwz r8, 0x98(r3)
/* 801384D4 00134314 38 63 00 A0 */ addi r3, r3, 0xa0
/* 801384D8 00134318 91 04 00 98 */ stw r8, 0x98(r4)
/* 801384DC 0013431C 90 E4 00 9C */ stw r7, 0x9c(r4)
/* 801384E0 00134320 38 84 00 A0 */ addi r4, r4, 0xa0
/* 801384E4 00134324 42 00 FE B4 */ bdnz lbl_80138398
.global lbl_801384E8
lbl_801384E8:
/* 801384E8 00134328 1C E6 00 14 */ mulli r7, r6, 0x14
/* 801384EC 0013432C 57 84 06 3E */ clrlwi r4, r28, 24
/* 801384F0 00134330 7C 66 20 50 */ subf r3, r6, r4
/* 801384F4 00134334 7C A5 3A 14 */ add r5, r5, r7
/* 801384F8 00134338 7C E0 3A 14 */ add r7, r0, r7
/* 801384FC 0013433C 7C 69 03 A6 */ mtctr r3
/* 80138500 00134340 7C 06 20 00 */ cmpw r6, r4
/* 80138504 00134344 40 80 00 38 */ bge lbl_8013853C
.global lbl_80138508
lbl_80138508:
/* 80138508 00134348 80 05 00 04 */ lwz r0, 0x4(r5)
/* 8013850C 0013434C 80 65 00 00 */ lwz r3, 0x0(r5)
/* 80138510 00134350 90 67 00 00 */ stw r3, 0x0(r7)
/* 80138514 00134354 90 07 00 04 */ stw r0, 0x4(r7)
/* 80138518 00134358 C0 05 00 08 */ lfs f0, 0x8(r5)
/* 8013851C 0013435C D0 07 00 08 */ stfs f0, 0x8(r7)
/* 80138520 00134360 80 05 00 10 */ lwz r0, 0x10(r5)
/* 80138524 00134364 80 65 00 0C */ lwz r3, 0xc(r5)
/* 80138528 00134368 38 A5 00 14 */ addi r5, r5, 0x14
/* 8013852C 0013436C 90 67 00 0C */ stw r3, 0xc(r7)
/* 80138530 00134370 90 07 00 10 */ stw r0, 0x10(r7)
/* 80138534 00134374 38 E7 00 14 */ addi r7, r7, 0x14
/* 80138538 00134378 42 00 FF D0 */ bdnz lbl_80138508
.global lbl_8013853C
lbl_8013853C:
/* 8013853C 0013437C 80 10 00 3C */ lwz r0, 0x3c(r16)
/* 80138540 00134380 57 AC 06 3F */ clrlwi. r12, r29, 24
/* 80138544 00134384 54 00 9F BE */ extrwi r0, r0, 2, 17
/* 80138548 00134388 1C 00 00 14 */ mulli r0, r0, 0x14
/* 8013854C 0013438C 7E D6 02 14 */ add r22, r22, r0
/* 80138550 00134390 41 82 03 70 */ beq lbl_801388C0
/* 80138554 00134394 81 4F 00 4C */ lwz r10, 0x4c(r15)
/* 80138558 00134398 80 0F 00 50 */ lwz r0, 0x50(r15)
/* 8013855C 0013439C 55 43 47 3E */ extrwi r3, r10, 4, 4
/* 80138560 001343A0 55 49 E7 7A */ rlwinm r9, r10, 28, 29, 29
/* 80138564 001343A4 1C 83 00 14 */ mulli r4, r3, 0x14
/* 80138568 001343A8 55 47 D7 7A */ rlwinm r7, r10, 26, 29, 29
/* 8013856C 001343AC 54 03 8F 7E */ extrwi r3, r0, 3, 14
/* 80138570 001343B0 81 6F 00 58 */ lwz r11, 0x58(r15)
/* 80138574 001343B4 55 48 A7 7A */ rlwinm r8, r10, 20, 29, 29
/* 80138578 001343B8 55 46 DF 7A */ rlwinm r6, r10, 27, 29, 29
/* 8013857C 001343BC 55 45 76 BA */ rlwinm r5, r10, 14, 26, 29
/* 80138580 001343C0 55 40 4D F4 */ rlwinm r0, r10, 9, 23, 26
/* 80138584 001343C4 7C 05 02 14 */ add r0, r5, r0
/* 80138588 001343C8 7C C8 32 14 */ add r6, r8, r6
/* 8013858C 001343CC 7C A9 3A 14 */ add r5, r9, r7
/* 80138590 001343D0 7C 83 60 40 */ cmplw cr1, r3, r12
/* 80138594 001343D4 7C 04 02 14 */ add r0, r4, r0
/* 80138598 001343D8 55 47 EF 7A */ rlwinm r7, r10, 29, 29, 29
/* 8013859C 001343DC 7C 86 2A 14 */ add r4, r6, r5
/* 801385A0 001343E0 7C 87 22 14 */ add r4, r7, r4
/* 801385A4 001343E4 7C 0B 02 14 */ add r0, r11, r0
/* 801385A8 001343E8 7C E4 02 14 */ add r7, r4, r0
/* 801385AC 001343EC 40 84 01 00 */ bge cr1, lbl_801386AC
/* 801385B0 001343F0 7C 03 60 50 */ subf r0, r3, r12
/* 801385B4 001343F4 38 CC FF F8 */ addi r6, r12, -0x8
/* 801385B8 001343F8 28 00 00 08 */ cmplwi r0, 0x8
/* 801385BC 001343FC 40 81 00 B8 */ ble lbl_80138674
/* 801385C0 00134400 41 85 00 B4 */ bgt cr1, lbl_80138674
/* 801385C4 00134404 38 06 00 07 */ addi r0, r6, 0x7
/* 801385C8 00134408 54 65 10 3A */ slwi r5, r3, 2
/* 801385CC 0013440C 7C 03 00 50 */ subf r0, r3, r0
/* 801385D0 00134410 38 80 00 00 */ li r4, 0x0
/* 801385D4 00134414 54 00 E8 FE */ srwi r0, r0, 3
/* 801385D8 00134418 7C A7 2A 14 */ add r5, r7, r5
/* 801385DC 0013441C 7C 09 03 A6 */ mtctr r0
/* 801385E0 00134420 7C 03 30 40 */ cmplw r3, r6
/* 801385E4 00134424 40 80 00 90 */ bge lbl_80138674
.global lbl_801385E8
lbl_801385E8:
/* 801385E8 00134428 98 85 00 00 */ stb r4, 0x0(r5)
/* 801385EC 0013442C 38 63 00 08 */ addi r3, r3, 0x8
/* 801385F0 00134430 98 85 00 01 */ stb r4, 0x1(r5)
/* 801385F4 00134434 98 85 00 02 */ stb r4, 0x2(r5)
/* 801385F8 00134438 98 85 00 03 */ stb r4, 0x3(r5)
/* 801385FC 0013443C 98 85 00 04 */ stb r4, 0x4(r5)
/* 80138600 00134440 98 85 00 05 */ stb r4, 0x5(r5)
/* 80138604 00134444 98 85 00 06 */ stb r4, 0x6(r5)
/* 80138608 00134448 98 85 00 07 */ stb r4, 0x7(r5)
/* 8013860C 0013444C 98 85 00 08 */ stb r4, 0x8(r5)
/* 80138610 00134450 98 85 00 09 */ stb r4, 0x9(r5)
/* 80138614 00134454 98 85 00 0A */ stb r4, 0xa(r5)
/* 80138618 00134458 98 85 00 0B */ stb r4, 0xb(r5)
/* 8013861C 0013445C 98 85 00 0C */ stb r4, 0xc(r5)
/* 80138620 00134460 98 85 00 0D */ stb r4, 0xd(r5)
/* 80138624 00134464 98 85 00 0E */ stb r4, 0xe(r5)
/* 80138628 00134468 98 85 00 0F */ stb r4, 0xf(r5)
/* 8013862C 0013446C 98 85 00 10 */ stb r4, 0x10(r5)
/* 80138630 00134470 98 85 00 11 */ stb r4, 0x11(r5)
/* 80138634 00134474 98 85 00 12 */ stb r4, 0x12(r5)
/* 80138638 00134478 98 85 00 13 */ stb r4, 0x13(r5)
/* 8013863C 0013447C 98 85 00 14 */ stb r4, 0x14(r5)
/* 80138640 00134480 98 85 00 15 */ stb r4, 0x15(r5)
/* 80138644 00134484 98 85 00 16 */ stb r4, 0x16(r5)
/* 80138648 00134488 98 85 00 17 */ stb r4, 0x17(r5)
/* 8013864C 0013448C 98 85 00 18 */ stb r4, 0x18(r5)
/* 80138650 00134490 98 85 00 19 */ stb r4, 0x19(r5)
/* 80138654 00134494 98 85 00 1A */ stb r4, 0x1a(r5)
/* 80138658 00134498 98 85 00 1B */ stb r4, 0x1b(r5)
/* 8013865C 0013449C 98 85 00 1C */ stb r4, 0x1c(r5)
/* 80138660 001344A0 98 85 00 1D */ stb r4, 0x1d(r5)
/* 80138664 001344A4 98 85 00 1E */ stb r4, 0x1e(r5)
/* 80138668 001344A8 98 85 00 1F */ stb r4, 0x1f(r5)
/* 8013866C 001344AC 38 A5 00 20 */ addi r5, r5, 0x20
/* 80138670 001344B0 42 00 FF 78 */ bdnz lbl_801385E8
.global lbl_80138674
lbl_80138674:
/* 80138674 001344B4 57 A4 06 3E */ clrlwi r4, r29, 24
/* 80138678 001344B8 54 66 10 3A */ slwi r6, r3, 2
/* 8013867C 001344BC 7C 03 20 50 */ subf r0, r3, r4
/* 80138680 001344C0 38 A0 00 00 */ li r5, 0x0
/* 80138684 001344C4 7C C7 32 14 */ add r6, r7, r6
/* 80138688 001344C8 7C 09 03 A6 */ mtctr r0
/* 8013868C 001344CC 7C 03 20 40 */ cmplw r3, r4
/* 80138690 001344D0 40 80 00 1C */ bge lbl_801386AC
.global lbl_80138694
lbl_80138694:
/* 80138694 001344D4 98 A6 00 00 */ stb r5, 0x0(r6)
/* 80138698 001344D8 98 A6 00 01 */ stb r5, 0x1(r6)
/* 8013869C 001344DC 98 A6 00 02 */ stb r5, 0x2(r6)
/* 801386A0 001344E0 98 A6 00 03 */ stb r5, 0x3(r6)
/* 801386A4 001344E4 38 C6 00 04 */ addi r6, r6, 0x4
/* 801386A8 001344E8 42 00 FF EC */ bdnz lbl_80138694
.global lbl_801386AC
lbl_801386AC:
/* 801386AC 001344EC 81 4F 00 4C */ lwz r10, 0x4c(r15)
/* 801386B0 001344F0 57 A4 06 3E */ clrlwi r4, r29, 24
/* 801386B4 001344F4 80 AF 00 50 */ lwz r5, 0x50(r15)
/* 801386B8 001344F8 53 A5 7B A0 */ rlwimi r5, r29, 15, 14, 16
/* 801386BC 001344FC 55 40 47 3E */ extrwi r0, r10, 4, 4
/* 801386C0 00134500 90 AF 00 50 */ stw r5, 0x50(r15)
/* 801386C4 00134504 1C 60 00 14 */ mulli r3, r0, 0x14
/* 801386C8 00134508 55 49 E7 7A */ rlwinm r9, r10, 28, 29, 29
/* 801386CC 0013450C 55 47 D7 7A */ rlwinm r7, r10, 26, 29, 29
/* 801386D0 00134510 81 6F 00 58 */ lwz r11, 0x58(r15)
/* 801386D4 00134514 55 48 A7 7A */ rlwinm r8, r10, 20, 29, 29
/* 801386D8 00134518 55 46 DF 7A */ rlwinm r6, r10, 27, 29, 29
/* 801386DC 0013451C 55 45 76 BA */ rlwinm r5, r10, 14, 26, 29
/* 801386E0 00134520 55 40 4D F4 */ rlwinm r0, r10, 9, 23, 26
/* 801386E4 00134524 7C 05 02 14 */ add r0, r5, r0
/* 801386E8 00134528 7C C8 32 14 */ add r6, r8, r6
/* 801386EC 0013452C 7C A9 3A 14 */ add r5, r9, r7
/* 801386F0 00134530 2C 84 00 00 */ cmpwi cr1, r4, 0x0
/* 801386F4 00134534 7C 03 02 14 */ add r0, r3, r0
/* 801386F8 00134538 55 47 EF 7A */ rlwinm r7, r10, 29, 29, 29
/* 801386FC 0013453C 7C 66 2A 14 */ add r3, r6, r5
/* 80138700 00134540 7C B0 B2 14 */ add r5, r16, r22
/* 80138704 00134544 7C 67 1A 14 */ add r3, r7, r3
/* 80138708 00134548 7C 0B 02 14 */ add r0, r11, r0
/* 8013870C 0013454C 7C 03 02 14 */ add r0, r3, r0
/* 80138710 00134550 38 C0 00 00 */ li r6, 0x0
/* 80138714 00134554 40 85 01 AC */ ble cr1, lbl_801388C0
/* 80138718 00134558 2C 04 00 08 */ cmpwi r4, 0x8
/* 8013871C 0013455C 39 04 FF F8 */ addi r8, r4, -0x8
/* 80138720 00134560 40 81 01 54 */ ble lbl_80138874
/* 80138724 00134564 38 E0 00 00 */ li r7, 0x0
/* 80138728 00134568 41 84 00 18 */ blt cr1, lbl_80138740
/* 8013872C 0013456C 3C 60 80 00 */ lis r3, 0x8000
/* 80138730 00134570 38 63 FF FE */ addi r3, r3, -0x2
/* 80138734 00134574 7C 04 18 00 */ cmpw r4, r3
/* 80138738 00134578 41 81 00 08 */ bgt lbl_80138740
/* 8013873C 0013457C 38 E0 00 01 */ li r7, 0x1
.global lbl_80138740
lbl_80138740:
/* 80138740 00134580 2C 07 00 00 */ cmpwi r7, 0x0
/* 80138744 00134584 41 82 01 30 */ beq lbl_80138874
/* 80138748 00134588 38 E8 00 07 */ addi r7, r8, 0x7
/* 8013874C 0013458C 7C A3 2B 78 */ mr r3, r5
/* 80138750 00134590 54 E7 E8 FE */ srwi r7, r7, 3
/* 80138754 00134594 7C 04 03 78 */ mr r4, r0
/* 80138758 00134598 7C E9 03 A6 */ mtctr r7
/* 8013875C 0013459C 2C 08 00 00 */ cmpwi r8, 0x0
/* 80138760 001345A0 40 81 01 14 */ ble lbl_80138874
.global lbl_80138764
lbl_80138764:
/* 80138764 001345A4 88 E3 00 00 */ lbz r7, 0x0(r3)
/* 80138768 001345A8 38 C6 00 08 */ addi r6, r6, 0x8
/* 8013876C 001345AC 98 E4 00 00 */ stb r7, 0x0(r4)
/* 80138770 001345B0 88 E3 00 01 */ lbz r7, 0x1(r3)
/* 80138774 001345B4 98 E4 00 01 */ stb r7, 0x1(r4)
/* 80138778 001345B8 88 E3 00 02 */ lbz r7, 0x2(r3)
/* 8013877C 001345BC 98 E4 00 02 */ stb r7, 0x2(r4)
/* 80138780 001345C0 88 E3 00 03 */ lbz r7, 0x3(r3)
/* 80138784 001345C4 98 E4 00 03 */ stb r7, 0x3(r4)
/* 80138788 001345C8 88 E3 00 04 */ lbz r7, 0x4(r3)
/* 8013878C 001345CC 98 E4 00 04 */ stb r7, 0x4(r4)
/* 80138790 001345D0 88 E3 00 05 */ lbz r7, 0x5(r3)
/* 80138794 001345D4 98 E4 00 05 */ stb r7, 0x5(r4)
/* 80138798 001345D8 88 E3 00 06 */ lbz r7, 0x6(r3)
/* 8013879C 001345DC 98 E4 00 06 */ stb r7, 0x6(r4)
/* 801387A0 001345E0 88 E3 00 07 */ lbz r7, 0x7(r3)
/* 801387A4 001345E4 98 E4 00 07 */ stb r7, 0x7(r4)
/* 801387A8 001345E8 88 E3 00 08 */ lbz r7, 0x8(r3)
/* 801387AC 001345EC 98 E4 00 08 */ stb r7, 0x8(r4)
/* 801387B0 001345F0 88 E3 00 09 */ lbz r7, 0x9(r3)
/* 801387B4 001345F4 98 E4 00 09 */ stb r7, 0x9(r4)
/* 801387B8 001345F8 88 E3 00 0A */ lbz r7, 0xa(r3)
/* 801387BC 001345FC 98 E4 00 0A */ stb r7, 0xa(r4)
/* 801387C0 00134600 88 E3 00 0B */ lbz r7, 0xb(r3)
/* 801387C4 00134604 98 E4 00 0B */ stb r7, 0xb(r4)
/* 801387C8 00134608 88 E3 00 0C */ lbz r7, 0xc(r3)
/* 801387CC 0013460C 98 E4 00 0C */ stb r7, 0xc(r4)
/* 801387D0 00134610 88 E3 00 0D */ lbz r7, 0xd(r3)
/* 801387D4 00134614 98 E4 00 0D */ stb r7, 0xd(r4)
/* 801387D8 00134618 88 E3 00 0E */ lbz r7, 0xe(r3)
/* 801387DC 0013461C 98 E4 00 0E */ stb r7, 0xe(r4)
/* 801387E0 00134620 88 E3 00 0F */ lbz r7, 0xf(r3)
/* 801387E4 00134624 98 E4 00 0F */ stb r7, 0xf(r4)
/* 801387E8 00134628 88 E3 00 10 */ lbz r7, 0x10(r3)
/* 801387EC 0013462C 98 E4 00 10 */ stb r7, 0x10(r4)
/* 801387F0 00134630 88 E3 00 11 */ lbz r7, 0x11(r3)
/* 801387F4 00134634 98 E4 00 11 */ stb r7, 0x11(r4)
/* 801387F8 00134638 88 E3 00 12 */ lbz r7, 0x12(r3)
/* 801387FC 0013463C 98 E4 00 12 */ stb r7, 0x12(r4)
/* 80138800 00134640 88 E3 00 13 */ lbz r7, 0x13(r3)
/* 80138804 00134644 98 E4 00 13 */ stb r7, 0x13(r4)
/* 80138808 00134648 88 E3 00 14 */ lbz r7, 0x14(r3)
/* 8013880C 0013464C 98 E4 00 14 */ stb r7, 0x14(r4)
/* 80138810 00134650 88 E3 00 15 */ lbz r7, 0x15(r3)
/* 80138814 00134654 98 E4 00 15 */ stb r7, 0x15(r4)
/* 80138818 00134658 88 E3 00 16 */ lbz r7, 0x16(r3)
/* 8013881C 0013465C 98 E4 00 16 */ stb r7, 0x16(r4)
/* 80138820 00134660 88 E3 00 17 */ lbz r7, 0x17(r3)
/* 80138824 00134664 98 E4 00 17 */ stb r7, 0x17(r4)
/* 80138828 00134668 88 E3 00 18 */ lbz r7, 0x18(r3)
/* 8013882C 0013466C 98 E4 00 18 */ stb r7, 0x18(r4)
/* 80138830 00134670 88 E3 00 19 */ lbz r7, 0x19(r3)
/* 80138834 00134674 98 E4 00 19 */ stb r7, 0x19(r4)
/* 80138838 00134678 88 E3 00 1A */ lbz r7, 0x1a(r3)
/* 8013883C 0013467C 98 E4 00 1A */ stb r7, 0x1a(r4)
/* 80138840 00134680 88 E3 00 1B */ lbz r7, 0x1b(r3)
/* 80138844 00134684 98 E4 00 1B */ stb r7, 0x1b(r4)
/* 80138848 00134688 88 E3 00 1C */ lbz r7, 0x1c(r3)
/* 8013884C 0013468C 98 E4 00 1C */ stb r7, 0x1c(r4)
/* 80138850 00134690 88 E3 00 1D */ lbz r7, 0x1d(r3)
/* 80138854 00134694 98 E4 00 1D */ stb r7, 0x1d(r4)
/* 80138858 00134698 88 E3 00 1E */ lbz r7, 0x1e(r3)
/* 8013885C 0013469C 98 E4 00 1E */ stb r7, 0x1e(r4)
/* 80138860 001346A0 88 E3 00 1F */ lbz r7, 0x1f(r3)
/* 80138864 001346A4 38 63 00 20 */ addi r3, r3, 0x20
/* 80138868 001346A8 98 E4 00 1F */ stb r7, 0x1f(r4)
/* 8013886C 001346AC 38 84 00 20 */ addi r4, r4, 0x20
/* 80138870 001346B0 42 00 FE F4 */ bdnz lbl_80138764
.global lbl_80138874
lbl_80138874:
/* 80138874 001346B4 57 A4 06 3E */ clrlwi r4, r29, 24
/* 80138878 001346B8 54 C7 10 3A */ slwi r7, r6, 2
/* 8013887C 001346BC 7C 66 20 50 */ subf r3, r6, r4
/* 80138880 001346C0 7C A5 3A 14 */ add r5, r5, r7
/* 80138884 001346C4 7C E0 3A 14 */ add r7, r0, r7
/* 80138888 001346C8 7C 69 03 A6 */ mtctr r3
/* 8013888C 001346CC 7C 06 20 00 */ cmpw r6, r4
/* 80138890 001346D0 40 80 00 30 */ bge lbl_801388C0
.global lbl_80138894
lbl_80138894:
/* 80138894 001346D4 88 05 00 00 */ lbz r0, 0x0(r5)
/* 80138898 001346D8 98 07 00 00 */ stb r0, 0x0(r7)
/* 8013889C 001346DC 88 05 00 01 */ lbz r0, 0x1(r5)
/* 801388A0 001346E0 98 07 00 01 */ stb r0, 0x1(r7)
/* 801388A4 001346E4 88 05 00 02 */ lbz r0, 0x2(r5)
/* 801388A8 001346E8 98 07 00 02 */ stb r0, 0x2(r7)
/* 801388AC 001346EC 88 05 00 03 */ lbz r0, 0x3(r5)
/* 801388B0 001346F0 38 A5 00 04 */ addi r5, r5, 0x4
/* 801388B4 001346F4 98 07 00 03 */ stb r0, 0x3(r7)
/* 801388B8 001346F8 38 E7 00 04 */ addi r7, r7, 0x4
/* 801388BC 001346FC 42 00 FF D8 */ bdnz lbl_80138894
.global lbl_801388C0
lbl_801388C0:
/* 801388C0 00134700 80 70 00 3C */ lwz r3, 0x3c(r16)
/* 801388C4 00134704 57 C0 06 3F */ clrlwi. r0, r30, 24
/* 801388C8 00134708 54 63 9E FA */ rlwinm r3, r3, 19, 27, 29
/* 801388CC 0013470C 7E D6 1A 14 */ add r22, r22, r3
/* 801388D0 00134710 41 82 03 6C */ beq lbl_80138C3C
/* 801388D4 00134714 81 6F 00 4C */ lwz r11, 0x4c(r15)
/* 801388D8 00134718 80 6F 00 50 */ lwz r3, 0x50(r15)
/* 801388DC 0013471C 55 65 77 BE */ extrwi r5, r11, 2, 12
/* 801388E0 00134720 55 64 47 3E */ extrwi r4, r11, 4, 4
/* 801388E4 00134724 7C 85 22 14 */ add r4, r5, r4
/* 801388E8 00134728 54 63 BE FE */ extrwi r3, r3, 5, 18
/* 801388EC 0013472C 1D 44 00 14 */ mulli r10, r4, 0x14
/* 801388F0 00134730 55 66 DF 7A */ rlwinm r6, r11, 27, 29, 29
/* 801388F4 00134734 55 64 A7 7A */ rlwinm r4, r11, 20, 29, 29
/* 801388F8 00134738 81 8F 00 58 */ lwz r12, 0x58(r15)
/* 801388FC 0013473C 55 67 D7 7A */ rlwinm r7, r11, 26, 29, 29
/* 80138900 00134740 7C 86 22 14 */ add r4, r6, r4
/* 80138904 00134744 55 65 E7 7A */ rlwinm r5, r11, 28, 29, 29
/* 80138908 00134748 7C CA 3A 14 */ add r6, r10, r7
/* 8013890C 0013474C 55 69 4D F4 */ rlwinm r9, r11, 9, 23, 26
/* 80138910 00134750 55 68 76 BA */ rlwinm r8, r11, 14, 26, 29
/* 80138914 00134754 7D 09 42 14 */ add r8, r9, r8
/* 80138918 00134758 7C A5 22 14 */ add r5, r5, r4
/* 8013891C 0013475C 7C 88 32 14 */ add r4, r8, r6
/* 80138920 00134760 55 67 EF 7A */ rlwinm r7, r11, 29, 29, 29
/* 80138924 00134764 7C 03 00 40 */ cmplw r3, r0
/* 80138928 00134768 55 66 9E FA */ rlwinm r6, r11, 19, 27, 29
/* 8013892C 0013476C 7C A7 2A 14 */ add r5, r7, r5
/* 80138930 00134770 7C 8C 22 14 */ add r4, r12, r4
/* 80138934 00134774 7C A6 2A 14 */ add r5, r6, r5
/* 80138938 00134778 7D C5 22 14 */ add r14, r5, r4
/* 8013893C 0013477C 40 80 01 6C */ bge lbl_80138AA8
/* 80138940 00134780 39 40 00 00 */ li r10, 0x0
/* 80138944 00134784 39 80 00 FF */ li r12, 0xff
/* 80138948 00134788 54 64 20 36 */ slwi r4, r3, 4
/* 8013894C 0013478C 39 20 00 AF */ li r9, 0xaf
/* 80138950 00134790 39 00 00 77 */ li r8, 0x77
/* 80138954 00134794 38 E0 00 57 */ li r7, 0x57
/* 80138958 00134798 38 C0 00 61 */ li r6, 0x61
/* 8013895C 0013479C 38 A0 00 81 */ li r5, 0x81
/* 80138960 001347A0 39 60 00 04 */ li r11, 0x4
/* 80138964 001347A4 99 81 00 1C */ stb r12, 0x1c(r1)
/* 80138968 001347A8 7D CE 22 14 */ add r14, r14, r4
/* 8013896C 001347AC 7C 63 00 50 */ subf r3, r3, r0
/* 80138970 001347B0 99 21 00 1D */ stb r9, 0x1d(r1)
/* 80138974 001347B4 99 01 00 20 */ stb r8, 0x20(r1)
/* 80138978 001347B8 98 E1 00 21 */ stb r7, 0x21(r1)
/* 8013897C 001347BC 99 41 00 1E */ stb r10, 0x1e(r1)
/* 80138980 001347C0 98 C1 00 1F */ stb r6, 0x1f(r1)
/* 80138984 001347C4 99 41 00 22 */ stb r10, 0x22(r1)
/* 80138988 001347C8 80 81 00 1C */ lwz r4, 0x1c(r1)
/* 8013898C 001347CC 98 A1 00 23 */ stb r5, 0x23(r1)
/* 80138990 001347D0 99 81 00 18 */ stb r12, 0x18(r1)
/* 80138994 001347D4 80 A1 00 20 */ lwz r5, 0x20(r1)
/* 80138998 001347D8 99 61 00 19 */ stb r11, 0x19(r1)
/* 8013899C 001347DC 99 81 00 1A */ stb r12, 0x1a(r1)
/* 801389A0 001347E0 99 41 00 1B */ stb r10, 0x1b(r1)
/* 801389A4 001347E4 99 41 00 24 */ stb r10, 0x24(r1)
/* 801389A8 001347E8 99 41 00 25 */ stb r10, 0x25(r1)
/* 801389AC 001347EC 99 41 00 26 */ stb r10, 0x26(r1)
/* 801389B0 001347F0 99 41 00 27 */ stb r10, 0x27(r1)
/* 801389B4 001347F4 40 80 00 F4 */ bge lbl_80138AA8
/* 801389B8 001347F8 54 60 F0 BF */ srwi. r0, r3, 2
/* 801389BC 001347FC 7C 09 03 A6 */ mtctr r0
/* 801389C0 00134800 41 82 00 B4 */ beq lbl_80138A74
.global lbl_801389C4
lbl_801389C4:
/* 801389C4 00134804 99 8E 00 00 */ stb r12, 0x0(r14)
/* 801389C8 00134808 99 6E 00 01 */ stb r11, 0x1(r14)
/* 801389CC 0013480C 99 8E 00 02 */ stb r12, 0x2(r14)
/* 801389D0 00134810 99 4E 00 03 */ stb r10, 0x3(r14)
/* 801389D4 00134814 90 8E 00 04 */ stw r4, 0x4(r14)
/* 801389D8 00134818 90 AE 00 08 */ stw r5, 0x8(r14)
/* 801389DC 0013481C 99 4E 00 0C */ stb r10, 0xc(r14)
/* 801389E0 00134820 99 4E 00 0D */ stb r10, 0xd(r14)
/* 801389E4 00134824 99 4E 00 0E */ stb r10, 0xe(r14)
/* 801389E8 00134828 99 4E 00 0F */ stb r10, 0xf(r14)
/* 801389EC 0013482C 99 8E 00 10 */ stb r12, 0x10(r14)
/* 801389F0 00134830 99 6E 00 11 */ stb r11, 0x11(r14)
/* 801389F4 00134834 99 8E 00 12 */ stb r12, 0x12(r14)
/* 801389F8 00134838 99 4E 00 13 */ stb r10, 0x13(r14)
/* 801389FC 0013483C 90 8E 00 14 */ stw r4, 0x14(r14)
/* 80138A00 00134840 90 AE 00 18 */ stw r5, 0x18(r14)
/* 80138A04 00134844 99 4E 00 1C */ stb r10, 0x1c(r14)
/* 80138A08 00134848 99 4E 00 1D */ stb r10, 0x1d(r14)
/* 80138A0C 0013484C 99 4E 00 1E */ stb r10, 0x1e(r14)
/* 80138A10 00134850 99 4E 00 1F */ stb r10, 0x1f(r14)
/* 80138A14 00134854 99 8E 00 20 */ stb r12, 0x20(r14)
/* 80138A18 00134858 99 6E 00 21 */ stb r11, 0x21(r14)
/* 80138A1C 0013485C 99 8E 00 22 */ stb r12, 0x22(r14)
/* 80138A20 00134860 99 4E 00 23 */ stb r10, 0x23(r14)
/* 80138A24 00134864 90 8E 00 24 */ stw r4, 0x24(r14)
/* 80138A28 00134868 90 AE 00 28 */ stw r5, 0x28(r14)
/* 80138A2C 0013486C 99 4E 00 2C */ stb r10, 0x2c(r14)
/* 80138A30 00134870 99 4E 00 2D */ stb r10, 0x2d(r14)
/* 80138A34 00134874 99 4E 00 2E */ stb r10, 0x2e(r14)
/* 80138A38 00134878 99 4E 00 2F */ stb r10, 0x2f(r14)
/* 80138A3C 0013487C 99 8E 00 30 */ stb r12, 0x30(r14)
/* 80138A40 00134880 99 6E 00 31 */ stb r11, 0x31(r14)
/* 80138A44 00134884 99 8E 00 32 */ stb r12, 0x32(r14)
/* 80138A48 00134888 99 4E 00 33 */ stb r10, 0x33(r14)
/* 80138A4C 0013488C 90 8E 00 34 */ stw r4, 0x34(r14)
/* 80138A50 00134890 90 AE 00 38 */ stw r5, 0x38(r14)
/* 80138A54 00134894 99 4E 00 3C */ stb r10, 0x3c(r14)
/* 80138A58 00134898 99 4E 00 3D */ stb r10, 0x3d(r14)
/* 80138A5C 0013489C 99 4E 00 3E */ stb r10, 0x3e(r14)
/* 80138A60 001348A0 99 4E 00 3F */ stb r10, 0x3f(r14)
/* 80138A64 001348A4 39 CE 00 40 */ addi r14, r14, 0x40
/* 80138A68 001348A8 42 00 FF 5C */ bdnz lbl_801389C4
/* 80138A6C 001348AC 70 63 00 03 */ andi. r3, r3, 0x3
/* 80138A70 001348B0 41 82 00 38 */ beq lbl_80138AA8
.global lbl_80138A74
lbl_80138A74:
/* 80138A74 001348B4 7C 69 03 A6 */ mtctr r3
.global lbl_80138A78
lbl_80138A78:
/* 80138A78 001348B8 99 8E 00 00 */ stb r12, 0x0(r14)
/* 80138A7C 001348BC 99 6E 00 01 */ stb r11, 0x1(r14)
/* 80138A80 001348C0 99 8E 00 02 */ stb r12, 0x2(r14)
/* 80138A84 001348C4 99 4E 00 03 */ stb r10, 0x3(r14)
/* 80138A88 001348C8 90 8E 00 04 */ stw r4, 0x4(r14)
/* 80138A8C 001348CC 90 AE 00 08 */ stw r5, 0x8(r14)
/* 80138A90 001348D0 99 4E 00 0C */ stb r10, 0xc(r14)
/* 80138A94 001348D4 99 4E 00 0D */ stb r10, 0xd(r14)
/* 80138A98 001348D8 99 4E 00 0E */ stb r10, 0xe(r14)
/* 80138A9C 001348DC 99 4E 00 0F */ stb r10, 0xf(r14)
/* 80138AA0 001348E0 39 CE 00 10 */ addi r14, r14, 0x10
/* 80138AA4 001348E4 42 00 FF D4 */ bdnz lbl_80138A78
.global lbl_80138AA8
lbl_80138AA8:
/* 80138AA8 001348E8 81 4F 00 4C */ lwz r10, 0x4c(r15)
/* 80138AAC 001348EC 57 C3 06 3F */ clrlwi. r3, r30, 24
/* 80138AB0 001348F0 80 EF 00 50 */ lwz r7, 0x50(r15)
/* 80138AB4 001348F4 53 C7 4C AC */ rlwimi r7, r30, 9, 18, 22
/* 80138AB8 001348F8 55 44 77 BE */ extrwi r4, r10, 2, 12
/* 80138ABC 001348FC 55 40 47 3E */ extrwi r0, r10, 4, 4
/* 80138AC0 00134900 7C 04 02 14 */ add r0, r4, r0
/* 80138AC4 00134904 90 EF 00 50 */ stw r7, 0x50(r15)
/* 80138AC8 00134908 1D 20 00 14 */ mulli r9, r0, 0x14
/* 80138ACC 0013490C 55 45 DF 7A */ rlwinm r5, r10, 27, 29, 29
/* 80138AD0 00134910 55 40 A7 7A */ rlwinm r0, r10, 20, 29, 29
/* 80138AD4 00134914 81 6F 00 58 */ lwz r11, 0x58(r15)
/* 80138AD8 00134918 55 46 D7 7A */ rlwinm r6, r10, 26, 29, 29
/* 80138ADC 0013491C 7C 05 02 14 */ add r0, r5, r0
/* 80138AE0 00134920 55 44 E7 7A */ rlwinm r4, r10, 28, 29, 29
/* 80138AE4 00134924 7C A9 32 14 */ add r5, r9, r6
/* 80138AE8 00134928 55 48 4D F4 */ rlwinm r8, r10, 9, 23, 26
/* 80138AEC 0013492C 55 47 76 BA */ rlwinm r7, r10, 14, 26, 29
/* 80138AF0 00134930 7C E8 3A 14 */ add r7, r8, r7
/* 80138AF4 00134934 7C 84 02 14 */ add r4, r4, r0
/* 80138AF8 00134938 7C 07 2A 14 */ add r0, r7, r5
/* 80138AFC 0013493C 55 46 EF 7A */ rlwinm r6, r10, 29, 29, 29
/* 80138B00 00134940 55 45 9E FA */ rlwinm r5, r10, 19, 27, 29
/* 80138B04 00134944 7C 86 22 14 */ add r4, r6, r4
/* 80138B08 00134948 7C 0B 02 14 */ add r0, r11, r0
/* 80138B0C 0013494C 7C 85 22 14 */ add r4, r5, r4
/* 80138B10 00134950 7C B0 B2 14 */ add r5, r16, r22
/* 80138B14 00134954 7C 84 02 14 */ add r4, r4, r0
/* 80138B18 00134958 40 81 01 24 */ ble lbl_80138C3C
/* 80138B1C 0013495C 54 60 F8 7F */ srwi. r0, r3, 1
/* 80138B20 00134960 7C 09 03 A6 */ mtctr r0
/* 80138B24 00134964 41 82 00 B8 */ beq lbl_80138BDC
.global lbl_80138B28
lbl_80138B28:
/* 80138B28 00134968 88 05 00 00 */ lbz r0, 0x0(r5)
/* 80138B2C 0013496C 98 04 00 00 */ stb r0, 0x0(r4)
/* 80138B30 00134970 88 05 00 01 */ lbz r0, 0x1(r5)
/* 80138B34 00134974 98 04 00 01 */ stb r0, 0x1(r4)
/* 80138B38 00134978 88 05 00 02 */ lbz r0, 0x2(r5)
/* 80138B3C 0013497C 98 04 00 02 */ stb r0, 0x2(r4)
/* 80138B40 00134980 88 05 00 03 */ lbz r0, 0x3(r5)
/* 80138B44 00134984 98 04 00 03 */ stb r0, 0x3(r4)
/* 80138B48 00134988 80 05 00 04 */ lwz r0, 0x4(r5)
/* 80138B4C 0013498C 90 04 00 04 */ stw r0, 0x4(r4)
/* 80138B50 00134990 80 05 00 08 */ lwz r0, 0x8(r5)
/* 80138B54 00134994 90 04 00 08 */ stw r0, 0x8(r4)
/* 80138B58 00134998 88 05 00 0C */ lbz r0, 0xc(r5)
/* 80138B5C 0013499C 98 04 00 0C */ stb r0, 0xc(r4)
/* 80138B60 001349A0 88 05 00 0D */ lbz r0, 0xd(r5)
/* 80138B64 001349A4 98 04 00 0D */ stb r0, 0xd(r4)
/* 80138B68 001349A8 88 05 00 0E */ lbz r0, 0xe(r5)
/* 80138B6C 001349AC 98 04 00 0E */ stb r0, 0xe(r4)
/* 80138B70 001349B0 88 05 00 0F */ lbz r0, 0xf(r5)
/* 80138B74 001349B4 98 04 00 0F */ stb r0, 0xf(r4)
/* 80138B78 001349B8 88 05 00 10 */ lbz r0, 0x10(r5)
/* 80138B7C 001349BC 98 04 00 10 */ stb r0, 0x10(r4)
/* 80138B80 001349C0 88 05 00 11 */ lbz r0, 0x11(r5)
/* 80138B84 001349C4 98 04 00 11 */ stb r0, 0x11(r4)
/* 80138B88 001349C8 88 05 00 12 */ lbz r0, 0x12(r5)
/* 80138B8C 001349CC 98 04 00 12 */ stb r0, 0x12(r4)
/* 80138B90 001349D0 88 05 00 13 */ lbz r0, 0x13(r5)
/* 80138B94 001349D4 98 04 00 13 */ stb r0, 0x13(r4)
/* 80138B98 001349D8 80 05 00 14 */ lwz r0, 0x14(r5)
/* 80138B9C 001349DC 90 04 00 14 */ stw r0, 0x14(r4)
/* 80138BA0 001349E0 80 05 00 18 */ lwz r0, 0x18(r5)
/* 80138BA4 001349E4 90 04 00 18 */ stw r0, 0x18(r4)
/* 80138BA8 001349E8 88 05 00 1C */ lbz r0, 0x1c(r5)
/* 80138BAC 001349EC 98 04 00 1C */ stb r0, 0x1c(r4)
/* 80138BB0 001349F0 88 05 00 1D */ lbz r0, 0x1d(r5)
/* 80138BB4 001349F4 98 04 00 1D */ stb r0, 0x1d(r4)
/* 80138BB8 001349F8 88 05 00 1E */ lbz r0, 0x1e(r5)
/* 80138BBC 001349FC 98 04 00 1E */ stb r0, 0x1e(r4)
/* 80138BC0 00134A00 88 05 00 1F */ lbz r0, 0x1f(r5)
/* 80138BC4 00134A04 38 A5 00 20 */ addi r5, r5, 0x20
/* 80138BC8 00134A08 98 04 00 1F */ stb r0, 0x1f(r4)
/* 80138BCC 00134A0C 38 84 00 20 */ addi r4, r4, 0x20
/* 80138BD0 00134A10 42 00 FF 58 */ bdnz lbl_80138B28
/* 80138BD4 00134A14 70 63 00 01 */ andi. r3, r3, 0x1
/* 80138BD8 00134A18 41 82 00 64 */ beq lbl_80138C3C
.global lbl_80138BDC
lbl_80138BDC:
/* 80138BDC 00134A1C 7C 69 03 A6 */ mtctr r3
.global lbl_80138BE0
lbl_80138BE0:
/* 80138BE0 00134A20 88 05 00 00 */ lbz r0, 0x0(r5)
/* 80138BE4 00134A24 98 04 00 00 */ stb r0, 0x0(r4)
/* 80138BE8 00134A28 88 05 00 01 */ lbz r0, 0x1(r5)
/* 80138BEC 00134A2C 98 04 00 01 */ stb r0, 0x1(r4)
/* 80138BF0 00134A30 88 05 00 02 */ lbz r0, 0x2(r5)
/* 80138BF4 00134A34 98 04 00 02 */ stb r0, 0x2(r4)
/* 80138BF8 00134A38 88 05 00 03 */ lbz r0, 0x3(r5)
/* 80138BFC 00134A3C 98 04 00 03 */ stb r0, 0x3(r4)
/* 80138C00 00134A40 80 05 00 04 */ lwz r0, 0x4(r5)
/* 80138C04 00134A44 90 04 00 04 */ stw r0, 0x4(r4)
/* 80138C08 00134A48 80 05 00 08 */ lwz r0, 0x8(r5)
/* 80138C0C 00134A4C 90 04 00 08 */ stw r0, 0x8(r4)
/* 80138C10 00134A50 88 05 00 0C */ lbz r0, 0xc(r5)
/* 80138C14 00134A54 98 04 00 0C */ stb r0, 0xc(r4)
/* 80138C18 00134A58 88 05 00 0D */ lbz r0, 0xd(r5)
/* 80138C1C 00134A5C 98 04 00 0D */ stb r0, 0xd(r4)
/* 80138C20 00134A60 88 05 00 0E */ lbz r0, 0xe(r5)
/* 80138C24 00134A64 98 04 00 0E */ stb r0, 0xe(r4)
/* 80138C28 00134A68 88 05 00 0F */ lbz r0, 0xf(r5)
/* 80138C2C 00134A6C 38 A5 00 10 */ addi r5, r5, 0x10
/* 80138C30 00134A70 98 04 00 0F */ stb r0, 0xf(r4)
/* 80138C34 00134A74 38 84 00 10 */ addi r4, r4, 0x10
/* 80138C38 00134A78 42 00 FF A8 */ bdnz lbl_80138BE0
.global lbl_80138C3C
lbl_80138C3C:
/* 80138C3C 00134A7C 88 01 00 2B */ lbz r0, 0x2b(r1)
/* 80138C40 00134A80 80 70 00 3C */ lwz r3, 0x3c(r16)
/* 80138C44 00134A84 2C 00 00 00 */ cmpwi r0, 0x0
/* 80138C48 00134A88 54 60 95 F6 */ rlwinm r0, r3, 18, 23, 27
/* 80138C4C 00134A8C 7E D6 02 14 */ add r22, r22, r0
/* 80138C50 00134A90 41 82 00 64 */ beq lbl_80138CB4
/* 80138C54 00134A94 80 CF 00 4C */ lwz r6, 0x4c(r15)
/* 80138C58 00134A98 7D 30 B2 14 */ add r9, r16, r22
/* 80138C5C 00134A9C 81 0F 00 58 */ lwz r8, 0x58(r15)
/* 80138C60 00134AA0 54 C3 A7 7A */ rlwinm r3, r6, 20, 29, 29
/* 80138C64 00134AA4 54 C0 DF 7A */ rlwinm r0, r6, 27, 29, 29
/* 80138C68 00134AA8 7C 63 02 14 */ add r3, r3, r0
/* 80138C6C 00134AAC 54 C5 D7 7A */ rlwinm r5, r6, 26, 29, 29
/* 80138C70 00134AB0 7C 65 1A 14 */ add r3, r5, r3
/* 80138C74 00134AB4 54 C4 47 3E */ extrwi r4, r6, 4, 4
/* 80138C78 00134AB8 54 C7 76 BA */ rlwinm r7, r6, 14, 26, 29
/* 80138C7C 00134ABC 54 C6 4D F4 */ rlwinm r6, r6, 9, 23, 26
/* 80138C80 00134AC0 1C A4 00 14 */ mulli r5, r4, 0x14
/* 80138C84 00134AC4 7C 10 B0 AE */ lbzx r0, r16, r22
/* 80138C88 00134AC8 7C 87 32 14 */ add r4, r7, r6
/* 80138C8C 00134ACC 7C 68 1A 14 */ add r3, r8, r3
/* 80138C90 00134AD0 7C 85 22 14 */ add r4, r5, r4
/* 80138C94 00134AD4 3A D6 00 04 */ addi r22, r22, 0x4
/* 80138C98 00134AD8 7C 03 21 EE */ stbux r0, r3, r4
/* 80138C9C 00134ADC 88 09 00 01 */ lbz r0, 0x1(r9)
/* 80138CA0 00134AE0 98 03 00 01 */ stb r0, 0x1(r3)
/* 80138CA4 00134AE4 88 09 00 02 */ lbz r0, 0x2(r9)
/* 80138CA8 00134AE8 98 03 00 02 */ stb r0, 0x2(r3)
/* 80138CAC 00134AEC 88 09 00 03 */ lbz r0, 0x3(r9)
/* 80138CB0 00134AF0 98 03 00 03 */ stb r0, 0x3(r3)
.global lbl_80138CB4
lbl_80138CB4:
/* 80138CB4 00134AF4 88 01 00 2A */ lbz r0, 0x2a(r1)
/* 80138CB8 00134AF8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80138CBC 00134AFC 41 82 00 68 */ beq lbl_80138D24
/* 80138CC0 00134B00 80 8F 00 4C */ lwz r4, 0x4c(r15)
/* 80138CC4 00134B04 7D 50 B2 14 */ add r10, r16, r22
/* 80138CC8 00134B08 81 2F 00 58 */ lwz r9, 0x58(r15)
/* 80138CCC 00134B0C 54 85 47 3E */ extrwi r5, r4, 4, 4
/* 80138CD0 00134B10 54 83 E7 7A */ rlwinm r3, r4, 28, 29, 29
/* 80138CD4 00134B14 1C A5 00 14 */ mulli r5, r5, 0x14
/* 80138CD8 00134B18 54 80 D7 7A */ rlwinm r0, r4, 26, 29, 29
/* 80138CDC 00134B1C 54 88 A7 7A */ rlwinm r8, r4, 20, 29, 29
/* 80138CE0 00134B20 54 87 DF 7A */ rlwinm r7, r4, 27, 29, 29
/* 80138CE4 00134B24 54 86 76 BA */ rlwinm r6, r4, 14, 26, 29
/* 80138CE8 00134B28 54 84 4D F4 */ rlwinm r4, r4, 9, 23, 26
/* 80138CEC 00134B2C 7C 63 02 14 */ add r3, r3, r0
/* 80138CF0 00134B30 7C E8 3A 14 */ add r7, r8, r7
/* 80138CF4 00134B34 7C 86 22 14 */ add r4, r6, r4
/* 80138CF8 00134B38 7C 10 B0 AE */ lbzx r0, r16, r22
/* 80138CFC 00134B3C 7C 67 1A 14 */ add r3, r7, r3
/* 80138D00 00134B40 7C 85 22 14 */ add r4, r5, r4
/* 80138D04 00134B44 7C 69 1A 14 */ add r3, r9, r3
/* 80138D08 00134B48 7C 03 21 EE */ stbux r0, r3, r4
/* 80138D0C 00134B4C 88 0A 00 01 */ lbz r0, 0x1(r10)
/* 80138D10 00134B50 98 03 00 01 */ stb r0, 0x1(r3)
/* 80138D14 00134B54 88 0A 00 02 */ lbz r0, 0x2(r10)
/* 80138D18 00134B58 98 03 00 02 */ stb r0, 0x2(r3)
/* 80138D1C 00134B5C 88 0A 00 03 */ lbz r0, 0x3(r10)
/* 80138D20 00134B60 98 03 00 03 */ stb r0, 0x3(r3)
.global lbl_80138D24
lbl_80138D24:
/* 80138D24 00134B64 39 61 00 80 */ addi r11, r1, 0x80
/* 80138D28 00134B68 7D E3 7B 78 */ mr r3, r15
2022-10-16 16:31:36 +00:00
/* 80138D2C 00134B6C 4B EC E6 29 */ bl __restore_gpr
2022-10-16 16:05:58 +00:00
/* 80138D30 00134B70 80 01 00 84 */ lwz r0, 0x84(r1)
/* 80138D34 00134B74 7C 08 03 A6 */ mtlr r0
/* 80138D38 00134B78 38 21 00 80 */ addi r1, r1, 0x80
/* 80138D3C 00134B7C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global __dt__Q36nw4hbm3lyt8MaterialFv
__dt__Q36nw4hbm3lyt8MaterialFv:
2022-10-16 16:05:58 +00:00
/* 80138D40 00134B80 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80138D44 00134B84 7C 08 02 A6 */ mflr r0
/* 80138D48 00134B88 2C 03 00 00 */ cmpwi r3, 0x0
/* 80138D4C 00134B8C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80138D50 00134B90 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80138D54 00134B94 7C 9F 23 78 */ mr r31, r4
/* 80138D58 00134B98 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80138D5C 00134B9C 7C 7E 1B 78 */ mr r30, r3
/* 80138D60 00134BA0 41 82 00 74 */ beq lbl_80138DD4
2022-10-16 16:31:36 +00:00
/* 80138D64 00134BA4 3D 80 80 44 */ lis r12, __vt__Q36nw4hbm3lyt8Material@ha
/* 80138D68 00134BA8 39 8C 40 50 */ addi r12, r12, __vt__Q36nw4hbm3lyt8Material@l
2022-10-16 16:05:58 +00:00
/* 80138D6C 00134BAC 91 83 00 00 */ stw r12, 0x0(r3)
/* 80138D70 00134BB0 81 8C 00 18 */ lwz r12, 0x18(r12)
/* 80138D74 00134BB4 7D 89 03 A6 */ mtctr r12
/* 80138D78 00134BB8 4E 80 04 21 */ bctrl
/* 80138D7C 00134BBC 80 9E 00 58 */ lwz r4, 0x58(r30)
/* 80138D80 00134BC0 2C 04 00 00 */ cmpwi r4, 0x0
/* 80138D84 00134BC4 41 82 00 18 */ beq lbl_80138D9C
2022-10-16 16:31:36 +00:00
/* 80138D88 00134BC8 3C 60 80 54 */ lis r3, mspAllocator__Q36nw4hbm3lyt6Layout@ha
/* 80138D8C 00134BCC 80 63 37 70 */ lwz r3, mspAllocator__Q36nw4hbm3lyt6Layout@l(r3)
/* 80138D90 00134BD0 4B F6 AA 71 */ bl MEMFreeToAllocator
2022-10-16 16:05:58 +00:00
/* 80138D94 00134BD4 38 00 00 00 */ li r0, 0x0
/* 80138D98 00134BD8 90 1E 00 58 */ stw r0, 0x58(r30)
.global lbl_80138D9C
lbl_80138D9C:
2022-10-16 16:31:36 +00:00
/* 80138D9C 00134BDC 3C 80 80 13 */ lis r4, __dt__Q36nw4hbm2ut5ColorFv@ha
2022-10-16 16:05:58 +00:00
/* 80138DA0 00134BE0 38 7E 00 3C */ addi r3, r30, 0x3c
2022-10-16 16:31:36 +00:00
/* 80138DA4 00134BE4 38 84 5C 40 */ addi r4, r4, __dt__Q36nw4hbm2ut5ColorFv@l
2022-10-16 16:05:58 +00:00
/* 80138DA8 00134BE8 38 A0 00 04 */ li r5, 0x4
/* 80138DAC 00134BEC 38 C0 00 04 */ li r6, 0x4
2022-10-16 16:31:36 +00:00
/* 80138DB0 00134BF0 4B EC E3 6D */ bl __destroy_arr
2022-10-16 16:05:58 +00:00
/* 80138DB4 00134BF4 34 7E 00 18 */ addic. r3, r30, 0x18
/* 80138DB8 00134BF8 41 82 00 0C */ beq lbl_80138DC4
/* 80138DBC 00134BFC 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 80138DC0 00134C00 4B FE 6E C1 */ bl __dt__Q44nw4r2ut6detail12LinkListImplFv
2022-10-16 16:05:58 +00:00
.global lbl_80138DC4
lbl_80138DC4:
/* 80138DC4 00134C04 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80138DC8 00134C08 40 81 00 0C */ ble lbl_80138DD4
/* 80138DCC 00134C0C 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 80138DD0 00134C10 48 08 69 45 */ bl __dl__FPv
2022-10-16 16:05:58 +00:00
.global lbl_80138DD4
lbl_80138DD4:
/* 80138DD4 00134C14 7F C3 F3 78 */ mr r3, r30
/* 80138DD8 00134C18 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80138DDC 00134C1C 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80138DE0 00134C20 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80138DE4 00134C24 7C 08 03 A6 */ mtlr r0
/* 80138DE8 00134C28 38 21 00 10 */ addi r1, r1, 0x10
/* 80138DEC 00134C2C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global ReserveGXMem__Q36nw4hbm3lyt8MaterialFUcUcUcUcbUcUcbbbb
ReserveGXMem__Q36nw4hbm3lyt8MaterialFUcUcUcUcbUcUcbbbb:
2022-10-16 16:05:58 +00:00
/* 80138DF0 00134C30 94 21 FF A0 */ stwu r1, -0x60(r1)
/* 80138DF4 00134C34 7C 08 02 A6 */ mflr r0
/* 80138DF8 00134C38 90 01 00 64 */ stw r0, 0x64(r1)
/* 80138DFC 00134C3C 39 61 00 60 */ addi r11, r1, 0x60
/* 80138E00 00134C40 4B EC E5 21 */ bl lbl_80007320
/* 80138E04 00134C44 80 03 00 4C */ lwz r0, 0x4c(r3)
/* 80138E08 00134C48 7C 74 1B 78 */ mr r20, r3
/* 80138E0C 00134C4C 8B 81 00 6B */ lbz r28, 0x6b(r1)
/* 80138E10 00134C50 7C 95 23 78 */ mr r21, r4
/* 80138E14 00134C54 54 0B 27 3E */ srwi r11, r0, 28
/* 80138E18 00134C58 8B A1 00 6F */ lbz r29, 0x6f(r1)
/* 80138E1C 00134C5C 7C 0B 20 40 */ cmplw r11, r4
/* 80138E20 00134C60 8B C1 00 73 */ lbz r30, 0x73(r1)
/* 80138E24 00134C64 8B E1 00 77 */ lbz r31, 0x77(r1)
/* 80138E28 00134C68 7C B6 2B 78 */ mr r22, r5
/* 80138E2C 00134C6C 7C D7 33 78 */ mr r23, r6
/* 80138E30 00134C70 7C F8 3B 78 */ mr r24, r7
/* 80138E34 00134C74 7D 19 43 78 */ mr r25, r8
/* 80138E38 00134C78 7D 3A 4B 78 */ mr r26, r9
/* 80138E3C 00134C7C 7D 5B 53 78 */ mr r27, r10
/* 80138E40 00134C80 41 80 00 7C */ blt lbl_80138EBC
/* 80138E44 00134C84 54 04 47 3E */ extrwi r4, r0, 4, 4
/* 80138E48 00134C88 7C 04 28 40 */ cmplw r4, r5
/* 80138E4C 00134C8C 41 80 00 70 */ blt lbl_80138EBC
/* 80138E50 00134C90 54 04 67 3E */ extrwi r4, r0, 4, 8
/* 80138E54 00134C94 7C 04 30 40 */ cmplw r4, r6
/* 80138E58 00134C98 41 80 00 64 */ blt lbl_80138EBC
/* 80138E5C 00134C9C 54 04 BE FE */ extrwi r4, r0, 5, 18
/* 80138E60 00134CA0 7C 04 38 40 */ cmplw r4, r7
/* 80138E64 00134CA4 41 80 00 58 */ blt lbl_80138EBC
/* 80138E68 00134CA8 54 04 97 FE */ extrwi r4, r0, 1, 17
/* 80138E6C 00134CAC 7C 04 40 40 */ cmplw r4, r8
/* 80138E70 00134CB0 41 80 00 4C */ blt lbl_80138EBC
/* 80138E74 00134CB4 54 04 8F 7E */ extrwi r4, r0, 3, 14
/* 80138E78 00134CB8 7C 04 48 40 */ cmplw r4, r9
/* 80138E7C 00134CBC 41 80 00 40 */ blt lbl_80138EBC
/* 80138E80 00134CC0 54 04 77 BE */ extrwi r4, r0, 2, 12
/* 80138E84 00134CC4 7C 04 50 40 */ cmplw r4, r10
/* 80138E88 00134CC8 41 80 00 34 */ blt lbl_80138EBC
/* 80138E8C 00134CCC 54 04 C7 FE */ extrwi r4, r0, 1, 23
/* 80138E90 00134CD0 7C 04 E0 40 */ cmplw r4, r28
/* 80138E94 00134CD4 41 80 00 28 */ blt lbl_80138EBC
/* 80138E98 00134CD8 54 04 CF FE */ extrwi r4, r0, 1, 24
/* 80138E9C 00134CDC 7C 04 E8 40 */ cmplw r4, r29
/* 80138EA0 00134CE0 41 80 00 1C */ blt lbl_80138EBC
/* 80138EA4 00134CE4 54 04 D7 FE */ extrwi r4, r0, 1, 25
/* 80138EA8 00134CE8 7C 04 F0 40 */ cmplw r4, r30
/* 80138EAC 00134CEC 41 80 00 10 */ blt lbl_80138EBC
/* 80138EB0 00134CF0 54 00 DF FE */ extrwi r0, r0, 1, 26
/* 80138EB4 00134CF4 7C 00 F8 40 */ cmplw r0, r31
/* 80138EB8 00134CF8 40 80 05 B8 */ bge lbl_80139470
.global lbl_80138EBC
lbl_80138EBC:
/* 80138EBC 00134CFC 80 83 00 58 */ lwz r4, 0x58(r3)
/* 80138EC0 00134D00 2C 04 00 00 */ cmpwi r4, 0x0
/* 80138EC4 00134D04 41 82 00 30 */ beq lbl_80138EF4
2022-10-16 16:31:36 +00:00
/* 80138EC8 00134D08 3C 60 80 54 */ lis r3, mspAllocator__Q36nw4hbm3lyt6Layout@ha
/* 80138ECC 00134D0C 80 63 37 70 */ lwz r3, mspAllocator__Q36nw4hbm3lyt6Layout@l(r3)
/* 80138ED0 00134D10 4B F6 A9 31 */ bl MEMFreeToAllocator
2022-10-16 16:05:58 +00:00
/* 80138ED4 00134D14 80 74 00 4C */ lwz r3, 0x4c(r20)
/* 80138ED8 00134D18 38 80 00 00 */ li r4, 0x0
/* 80138EDC 00134D1C 80 14 00 50 */ lwz r0, 0x50(r20)
/* 80138EE0 00134D20 54 63 06 FE */ clrlwi r3, r3, 27
/* 80138EE4 00134D24 90 94 00 58 */ stw r4, 0x58(r20)
/* 80138EE8 00134D28 54 00 06 FE */ clrlwi r0, r0, 27
/* 80138EEC 00134D2C 90 74 00 4C */ stw r3, 0x4c(r20)
/* 80138EF0 00134D30 90 14 00 50 */ stw r0, 0x50(r20)
.global lbl_80138EF4
lbl_80138EF4:
/* 80138EF4 00134D34 7C BB B2 14 */ add r5, r27, r22
/* 80138EF8 00134D38 7C 19 E2 14 */ add r0, r25, r28
/* 80138EFC 00134D3C 1C C5 00 14 */ mulli r6, r5, 0x14
/* 80138F00 00134D40 7C 9F EA 14 */ add r4, r31, r29
/* 80138F04 00134D44 7C 7A BA 14 */ add r3, r26, r23
/* 80138F08 00134D48 7C 1E 02 14 */ add r0, r30, r0
/* 80138F0C 00134D4C 7C 64 1A 14 */ add r3, r4, r3
2022-10-16 16:31:36 +00:00
/* 80138F10 00134D50 3C E0 80 54 */ lis r7, mspAllocator__Q36nw4hbm3lyt6Layout@ha
2022-10-16 16:05:58 +00:00
/* 80138F14 00134D54 7C 03 02 14 */ add r0, r3, r0
/* 80138F18 00134D58 56 A5 2C F4 */ rlwinm r5, r21, 5, 19, 26
/* 80138F1C 00134D5C 54 00 10 3A */ slwi r0, r0, 2
/* 80138F20 00134D60 57 04 25 36 */ rlwinm r4, r24, 4, 20, 27
/* 80138F24 00134D64 7C 06 02 14 */ add r0, r6, r0
2022-10-16 16:31:36 +00:00
/* 80138F28 00134D68 80 67 37 70 */ lwz r3, mspAllocator__Q36nw4hbm3lyt6Layout@l(r7)
2022-10-16 16:05:58 +00:00
/* 80138F2C 00134D6C 7C 05 02 14 */ add r0, r5, r0
/* 80138F30 00134D70 7C 84 02 14 */ add r4, r4, r0
2022-10-16 16:31:36 +00:00
/* 80138F34 00134D74 4B F6 A8 BD */ bl MEMAllocFromAllocator
2022-10-16 16:05:58 +00:00
/* 80138F38 00134D78 2C 03 00 00 */ cmpwi r3, 0x0
/* 80138F3C 00134D7C 90 74 00 58 */ stw r3, 0x58(r20)
/* 80138F40 00134D80 41 82 05 30 */ beq lbl_80139470
/* 80138F44 00134D84 80 14 00 4C */ lwz r0, 0x4c(r20)
/* 80138F48 00134D88 52 A0 E0 06 */ rlwimi r0, r21, 28, 0, 3
/* 80138F4C 00134D8C 52 C0 C1 0E */ rlwimi r0, r22, 24, 4, 7
/* 80138F50 00134D90 80 94 00 50 */ lwz r4, 0x50(r20)
/* 80138F54 00134D94 52 E0 A2 16 */ rlwimi r0, r23, 20, 8, 11
/* 80138F58 00134D98 38 E0 00 00 */ li r7, 0x0
/* 80138F5C 00134D9C 53 60 93 1A */ rlwimi r0, r27, 18, 12, 13
/* 80138F60 00134DA0 53 40 7B A0 */ rlwimi r0, r26, 15, 14, 16
/* 80138F64 00134DA4 53 20 74 62 */ rlwimi r0, r25, 14, 17, 17
/* 80138F68 00134DA8 53 00 4C AC */ rlwimi r0, r24, 9, 18, 22
/* 80138F6C 00134DAC 53 80 45 EE */ rlwimi r0, r28, 8, 23, 23
/* 80138F70 00134DB0 53 A0 3E 30 */ rlwimi r0, r29, 7, 24, 24
/* 80138F74 00134DB4 53 C0 36 72 */ rlwimi r0, r30, 6, 25, 25
/* 80138F78 00134DB8 53 E0 2E B4 */ rlwimi r0, r31, 5, 26, 26
/* 80138F7C 00134DBC 90 14 00 4C */ stw r0, 0x4c(r20)
/* 80138F80 00134DC0 50 04 01 0E */ rlwimi r4, r0, 0, 4, 7
/* 80138F84 00134DC4 54 00 4D F4 */ rlwinm r0, r0, 9, 23, 26
/* 80138F88 00134DC8 90 94 00 50 */ stw r4, 0x50(r20)
/* 80138F8C 00134DCC 54 86 47 3F */ extrwi. r6, r4, 4, 4
/* 80138F90 00134DD0 7D 03 02 14 */ add r8, r3, r0
/* 80138F94 00134DD4 41 82 01 48 */ beq lbl_801390DC
/* 80138F98 00134DD8 28 06 00 08 */ cmplwi r6, 0x8
/* 80138F9C 00134DDC 38 A6 FF F8 */ addi r5, r6, -0x8
/* 80138FA0 00134DE0 40 81 00 E8 */ ble lbl_80139088
/* 80138FA4 00134DE4 38 05 00 07 */ addi r0, r5, 0x7
2022-10-16 16:31:36 +00:00
/* 80138FA8 00134DE8 3C 80 80 41 */ lis r4, "@9522_8040E218"@ha
/* 80138FAC 00134DEC 3C 60 80 41 */ lis r3, "@9523_8040E21C"@ha
2022-10-16 16:05:58 +00:00
/* 80138FB0 00134DF0 7D 09 43 78 */ mr r9, r8
/* 80138FB4 00134DF4 54 00 E8 FE */ srwi r0, r0, 3
2022-10-16 16:31:36 +00:00
/* 80138FB8 00134DF8 C0 24 E2 18 */ lfs f1, "@9522_8040E218"@l(r4)
/* 80138FBC 00134DFC C0 03 E2 1C */ lfs f0, "@9523_8040E21C"@l(r3)
2022-10-16 16:05:58 +00:00
/* 80138FC0 00134E00 7C 09 03 A6 */ mtctr r0
/* 80138FC4 00134E04 28 05 00 00 */ cmplwi r5, 0x0
/* 80138FC8 00134E08 40 81 00 C0 */ ble lbl_80139088
.global lbl_80138FCC
lbl_80138FCC:
/* 80138FCC 00134E0C D0 29 00 00 */ stfs f1, 0x0(r9)
/* 80138FD0 00134E10 38 E7 00 08 */ addi r7, r7, 0x8
/* 80138FD4 00134E14 D0 29 00 04 */ stfs f1, 0x4(r9)
/* 80138FD8 00134E18 D0 29 00 08 */ stfs f1, 0x8(r9)
/* 80138FDC 00134E1C D0 09 00 0C */ stfs f0, 0xc(r9)
/* 80138FE0 00134E20 D0 09 00 10 */ stfs f0, 0x10(r9)
/* 80138FE4 00134E24 D0 29 00 14 */ stfs f1, 0x14(r9)
/* 80138FE8 00134E28 D0 29 00 18 */ stfs f1, 0x18(r9)
/* 80138FEC 00134E2C D0 29 00 1C */ stfs f1, 0x1c(r9)
/* 80138FF0 00134E30 D0 09 00 20 */ stfs f0, 0x20(r9)
/* 80138FF4 00134E34 D0 09 00 24 */ stfs f0, 0x24(r9)
/* 80138FF8 00134E38 D0 29 00 28 */ stfs f1, 0x28(r9)
/* 80138FFC 00134E3C D0 29 00 2C */ stfs f1, 0x2c(r9)
/* 80139000 00134E40 D0 29 00 30 */ stfs f1, 0x30(r9)
/* 80139004 00134E44 D0 09 00 34 */ stfs f0, 0x34(r9)
/* 80139008 00134E48 D0 09 00 38 */ stfs f0, 0x38(r9)
/* 8013900C 00134E4C D0 29 00 3C */ stfs f1, 0x3c(r9)
/* 80139010 00134E50 D0 29 00 40 */ stfs f1, 0x40(r9)
/* 80139014 00134E54 D0 29 00 44 */ stfs f1, 0x44(r9)
/* 80139018 00134E58 D0 09 00 48 */ stfs f0, 0x48(r9)
/* 8013901C 00134E5C D0 09 00 4C */ stfs f0, 0x4c(r9)
/* 80139020 00134E60 D0 29 00 50 */ stfs f1, 0x50(r9)
/* 80139024 00134E64 D0 29 00 54 */ stfs f1, 0x54(r9)
/* 80139028 00134E68 D0 29 00 58 */ stfs f1, 0x58(r9)
/* 8013902C 00134E6C D0 09 00 5C */ stfs f0, 0x5c(r9)
/* 80139030 00134E70 D0 09 00 60 */ stfs f0, 0x60(r9)
/* 80139034 00134E74 D0 29 00 64 */ stfs f1, 0x64(r9)
/* 80139038 00134E78 D0 29 00 68 */ stfs f1, 0x68(r9)
/* 8013903C 00134E7C D0 29 00 6C */ stfs f1, 0x6c(r9)
/* 80139040 00134E80 D0 09 00 70 */ stfs f0, 0x70(r9)
/* 80139044 00134E84 D0 09 00 74 */ stfs f0, 0x74(r9)
/* 80139048 00134E88 D0 29 00 78 */ stfs f1, 0x78(r9)
/* 8013904C 00134E8C D0 29 00 7C */ stfs f1, 0x7c(r9)
/* 80139050 00134E90 D0 29 00 80 */ stfs f1, 0x80(r9)
/* 80139054 00134E94 D0 09 00 84 */ stfs f0, 0x84(r9)
/* 80139058 00134E98 D0 09 00 88 */ stfs f0, 0x88(r9)
/* 8013905C 00134E9C D0 29 00 8C */ stfs f1, 0x8c(r9)
/* 80139060 00134EA0 D0 29 00 90 */ stfs f1, 0x90(r9)
/* 80139064 00134EA4 D0 29 00 94 */ stfs f1, 0x94(r9)
/* 80139068 00134EA8 D0 09 00 98 */ stfs f0, 0x98(r9)
/* 8013906C 00134EAC D0 09 00 9C */ stfs f0, 0x9c(r9)
/* 80139070 00134EB0 39 29 00 A0 */ addi r9, r9, 0xa0
/* 80139074 00134EB4 D0 21 00 18 */ stfs f1, 0x18(r1)
/* 80139078 00134EB8 D0 21 00 1C */ stfs f1, 0x1c(r1)
/* 8013907C 00134EBC D0 01 00 20 */ stfs f0, 0x20(r1)
/* 80139080 00134EC0 D0 01 00 24 */ stfs f0, 0x24(r1)
/* 80139084 00134EC4 42 00 FF 48 */ bdnz lbl_80138FCC
.global lbl_80139088
lbl_80139088:
/* 80139088 00134EC8 1C A7 00 14 */ mulli r5, r7, 0x14
2022-10-16 16:31:36 +00:00
/* 8013908C 00134ECC 3C 80 80 41 */ lis r4, "@9522_8040E218"@ha
/* 80139090 00134ED0 3C 60 80 41 */ lis r3, "@9523_8040E21C"@ha
/* 80139094 00134ED4 C0 24 E2 18 */ lfs f1, "@9522_8040E218"@l(r4)
2022-10-16 16:05:58 +00:00
/* 80139098 00134ED8 7C 07 30 50 */ subf r0, r7, r6
2022-10-16 16:31:36 +00:00
/* 8013909C 00134EDC C0 03 E2 1C */ lfs f0, "@9523_8040E21C"@l(r3)
2022-10-16 16:05:58 +00:00
/* 801390A0 00134EE0 7C 68 2A 14 */ add r3, r8, r5
/* 801390A4 00134EE4 7C 09 03 A6 */ mtctr r0
/* 801390A8 00134EE8 7C 07 30 40 */ cmplw r7, r6
/* 801390AC 00134EEC 40 80 00 30 */ bge lbl_801390DC
.global lbl_801390B0
lbl_801390B0:
/* 801390B0 00134EF0 D0 23 00 00 */ stfs f1, 0x0(r3)
/* 801390B4 00134EF4 D0 23 00 04 */ stfs f1, 0x4(r3)
/* 801390B8 00134EF8 D0 23 00 08 */ stfs f1, 0x8(r3)
/* 801390BC 00134EFC D0 03 00 0C */ stfs f0, 0xc(r3)
/* 801390C0 00134F00 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 801390C4 00134F04 38 63 00 14 */ addi r3, r3, 0x14
/* 801390C8 00134F08 D0 21 00 18 */ stfs f1, 0x18(r1)
/* 801390CC 00134F0C D0 21 00 1C */ stfs f1, 0x1c(r1)
/* 801390D0 00134F10 D0 01 00 20 */ stfs f0, 0x20(r1)
/* 801390D4 00134F14 D0 01 00 24 */ stfs f0, 0x24(r1)
/* 801390D8 00134F18 42 00 FF D8 */ bdnz lbl_801390B0
.global lbl_801390DC
lbl_801390DC:
/* 801390DC 00134F1C 81 74 00 4C */ lwz r11, 0x4c(r20)
/* 801390E0 00134F20 38 80 00 00 */ li r4, 0x0
/* 801390E4 00134F24 80 B4 00 4C */ lwz r5, 0x4c(r20)
/* 801390E8 00134F28 55 60 47 3E */ extrwi r0, r11, 4, 4
/* 801390EC 00134F2C 80 74 00 50 */ lwz r3, 0x50(r20)
/* 801390F0 00134F30 1C E0 00 14 */ mulli r7, r0, 0x14
/* 801390F4 00134F34 50 A3 03 1A */ rlwimi r3, r5, 0, 12, 13
/* 801390F8 00134F38 55 6A E7 7A */ rlwinm r10, r11, 28, 29, 29
/* 801390FC 00134F3C 90 74 00 50 */ stw r3, 0x50(r20)
/* 80139100 00134F40 55 66 D7 7A */ rlwinm r6, r11, 26, 29, 29
/* 80139104 00134F44 82 B4 00 58 */ lwz r21, 0x58(r20)
/* 80139108 00134F48 55 69 A7 7A */ rlwinm r9, r11, 20, 29, 29
/* 8013910C 00134F4C 55 68 DF 7A */ rlwinm r8, r11, 27, 29, 29
/* 80139110 00134F50 55 65 76 BA */ rlwinm r5, r11, 14, 26, 29
/* 80139114 00134F54 55 60 4D F4 */ rlwinm r0, r11, 9, 23, 26
/* 80139118 00134F58 55 6C 9E FA */ rlwinm r12, r11, 19, 27, 29
/* 8013911C 00134F5C 55 6B EF 7A */ rlwinm r11, r11, 29, 29, 29
/* 80139120 00134F60 7C A5 02 14 */ add r5, r5, r0
/* 80139124 00134F64 7D 09 42 14 */ add r8, r9, r8
/* 80139128 00134F68 7C CA 32 14 */ add r6, r10, r6
/* 8013912C 00134F6C 7C 0C 5A 14 */ add r0, r12, r11
/* 80139130 00134F70 54 63 77 BF */ extrwi. r3, r3, 2, 12
/* 80139134 00134F74 7C A7 2A 14 */ add r5, r7, r5
/* 80139138 00134F78 7C C8 32 14 */ add r6, r8, r6
/* 8013913C 00134F7C 7C 15 02 14 */ add r0, r21, r0
/* 80139140 00134F80 7C A6 2A 14 */ add r5, r6, r5
/* 80139144 00134F84 7D 05 02 14 */ add r8, r5, r0
/* 80139148 00134F88 41 82 01 48 */ beq lbl_80139290
/* 8013914C 00134F8C 28 03 00 08 */ cmplwi r3, 0x8
/* 80139150 00134F90 38 E3 FF F8 */ addi r7, r3, -0x8
/* 80139154 00134F94 40 81 00 E8 */ ble lbl_8013923C
/* 80139158 00134F98 38 07 00 07 */ addi r0, r7, 0x7
2022-10-16 16:31:36 +00:00
/* 8013915C 00134F9C 3C C0 80 41 */ lis r6, "@9522_8040E218"@ha
/* 80139160 00134FA0 3C A0 80 41 */ lis r5, "@9523_8040E21C"@ha
2022-10-16 16:05:58 +00:00
/* 80139164 00134FA4 7D 09 43 78 */ mr r9, r8
/* 80139168 00134FA8 54 00 E8 FE */ srwi r0, r0, 3
2022-10-16 16:31:36 +00:00
/* 8013916C 00134FAC C0 26 E2 18 */ lfs f1, "@9522_8040E218"@l(r6)
/* 80139170 00134FB0 C0 05 E2 1C */ lfs f0, "@9523_8040E21C"@l(r5)
2022-10-16 16:05:58 +00:00
/* 80139174 00134FB4 7C 09 03 A6 */ mtctr r0
/* 80139178 00134FB8 28 07 00 00 */ cmplwi r7, 0x0
/* 8013917C 00134FBC 40 81 00 C0 */ ble lbl_8013923C
.global lbl_80139180
lbl_80139180:
/* 80139180 00134FC0 D0 29 00 00 */ stfs f1, 0x0(r9)
/* 80139184 00134FC4 38 84 00 08 */ addi r4, r4, 0x8
/* 80139188 00134FC8 D0 29 00 04 */ stfs f1, 0x4(r9)
/* 8013918C 00134FCC D0 29 00 08 */ stfs f1, 0x8(r9)
/* 80139190 00134FD0 D0 09 00 0C */ stfs f0, 0xc(r9)
/* 80139194 00134FD4 D0 09 00 10 */ stfs f0, 0x10(r9)
/* 80139198 00134FD8 D0 29 00 14 */ stfs f1, 0x14(r9)
/* 8013919C 00134FDC D0 29 00 18 */ stfs f1, 0x18(r9)
/* 801391A0 00134FE0 D0 29 00 1C */ stfs f1, 0x1c(r9)
/* 801391A4 00134FE4 D0 09 00 20 */ stfs f0, 0x20(r9)
/* 801391A8 00134FE8 D0 09 00 24 */ stfs f0, 0x24(r9)
/* 801391AC 00134FEC D0 29 00 28 */ stfs f1, 0x28(r9)
/* 801391B0 00134FF0 D0 29 00 2C */ stfs f1, 0x2c(r9)
/* 801391B4 00134FF4 D0 29 00 30 */ stfs f1, 0x30(r9)
/* 801391B8 00134FF8 D0 09 00 34 */ stfs f0, 0x34(r9)
/* 801391BC 00134FFC D0 09 00 38 */ stfs f0, 0x38(r9)
/* 801391C0 00135000 D0 29 00 3C */ stfs f1, 0x3c(r9)
/* 801391C4 00135004 D0 29 00 40 */ stfs f1, 0x40(r9)
/* 801391C8 00135008 D0 29 00 44 */ stfs f1, 0x44(r9)
/* 801391CC 0013500C D0 09 00 48 */ stfs f0, 0x48(r9)
/* 801391D0 00135010 D0 09 00 4C */ stfs f0, 0x4c(r9)
/* 801391D4 00135014 D0 29 00 50 */ stfs f1, 0x50(r9)
/* 801391D8 00135018 D0 29 00 54 */ stfs f1, 0x54(r9)
/* 801391DC 0013501C D0 29 00 58 */ stfs f1, 0x58(r9)
/* 801391E0 00135020 D0 09 00 5C */ stfs f0, 0x5c(r9)
/* 801391E4 00135024 D0 09 00 60 */ stfs f0, 0x60(r9)
/* 801391E8 00135028 D0 29 00 64 */ stfs f1, 0x64(r9)
/* 801391EC 0013502C D0 29 00 68 */ stfs f1, 0x68(r9)
/* 801391F0 00135030 D0 29 00 6C */ stfs f1, 0x6c(r9)
/* 801391F4 00135034 D0 09 00 70 */ stfs f0, 0x70(r9)
/* 801391F8 00135038 D0 09 00 74 */ stfs f0, 0x74(r9)
/* 801391FC 0013503C D0 29 00 78 */ stfs f1, 0x78(r9)
/* 80139200 00135040 D0 29 00 7C */ stfs f1, 0x7c(r9)
/* 80139204 00135044 D0 29 00 80 */ stfs f1, 0x80(r9)
/* 80139208 00135048 D0 09 00 84 */ stfs f0, 0x84(r9)
/* 8013920C 0013504C D0 09 00 88 */ stfs f0, 0x88(r9)
/* 80139210 00135050 D0 29 00 8C */ stfs f1, 0x8c(r9)
/* 80139214 00135054 D0 29 00 90 */ stfs f1, 0x90(r9)
/* 80139218 00135058 D0 29 00 94 */ stfs f1, 0x94(r9)
/* 8013921C 0013505C D0 09 00 98 */ stfs f0, 0x98(r9)
/* 80139220 00135060 D0 09 00 9C */ stfs f0, 0x9c(r9)
/* 80139224 00135064 39 29 00 A0 */ addi r9, r9, 0xa0
/* 80139228 00135068 D0 21 00 08 */ stfs f1, 0x8(r1)
/* 8013922C 0013506C D0 21 00 0C */ stfs f1, 0xc(r1)
/* 80139230 00135070 D0 01 00 10 */ stfs f0, 0x10(r1)
/* 80139234 00135074 D0 01 00 14 */ stfs f0, 0x14(r1)
/* 80139238 00135078 42 00 FF 48 */ bdnz lbl_80139180
.global lbl_8013923C
lbl_8013923C:
/* 8013923C 0013507C 1C E4 00 14 */ mulli r7, r4, 0x14
2022-10-16 16:31:36 +00:00
/* 80139240 00135080 3C C0 80 41 */ lis r6, "@9522_8040E218"@ha
/* 80139244 00135084 3C A0 80 41 */ lis r5, "@9523_8040E21C"@ha
/* 80139248 00135088 C0 26 E2 18 */ lfs f1, "@9522_8040E218"@l(r6)
2022-10-16 16:05:58 +00:00
/* 8013924C 0013508C 7C 04 18 50 */ subf r0, r4, r3
2022-10-16 16:31:36 +00:00
/* 80139250 00135090 C0 05 E2 1C */ lfs f0, "@9523_8040E21C"@l(r5)
2022-10-16 16:05:58 +00:00
/* 80139254 00135094 7C A8 3A 14 */ add r5, r8, r7
/* 80139258 00135098 7C 09 03 A6 */ mtctr r0
/* 8013925C 0013509C 7C 04 18 40 */ cmplw r4, r3
/* 80139260 001350A0 40 80 00 30 */ bge lbl_80139290
.global lbl_80139264
lbl_80139264:
/* 80139264 001350A4 D0 25 00 00 */ stfs f1, 0x0(r5)
/* 80139268 001350A8 D0 25 00 04 */ stfs f1, 0x4(r5)
/* 8013926C 001350AC D0 25 00 08 */ stfs f1, 0x8(r5)
/* 80139270 001350B0 D0 05 00 0C */ stfs f0, 0xc(r5)
/* 80139274 001350B4 D0 05 00 10 */ stfs f0, 0x10(r5)
/* 80139278 001350B8 38 A5 00 14 */ addi r5, r5, 0x14
/* 8013927C 001350BC D0 21 00 08 */ stfs f1, 0x8(r1)
/* 80139280 001350C0 D0 21 00 0C */ stfs f1, 0xc(r1)
/* 80139284 001350C4 D0 01 00 10 */ stfs f0, 0x10(r1)
/* 80139288 001350C8 D0 01 00 14 */ stfs f0, 0x14(r1)
/* 8013928C 001350CC 42 00 FF D8 */ bdnz lbl_80139264
.global lbl_80139290
lbl_80139290:
/* 80139290 001350D0 80 74 00 4C */ lwz r3, 0x4c(r20)
/* 80139294 001350D4 80 14 00 50 */ lwz r0, 0x50(r20)
/* 80139298 001350D8 50 60 05 EE */ rlwimi r0, r3, 0, 23, 23
/* 8013929C 001350DC 90 14 00 50 */ stw r0, 0x50(r20)
/* 801392A0 001350E0 54 00 C7 FF */ extrwi. r0, r0, 1, 23
/* 801392A4 001350E4 41 82 00 3C */ beq lbl_801392E0
/* 801392A8 001350E8 80 B4 00 4C */ lwz r5, 0x4c(r20)
/* 801392AC 001350EC 38 60 00 01 */ li r3, 0x1
/* 801392B0 001350F0 80 F4 00 58 */ lwz r7, 0x58(r20)
/* 801392B4 001350F4 38 00 00 00 */ li r0, 0x0
/* 801392B8 001350F8 54 A4 47 3E */ extrwi r4, r5, 4, 4
/* 801392BC 001350FC 54 A6 76 BA */ rlwinm r6, r5, 14, 26, 29
/* 801392C0 00135100 1C 84 00 14 */ mulli r4, r4, 0x14
/* 801392C4 00135104 54 A5 4D F4 */ rlwinm r5, r5, 9, 23, 26
/* 801392C8 00135108 7C A6 2A 14 */ add r5, r6, r5
/* 801392CC 0013510C 7C 87 22 14 */ add r4, r7, r4
/* 801392D0 00135110 7C 64 29 EE */ stbux r3, r4, r5
/* 801392D4 00135114 98 64 00 01 */ stb r3, 0x1(r4)
/* 801392D8 00135118 98 04 00 02 */ stb r0, 0x2(r4)
/* 801392DC 0013511C 98 04 00 03 */ stb r0, 0x3(r4)
.global lbl_801392E0
lbl_801392E0:
/* 801392E0 00135120 80 74 00 4C */ lwz r3, 0x4c(r20)
/* 801392E4 00135124 80 14 00 50 */ lwz r0, 0x50(r20)
/* 801392E8 00135128 50 60 06 30 */ rlwimi r0, r3, 0, 24, 24
/* 801392EC 0013512C 90 14 00 50 */ stw r0, 0x50(r20)
/* 801392F0 00135130 54 00 CF FF */ extrwi. r0, r0, 1, 24
/* 801392F4 00135134 41 82 00 34 */ beq lbl_80139328
/* 801392F8 00135138 80 B4 00 4C */ lwz r5, 0x4c(r20)
/* 801392FC 0013513C 38 E0 FF FF */ li r7, -0x1
/* 80139300 00135140 80 D4 00 58 */ lwz r6, 0x58(r20)
/* 80139304 00135144 54 A0 47 3E */ extrwi r0, r5, 4, 4
/* 80139308 00135148 54 A4 76 BA */ rlwinm r4, r5, 14, 26, 29
/* 8013930C 0013514C 1C 60 00 14 */ mulli r3, r0, 0x14
/* 80139310 00135150 54 A0 4D F4 */ rlwinm r0, r5, 9, 23, 26
/* 80139314 00135154 54 A5 D7 7A */ rlwinm r5, r5, 26, 29, 29
/* 80139318 00135158 7C 04 02 14 */ add r0, r4, r0
/* 8013931C 0013515C 7C 65 1A 14 */ add r3, r5, r3
/* 80139320 00135160 7C 06 02 14 */ add r0, r6, r0
/* 80139324 00135164 7C E3 01 2E */ stwx r7, r3, r0
.global lbl_80139328
lbl_80139328:
/* 80139328 00135168 80 74 00 4C */ lwz r3, 0x4c(r20)
/* 8013932C 0013516C 80 14 00 50 */ lwz r0, 0x50(r20)
/* 80139330 00135170 50 60 04 62 */ rlwimi r0, r3, 0, 17, 17
/* 80139334 00135174 90 14 00 50 */ stw r0, 0x50(r20)
/* 80139338 00135178 54 00 97 FF */ extrwi. r0, r0, 1, 17
/* 8013933C 0013517C 41 82 00 54 */ beq lbl_80139390
/* 80139340 00135180 81 34 00 4C */ lwz r9, 0x4c(r20)
/* 80139344 00135184 38 A0 00 E4 */ li r5, 0xe4
/* 80139348 00135188 81 54 00 58 */ lwz r10, 0x58(r20)
/* 8013934C 0013518C 38 80 00 C0 */ li r4, 0xc0
/* 80139350 00135190 55 20 47 3E */ extrwi r0, r9, 4, 4
/* 80139354 00135194 55 23 76 BA */ rlwinm r3, r9, 14, 26, 29
/* 80139358 00135198 1C C0 00 14 */ mulli r6, r0, 0x14
/* 8013935C 0013519C 55 28 DF 7A */ rlwinm r8, r9, 27, 29, 29
/* 80139360 001351A0 55 20 4D F4 */ rlwinm r0, r9, 9, 23, 26
/* 80139364 001351A4 55 27 D7 7A */ rlwinm r7, r9, 26, 29, 29
/* 80139368 001351A8 7C 63 02 14 */ add r3, r3, r0
/* 8013936C 001351AC 7C 08 3A 14 */ add r0, r8, r7
/* 80139370 001351B0 7C E6 1A 14 */ add r7, r6, r3
/* 80139374 001351B4 38 60 00 D5 */ li r3, 0xd5
/* 80139378 001351B8 7C CA 02 14 */ add r6, r10, r0
/* 8013937C 001351BC 7C A6 39 EE */ stbux r5, r6, r7
/* 80139380 001351C0 38 00 00 EA */ li r0, 0xea
/* 80139384 001351C4 98 86 00 01 */ stb r4, 0x1(r6)
/* 80139388 001351C8 98 66 00 02 */ stb r3, 0x2(r6)
/* 8013938C 001351CC 98 06 00 03 */ stb r0, 0x3(r6)
.global lbl_80139390
lbl_80139390:
/* 80139390 001351D0 80 74 00 4C */ lwz r3, 0x4c(r20)
/* 80139394 001351D4 80 14 00 50 */ lwz r0, 0x50(r20)
/* 80139398 001351D8 50 60 06 72 */ rlwimi r0, r3, 0, 25, 25
/* 8013939C 001351DC 90 14 00 50 */ stw r0, 0x50(r20)
/* 801393A0 001351E0 54 00 D7 FF */ extrwi. r0, r0, 1, 25
/* 801393A4 001351E4 41 82 00 54 */ beq lbl_801393F8
/* 801393A8 001351E8 81 34 00 4C */ lwz r9, 0x4c(r20)
/* 801393AC 001351EC 38 60 00 77 */ li r3, 0x77
/* 801393B0 001351F0 81 54 00 58 */ lwz r10, 0x58(r20)
/* 801393B4 001351F4 38 00 00 00 */ li r0, 0x0
/* 801393B8 001351F8 55 27 A7 7A */ rlwinm r7, r9, 20, 29, 29
/* 801393BC 001351FC 55 24 DF 7A */ rlwinm r4, r9, 27, 29, 29
/* 801393C0 00135200 7C 87 22 14 */ add r4, r7, r4
/* 801393C4 00135204 55 26 D7 7A */ rlwinm r6, r9, 26, 29, 29
/* 801393C8 00135208 7C 86 22 14 */ add r4, r6, r4
/* 801393CC 0013520C 55 25 47 3E */ extrwi r5, r9, 4, 4
/* 801393D0 00135210 1C C5 00 14 */ mulli r6, r5, 0x14
/* 801393D4 00135214 55 28 76 BA */ rlwinm r8, r9, 14, 26, 29
/* 801393D8 00135218 55 27 4D F4 */ rlwinm r7, r9, 9, 23, 26
/* 801393DC 0013521C 7C 8A 22 14 */ add r4, r10, r4
/* 801393E0 00135220 7C A8 3A 14 */ add r5, r8, r7
/* 801393E4 00135224 7C A6 2A 14 */ add r5, r6, r5
/* 801393E8 00135228 7C 64 29 EE */ stbux r3, r4, r5
/* 801393EC 0013522C 98 04 00 01 */ stb r0, 0x1(r4)
/* 801393F0 00135230 98 04 00 02 */ stb r0, 0x2(r4)
/* 801393F4 00135234 98 04 00 03 */ stb r0, 0x3(r4)
.global lbl_801393F8
lbl_801393F8:
/* 801393F8 00135238 80 74 00 4C */ lwz r3, 0x4c(r20)
/* 801393FC 0013523C 80 14 00 50 */ lwz r0, 0x50(r20)
/* 80139400 00135240 50 60 06 B4 */ rlwimi r0, r3, 0, 26, 26
/* 80139404 00135244 90 14 00 50 */ stw r0, 0x50(r20)
/* 80139408 00135248 54 00 DF FF */ extrwi. r0, r0, 1, 26
/* 8013940C 0013524C 41 82 00 64 */ beq lbl_80139470
/* 80139410 00135250 80 F4 00 4C */ lwz r7, 0x4c(r20)
/* 80139414 00135254 38 A0 00 01 */ li r5, 0x1
/* 80139418 00135258 81 74 00 58 */ lwz r11, 0x58(r20)
/* 8013941C 0013525C 38 80 00 04 */ li r4, 0x4
/* 80139420 00135260 54 E0 47 3E */ extrwi r0, r7, 4, 4
/* 80139424 00135264 54 E6 E7 7A */ rlwinm r6, r7, 28, 29, 29
/* 80139428 00135268 54 E3 D7 7A */ rlwinm r3, r7, 26, 29, 29
/* 8013942C 0013526C 54 EA A7 7A */ rlwinm r10, r7, 20, 29, 29
/* 80139430 00135270 54 E9 DF 7A */ rlwinm r9, r7, 27, 29, 29
/* 80139434 00135274 54 E8 76 BA */ rlwinm r8, r7, 14, 26, 29
/* 80139438 00135278 54 E7 4D F4 */ rlwinm r7, r7, 9, 23, 26
/* 8013943C 0013527C 7C C6 1A 14 */ add r6, r6, r3
/* 80139440 00135280 7C E8 3A 14 */ add r7, r8, r7
/* 80139444 00135284 7D 2A 4A 14 */ add r9, r10, r9
/* 80139448 00135288 1D 00 00 14 */ mulli r8, r0, 0x14
/* 8013944C 0013528C 38 60 00 05 */ li r3, 0x5
/* 80139450 00135290 7C C9 32 14 */ add r6, r9, r6
/* 80139454 00135294 38 00 00 0F */ li r0, 0xf
/* 80139458 00135298 7C E8 3A 14 */ add r7, r8, r7
/* 8013945C 0013529C 7C CB 32 14 */ add r6, r11, r6
/* 80139460 001352A0 7C A6 39 EE */ stbux r5, r6, r7
/* 80139464 001352A4 98 86 00 01 */ stb r4, 0x1(r6)
/* 80139468 001352A8 98 66 00 02 */ stb r3, 0x2(r6)
/* 8013946C 001352AC 98 06 00 03 */ stb r0, 0x3(r6)
.global lbl_80139470
lbl_80139470:
/* 80139470 001352B0 39 61 00 60 */ addi r11, r1, 0x60
/* 80139474 001352B4 4B EC DE F9 */ bl lbl_8000736C
/* 80139478 001352B8 80 01 00 64 */ lwz r0, 0x64(r1)
/* 8013947C 001352BC 7C 08 03 A6 */ mtlr r0
/* 80139480 001352C0 38 21 00 60 */ addi r1, r1, 0x60
/* 80139484 001352C4 4E 80 00 20 */ blr
/* 80139488 001352C8 00 00 00 00 */ .4byte 0x00000000
/* 8013948C 001352CC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GetTexSRTAry__Q36nw4hbm3lyt8MaterialFv
GetTexSRTAry__Q36nw4hbm3lyt8MaterialFv:
2022-10-16 16:05:58 +00:00
/* 80139490 001352D0 80 03 00 4C */ lwz r0, 0x4c(r3)
/* 80139494 001352D4 80 63 00 58 */ lwz r3, 0x58(r3)
/* 80139498 001352D8 54 00 4D F4 */ rlwinm r0, r0, 9, 23, 26
/* 8013949C 001352DC 7C 63 02 14 */ add r3, r3, r0
/* 801394A0 001352E0 4E 80 00 20 */ blr
/* 801394A4 001352E4 00 00 00 00 */ .4byte 0x00000000
/* 801394A8 001352E8 00 00 00 00 */ .4byte 0x00000000
/* 801394AC 001352EC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GetTexCoordGenAry__Q36nw4hbm3lyt8MaterialFv
GetTexCoordGenAry__Q36nw4hbm3lyt8MaterialFv:
2022-10-16 16:05:58 +00:00
/* 801394B0 001352F0 80 83 00 4C */ lwz r4, 0x4c(r3)
/* 801394B4 001352F4 80 A3 00 58 */ lwz r5, 0x58(r3)
/* 801394B8 001352F8 54 80 47 3E */ extrwi r0, r4, 4, 4
/* 801394BC 001352FC 54 83 4D F4 */ rlwinm r3, r4, 9, 23, 26
/* 801394C0 00135300 1C 00 00 14 */ mulli r0, r0, 0x14
/* 801394C4 00135304 7C 05 02 14 */ add r0, r5, r0
/* 801394C8 00135308 7C 63 02 14 */ add r3, r3, r0
/* 801394CC 0013530C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global GetIndTexSRTAry__Q36nw4hbm3lyt8MaterialFv
GetIndTexSRTAry__Q36nw4hbm3lyt8MaterialFv:
2022-10-16 16:05:58 +00:00
/* 801394D0 00135310 81 23 00 4C */ lwz r9, 0x4c(r3)
/* 801394D4 00135314 81 63 00 58 */ lwz r11, 0x58(r3)
/* 801394D8 00135318 55 20 47 3E */ extrwi r0, r9, 4, 4
/* 801394DC 0013531C 55 28 E7 7A */ rlwinm r8, r9, 28, 29, 29
/* 801394E0 00135320 1C 60 00 14 */ mulli r3, r0, 0x14
/* 801394E4 00135324 55 26 D7 7A */ rlwinm r6, r9, 26, 29, 29
/* 801394E8 00135328 55 27 A7 7A */ rlwinm r7, r9, 20, 29, 29
/* 801394EC 0013532C 55 25 DF 7A */ rlwinm r5, r9, 27, 29, 29
/* 801394F0 00135330 55 24 76 BA */ rlwinm r4, r9, 14, 26, 29
/* 801394F4 00135334 55 20 4D F4 */ rlwinm r0, r9, 9, 23, 26
/* 801394F8 00135338 7C 04 02 14 */ add r0, r4, r0
/* 801394FC 0013533C 55 2A 9E FA */ rlwinm r10, r9, 19, 27, 29
/* 80139500 00135340 55 29 EF 7A */ rlwinm r9, r9, 29, 29, 29
/* 80139504 00135344 7C A7 2A 14 */ add r5, r7, r5
/* 80139508 00135348 7C 88 32 14 */ add r4, r8, r6
/* 8013950C 0013534C 7C 63 02 14 */ add r3, r3, r0
/* 80139510 00135350 7C 85 22 14 */ add r4, r5, r4
/* 80139514 00135354 7C 0A 4A 14 */ add r0, r10, r9
/* 80139518 00135358 7C 64 1A 14 */ add r3, r4, r3
/* 8013951C 0013535C 7C 0B 02 14 */ add r0, r11, r0
/* 80139520 00135360 7C 63 02 14 */ add r3, r3, r0
/* 80139524 00135364 4E 80 00 20 */ blr
/* 80139528 00135368 00 00 00 00 */ .4byte 0x00000000
/* 8013952C 0013536C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetTextureNum__Q36nw4hbm3lyt8MaterialFUc
SetTextureNum__Q36nw4hbm3lyt8MaterialFUc:
2022-10-16 16:05:58 +00:00
/* 80139530 00135370 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80139534 00135374 7C 08 02 A6 */ mflr r0
/* 80139538 00135378 2C 04 00 00 */ cmpwi r4, 0x0
/* 8013953C 0013537C 90 01 00 24 */ stw r0, 0x24(r1)
/* 80139540 00135380 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80139544 00135384 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80139548 00135388 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8013954C 0013538C 7C 9D 23 78 */ mr r29, r4
/* 80139550 00135390 93 81 00 10 */ stw r28, 0x10(r1)
/* 80139554 00135394 7C 7C 1B 78 */ mr r28, r3
/* 80139558 00135398 41 82 00 48 */ beq lbl_801395A0
/* 8013955C 0013539C 80 83 00 50 */ lwz r4, 0x50(r3)
/* 80139560 001353A0 80 63 00 58 */ lwz r3, 0x58(r3)
/* 80139564 001353A4 54 80 4D F4 */ rlwinm r0, r4, 9, 23, 26
/* 80139568 001353A8 54 9E 27 3E */ srwi r30, r4, 28
/* 8013956C 001353AC 7F E3 02 14 */ add r31, r3, r0
/* 80139570 001353B0 48 00 00 1C */ b lbl_8013958C
.global lbl_80139574
lbl_80139574:
/* 80139574 001353B4 7F E3 FB 78 */ mr r3, r31
/* 80139578 001353B8 38 80 00 00 */ li r4, 0x0
/* 8013957C 001353BC 38 A0 00 20 */ li r5, 0x20
2022-10-16 16:31:36 +00:00
/* 80139580 001353C0 4B EC AD D1 */ bl memset
2022-10-16 16:05:58 +00:00
/* 80139584 001353C4 3B FF 00 20 */ addi r31, r31, 0x20
/* 80139588 001353C8 3B DE 00 01 */ addi r30, r30, 0x1
.global lbl_8013958C
lbl_8013958C:
/* 8013958C 001353CC 7C 1E E8 40 */ cmplw r30, r29
/* 80139590 001353D0 41 80 FF E4 */ blt lbl_80139574
/* 80139594 001353D4 80 1C 00 50 */ lwz r0, 0x50(r28)
/* 80139598 001353D8 53 A0 E0 06 */ rlwimi r0, r29, 28, 0, 3
/* 8013959C 001353DC 90 1C 00 50 */ stw r0, 0x50(r28)
.global lbl_801395A0
lbl_801395A0:
/* 801395A0 001353E0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801395A4 001353E4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801395A8 001353E8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801395AC 001353EC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801395B0 001353F0 83 81 00 10 */ lwz r28, 0x10(r1)
/* 801395B4 001353F4 7C 08 03 A6 */ mtlr r0
/* 801395B8 001353F8 38 21 00 20 */ addi r1, r1, 0x20
/* 801395BC 001353FC 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SetTexCoordGenNum__Q36nw4hbm3lyt8MaterialFUc
SetTexCoordGenNum__Q36nw4hbm3lyt8MaterialFUc:
2022-10-16 16:05:58 +00:00
/* 801395C0 00135400 2C 04 00 00 */ cmpwi r4, 0x0
/* 801395C4 00135404 4D 82 00 20 */ beqlr
/* 801395C8 00135408 80 E3 00 4C */ lwz r7, 0x4c(r3)
/* 801395CC 0013540C 80 03 00 50 */ lwz r0, 0x50(r3)
/* 801395D0 00135410 54 E5 47 3E */ extrwi r5, r7, 4, 4
/* 801395D4 00135414 81 03 00 58 */ lwz r8, 0x58(r3)
/* 801395D8 00135418 1C C5 00 14 */ mulli r6, r5, 0x14
/* 801395DC 0013541C 54 0C 67 3E */ extrwi r12, r0, 4, 8
/* 801395E0 00135420 54 E5 4D F4 */ rlwinm r5, r7, 9, 23, 26
/* 801395E4 00135424 7C 8C 20 40 */ cmplw cr1, r12, r4
/* 801395E8 00135428 7C 08 32 14 */ add r0, r8, r6
/* 801395EC 0013542C 7D 25 02 14 */ add r9, r5, r0
/* 801395F0 00135430 40 84 01 14 */ bge cr1, lbl_80139704
/* 801395F4 00135434 7C 0C 20 50 */ subf r0, r12, r4
/* 801395F8 00135438 39 44 FF F8 */ addi r10, r4, -0x8
/* 801395FC 0013543C 28 00 00 08 */ cmplwi r0, 0x8
/* 80139600 00135440 40 81 00 C4 */ ble lbl_801396C4
/* 80139604 00135444 41 85 00 C0 */ bgt cr1, lbl_801396C4
/* 80139608 00135448 38 0A 00 07 */ addi r0, r10, 0x7
/* 8013960C 0013544C 55 85 10 3A */ slwi r5, r12, 2
/* 80139610 00135450 7C 0C 00 50 */ subf r0, r12, r0
/* 80139614 00135454 39 00 00 01 */ li r8, 0x1
/* 80139618 00135458 54 00 E8 FE */ srwi r0, r0, 3
/* 8013961C 0013545C 7D 69 2A 14 */ add r11, r9, r5
/* 80139620 00135460 38 E0 00 04 */ li r7, 0x4
/* 80139624 00135464 38 C0 00 3C */ li r6, 0x3c
/* 80139628 00135468 38 A0 00 00 */ li r5, 0x0
/* 8013962C 0013546C 7C 09 03 A6 */ mtctr r0
/* 80139630 00135470 7C 0C 50 40 */ cmplw r12, r10
/* 80139634 00135474 40 80 00 90 */ bge lbl_801396C4
.global lbl_80139638
lbl_80139638:
/* 80139638 00135478 99 0B 00 00 */ stb r8, 0x0(r11)
/* 8013963C 0013547C 39 8C 00 08 */ addi r12, r12, 0x8
/* 80139640 00135480 98 EB 00 01 */ stb r7, 0x1(r11)
/* 80139644 00135484 98 CB 00 02 */ stb r6, 0x2(r11)
/* 80139648 00135488 98 AB 00 03 */ stb r5, 0x3(r11)
/* 8013964C 0013548C 99 0B 00 04 */ stb r8, 0x4(r11)
/* 80139650 00135490 98 EB 00 05 */ stb r7, 0x5(r11)
/* 80139654 00135494 98 CB 00 06 */ stb r6, 0x6(r11)
/* 80139658 00135498 98 AB 00 07 */ stb r5, 0x7(r11)
/* 8013965C 0013549C 99 0B 00 08 */ stb r8, 0x8(r11)
/* 80139660 001354A0 98 EB 00 09 */ stb r7, 0x9(r11)
/* 80139664 001354A4 98 CB 00 0A */ stb r6, 0xa(r11)
/* 80139668 001354A8 98 AB 00 0B */ stb r5, 0xb(r11)
/* 8013966C 001354AC 99 0B 00 0C */ stb r8, 0xc(r11)
/* 80139670 001354B0 98 EB 00 0D */ stb r7, 0xd(r11)
/* 80139674 001354B4 98 CB 00 0E */ stb r6, 0xe(r11)
/* 80139678 001354B8 98 AB 00 0F */ stb r5, 0xf(r11)
/* 8013967C 001354BC 99 0B 00 10 */ stb r8, 0x10(r11)
/* 80139680 001354C0 98 EB 00 11 */ stb r7, 0x11(r11)
/* 80139684 001354C4 98 CB 00 12 */ stb r6, 0x12(r11)
/* 80139688 001354C8 98 AB 00 13 */ stb r5, 0x13(r11)
/* 8013968C 001354CC 99 0B 00 14 */ stb r8, 0x14(r11)
/* 80139690 001354D0 98 EB 00 15 */ stb r7, 0x15(r11)
/* 80139694 001354D4 98 CB 00 16 */ stb r6, 0x16(r11)
/* 80139698 001354D8 98 AB 00 17 */ stb r5, 0x17(r11)
/* 8013969C 001354DC 99 0B 00 18 */ stb r8, 0x18(r11)
/* 801396A0 001354E0 98 EB 00 19 */ stb r7, 0x19(r11)
/* 801396A4 001354E4 98 CB 00 1A */ stb r6, 0x1a(r11)
/* 801396A8 001354E8 98 AB 00 1B */ stb r5, 0x1b(r11)
/* 801396AC 001354EC 99 0B 00 1C */ stb r8, 0x1c(r11)
/* 801396B0 001354F0 98 EB 00 1D */ stb r7, 0x1d(r11)
/* 801396B4 001354F4 98 CB 00 1E */ stb r6, 0x1e(r11)
/* 801396B8 001354F8 98 AB 00 1F */ stb r5, 0x1f(r11)
/* 801396BC 001354FC 39 6B 00 20 */ addi r11, r11, 0x20
/* 801396C0 00135500 42 00 FF 78 */ bdnz lbl_80139638
.global lbl_801396C4
lbl_801396C4:
/* 801396C4 00135504 55 85 10 3A */ slwi r5, r12, 2
/* 801396C8 00135508 7C 0C 20 50 */ subf r0, r12, r4
/* 801396CC 0013550C 7D 29 2A 14 */ add r9, r9, r5
/* 801396D0 00135510 39 00 00 01 */ li r8, 0x1
/* 801396D4 00135514 38 E0 00 04 */ li r7, 0x4
/* 801396D8 00135518 38 C0 00 3C */ li r6, 0x3c
/* 801396DC 0013551C 38 A0 00 00 */ li r5, 0x0
/* 801396E0 00135520 7C 09 03 A6 */ mtctr r0
/* 801396E4 00135524 7C 0C 20 40 */ cmplw r12, r4
/* 801396E8 00135528 40 80 00 1C */ bge lbl_80139704
.global lbl_801396EC
lbl_801396EC:
/* 801396EC 0013552C 99 09 00 00 */ stb r8, 0x0(r9)
/* 801396F0 00135530 98 E9 00 01 */ stb r7, 0x1(r9)
/* 801396F4 00135534 98 C9 00 02 */ stb r6, 0x2(r9)
/* 801396F8 00135538 98 A9 00 03 */ stb r5, 0x3(r9)
/* 801396FC 0013553C 39 29 00 04 */ addi r9, r9, 0x4
/* 80139700 00135540 42 00 FF EC */ bdnz lbl_801396EC
.global lbl_80139704
lbl_80139704:
/* 80139704 00135544 80 03 00 50 */ lwz r0, 0x50(r3)
/* 80139708 00135548 50 80 A2 16 */ rlwimi r0, r4, 20, 8, 11
/* 8013970C 0013554C 90 03 00 50 */ stw r0, 0x50(r3)
/* 80139710 00135550 4E 80 00 20 */ blr
/* 80139714 00135554 00 00 00 00 */ .4byte 0x00000000
/* 80139718 00135558 00 00 00 00 */ .4byte 0x00000000
/* 8013971C 0013555C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetTextureNoWrap__Q36nw4hbm3lyt8MaterialFUcP10TPLPalette
SetTextureNoWrap__Q36nw4hbm3lyt8MaterialFUcP10TPLPalette:
2022-10-16 16:05:58 +00:00
/* 80139720 00135560 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80139724 00135564 7C 08 02 A6 */ mflr r0
/* 80139728 00135568 90 01 00 24 */ stw r0, 0x24(r1)
/* 8013972C 0013556C 54 80 2C F4 */ rlwinm r0, r4, 5, 19, 26
/* 80139730 00135570 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80139734 00135574 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80139738 00135578 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8013973C 0013557C 93 81 00 10 */ stw r28, 0x10(r1)
/* 80139740 00135580 7C BC 2B 78 */ mr r28, r5
/* 80139744 00135584 80 63 00 58 */ lwz r3, 0x58(r3)
/* 80139748 00135588 7F E3 02 14 */ add r31, r3, r0
/* 8013974C 0013558C 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 80139750 00135590 4B EF D4 61 */ bl GXGetTexObjWrapS
2022-10-16 16:05:58 +00:00
/* 80139754 00135594 7C 7E 1B 78 */ mr r30, r3
/* 80139758 00135598 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 8013975C 0013559C 4B EF D4 65 */ bl GXGetTexObjWrapT
2022-10-16 16:05:58 +00:00
/* 80139760 001355A0 7C 7D 1B 78 */ mr r29, r3
/* 80139764 001355A4 7F E3 FB 78 */ mr r3, r31
/* 80139768 001355A8 7F 84 E3 78 */ mr r4, r28
/* 8013976C 001355AC 38 A0 00 00 */ li r5, 0x0
2022-10-16 16:31:36 +00:00
/* 80139770 001355B0 4B FF CF 91 */ bl InitGXTexObjFromTPL__Q36nw4hbm3lyt6detailFP9_GXTexObjP10TPLPaletteUl
2022-10-16 16:05:58 +00:00
/* 80139774 001355B4 7F E3 FB 78 */ mr r3, r31
/* 80139778 001355B8 7F C4 F3 78 */ mr r4, r30
/* 8013977C 001355BC 7F A5 EB 78 */ mr r5, r29
2022-10-16 16:31:36 +00:00
/* 80139780 001355C0 4B EF D3 A1 */ bl GXInitTexObjWrapMode
2022-10-16 16:05:58 +00:00
/* 80139784 001355C4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80139788 001355C8 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8013978C 001355CC 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80139790 001355D0 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80139794 001355D4 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80139798 001355D8 7C 08 03 A6 */ mtlr r0
/* 8013979C 001355DC 38 21 00 20 */ addi r1, r1, 0x20
/* 801397A0 001355E0 4E 80 00 20 */ blr
/* 801397A4 001355E4 00 00 00 00 */ .4byte 0x00000000
/* 801397A8 001355E8 00 00 00 00 */ .4byte 0x00000000
/* 801397AC 001355EC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetTexture__Q36nw4hbm3lyt8MaterialFUcRC9_GXTexObj
SetTexture__Q36nw4hbm3lyt8MaterialFUcRC9_GXTexObj:
2022-10-16 16:05:58 +00:00
/* 801397B0 001355F0 80 63 00 58 */ lwz r3, 0x58(r3)
/* 801397B4 001355F4 54 80 2C F4 */ rlwinm r0, r4, 5, 19, 26
/* 801397B8 001355F8 80 C5 00 00 */ lwz r6, 0x0(r5)
/* 801397BC 001355FC 38 80 00 00 */ li r4, 0x0
/* 801397C0 00135600 7C 63 02 14 */ add r3, r3, r0
/* 801397C4 00135604 80 05 00 04 */ lwz r0, 0x4(r5)
/* 801397C8 00135608 90 C3 00 00 */ stw r6, 0x0(r3)
/* 801397CC 0013560C 80 C5 00 08 */ lwz r6, 0x8(r5)
/* 801397D0 00135610 90 03 00 04 */ stw r0, 0x4(r3)
/* 801397D4 00135614 80 05 00 0C */ lwz r0, 0xc(r5)
/* 801397D8 00135618 90 C3 00 08 */ stw r6, 0x8(r3)
/* 801397DC 0013561C 80 C5 00 10 */ lwz r6, 0x10(r5)
/* 801397E0 00135620 90 03 00 0C */ stw r0, 0xc(r3)
/* 801397E4 00135624 80 05 00 14 */ lwz r0, 0x14(r5)
/* 801397E8 00135628 90 C3 00 10 */ stw r6, 0x10(r3)
/* 801397EC 0013562C 80 C5 00 18 */ lwz r6, 0x18(r5)
/* 801397F0 00135630 90 03 00 14 */ stw r0, 0x14(r3)
/* 801397F4 00135634 80 05 00 1C */ lwz r0, 0x1c(r5)
/* 801397F8 00135638 90 C3 00 18 */ stw r6, 0x18(r3)
/* 801397FC 0013563C 90 03 00 1C */ stw r0, 0x1c(r3)
2022-10-16 16:31:36 +00:00
/* 80139800 00135640 4B EF D3 50 */ b GXInitTexObjUserData
2022-10-16 16:05:58 +00:00
/* 80139804 00135644 00 00 00 00 */ .4byte 0x00000000
/* 80139808 00135648 00 00 00 00 */ .4byte 0x00000000
/* 8013980C 0013564C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetColorElement__Q36nw4hbm3lyt8MaterialFUls
SetColorElement__Q36nw4hbm3lyt8MaterialFUls:
2022-10-16 16:05:58 +00:00
/* 80139810 00135650 38 C4 FF F0 */ addi r6, r4, -0x10
/* 80139814 00135654 28 06 00 0F */ cmplwi r6, 0xf
/* 80139818 00135658 40 81 01 20 */ ble lbl_80139938
/* 8013981C 0013565C 38 04 FF FC */ addi r0, r4, -0x4
/* 80139820 00135660 28 00 00 0B */ cmplwi r0, 0xb
/* 80139824 00135664 40 81 00 AC */ ble lbl_801398D0
/* 80139828 00135668 28 04 00 03 */ cmplwi r4, 0x3
/* 8013982C 0013566C 4D 81 00 20 */ bgtlr
/* 80139830 00135670 80 03 00 50 */ lwz r0, 0x50(r3)
/* 80139834 00135674 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 80139838 00135678 28 00 00 01 */ cmplwi r0, 0x1
/* 8013983C 0013567C 4D 80 00 20 */ bltlr
/* 80139840 00135680 80 E3 00 4C */ lwz r7, 0x4c(r3)
/* 80139844 00135684 7C A0 FE 70 */ srawi r0, r5, 31
/* 80139848 00135688 7C A9 00 78 */ andc r9, r5, r0
/* 8013984C 0013568C 81 03 00 58 */ lwz r8, 0x58(r3)
/* 80139850 00135690 54 E0 47 3E */ extrwi r0, r7, 4, 4
/* 80139854 00135694 54 E6 76 BA */ rlwinm r6, r7, 14, 26, 29
/* 80139858 00135698 1C A0 00 14 */ mulli r5, r0, 0x14
/* 8013985C 0013569C 54 E3 4D F4 */ rlwinm r3, r7, 9, 23, 26
/* 80139860 001356A0 7D 20 07 34 */ extsh r0, r9
/* 80139864 001356A4 54 E7 D7 7A */ rlwinm r7, r7, 26, 29, 29
/* 80139868 001356A8 7C 66 1A 14 */ add r3, r6, r3
/* 8013986C 001356AC 2C 00 00 FF */ cmpwi r0, 0xff
/* 80139870 001356B0 7C A7 2A 14 */ add r5, r7, r5
/* 80139874 001356B4 38 00 00 FF */ li r0, 0xff
/* 80139878 001356B8 7C 68 1A 14 */ add r3, r8, r3
/* 8013987C 001356BC 7C 65 1A 14 */ add r3, r5, r3
/* 80139880 001356C0 41 81 00 08 */ bgt lbl_80139888
/* 80139884 001356C4 7D 20 4B 78 */ mr r0, r9
.global lbl_80139888
lbl_80139888:
/* 80139888 001356C8 54 84 07 BF */ clrlwi. r4, r4, 30
/* 8013988C 001356CC 54 00 06 3E */ clrlwi r0, r0, 24
/* 80139890 001356D0 41 82 00 20 */ beq lbl_801398B0
/* 80139894 001356D4 28 04 00 01 */ cmplwi r4, 0x1
/* 80139898 001356D8 41 82 00 20 */ beq lbl_801398B8
/* 8013989C 001356DC 28 04 00 02 */ cmplwi r4, 0x2
/* 801398A0 001356E0 41 82 00 20 */ beq lbl_801398C0
/* 801398A4 001356E4 28 04 00 03 */ cmplwi r4, 0x3
/* 801398A8 001356E8 41 82 00 20 */ beq lbl_801398C8
/* 801398AC 001356EC 4E 80 00 20 */ blr
.global lbl_801398B0
lbl_801398B0:
/* 801398B0 001356F0 98 03 00 00 */ stb r0, 0x0(r3)
/* 801398B4 001356F4 4E 80 00 20 */ blr
.global lbl_801398B8
lbl_801398B8:
/* 801398B8 001356F8 98 03 00 01 */ stb r0, 0x1(r3)
/* 801398BC 001356FC 4E 80 00 20 */ blr
.global lbl_801398C0
lbl_801398C0:
/* 801398C0 00135700 98 03 00 02 */ stb r0, 0x2(r3)
/* 801398C4 00135704 4E 80 00 20 */ blr
.global lbl_801398C8
lbl_801398C8:
/* 801398C8 00135708 98 03 00 03 */ stb r0, 0x3(r3)
/* 801398CC 0013570C 4E 80 00 20 */ blr
.global lbl_801398D0
lbl_801398D0:
/* 801398D0 00135710 54 04 07 BF */ clrlwi. r4, r0, 30
/* 801398D4 00135714 54 00 F0 BE */ srwi r0, r0, 2
/* 801398D8 00135718 41 82 00 20 */ beq lbl_801398F8
/* 801398DC 0013571C 28 04 00 01 */ cmplwi r4, 0x1
/* 801398E0 00135720 41 82 00 28 */ beq lbl_80139908
/* 801398E4 00135724 28 04 00 02 */ cmplwi r4, 0x2
/* 801398E8 00135728 41 82 00 30 */ beq lbl_80139918
/* 801398EC 0013572C 28 04 00 03 */ cmplwi r4, 0x3
/* 801398F0 00135730 41 82 00 38 */ beq lbl_80139928
/* 801398F4 00135734 4E 80 00 20 */ blr
.global lbl_801398F8
lbl_801398F8:
/* 801398F8 00135738 54 00 18 38 */ slwi r0, r0, 3
/* 801398FC 0013573C 7C 63 02 14 */ add r3, r3, r0
/* 80139900 00135740 B0 A3 00 24 */ sth r5, 0x24(r3)
/* 80139904 00135744 4E 80 00 20 */ blr
.global lbl_80139908
lbl_80139908:
/* 80139908 00135748 54 00 18 38 */ slwi r0, r0, 3
/* 8013990C 0013574C 7C 63 02 14 */ add r3, r3, r0
/* 80139910 00135750 B0 A3 00 26 */ sth r5, 0x26(r3)
/* 80139914 00135754 4E 80 00 20 */ blr
.global lbl_80139918
lbl_80139918:
/* 80139918 00135758 54 00 18 38 */ slwi r0, r0, 3
/* 8013991C 0013575C 7C 63 02 14 */ add r3, r3, r0
/* 80139920 00135760 B0 A3 00 28 */ sth r5, 0x28(r3)
/* 80139924 00135764 4E 80 00 20 */ blr
.global lbl_80139928
lbl_80139928:
/* 80139928 00135768 54 00 18 38 */ slwi r0, r0, 3
/* 8013992C 0013576C 7C 63 02 14 */ add r3, r3, r0
/* 80139930 00135770 B0 A3 00 2A */ sth r5, 0x2a(r3)
/* 80139934 00135774 4E 80 00 20 */ blr
.global lbl_80139938
lbl_80139938:
/* 80139938 00135778 7C A0 FE 70 */ srawi r0, r5, 31
/* 8013993C 0013577C 54 C7 F0 BE */ srwi r7, r6, 2
/* 80139940 00135780 7C A6 00 78 */ andc r6, r5, r0
/* 80139944 00135784 38 A0 00 FF */ li r5, 0xff
/* 80139948 00135788 7C C0 07 34 */ extsh r0, r6
/* 8013994C 0013578C 2C 00 00 FF */ cmpwi r0, 0xff
/* 80139950 00135790 41 81 00 08 */ bgt lbl_80139958
/* 80139954 00135794 7C C5 33 78 */ mr r5, r6
.global lbl_80139958
lbl_80139958:
/* 80139958 00135798 38 04 FF F0 */ addi r0, r4, -0x10
/* 8013995C 0013579C 54 A4 06 3E */ clrlwi r4, r5, 24
/* 80139960 001357A0 54 00 07 BF */ clrlwi. r0, r0, 30
/* 80139964 001357A4 41 82 00 20 */ beq lbl_80139984
/* 80139968 001357A8 28 00 00 01 */ cmplwi r0, 0x1
/* 8013996C 001357AC 41 82 00 28 */ beq lbl_80139994
/* 80139970 001357B0 28 00 00 02 */ cmplwi r0, 0x2
/* 80139974 001357B4 41 82 00 30 */ beq lbl_801399A4
/* 80139978 001357B8 28 00 00 03 */ cmplwi r0, 0x3
/* 8013997C 001357BC 41 82 00 38 */ beq lbl_801399B4
/* 80139980 001357C0 4E 80 00 20 */ blr
.global lbl_80139984
lbl_80139984:
/* 80139984 001357C4 54 E0 10 3A */ slwi r0, r7, 2
/* 80139988 001357C8 7C 63 02 14 */ add r3, r3, r0
/* 8013998C 001357CC 98 83 00 3C */ stb r4, 0x3c(r3)
/* 80139990 001357D0 4E 80 00 20 */ blr
.global lbl_80139994
lbl_80139994:
/* 80139994 001357D4 54 E0 10 3A */ slwi r0, r7, 2
/* 80139998 001357D8 7C 63 02 14 */ add r3, r3, r0
/* 8013999C 001357DC 98 83 00 3D */ stb r4, 0x3d(r3)
/* 801399A0 001357E0 4E 80 00 20 */ blr
.global lbl_801399A4
lbl_801399A4:
/* 801399A4 001357E4 54 E0 10 3A */ slwi r0, r7, 2
/* 801399A8 001357E8 7C 63 02 14 */ add r3, r3, r0
/* 801399AC 001357EC 98 83 00 3E */ stb r4, 0x3e(r3)
/* 801399B0 001357F0 4E 80 00 20 */ blr
.global lbl_801399B4
lbl_801399B4:
/* 801399B4 001357F4 54 E0 10 3A */ slwi r0, r7, 2
/* 801399B8 001357F8 7C 63 02 14 */ add r3, r3, r0
/* 801399BC 001357FC 98 83 00 3F */ stb r4, 0x3f(r3)
/* 801399C0 00135800 4E 80 00 20 */ blr
/* 801399C4 00135804 00 00 00 00 */ .4byte 0x00000000
/* 801399C8 00135808 00 00 00 00 */ .4byte 0x00000000
/* 801399CC 0013580C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetupGX__Q36nw4hbm3lyt8MaterialFbUc
SetupGX__Q36nw4hbm3lyt8MaterialFbUc:
2022-10-16 16:05:58 +00:00
/* 801399D0 00135810 94 21 FE E0 */ stwu r1, -0x120(r1)
/* 801399D4 00135814 7C 08 02 A6 */ mflr r0
/* 801399D8 00135818 90 01 01 24 */ stw r0, 0x124(r1)
/* 801399DC 0013581C 39 61 01 00 */ addi r11, r1, 0x100
/* 801399E0 00135820 DB E1 01 10 */ stfd f31, 0x110(r1)
/* 801399E4 00135824 F3 E1 01 18 */ psq_st f31, 0x118(r1), 0, qr0
/* 801399E8 00135828 DB C1 01 00 */ stfd f30, 0x100(r1)
/* 801399EC 0013582C F3 C1 01 08 */ psq_st f30, 0x108(r1), 0, qr0
/* 801399F0 00135830 4B EC D9 39 */ bl lbl_80007328
/* 801399F4 00135834 7C 7A 1B 78 */ mr r26, r3
/* 801399F8 00135838 7C 9C 23 78 */ mr r28, r4
/* 801399FC 0013583C 7C BB 2B 78 */ mr r27, r5
/* 80139A00 00135840 3B C0 00 01 */ li r30, 0x1
/* 80139A04 00135844 3A E0 00 00 */ li r23, 0x0
/* 80139A08 00135848 38 60 00 01 */ li r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80139A0C 0013584C 4B EF CA D5 */ bl GXSetNumChans
2022-10-16 16:05:58 +00:00
/* 80139A10 00135850 80 7A 00 4C */ lwz r3, 0x4c(r26)
/* 80139A14 00135854 54 60 C7 FF */ extrwi. r0, r3, 1, 23
/* 80139A18 00135858 41 82 00 A4 */ beq lbl_80139ABC
/* 80139A1C 0013585C 54 60 47 3E */ extrwi r0, r3, 4, 4
/* 80139A20 00135860 80 FA 00 58 */ lwz r7, 0x58(r26)
/* 80139A24 00135864 1C 00 00 14 */ mulli r0, r0, 0x14
/* 80139A28 00135868 54 65 76 BA */ rlwinm r5, r3, 14, 26, 29
/* 80139A2C 0013586C 54 64 4D F4 */ rlwinm r4, r3, 9, 23, 26
/* 80139A30 00135870 38 60 00 00 */ li r3, 0x0
/* 80139A34 00135874 7C C5 22 14 */ add r6, r5, r4
/* 80139A38 00135878 38 80 00 00 */ li r4, 0x0
/* 80139A3C 0013587C 7C 07 02 14 */ add r0, r7, r0
/* 80139A40 00135880 38 A0 00 00 */ li r5, 0x0
/* 80139A44 00135884 7F 06 02 14 */ add r24, r6, r0
/* 80139A48 00135888 7C C6 00 AE */ lbzx r6, r6, r0
/* 80139A4C 0013588C 38 E0 00 00 */ li r7, 0x0
/* 80139A50 00135890 39 00 00 00 */ li r8, 0x0
/* 80139A54 00135894 39 20 00 02 */ li r9, 0x2
2022-10-16 16:31:36 +00:00
/* 80139A58 00135898 4B EF CA B9 */ bl GXSetChanCtrl
2022-10-16 16:05:58 +00:00
/* 80139A5C 0013589C 88 D8 00 01 */ lbz r6, 0x1(r24)
/* 80139A60 001358A0 38 60 00 02 */ li r3, 0x2
/* 80139A64 001358A4 38 80 00 00 */ li r4, 0x0
/* 80139A68 001358A8 38 A0 00 00 */ li r5, 0x0
/* 80139A6C 001358AC 38 E0 00 00 */ li r7, 0x0
/* 80139A70 001358B0 39 00 00 00 */ li r8, 0x0
/* 80139A74 001358B4 39 20 00 02 */ li r9, 0x2
2022-10-16 16:31:36 +00:00
/* 80139A78 001358B8 4B EF CA 99 */ bl GXSetChanCtrl
2022-10-16 16:05:58 +00:00
/* 80139A7C 001358BC 88 78 00 00 */ lbz r3, 0x0(r24)
/* 80139A80 001358C0 3B C0 00 01 */ li r30, 0x1
/* 80139A84 001358C4 2C 03 00 01 */ cmpwi r3, 0x1
/* 80139A88 001358C8 41 82 00 14 */ beq lbl_80139A9C
/* 80139A8C 001358CC 88 18 00 01 */ lbz r0, 0x1(r24)
/* 80139A90 001358D0 2C 00 00 01 */ cmpwi r0, 0x1
/* 80139A94 001358D4 41 82 00 08 */ beq lbl_80139A9C
/* 80139A98 001358D8 3B C0 00 00 */ li r30, 0x0
.global lbl_80139A9C
lbl_80139A9C:
/* 80139A9C 001358DC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80139AA0 001358E0 3A E0 00 00 */ li r23, 0x0
/* 80139AA4 001358E4 41 82 00 10 */ beq lbl_80139AB4
/* 80139AA8 001358E8 88 18 00 01 */ lbz r0, 0x1(r24)
/* 80139AAC 001358EC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80139AB0 001358F0 40 82 00 2C */ bne lbl_80139ADC
.global lbl_80139AB4
lbl_80139AB4:
/* 80139AB4 001358F4 3A E0 00 01 */ li r23, 0x1
/* 80139AB8 001358F8 48 00 00 24 */ b lbl_80139ADC
.global lbl_80139ABC
lbl_80139ABC:
/* 80139ABC 001358FC 38 60 00 04 */ li r3, 0x4
/* 80139AC0 00135900 38 80 00 00 */ li r4, 0x0
/* 80139AC4 00135904 38 A0 00 00 */ li r5, 0x0
/* 80139AC8 00135908 38 C0 00 01 */ li r6, 0x1
/* 80139ACC 0013590C 38 E0 00 00 */ li r7, 0x0
/* 80139AD0 00135910 39 00 00 00 */ li r8, 0x0
/* 80139AD4 00135914 39 20 00 02 */ li r9, 0x2
2022-10-16 16:31:36 +00:00
/* 80139AD8 00135918 4B EF CA 39 */ bl GXSetChanCtrl
2022-10-16 16:05:58 +00:00
.global lbl_80139ADC
lbl_80139ADC:
/* 80139ADC 0013591C 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80139AE0 00135920 3B A0 00 00 */ li r29, 0x0
/* 80139AE4 00135924 41 82 00 14 */ beq lbl_80139AF8
/* 80139AE8 00135928 2C 1C 00 00 */ cmpwi r28, 0x0
/* 80139AEC 0013592C 3B A0 00 01 */ li r29, 0x1
/* 80139AF0 00135930 40 82 00 08 */ bne lbl_80139AF8
/* 80139AF4 00135934 3B A0 00 00 */ li r29, 0x0
.global lbl_80139AF8
lbl_80139AF8:
/* 80139AF8 00135938 2C 17 00 00 */ cmpwi r23, 0x0
/* 80139AFC 0013593C 41 82 00 CC */ beq lbl_80139BC8
/* 80139B00 00135940 80 BA 00 4C */ lwz r5, 0x4c(r26)
/* 80139B04 00135944 38 00 FF FF */ li r0, -0x1
/* 80139B08 00135948 90 01 00 30 */ stw r0, 0x30(r1)
/* 80139B0C 0013594C 54 A0 CF FF */ extrwi. r0, r5, 1, 24
/* 80139B10 00135950 41 82 00 4C */ beq lbl_80139B5C
/* 80139B14 00135954 54 A0 47 3E */ extrwi r0, r5, 4, 4
/* 80139B18 00135958 54 A4 76 BA */ rlwinm r4, r5, 14, 26, 29
/* 80139B1C 0013595C 1C 60 00 14 */ mulli r3, r0, 0x14
/* 80139B20 00135960 80 DA 00 58 */ lwz r6, 0x58(r26)
/* 80139B24 00135964 54 A0 4D F4 */ rlwinm r0, r5, 9, 23, 26
/* 80139B28 00135968 54 A5 D7 7A */ rlwinm r5, r5, 26, 29, 29
/* 80139B2C 0013596C 7C 04 02 14 */ add r0, r4, r0
/* 80139B30 00135970 7C 65 1A 14 */ add r3, r5, r3
/* 80139B34 00135974 7C 06 02 14 */ add r0, r6, r0
/* 80139B38 00135978 7C C3 02 14 */ add r6, r3, r0
/* 80139B3C 0013597C 7C A3 00 AE */ lbzx r5, r3, r0
/* 80139B40 00135980 88 86 00 01 */ lbz r4, 0x1(r6)
/* 80139B44 00135984 88 66 00 02 */ lbz r3, 0x2(r6)
/* 80139B48 00135988 88 06 00 03 */ lbz r0, 0x3(r6)
/* 80139B4C 0013598C 98 A1 00 30 */ stb r5, 0x30(r1)
/* 80139B50 00135990 98 81 00 31 */ stb r4, 0x31(r1)
/* 80139B54 00135994 98 61 00 32 */ stb r3, 0x32(r1)
/* 80139B58 00135998 98 01 00 33 */ stb r0, 0x33(r1)
.global lbl_80139B5C
lbl_80139B5C:
/* 80139B5C 0013599C 80 01 00 30 */ lwz r0, 0x30(r1)
/* 80139B60 001359A0 7F 65 DB 78 */ mr r5, r27
/* 80139B64 001359A4 90 01 00 28 */ stw r0, 0x28(r1)
/* 80139B68 001359A8 38 61 00 24 */ addi r3, r1, 0x24
/* 80139B6C 001359AC 38 81 00 28 */ addi r4, r1, 0x28
2022-10-16 16:31:36 +00:00
/* 80139B70 001359B0 4B FC 45 71 */ bl MultipleAlpha__Q34nw4r3lyt6detailFQ34nw4r2ut5ColorUc
2022-10-16 16:05:58 +00:00
/* 80139B74 001359B4 88 E1 00 24 */ lbz r7, 0x24(r1)
/* 80139B78 001359B8 38 81 00 20 */ addi r4, r1, 0x20
/* 80139B7C 001359BC 88 C1 00 25 */ lbz r6, 0x25(r1)
/* 80139B80 001359C0 38 60 00 04 */ li r3, 0x4
/* 80139B84 001359C4 88 A1 00 26 */ lbz r5, 0x26(r1)
/* 80139B88 001359C8 88 01 00 27 */ lbz r0, 0x27(r1)
/* 80139B8C 001359CC 98 E1 00 30 */ stb r7, 0x30(r1)
/* 80139B90 001359D0 98 C1 00 31 */ stb r6, 0x31(r1)
/* 80139B94 001359D4 98 A1 00 32 */ stb r5, 0x32(r1)
/* 80139B98 001359D8 98 01 00 33 */ stb r0, 0x33(r1)
/* 80139B9C 001359DC 80 01 00 30 */ lwz r0, 0x30(r1)
/* 80139BA0 001359E0 90 01 00 20 */ stw r0, 0x20(r1)
2022-10-16 16:31:36 +00:00
/* 80139BA4 001359E4 4B EF C8 5D */ bl GXSetChanMatColor
2022-10-16 16:05:58 +00:00
/* 80139BA8 001359E8 2C 1D 00 00 */ cmpwi r29, 0x0
/* 80139BAC 001359EC 3B A0 00 00 */ li r29, 0x0
/* 80139BB0 001359F0 40 82 00 14 */ bne lbl_80139BC4
/* 80139BB4 001359F4 80 61 00 30 */ lwz r3, 0x30(r1)
/* 80139BB8 001359F8 3C 03 00 01 */ addis r0, r3, 0x1
/* 80139BBC 001359FC 28 00 FF FF */ cmplwi r0, 0xffff
/* 80139BC0 00135A00 41 82 00 08 */ beq lbl_80139BC8
.global lbl_80139BC4
lbl_80139BC4:
/* 80139BC4 00135A04 3B A0 00 01 */ li r29, 0x1
.global lbl_80139BC8
lbl_80139BC8:
/* 80139BC8 00135A08 3B E0 00 00 */ li r31, 0x0
/* 80139BCC 00135A0C 9B E1 00 5C */ stb r31, 0x5c(r1)
/* 80139BD0 00135A10 9B E1 00 5D */ stb r31, 0x5d(r1)
/* 80139BD4 00135A14 9B E1 00 5E */ stb r31, 0x5e(r1)
/* 80139BD8 00135A18 9B E1 00 5F */ stb r31, 0x5f(r1)
/* 80139BDC 00135A1C 9B E1 00 60 */ stb r31, 0x60(r1)
/* 80139BE0 00135A20 9B E1 00 61 */ stb r31, 0x61(r1)
/* 80139BE4 00135A24 9B E1 00 62 */ stb r31, 0x62(r1)
/* 80139BE8 00135A28 9B E1 00 63 */ stb r31, 0x63(r1)
/* 80139BEC 00135A2C 9B E1 00 64 */ stb r31, 0x64(r1)
/* 80139BF0 00135A30 9B E1 00 65 */ stb r31, 0x65(r1)
/* 80139BF4 00135A34 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139BF8 00135A38 54 03 67 3E */ extrwi r3, r0, 4, 8
2022-10-16 16:31:36 +00:00
/* 80139BFC 00135A3C 4B EF AA E5 */ bl GXSetNumTexGens
2022-10-16 16:05:58 +00:00
/* 80139C00 00135A40 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139C04 00135A44 54 00 67 3F */ extrwi. r0, r0, 4, 8
/* 80139C08 00135A48 41 82 00 94 */ beq lbl_80139C9C
/* 80139C0C 00135A4C 80 9A 00 4C */ lwz r4, 0x4c(r26)
/* 80139C10 00135A50 3C 60 AA AB */ lis r3, 0xAAAAAAAB@ha
/* 80139C14 00135A54 80 BA 00 58 */ lwz r5, 0x58(r26)
/* 80139C18 00135A58 3B 61 00 5C */ addi r27, r1, 0x5c
/* 80139C1C 00135A5C 54 80 47 3E */ extrwi r0, r4, 4, 4
/* 80139C20 00135A60 54 84 4D F4 */ rlwinm r4, r4, 9, 23, 26
/* 80139C24 00135A64 1C 00 00 14 */ mulli r0, r0, 0x14
/* 80139C28 00135A68 3B 23 AA AB */ addi r25, r3, 0xAAAAAAAB@l
/* 80139C2C 00135A6C 3B 80 00 00 */ li r28, 0x0
/* 80139C30 00135A70 3B 00 00 01 */ li r24, 0x1
/* 80139C34 00135A74 7C 05 02 14 */ add r0, r5, r0
/* 80139C38 00135A78 7E E4 02 14 */ add r23, r4, r0
/* 80139C3C 00135A7C 48 00 00 50 */ b lbl_80139C8C
.global lbl_80139C40
lbl_80139C40:
/* 80139C40 00135A80 88 17 00 00 */ lbz r0, 0x0(r23)
/* 80139C44 00135A84 88 D7 00 02 */ lbz r6, 0x2(r23)
/* 80139C48 00135A88 2C 00 00 01 */ cmpwi r0, 0x1
/* 80139C4C 00135A8C 40 82 00 20 */ bne lbl_80139C6C
/* 80139C50 00135A90 28 06 00 3C */ cmplwi r6, 0x3c
/* 80139C54 00135A94 41 82 00 18 */ beq lbl_80139C6C
/* 80139C58 00135A98 38 06 FF E2 */ addi r0, r6, -0x1e
/* 80139C5C 00135A9C 3B E0 00 01 */ li r31, 0x1
/* 80139C60 00135AA0 7C 19 00 16 */ mulhwu r0, r25, r0
/* 80139C64 00135AA4 54 00 F8 7E */ srwi r0, r0, 1
/* 80139C68 00135AA8 7F 1B 01 AE */ stbx r24, r27, r0
.global lbl_80139C6C
lbl_80139C6C:
/* 80139C6C 00135AAC 88 97 00 00 */ lbz r4, 0x0(r23)
/* 80139C70 00135AB0 7F 83 E3 78 */ mr r3, r28
/* 80139C74 00135AB4 88 B7 00 01 */ lbz r5, 0x1(r23)
/* 80139C78 00135AB8 38 E0 00 00 */ li r7, 0x0
/* 80139C7C 00135ABC 39 00 00 7D */ li r8, 0x7d
2022-10-16 16:31:36 +00:00
/* 80139C80 00135AC0 4B EF A8 11 */ bl GXSetTexCoordGen2
2022-10-16 16:05:58 +00:00
/* 80139C84 00135AC4 3A F7 00 04 */ addi r23, r23, 0x4
/* 80139C88 00135AC8 3B 9C 00 01 */ addi r28, r28, 0x1
.global lbl_80139C8C
lbl_80139C8C:
/* 80139C8C 00135ACC 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139C90 00135AD0 54 00 67 3E */ extrwi r0, r0, 4, 8
/* 80139C94 00135AD4 7C 1C 00 40 */ cmplw r28, r0
/* 80139C98 00135AD8 41 80 FF A8 */ blt lbl_80139C40
.global lbl_80139C9C
lbl_80139C9C:
/* 80139C9C 00135ADC 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80139CA0 00135AE0 41 82 00 74 */ beq lbl_80139D14
/* 80139CA4 00135AE4 80 1A 00 4C */ lwz r0, 0x4c(r26)
/* 80139CA8 00135AE8 3B 61 00 5C */ addi r27, r1, 0x5c
/* 80139CAC 00135AEC 80 7A 00 58 */ lwz r3, 0x58(r26)
/* 80139CB0 00135AF0 3B 80 00 00 */ li r28, 0x0
/* 80139CB4 00135AF4 54 00 4D F4 */ rlwinm r0, r0, 9, 23, 26
/* 80139CB8 00135AF8 7F 03 02 14 */ add r24, r3, r0
/* 80139CBC 00135AFC 48 00 00 44 */ b lbl_80139D00
.global lbl_80139CC0
lbl_80139CC0:
/* 80139CC0 00135B00 57 83 06 3E */ clrlwi r3, r28, 24
/* 80139CC4 00135B04 7C 1B 18 AE */ lbzx r0, r27, r3
/* 80139CC8 00135B08 2C 00 00 00 */ cmpwi r0, 0x0
/* 80139CCC 00135B0C 41 82 00 30 */ beq lbl_80139CFC
/* 80139CD0 00135B10 1C 03 00 14 */ mulli r0, r3, 0x14
/* 80139CD4 00135B14 38 61 00 A0 */ addi r3, r1, 0xa0
/* 80139CD8 00135B18 7C 98 02 14 */ add r4, r24, r0
2022-10-16 16:31:36 +00:00
/* 80139CDC 00135B1C 4B FF DB 95 */ bl "CalcTextureMtx__26@unnamed@lyt_material_cpp@FPQ36nw4hbm4math5MTX34RCQ36nw4hbm3lyt6TexSRT"
2022-10-16 16:05:58 +00:00
/* 80139CE0 00135B20 57 83 06 3E */ clrlwi r3, r28, 24
/* 80139CE4 00135B24 57 80 15 BA */ rlwinm r0, r28, 2, 22, 29
/* 80139CE8 00135B28 7C 83 00 50 */ subf r4, r3, r0
/* 80139CEC 00135B2C 38 A0 00 01 */ li r5, 0x1
/* 80139CF0 00135B30 38 61 00 A0 */ addi r3, r1, 0xa0
/* 80139CF4 00135B34 38 84 00 1E */ addi r4, r4, 0x1e
2022-10-16 16:31:36 +00:00
/* 80139CF8 00135B38 4B EF F0 69 */ bl GXLoadTexMtxImm
2022-10-16 16:05:58 +00:00
.global lbl_80139CFC
lbl_80139CFC:
/* 80139CFC 00135B3C 3B 9C 00 01 */ addi r28, r28, 0x1
.global lbl_80139D00
lbl_80139D00:
/* 80139D00 00135B40 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139D04 00135B44 57 83 06 3E */ clrlwi r3, r28, 24
/* 80139D08 00135B48 54 00 47 3E */ extrwi r0, r0, 4, 4
/* 80139D0C 00135B4C 7C 03 00 40 */ cmplw r3, r0
/* 80139D10 00135B50 41 80 FF B0 */ blt lbl_80139CC0
.global lbl_80139D14
lbl_80139D14:
/* 80139D14 00135B54 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139D18 00135B58 54 00 27 3F */ srwi. r0, r0, 28
/* 80139D1C 00135B5C 41 82 00 D0 */ beq lbl_80139DEC
/* 80139D20 00135B60 83 FA 00 58 */ lwz r31, 0x58(r26)
/* 80139D24 00135B64 3B 80 00 00 */ li r28, 0x0
/* 80139D28 00135B68 3B 60 00 00 */ li r27, 0x0
/* 80139D2C 00135B6C 48 00 00 B0 */ b lbl_80139DDC
.global lbl_80139D30
lbl_80139D30:
/* 80139D30 00135B70 80 9F 00 00 */ lwz r4, 0x0(r31)
/* 80139D34 00135B74 38 61 00 80 */ addi r3, r1, 0x80
/* 80139D38 00135B78 80 1F 00 04 */ lwz r0, 0x4(r31)
/* 80139D3C 00135B7C 90 01 00 84 */ stw r0, 0x84(r1)
/* 80139D40 00135B80 90 81 00 80 */ stw r4, 0x80(r1)
/* 80139D44 00135B84 80 9F 00 08 */ lwz r4, 0x8(r31)
/* 80139D48 00135B88 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80139D4C 00135B8C 90 01 00 8C */ stw r0, 0x8c(r1)
/* 80139D50 00135B90 90 81 00 88 */ stw r4, 0x88(r1)
/* 80139D54 00135B94 80 9F 00 10 */ lwz r4, 0x10(r31)
/* 80139D58 00135B98 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 80139D5C 00135B9C 90 01 00 94 */ stw r0, 0x94(r1)
/* 80139D60 00135BA0 90 81 00 90 */ stw r4, 0x90(r1)
/* 80139D64 00135BA4 80 9F 00 18 */ lwz r4, 0x18(r31)
/* 80139D68 00135BA8 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80139D6C 00135BAC 90 01 00 9C */ stw r0, 0x9c(r1)
/* 80139D70 00135BB0 90 81 00 98 */ stw r4, 0x98(r1)
2022-10-16 16:31:36 +00:00
/* 80139D74 00135BB4 4B FE 70 ED */ bl GetSize__Q34nw4r2ut13DvdFileStreamCFv
2022-10-16 16:05:58 +00:00
/* 80139D78 00135BB8 38 03 FF F8 */ addi r0, r3, -0x8
/* 80139D7C 00135BBC 28 00 00 01 */ cmplwi r0, 0x1
/* 80139D80 00135BC0 41 81 00 48 */ bgt lbl_80139DC8
/* 80139D84 00135BC4 38 61 00 80 */ addi r3, r1, 0x80
2022-10-16 16:31:36 +00:00
/* 80139D88 00135BC8 4B EF CD D9 */ bl GXGetTexObjUserData
2022-10-16 16:05:58 +00:00
/* 80139D8C 00135BCC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80139D90 00135BD0 7C 66 1B 78 */ mr r6, r3
/* 80139D94 00135BD4 41 82 00 34 */ beq lbl_80139DC8
/* 80139D98 00135BD8 80 86 00 08 */ lwz r4, 0x8(r6)
/* 80139D9C 00135BDC 38 61 00 50 */ addi r3, r1, 0x50
/* 80139DA0 00135BE0 80 A6 00 04 */ lwz r5, 0x4(r6)
/* 80139DA4 00135BE4 A0 C6 00 00 */ lhz r6, 0x0(r6)
2022-10-16 16:31:36 +00:00
/* 80139DA8 00135BE8 4B EF D0 E9 */ bl GXInitTlutObj
2022-10-16 16:05:58 +00:00
/* 80139DAC 00135BEC 7F 84 E3 78 */ mr r4, r28
/* 80139DB0 00135BF0 38 61 00 50 */ addi r3, r1, 0x50
2022-10-16 16:31:36 +00:00
/* 80139DB4 00135BF4 4B EF D1 0D */ bl GXLoadTlut
2022-10-16 16:05:58 +00:00
/* 80139DB8 00135BF8 7F 84 E3 78 */ mr r4, r28
/* 80139DBC 00135BFC 38 61 00 80 */ addi r3, r1, 0x80
2022-10-16 16:31:36 +00:00
/* 80139DC0 00135C00 4B EF CD 81 */ bl GXInitTexObjTlut
2022-10-16 16:05:58 +00:00
/* 80139DC4 00135C04 3B 9C 00 01 */ addi r28, r28, 0x1
.global lbl_80139DC8
lbl_80139DC8:
/* 80139DC8 00135C08 7F 64 DB 78 */ mr r4, r27
/* 80139DCC 00135C0C 38 61 00 80 */ addi r3, r1, 0x80
2022-10-16 16:31:36 +00:00
/* 80139DD0 00135C10 4B EF D0 61 */ bl GXLoadTexObj
2022-10-16 16:05:58 +00:00
/* 80139DD4 00135C14 3B FF 00 20 */ addi r31, r31, 0x20
/* 80139DD8 00135C18 3B 7B 00 01 */ addi r27, r27, 0x1
.global lbl_80139DDC
lbl_80139DDC:
/* 80139DDC 00135C1C 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139DE0 00135C20 54 00 27 3E */ srwi r0, r0, 28
/* 80139DE4 00135C24 7C 1B 00 40 */ cmplw r27, r0
/* 80139DE8 00135C28 41 80 FF 48 */ blt lbl_80139D30
.global lbl_80139DEC
lbl_80139DEC:
/* 80139DEC 00135C2C 80 BA 00 24 */ lwz r5, 0x24(r26)
/* 80139DF0 00135C30 38 81 00 48 */ addi r4, r1, 0x48
/* 80139DF4 00135C34 80 1A 00 28 */ lwz r0, 0x28(r26)
/* 80139DF8 00135C38 38 60 00 01 */ li r3, 0x1
/* 80139DFC 00135C3C 90 01 00 4C */ stw r0, 0x4c(r1)
/* 80139E00 00135C40 90 A1 00 48 */ stw r5, 0x48(r1)
2022-10-16 16:31:36 +00:00
/* 80139E04 00135C44 4B EF DF FD */ bl GXSetTevColorS10
2022-10-16 16:05:58 +00:00
/* 80139E08 00135C48 80 BA 00 2C */ lwz r5, 0x2c(r26)
/* 80139E0C 00135C4C 38 81 00 40 */ addi r4, r1, 0x40
/* 80139E10 00135C50 80 1A 00 30 */ lwz r0, 0x30(r26)
/* 80139E14 00135C54 38 60 00 02 */ li r3, 0x2
/* 80139E18 00135C58 90 01 00 44 */ stw r0, 0x44(r1)
/* 80139E1C 00135C5C 90 A1 00 40 */ stw r5, 0x40(r1)
2022-10-16 16:31:36 +00:00
/* 80139E20 00135C60 4B EF DF E1 */ bl GXSetTevColorS10
2022-10-16 16:05:58 +00:00
/* 80139E24 00135C64 80 BA 00 34 */ lwz r5, 0x34(r26)
/* 80139E28 00135C68 38 81 00 38 */ addi r4, r1, 0x38
/* 80139E2C 00135C6C 80 1A 00 38 */ lwz r0, 0x38(r26)
/* 80139E30 00135C70 38 60 00 03 */ li r3, 0x3
/* 80139E34 00135C74 90 01 00 3C */ stw r0, 0x3c(r1)
/* 80139E38 00135C78 90 A1 00 38 */ stw r5, 0x38(r1)
2022-10-16 16:31:36 +00:00
/* 80139E3C 00135C7C 4B EF DF C5 */ bl GXSetTevColorS10
2022-10-16 16:05:58 +00:00
/* 80139E40 00135C80 80 1A 00 3C */ lwz r0, 0x3c(r26)
/* 80139E44 00135C84 38 81 00 1C */ addi r4, r1, 0x1c
/* 80139E48 00135C88 90 01 00 1C */ stw r0, 0x1c(r1)
/* 80139E4C 00135C8C 38 60 00 00 */ li r3, 0x0
2022-10-16 16:31:36 +00:00
/* 80139E50 00135C90 4B EF E0 21 */ bl GXSetTevKColor
2022-10-16 16:05:58 +00:00
/* 80139E54 00135C94 80 1A 00 40 */ lwz r0, 0x40(r26)
/* 80139E58 00135C98 38 81 00 18 */ addi r4, r1, 0x18
/* 80139E5C 00135C9C 90 01 00 18 */ stw r0, 0x18(r1)
/* 80139E60 00135CA0 38 60 00 01 */ li r3, 0x1
2022-10-16 16:31:36 +00:00
/* 80139E64 00135CA4 4B EF E0 0D */ bl GXSetTevKColor
2022-10-16 16:05:58 +00:00
/* 80139E68 00135CA8 80 1A 00 44 */ lwz r0, 0x44(r26)
/* 80139E6C 00135CAC 38 81 00 14 */ addi r4, r1, 0x14
/* 80139E70 00135CB0 90 01 00 14 */ stw r0, 0x14(r1)
/* 80139E74 00135CB4 38 60 00 02 */ li r3, 0x2
2022-10-16 16:31:36 +00:00
/* 80139E78 00135CB8 4B EF DF F9 */ bl GXSetTevKColor
2022-10-16 16:05:58 +00:00
/* 80139E7C 00135CBC 80 1A 00 48 */ lwz r0, 0x48(r26)
/* 80139E80 00135CC0 38 81 00 10 */ addi r4, r1, 0x10
/* 80139E84 00135CC4 90 01 00 10 */ stw r0, 0x10(r1)
/* 80139E88 00135CC8 38 60 00 03 */ li r3, 0x3
2022-10-16 16:31:36 +00:00
/* 80139E8C 00135CCC 4B EF DF E5 */ bl GXSetTevKColor
2022-10-16 16:05:58 +00:00
/* 80139E90 00135CD0 81 1A 00 4C */ lwz r8, 0x4c(r26)
/* 80139E94 00135CD4 55 00 97 FF */ extrwi. r0, r8, 1, 17
/* 80139E98 00135CD8 41 82 00 68 */ beq lbl_80139F00
/* 80139E9C 00135CDC 55 00 47 3E */ extrwi r0, r8, 4, 4
/* 80139EA0 00135CE0 55 06 DF 7A */ rlwinm r6, r8, 27, 29, 29
/* 80139EA4 00135CE4 1C 80 00 14 */ mulli r4, r0, 0x14
/* 80139EA8 00135CE8 55 05 D7 7A */ rlwinm r5, r8, 26, 29, 29
/* 80139EAC 00135CEC 55 03 76 BA */ rlwinm r3, r8, 14, 26, 29
/* 80139EB0 00135CF0 80 FA 00 58 */ lwz r7, 0x58(r26)
/* 80139EB4 00135CF4 55 00 4D F4 */ rlwinm r0, r8, 9, 23, 26
/* 80139EB8 00135CF8 7C 63 02 14 */ add r3, r3, r0
/* 80139EBC 00135CFC 7C 06 2A 14 */ add r0, r6, r5
/* 80139EC0 00135D00 3A E0 00 00 */ li r23, 0x0
/* 80139EC4 00135D04 7C 64 1A 14 */ add r3, r4, r3
/* 80139EC8 00135D08 7C 07 02 14 */ add r0, r7, r0
/* 80139ECC 00135D0C 7F 63 02 14 */ add r27, r3, r0
.global lbl_80139ED0
lbl_80139ED0:
/* 80139ED0 00135D10 88 1B 00 00 */ lbz r0, 0x0(r27)
/* 80139ED4 00135D14 7E E3 BB 78 */ mr r3, r23
/* 80139ED8 00135D18 54 04 07 BE */ clrlwi r4, r0, 30
/* 80139EDC 00135D1C 54 05 F7 BE */ extrwi r5, r0, 2, 28
/* 80139EE0 00135D20 54 06 E7 BE */ extrwi r6, r0, 2, 26
/* 80139EE4 00135D24 54 07 D7 BE */ extrwi r7, r0, 2, 24
2022-10-16 16:31:36 +00:00
/* 80139EE8 00135D28 4B EF E0 C9 */ bl GXSetTevSwapModeTable
2022-10-16 16:05:58 +00:00
/* 80139EEC 00135D2C 3A F7 00 01 */ addi r23, r23, 0x1
/* 80139EF0 00135D30 3B 7B 00 01 */ addi r27, r27, 0x1
/* 80139EF4 00135D34 2C 17 00 04 */ cmpwi r23, 0x4
/* 80139EF8 00135D38 41 80 FF D8 */ blt lbl_80139ED0
/* 80139EFC 00135D3C 48 00 00 64 */ b lbl_80139F60
.global lbl_80139F00
lbl_80139F00:
/* 80139F00 00135D40 38 60 00 00 */ li r3, 0x0
/* 80139F04 00135D44 38 80 00 00 */ li r4, 0x0
/* 80139F08 00135D48 38 A0 00 01 */ li r5, 0x1
/* 80139F0C 00135D4C 38 C0 00 02 */ li r6, 0x2
/* 80139F10 00135D50 38 E0 00 03 */ li r7, 0x3
2022-10-16 16:31:36 +00:00
/* 80139F14 00135D54 4B EF E0 9D */ bl GXSetTevSwapModeTable
2022-10-16 16:05:58 +00:00
/* 80139F18 00135D58 38 60 00 01 */ li r3, 0x1
/* 80139F1C 00135D5C 38 80 00 00 */ li r4, 0x0
/* 80139F20 00135D60 38 A0 00 00 */ li r5, 0x0
/* 80139F24 00135D64 38 C0 00 00 */ li r6, 0x0
/* 80139F28 00135D68 38 E0 00 03 */ li r7, 0x3
2022-10-16 16:31:36 +00:00
/* 80139F2C 00135D6C 4B EF E0 85 */ bl GXSetTevSwapModeTable
2022-10-16 16:05:58 +00:00
/* 80139F30 00135D70 38 60 00 02 */ li r3, 0x2
/* 80139F34 00135D74 38 80 00 01 */ li r4, 0x1
/* 80139F38 00135D78 38 A0 00 01 */ li r5, 0x1
/* 80139F3C 00135D7C 38 C0 00 01 */ li r6, 0x1
/* 80139F40 00135D80 38 E0 00 03 */ li r7, 0x3
2022-10-16 16:31:36 +00:00
/* 80139F44 00135D84 4B EF E0 6D */ bl GXSetTevSwapModeTable
2022-10-16 16:05:58 +00:00
/* 80139F48 00135D88 38 60 00 03 */ li r3, 0x3
/* 80139F4C 00135D8C 38 80 00 02 */ li r4, 0x2
/* 80139F50 00135D90 38 A0 00 02 */ li r5, 0x2
/* 80139F54 00135D94 38 C0 00 02 */ li r6, 0x2
/* 80139F58 00135D98 38 E0 00 03 */ li r7, 0x3
2022-10-16 16:31:36 +00:00
/* 80139F5C 00135D9C 4B EF E0 55 */ bl GXSetTevSwapModeTable
2022-10-16 16:05:58 +00:00
.global lbl_80139F60
lbl_80139F60:
/* 80139F60 00135DA0 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 80139F64 00135DA4 3B 60 00 00 */ li r27, 0x0
/* 80139F68 00135DA8 9B 61 00 2C */ stb r27, 0x2c(r1)
/* 80139F6C 00135DAC 54 03 BE FF */ extrwi. r3, r0, 5, 18
/* 80139F70 00135DB0 9B 61 00 2D */ stb r27, 0x2d(r1)
/* 80139F74 00135DB4 9B 61 00 2E */ stb r27, 0x2e(r1)
/* 80139F78 00135DB8 41 82 01 CC */ beq lbl_8013A144
2022-10-16 16:31:36 +00:00
/* 80139F7C 00135DBC 4B EF E2 E5 */ bl GXSetNumTevStages
2022-10-16 16:05:58 +00:00
/* 80139F80 00135DC0 81 3A 00 4C */ lwz r9, 0x4c(r26)
/* 80139F84 00135DC4 3B A1 00 2C */ addi r29, r1, 0x2c
/* 80139F88 00135DC8 81 5A 00 58 */ lwz r10, 0x58(r26)
/* 80139F8C 00135DCC 3B 80 00 00 */ li r28, 0x0
/* 80139F90 00135DD0 55 23 77 BE */ extrwi r3, r9, 2, 12
/* 80139F94 00135DD4 55 20 47 3E */ extrwi r0, r9, 4, 4
/* 80139F98 00135DD8 7C 03 02 14 */ add r0, r3, r0
/* 80139F9C 00135DDC 55 25 D7 7A */ rlwinm r5, r9, 26, 29, 29
/* 80139FA0 00135DE0 1D 00 00 14 */ mulli r8, r0, 0x14
/* 80139FA4 00135DE4 55 23 DF 7A */ rlwinm r3, r9, 27, 29, 29
/* 80139FA8 00135DE8 55 20 A7 7A */ rlwinm r0, r9, 20, 29, 29
/* 80139FAC 00135DEC 55 27 4D F4 */ rlwinm r7, r9, 9, 23, 26
/* 80139FB0 00135DF0 55 26 76 BA */ rlwinm r6, r9, 14, 26, 29
/* 80139FB4 00135DF4 7C 03 02 14 */ add r0, r3, r0
/* 80139FB8 00135DF8 55 24 E7 7A */ rlwinm r4, r9, 28, 29, 29
/* 80139FBC 00135DFC 7C A8 2A 14 */ add r5, r8, r5
/* 80139FC0 00135E00 7C 04 02 14 */ add r0, r4, r0
/* 80139FC4 00135E04 55 23 EF 7A */ rlwinm r3, r9, 29, 29, 29
/* 80139FC8 00135E08 7C C7 32 14 */ add r6, r7, r6
/* 80139FCC 00135E0C 55 24 9E FA */ rlwinm r4, r9, 19, 27, 29
/* 80139FD0 00135E10 7C 63 02 14 */ add r3, r3, r0
/* 80139FD4 00135E14 3B E0 00 01 */ li r31, 0x1
/* 80139FD8 00135E18 7C 06 2A 14 */ add r0, r6, r5
/* 80139FDC 00135E1C 7C 64 1A 14 */ add r3, r4, r3
/* 80139FE0 00135E20 7C 0A 02 14 */ add r0, r10, r0
/* 80139FE4 00135E24 7F 23 02 14 */ add r25, r3, r0
/* 80139FE8 00135E28 48 00 01 44 */ b lbl_8013A12C
.global lbl_80139FEC
lbl_80139FEC:
/* 80139FEC 00135E2C 88 19 00 03 */ lbz r0, 0x3(r25)
/* 80139FF0 00135E30 7F 83 E3 78 */ mr r3, r28
/* 80139FF4 00135E34 88 B9 00 02 */ lbz r5, 0x2(r25)
/* 80139FF8 00135E38 88 99 00 00 */ lbz r4, 0x0(r25)
/* 80139FFC 00135E3C 50 05 45 EE */ rlwimi r5, r0, 8, 23, 23
/* 8013A000 00135E40 88 D9 00 01 */ lbz r6, 0x1(r25)
2022-10-16 16:31:36 +00:00
/* 8013A004 00135E44 4B EF E0 FD */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A008 00135E48 88 19 00 03 */ lbz r0, 0x3(r25)
/* 8013A00C 00135E4C 7F 83 E3 78 */ mr r3, r28
/* 8013A010 00135E50 54 04 FF BE */ extrwi r4, r0, 2, 29
/* 8013A014 00135E54 54 05 EF BE */ extrwi r5, r0, 2, 27
2022-10-16 16:31:36 +00:00
/* 8013A018 00135E58 4B EF DF 59 */ bl GXSetTevSwapMode
2022-10-16 16:05:58 +00:00
/* 8013A01C 00135E5C 88 19 00 05 */ lbz r0, 0x5(r25)
/* 8013A020 00135E60 7F 83 E3 78 */ mr r3, r28
/* 8013A024 00135E64 88 B9 00 04 */ lbz r5, 0x4(r25)
/* 8013A028 00135E68 54 06 07 3E */ clrlwi r6, r0, 28
/* 8013A02C 00135E6C 54 07 E7 3E */ extrwi r7, r0, 4, 24
/* 8013A030 00135E70 54 A4 07 3E */ clrlwi r4, r5, 28
/* 8013A034 00135E74 54 A5 E7 3E */ extrwi r5, r5, 4, 24
2022-10-16 16:31:36 +00:00
/* 8013A038 00135E78 4B EF DC 29 */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A03C 00135E7C 88 D9 00 06 */ lbz r6, 0x6(r25)
/* 8013A040 00135E80 7F 83 E3 78 */ mr r3, r28
/* 8013A044 00135E84 88 19 00 07 */ lbz r0, 0x7(r25)
/* 8013A048 00135E88 54 C4 07 3E */ clrlwi r4, r6, 28
/* 8013A04C 00135E8C 54 C5 E7 BE */ extrwi r5, r6, 2, 26
/* 8013A050 00135E90 54 C6 D7 BE */ extrwi r6, r6, 2, 24
/* 8013A054 00135E94 54 07 07 FE */ clrlwi r7, r0, 31
/* 8013A058 00135E98 54 08 FF BE */ extrwi r8, r0, 2, 29
2022-10-16 16:31:36 +00:00
/* 8013A05C 00135E9C 4B EF DC 85 */ bl GXSetTevColorOp
2022-10-16 16:05:58 +00:00
/* 8013A060 00135EA0 88 19 00 07 */ lbz r0, 0x7(r25)
/* 8013A064 00135EA4 7F 83 E3 78 */ mr r3, r28
/* 8013A068 00135EA8 54 04 EE FE */ extrwi r4, r0, 5, 24
2022-10-16 16:31:36 +00:00
/* 8013A06C 00135EAC 4B EF DE 65 */ bl GXSetTevKColorSel
2022-10-16 16:05:58 +00:00
/* 8013A070 00135EB0 88 19 00 09 */ lbz r0, 0x9(r25)
/* 8013A074 00135EB4 7F 83 E3 78 */ mr r3, r28
/* 8013A078 00135EB8 88 B9 00 08 */ lbz r5, 0x8(r25)
/* 8013A07C 00135EBC 54 06 07 3E */ clrlwi r6, r0, 28
/* 8013A080 00135EC0 54 07 E7 3E */ extrwi r7, r0, 4, 24
/* 8013A084 00135EC4 54 A4 07 3E */ clrlwi r4, r5, 28
/* 8013A088 00135EC8 54 A5 E7 3E */ extrwi r5, r5, 4, 24
2022-10-16 16:31:36 +00:00
/* 8013A08C 00135ECC 4B EF DC 15 */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A090 00135ED0 88 D9 00 0A */ lbz r6, 0xa(r25)
/* 8013A094 00135ED4 7F 83 E3 78 */ mr r3, r28
/* 8013A098 00135ED8 88 19 00 0B */ lbz r0, 0xb(r25)
/* 8013A09C 00135EDC 54 C4 07 3E */ clrlwi r4, r6, 28
/* 8013A0A0 00135EE0 54 C5 E7 BE */ extrwi r5, r6, 2, 26
/* 8013A0A4 00135EE4 54 C6 D7 BE */ extrwi r6, r6, 2, 24
/* 8013A0A8 00135EE8 54 07 07 FE */ clrlwi r7, r0, 31
/* 8013A0AC 00135EEC 54 08 FF BE */ extrwi r8, r0, 2, 29
2022-10-16 16:31:36 +00:00
/* 8013A0B0 00135EF0 4B EF DC 91 */ bl GXSetTevAlphaOp
2022-10-16 16:05:58 +00:00
/* 8013A0B4 00135EF4 88 19 00 0B */ lbz r0, 0xb(r25)
/* 8013A0B8 00135EF8 7F 83 E3 78 */ mr r3, r28
/* 8013A0BC 00135EFC 54 04 EE FE */ extrwi r4, r0, 5, 24
2022-10-16 16:31:36 +00:00
/* 8013A0C0 00135F00 4B EF DE 61 */ bl GXSetTevKAlphaSel
2022-10-16 16:05:58 +00:00
/* 8013A0C4 00135F04 89 59 00 0F */ lbz r10, 0xf(r25)
/* 8013A0C8 00135F08 7F 83 E3 78 */ mr r3, r28
/* 8013A0CC 00135F0C 88 D9 00 0D */ lbz r6, 0xd(r25)
/* 8013A0D0 00135F10 89 39 00 0E */ lbz r9, 0xe(r25)
/* 8013A0D4 00135F14 55 44 EF FE */ extrwi r4, r10, 1, 28
/* 8013A0D8 00135F18 54 D8 EF 3E */ extrwi r24, r6, 4, 25
/* 8013A0DC 00135F1C 55 40 E7 BE */ extrwi r0, r10, 2, 26
/* 8013A0E0 00135F20 90 81 00 08 */ stw r4, 0x8(r1)
/* 8013A0E4 00135F24 55 45 07 BE */ clrlwi r5, r10, 30
/* 8013A0E8 00135F28 55 28 07 7E */ clrlwi r8, r9, 29
/* 8013A0EC 00135F2C 7F 07 C3 78 */ mr r7, r24
/* 8013A0F0 00135F30 90 01 00 0C */ stw r0, 0xc(r1)
/* 8013A0F4 00135F34 54 C6 07 7E */ clrlwi r6, r6, 29
/* 8013A0F8 00135F38 55 29 EF 7E */ extrwi r9, r9, 3, 26
/* 8013A0FC 00135F3C 55 4A F7 FE */ extrwi r10, r10, 1, 29
/* 8013A100 00135F40 88 99 00 0C */ lbz r4, 0xc(r25)
2022-10-16 16:31:36 +00:00
/* 8013A104 00135F44 4B EF D6 6D */ bl GXSetTevIndirect
2022-10-16 16:05:58 +00:00
/* 8013A108 00135F48 2C 18 00 01 */ cmpwi r24, 0x1
/* 8013A10C 00135F4C 41 80 00 18 */ blt lbl_8013A124
/* 8013A110 00135F50 2C 18 00 03 */ cmpwi r24, 0x3
/* 8013A114 00135F54 41 81 00 10 */ bgt lbl_8013A124
/* 8013A118 00135F58 7C 7D C2 14 */ add r3, r29, r24
/* 8013A11C 00135F5C 3B 60 00 01 */ li r27, 0x1
/* 8013A120 00135F60 9B E3 FF FF */ stb r31, -0x1(r3)
.global lbl_8013A124
lbl_8013A124:
/* 8013A124 00135F64 3B 39 00 10 */ addi r25, r25, 0x10
/* 8013A128 00135F68 3B 9C 00 01 */ addi r28, r28, 0x1
.global lbl_8013A12C
lbl_8013A12C:
/* 8013A12C 00135F6C 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 8013A130 00135F70 54 00 BE FE */ extrwi r0, r0, 5, 18
/* 8013A134 00135F74 7C 1C 00 40 */ cmplw r28, r0
/* 8013A138 00135F78 41 80 FE B4 */ blt lbl_80139FEC
/* 8013A13C 00135F7C 3B A0 00 01 */ li r29, 0x1
/* 8013A140 00135F80 48 00 03 D0 */ b lbl_8013A510
.global lbl_8013A144
lbl_8013A144:
/* 8013A144 00135F84 54 00 27 3F */ srwi. r0, r0, 28
/* 8013A148 00135F88 3B 80 00 00 */ li r28, 0x0
/* 8013A14C 00135F8C 40 82 00 54 */ bne lbl_8013A1A0
/* 8013A150 00135F90 38 60 00 00 */ li r3, 0x0
/* 8013A154 00135F94 38 80 00 FF */ li r4, 0xff
/* 8013A158 00135F98 38 A0 00 FF */ li r5, 0xff
/* 8013A15C 00135F9C 38 C0 00 04 */ li r6, 0x4
2022-10-16 16:31:36 +00:00
/* 8013A160 00135FA0 4B EF DF A1 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A164 00135FA4 38 60 00 00 */ li r3, 0x0
/* 8013A168 00135FA8 38 80 00 0F */ li r4, 0xf
/* 8013A16C 00135FAC 38 A0 00 04 */ li r5, 0x4
/* 8013A170 00135FB0 38 C0 00 0A */ li r6, 0xa
/* 8013A174 00135FB4 38 E0 00 0F */ li r7, 0xf
2022-10-16 16:31:36 +00:00
/* 8013A178 00135FB8 4B EF DA E9 */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A17C 00135FBC 38 60 00 00 */ li r3, 0x0
/* 8013A180 00135FC0 38 80 00 07 */ li r4, 0x7
/* 8013A184 00135FC4 38 A0 00 02 */ li r5, 0x2
/* 8013A188 00135FC8 38 C0 00 05 */ li r6, 0x5
/* 8013A18C 00135FCC 38 E0 00 07 */ li r7, 0x7
2022-10-16 16:31:36 +00:00
/* 8013A190 00135FD0 4B EF DB 11 */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A194 00135FD4 3B A0 00 01 */ li r29, 0x1
/* 8013A198 00135FD8 3B 80 00 01 */ li r28, 0x1
/* 8013A19C 00135FDC 48 00 02 FC */ b lbl_8013A498
.global lbl_8013A1A0
lbl_8013A1A0:
/* 8013A1A0 00135FE0 28 00 00 01 */ cmplwi r0, 0x1
/* 8013A1A4 00135FE4 40 82 00 50 */ bne lbl_8013A1F4
/* 8013A1A8 00135FE8 38 60 00 00 */ li r3, 0x0
/* 8013A1AC 00135FEC 38 80 00 00 */ li r4, 0x0
/* 8013A1B0 00135FF0 38 A0 00 00 */ li r5, 0x0
/* 8013A1B4 00135FF4 38 C0 00 FF */ li r6, 0xff
2022-10-16 16:31:36 +00:00
/* 8013A1B8 00135FF8 4B EF DF 49 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A1BC 00135FFC 38 60 00 00 */ li r3, 0x0
/* 8013A1C0 00136000 38 80 00 02 */ li r4, 0x2
/* 8013A1C4 00136004 38 A0 00 04 */ li r5, 0x4
/* 8013A1C8 00136008 38 C0 00 08 */ li r6, 0x8
/* 8013A1CC 0013600C 38 E0 00 0F */ li r7, 0xf
2022-10-16 16:31:36 +00:00
/* 8013A1D0 00136010 4B EF DA 91 */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A1D4 00136014 38 60 00 00 */ li r3, 0x0
/* 8013A1D8 00136018 38 80 00 01 */ li r4, 0x1
/* 8013A1DC 0013601C 38 A0 00 02 */ li r5, 0x2
/* 8013A1E0 00136020 38 C0 00 04 */ li r6, 0x4
/* 8013A1E4 00136024 38 E0 00 07 */ li r7, 0x7
2022-10-16 16:31:36 +00:00
/* 8013A1E8 00136028 4B EF DA B9 */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A1EC 0013602C 3B 80 00 01 */ li r28, 0x1
/* 8013A1F0 00136030 48 00 02 54 */ b lbl_8013A444
.global lbl_8013A1F4
lbl_8013A1F4:
/* 8013A1F4 00136034 28 00 00 02 */ cmplwi r0, 0x2
/* 8013A1F8 00136038 40 82 00 B4 */ bne lbl_8013A2AC
/* 8013A1FC 0013603C 38 60 00 00 */ li r3, 0x0
/* 8013A200 00136040 38 80 00 00 */ li r4, 0x0
/* 8013A204 00136044 38 A0 00 00 */ li r5, 0x0
/* 8013A208 00136048 38 C0 00 FF */ li r6, 0xff
2022-10-16 16:31:36 +00:00
/* 8013A20C 0013604C 4B EF DE F5 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A210 00136050 38 60 00 00 */ li r3, 0x0
/* 8013A214 00136054 38 80 00 0F */ li r4, 0xf
/* 8013A218 00136058 38 A0 00 0F */ li r5, 0xf
/* 8013A21C 0013605C 38 C0 00 0F */ li r6, 0xf
/* 8013A220 00136060 38 E0 00 08 */ li r7, 0x8
2022-10-16 16:31:36 +00:00
/* 8013A224 00136064 4B EF DA 3D */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A228 00136068 38 60 00 00 */ li r3, 0x0
/* 8013A22C 0013606C 38 80 00 07 */ li r4, 0x7
/* 8013A230 00136070 38 A0 00 07 */ li r5, 0x7
/* 8013A234 00136074 38 C0 00 07 */ li r6, 0x7
/* 8013A238 00136078 38 E0 00 04 */ li r7, 0x4
2022-10-16 16:31:36 +00:00
/* 8013A23C 0013607C 4B EF DA 65 */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A240 00136080 38 60 00 01 */ li r3, 0x1
/* 8013A244 00136084 38 80 00 01 */ li r4, 0x1
/* 8013A248 00136088 38 A0 00 01 */ li r5, 0x1
/* 8013A24C 0013608C 38 C0 00 FF */ li r6, 0xff
2022-10-16 16:31:36 +00:00
/* 8013A250 00136090 4B EF DE B1 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A254 00136094 38 60 00 01 */ li r3, 0x1
/* 8013A258 00136098 38 80 00 08 */ li r4, 0x8
/* 8013A25C 0013609C 38 A0 00 00 */ li r5, 0x0
/* 8013A260 001360A0 38 C0 00 0E */ li r6, 0xe
/* 8013A264 001360A4 38 E0 00 0F */ li r7, 0xf
2022-10-16 16:31:36 +00:00
/* 8013A268 001360A8 4B EF D9 F9 */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A26C 001360AC 38 60 00 01 */ li r3, 0x1
/* 8013A270 001360B0 38 80 00 04 */ li r4, 0x4
/* 8013A274 001360B4 38 A0 00 00 */ li r5, 0x0
/* 8013A278 001360B8 38 C0 00 06 */ li r6, 0x6
/* 8013A27C 001360BC 38 E0 00 07 */ li r7, 0x7
2022-10-16 16:31:36 +00:00
/* 8013A280 001360C0 4B EF DA 21 */ bl GXSetTevAlphaIn
/* 8013A284 001360C4 3C 80 80 44 */ lis r4, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kColSels"@ha
2022-10-16 16:05:58 +00:00
/* 8013A288 001360C8 38 60 00 01 */ li r3, 0x1
2022-10-16 16:31:36 +00:00
/* 8013A28C 001360CC 80 84 40 10 */ lwz r4, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kColSels"@l(r4)
/* 8013A290 001360D0 4B EF DC 41 */ bl GXSetTevKColorSel
/* 8013A294 001360D4 3C 80 80 44 */ lis r4, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kAlpSels@0"@ha
2022-10-16 16:05:58 +00:00
/* 8013A298 001360D8 38 60 00 01 */ li r3, 0x1
2022-10-16 16:31:36 +00:00
/* 8013A29C 001360DC 80 84 40 30 */ lwz r4, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kAlpSels@0"@l(r4)
/* 8013A2A0 001360E0 4B EF DC 81 */ bl GXSetTevKAlphaSel
2022-10-16 16:05:58 +00:00
/* 8013A2A4 001360E4 3B 80 00 02 */ li r28, 0x2
/* 8013A2A8 001360E8 48 00 00 B8 */ b lbl_8013A360
.global lbl_8013A2AC
lbl_8013A2AC:
2022-10-16 16:31:36 +00:00
/* 8013A2AC 001360EC 3F 00 80 44 */ lis r24, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kColSels"@ha
/* 8013A2B0 001360F0 3F 20 80 44 */ lis r25, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kAlpSels@0"@ha
/* 8013A2B4 001360F4 3B 18 40 10 */ addi r24, r24, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kColSels"@l
2022-10-16 16:05:58 +00:00
/* 8013A2B8 001360F8 3A E0 00 00 */ li r23, 0x0
2022-10-16 16:31:36 +00:00
/* 8013A2BC 001360FC 3B 39 40 30 */ addi r25, r25, "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kAlpSels@0"@l
2022-10-16 16:05:58 +00:00
/* 8013A2C0 00136100 48 00 00 90 */ b lbl_8013A350
.global lbl_8013A2C4
lbl_8013A2C4:
/* 8013A2C4 00136104 57 96 06 3E */ clrlwi r22, r28, 24
/* 8013A2C8 00136108 7E E4 BB 78 */ mr r4, r23
/* 8013A2CC 0013610C 7E C3 B3 78 */ mr r3, r22
/* 8013A2D0 00136110 7E E5 BB 78 */ mr r5, r23
/* 8013A2D4 00136114 38 C0 00 FF */ li r6, 0xff
2022-10-16 16:31:36 +00:00
/* 8013A2D8 00136118 4B EF DE 29 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A2DC 0013611C 2C 17 00 00 */ cmpwi r23, 0x0
/* 8013A2E0 00136120 38 E0 00 00 */ li r7, 0x0
/* 8013A2E4 00136124 40 82 00 08 */ bne lbl_8013A2EC
/* 8013A2E8 00136128 38 E0 00 0F */ li r7, 0xf
.global lbl_8013A2EC
lbl_8013A2EC:
/* 8013A2EC 0013612C 2C 17 00 00 */ cmpwi r23, 0x0
/* 8013A2F0 00136130 3B E0 00 00 */ li r31, 0x0
/* 8013A2F4 00136134 40 82 00 08 */ bne lbl_8013A2FC
/* 8013A2F8 00136138 3B E0 00 07 */ li r31, 0x7
.global lbl_8013A2FC
lbl_8013A2FC:
/* 8013A2FC 0013613C 7E C3 B3 78 */ mr r3, r22
/* 8013A300 00136140 38 80 00 0F */ li r4, 0xf
/* 8013A304 00136144 38 A0 00 08 */ li r5, 0x8
/* 8013A308 00136148 38 C0 00 0E */ li r6, 0xe
2022-10-16 16:31:36 +00:00
/* 8013A30C 0013614C 4B EF D9 55 */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A310 00136150 7E C3 B3 78 */ mr r3, r22
/* 8013A314 00136154 7F E7 FB 78 */ mr r7, r31
/* 8013A318 00136158 38 80 00 07 */ li r4, 0x7
/* 8013A31C 0013615C 38 A0 00 04 */ li r5, 0x4
/* 8013A320 00136160 38 C0 00 06 */ li r6, 0x6
2022-10-16 16:31:36 +00:00
/* 8013A324 00136164 4B EF D9 7D */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A328 00136168 80 98 00 00 */ lwz r4, 0x0(r24)
/* 8013A32C 0013616C 7E C3 B3 78 */ mr r3, r22
2022-10-16 16:31:36 +00:00
/* 8013A330 00136170 4B EF DB A1 */ bl GXSetTevKColorSel
2022-10-16 16:05:58 +00:00
/* 8013A334 00136174 80 99 00 00 */ lwz r4, 0x0(r25)
/* 8013A338 00136178 7E C3 B3 78 */ mr r3, r22
2022-10-16 16:31:36 +00:00
/* 8013A33C 0013617C 4B EF DB E5 */ bl GXSetTevKAlphaSel
2022-10-16 16:05:58 +00:00
/* 8013A340 00136180 3B 9C 00 01 */ addi r28, r28, 0x1
/* 8013A344 00136184 3B 18 00 04 */ addi r24, r24, 0x4
/* 8013A348 00136188 3B 39 00 04 */ addi r25, r25, 0x4
/* 8013A34C 0013618C 3A F7 00 01 */ addi r23, r23, 0x1
.global lbl_8013A350
lbl_8013A350:
/* 8013A350 00136190 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 8013A354 00136194 54 00 27 3E */ srwi r0, r0, 28
/* 8013A358 00136198 7C 17 00 40 */ cmplw r23, r0
/* 8013A35C 0013619C 41 80 FF 68 */ blt lbl_8013A2C4
.global lbl_8013A360
lbl_8013A360:
2022-10-16 16:31:36 +00:00
/* 8013A360 001361A0 3C 60 80 41 */ lis r3, DefaultBlackColor_8040E200@ha
2022-10-16 16:05:58 +00:00
/* 8013A364 001361A4 A8 9A 00 24 */ lha r4, 0x24(r26)
2022-10-16 16:31:36 +00:00
/* 8013A368 001361A8 A8 03 E2 00 */ lha r0, DefaultBlackColor_8040E200@l(r3)
2022-10-16 16:05:58 +00:00
/* 8013A36C 001361AC 38 A0 00 00 */ li r5, 0x0
/* 8013A370 001361B0 7C 04 00 00 */ cmpw r4, r0
/* 8013A374 001361B4 40 82 00 3C */ bne lbl_8013A3B0
/* 8013A378 001361B8 38 83 E2 00 */ addi r4, r3, -0x1e00
/* 8013A37C 001361BC A8 7A 00 26 */ lha r3, 0x26(r26)
/* 8013A380 001361C0 A8 04 00 02 */ lha r0, 0x2(r4)
/* 8013A384 001361C4 7C 03 00 00 */ cmpw r3, r0
/* 8013A388 001361C8 40 82 00 28 */ bne lbl_8013A3B0
/* 8013A38C 001361CC A8 7A 00 28 */ lha r3, 0x28(r26)
/* 8013A390 001361D0 A8 04 00 04 */ lha r0, 0x4(r4)
/* 8013A394 001361D4 7C 03 00 00 */ cmpw r3, r0
/* 8013A398 001361D8 40 82 00 18 */ bne lbl_8013A3B0
/* 8013A39C 001361DC A8 7A 00 2A */ lha r3, 0x2a(r26)
/* 8013A3A0 001361E0 A8 04 00 06 */ lha r0, 0x6(r4)
/* 8013A3A4 001361E4 7C 03 00 00 */ cmpw r3, r0
/* 8013A3A8 001361E8 40 82 00 08 */ bne lbl_8013A3B0
/* 8013A3AC 001361EC 38 A0 00 01 */ li r5, 0x1
.global lbl_8013A3B0
lbl_8013A3B0:
/* 8013A3B0 001361F0 2C 05 00 00 */ cmpwi r5, 0x0
/* 8013A3B4 001361F4 41 82 00 44 */ beq lbl_8013A3F8
/* 8013A3B8 001361F8 A8 1A 00 2C */ lha r0, 0x2c(r26)
/* 8013A3BC 001361FC 38 60 00 00 */ li r3, 0x0
/* 8013A3C0 00136200 2C 00 00 FF */ cmpwi r0, 0xff
/* 8013A3C4 00136204 40 82 00 2C */ bne lbl_8013A3F0
/* 8013A3C8 00136208 A8 1A 00 2E */ lha r0, 0x2e(r26)
/* 8013A3CC 0013620C 2C 00 00 FF */ cmpwi r0, 0xff
/* 8013A3D0 00136210 40 82 00 20 */ bne lbl_8013A3F0
/* 8013A3D4 00136214 A8 1A 00 30 */ lha r0, 0x30(r26)
/* 8013A3D8 00136218 2C 00 00 FF */ cmpwi r0, 0xff
/* 8013A3DC 0013621C 40 82 00 14 */ bne lbl_8013A3F0
/* 8013A3E0 00136220 A8 1A 00 32 */ lha r0, 0x32(r26)
/* 8013A3E4 00136224 2C 00 00 FF */ cmpwi r0, 0xff
/* 8013A3E8 00136228 40 82 00 08 */ bne lbl_8013A3F0
/* 8013A3EC 0013622C 38 60 00 01 */ li r3, 0x1
.global lbl_8013A3F0
lbl_8013A3F0:
/* 8013A3F0 00136230 2C 03 00 00 */ cmpwi r3, 0x0
/* 8013A3F4 00136234 40 82 00 50 */ bne lbl_8013A444
.global lbl_8013A3F8
lbl_8013A3F8:
/* 8013A3F8 00136238 57 96 06 3E */ clrlwi r22, r28, 24
/* 8013A3FC 0013623C 38 80 00 FF */ li r4, 0xff
/* 8013A400 00136240 7E C3 B3 78 */ mr r3, r22
/* 8013A404 00136244 38 A0 00 FF */ li r5, 0xff
/* 8013A408 00136248 38 C0 00 FF */ li r6, 0xff
2022-10-16 16:31:36 +00:00
/* 8013A40C 0013624C 4B EF DC F5 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A410 00136250 7E C3 B3 78 */ mr r3, r22
/* 8013A414 00136254 38 80 00 02 */ li r4, 0x2
/* 8013A418 00136258 38 A0 00 04 */ li r5, 0x4
/* 8013A41C 0013625C 38 C0 00 00 */ li r6, 0x0
/* 8013A420 00136260 38 E0 00 0F */ li r7, 0xf
2022-10-16 16:31:36 +00:00
/* 8013A424 00136264 4B EF D8 3D */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A428 00136268 7E C3 B3 78 */ mr r3, r22
/* 8013A42C 0013626C 38 80 00 01 */ li r4, 0x1
/* 8013A430 00136270 38 A0 00 02 */ li r5, 0x2
/* 8013A434 00136274 38 C0 00 00 */ li r6, 0x0
/* 8013A438 00136278 38 E0 00 07 */ li r7, 0x7
2022-10-16 16:31:36 +00:00
/* 8013A43C 0013627C 4B EF D8 65 */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A440 00136280 3B 9C 00 01 */ addi r28, r28, 0x1
.global lbl_8013A444
lbl_8013A444:
/* 8013A444 00136284 2C 1D 00 00 */ cmpwi r29, 0x0
/* 8013A448 00136288 41 82 00 50 */ beq lbl_8013A498
/* 8013A44C 0013628C 57 96 06 3E */ clrlwi r22, r28, 24
/* 8013A450 00136290 38 80 00 FF */ li r4, 0xff
/* 8013A454 00136294 7E C3 B3 78 */ mr r3, r22
/* 8013A458 00136298 38 A0 00 FF */ li r5, 0xff
/* 8013A45C 0013629C 38 C0 00 04 */ li r6, 0x4
2022-10-16 16:31:36 +00:00
/* 8013A460 001362A0 4B EF DC A1 */ bl GXSetTevOrder
2022-10-16 16:05:58 +00:00
/* 8013A464 001362A4 7E C3 B3 78 */ mr r3, r22
/* 8013A468 001362A8 38 80 00 0F */ li r4, 0xf
/* 8013A46C 001362AC 38 A0 00 00 */ li r5, 0x0
/* 8013A470 001362B0 38 C0 00 0A */ li r6, 0xa
/* 8013A474 001362B4 38 E0 00 0F */ li r7, 0xf
2022-10-16 16:31:36 +00:00
/* 8013A478 001362B8 4B EF D7 E9 */ bl GXSetTevColorIn
2022-10-16 16:05:58 +00:00
/* 8013A47C 001362BC 7E C3 B3 78 */ mr r3, r22
/* 8013A480 001362C0 38 80 00 07 */ li r4, 0x7
/* 8013A484 001362C4 38 A0 00 00 */ li r5, 0x0
/* 8013A488 001362C8 38 C0 00 05 */ li r6, 0x5
/* 8013A48C 001362CC 38 E0 00 07 */ li r7, 0x7
2022-10-16 16:31:36 +00:00
/* 8013A490 001362D0 4B EF D8 11 */ bl GXSetTevAlphaIn
2022-10-16 16:05:58 +00:00
/* 8013A494 001362D4 3B 9C 00 01 */ addi r28, r28, 0x1
.global lbl_8013A498
lbl_8013A498:
/* 8013A498 001362D8 57 96 06 3E */ clrlwi r22, r28, 24
/* 8013A49C 001362DC 3A E0 00 00 */ li r23, 0x0
/* 8013A4A0 001362E0 48 00 00 5C */ b lbl_8013A4FC
.global lbl_8013A4A4
lbl_8013A4A4:
/* 8013A4A4 001362E4 56 F8 06 3E */ clrlwi r24, r23, 24
/* 8013A4A8 001362E8 38 80 00 00 */ li r4, 0x0
/* 8013A4AC 001362EC 7F 03 C3 78 */ mr r3, r24
/* 8013A4B0 001362F0 38 A0 00 00 */ li r5, 0x0
/* 8013A4B4 001362F4 38 C0 00 00 */ li r6, 0x0
/* 8013A4B8 001362F8 38 E0 00 01 */ li r7, 0x1
/* 8013A4BC 001362FC 39 00 00 00 */ li r8, 0x0
2022-10-16 16:31:36 +00:00
/* 8013A4C0 00136300 4B EF D8 21 */ bl GXSetTevColorOp
2022-10-16 16:05:58 +00:00
/* 8013A4C4 00136304 7F 03 C3 78 */ mr r3, r24
/* 8013A4C8 00136308 38 80 00 00 */ li r4, 0x0
/* 8013A4CC 0013630C 38 A0 00 00 */ li r5, 0x0
/* 8013A4D0 00136310 38 C0 00 00 */ li r6, 0x0
/* 8013A4D4 00136314 38 E0 00 01 */ li r7, 0x1
/* 8013A4D8 00136318 39 00 00 00 */ li r8, 0x0
2022-10-16 16:31:36 +00:00
/* 8013A4DC 0013631C 4B EF D8 65 */ bl GXSetTevAlphaOp
2022-10-16 16:05:58 +00:00
/* 8013A4E0 00136320 7F 03 C3 78 */ mr r3, r24
2022-10-16 16:31:36 +00:00
/* 8013A4E4 00136324 4B EF D6 2D */ bl GXSetTevDirect
2022-10-16 16:05:58 +00:00
/* 8013A4E8 00136328 7F 03 C3 78 */ mr r3, r24
/* 8013A4EC 0013632C 38 80 00 00 */ li r4, 0x0
/* 8013A4F0 00136330 38 A0 00 00 */ li r5, 0x0
2022-10-16 16:31:36 +00:00
/* 8013A4F4 00136334 4B EF DA 7D */ bl GXSetTevSwapMode
2022-10-16 16:05:58 +00:00
/* 8013A4F8 00136338 3A F7 00 01 */ addi r23, r23, 0x1
.global lbl_8013A4FC
lbl_8013A4FC:
/* 8013A4FC 0013633C 56 E0 06 3E */ clrlwi r0, r23, 24
/* 8013A500 00136340 7C 00 B0 40 */ cmplw r0, r22
/* 8013A504 00136344 41 80 FF A0 */ blt lbl_8013A4A4
/* 8013A508 00136348 7E C3 B3 78 */ mr r3, r22
2022-10-16 16:31:36 +00:00
/* 8013A50C 0013634C 4B EF DD 55 */ bl GXSetNumTevStages
2022-10-16 16:05:58 +00:00
.global lbl_8013A510
lbl_8013A510:
/* 8013A510 00136350 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8013A514 00136354 41 82 01 00 */ beq lbl_8013A614
/* 8013A518 00136358 81 3A 00 4C */ lwz r9, 0x4c(r26)
2022-10-16 16:31:36 +00:00
/* 8013A51C 0013635C 3C 60 80 41 */ lis r3, "@9521_8040E214"@ha
/* 8013A520 00136360 C3 C3 E2 14 */ lfs f30, "@9521_8040E214"@l(r3)
2022-10-16 16:05:58 +00:00
/* 8013A524 00136364 3B E1 00 2C */ addi r31, r1, 0x2c
/* 8013A528 00136368 55 20 47 3E */ extrwi r0, r9, 4, 4
/* 8013A52C 0013636C 55 28 E7 7A */ rlwinm r8, r9, 28, 29, 29
/* 8013A530 00136370 1C A0 00 14 */ mulli r5, r0, 0x14
/* 8013A534 00136374 55 24 D7 7A */ rlwinm r4, r9, 26, 29, 29
/* 8013A538 00136378 55 27 A7 7A */ rlwinm r7, r9, 20, 29, 29
/* 8013A53C 0013637C 81 7A 00 58 */ lwz r11, 0x58(r26)
/* 8013A540 00136380 55 26 DF 7A */ rlwinm r6, r9, 27, 29, 29
/* 8013A544 00136384 55 23 76 BA */ rlwinm r3, r9, 14, 26, 29
/* 8013A548 00136388 55 20 4D F4 */ rlwinm r0, r9, 9, 23, 26
/* 8013A54C 0013638C 55 2A 9E FA */ rlwinm r10, r9, 19, 27, 29
/* 8013A550 00136390 7C 63 02 14 */ add r3, r3, r0
/* 8013A554 00136394 55 29 EF 7A */ rlwinm r9, r9, 29, 29, 29
/* 8013A558 00136398 7C 0A 4A 14 */ add r0, r10, r9
/* 8013A55C 0013639C 7C C7 32 14 */ add r6, r7, r6
/* 8013A560 001363A0 7C 88 22 14 */ add r4, r8, r4
/* 8013A564 001363A4 7C 65 1A 14 */ add r3, r5, r3
/* 8013A568 001363A8 7C 86 22 14 */ add r4, r6, r4
/* 8013A56C 001363AC 7C 0B 02 14 */ add r0, r11, r0
/* 8013A570 001363B0 7C 64 1A 14 */ add r3, r4, r3
/* 8013A574 001363B4 3B 60 00 00 */ li r27, 0x0
/* 8013A578 001363B8 7F 03 02 14 */ add r24, r3, r0
/* 8013A57C 001363BC 48 00 00 88 */ b lbl_8013A604
.global lbl_8013A580
lbl_8013A580:
/* 8013A580 001363C0 88 1F 00 00 */ lbz r0, 0x0(r31)
/* 8013A584 001363C4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8013A588 001363C8 41 82 00 70 */ beq lbl_8013A5F8
/* 8013A58C 001363CC C0 18 00 08 */ lfs f0, 0x8(r24)
/* 8013A590 001363D0 EC 3E 00 32 */ fmuls f1, f30, f0
2022-10-16 16:31:36 +00:00
/* 8013A594 001363D4 48 00 56 0D */ bl CosFIdx__Q26nw4hbm4mathFf
2022-10-16 16:05:58 +00:00
/* 8013A598 001363D8 C0 18 00 08 */ lfs f0, 0x8(r24)
/* 8013A59C 001363DC FF E0 08 90 */ fmr f31, f1
/* 8013A5A0 001363E0 EC 3E 00 32 */ fmuls f1, f30, f0
2022-10-16 16:31:36 +00:00
/* 8013A5A4 001363E4 48 00 55 7D */ bl SinFIdx__Q26nw4hbm4mathFf
2022-10-16 16:05:58 +00:00
/* 8013A5A8 001363E8 C0 18 00 0C */ lfs f0, 0xc(r24)
/* 8013A5AC 001363EC FC 40 08 50 */ fneg f2, f1
/* 8013A5B0 001363F0 38 7B 00 01 */ addi r3, r27, 0x1
/* 8013A5B4 001363F4 38 81 00 68 */ addi r4, r1, 0x68
/* 8013A5B8 001363F8 EC 1F 00 32 */ fmuls f0, f31, f0
/* 8013A5BC 001363FC D0 01 00 68 */ stfs f0, 0x68(r1)
/* 8013A5C0 00136400 C0 18 00 10 */ lfs f0, 0x10(r24)
/* 8013A5C4 00136404 EC 02 00 32 */ fmuls f0, f2, f0
/* 8013A5C8 00136408 D0 01 00 6C */ stfs f0, 0x6c(r1)
/* 8013A5CC 0013640C C0 18 00 00 */ lfs f0, 0x0(r24)
/* 8013A5D0 00136410 D0 01 00 70 */ stfs f0, 0x70(r1)
/* 8013A5D4 00136414 C0 18 00 0C */ lfs f0, 0xc(r24)
/* 8013A5D8 00136418 EC 01 00 32 */ fmuls f0, f1, f0
/* 8013A5DC 0013641C D0 01 00 74 */ stfs f0, 0x74(r1)
/* 8013A5E0 00136420 C0 18 00 10 */ lfs f0, 0x10(r24)
/* 8013A5E4 00136424 EC 1F 00 32 */ fmuls f0, f31, f0
/* 8013A5E8 00136428 D0 01 00 78 */ stfs f0, 0x78(r1)
/* 8013A5EC 0013642C C0 18 00 04 */ lfs f0, 0x4(r24)
/* 8013A5F0 00136430 D0 01 00 7C */ stfs f0, 0x7c(r1)
2022-10-16 16:31:36 +00:00
/* 8013A5F4 00136434 4B FF D3 9D */ bl "SetIndTexMtx__26@unnamed@lyt_material_cpp@F14_GXIndTexMtxIDPA3_Cf"
2022-10-16 16:05:58 +00:00
.global lbl_8013A5F8
lbl_8013A5F8:
/* 8013A5F8 00136438 3B FF 00 01 */ addi r31, r31, 0x1
/* 8013A5FC 0013643C 3B 18 00 14 */ addi r24, r24, 0x14
/* 8013A600 00136440 3B 7B 00 01 */ addi r27, r27, 0x1
.global lbl_8013A604
lbl_8013A604:
/* 8013A604 00136444 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 8013A608 00136448 54 00 77 BE */ extrwi r0, r0, 2, 12
/* 8013A60C 0013644C 7C 1B 00 40 */ cmplw r27, r0
/* 8013A610 00136450 41 80 FF 70 */ blt lbl_8013A580
.global lbl_8013A614
lbl_8013A614:
/* 8013A614 00136454 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 8013A618 00136458 54 03 8F 7E */ extrwi r3, r0, 3, 14
2022-10-16 16:31:36 +00:00
/* 8013A61C 0013645C 4B EF D4 D5 */ bl GXSetNumIndStages
2022-10-16 16:05:58 +00:00
/* 8013A620 00136460 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 8013A624 00136464 54 00 8F 7F */ extrwi. r0, r0, 3, 14
/* 8013A628 00136468 41 82 00 90 */ beq lbl_8013A6B8
/* 8013A62C 0013646C 81 3A 00 4C */ lwz r9, 0x4c(r26)
/* 8013A630 00136470 3B 60 00 00 */ li r27, 0x0
/* 8013A634 00136474 81 5A 00 58 */ lwz r10, 0x58(r26)
/* 8013A638 00136478 55 20 47 3E */ extrwi r0, r9, 4, 4
/* 8013A63C 0013647C 55 28 E7 7A */ rlwinm r8, r9, 28, 29, 29
/* 8013A640 00136480 1C 80 00 14 */ mulli r4, r0, 0x14
/* 8013A644 00136484 55 26 D7 7A */ rlwinm r6, r9, 26, 29, 29
/* 8013A648 00136488 55 27 A7 7A */ rlwinm r7, r9, 20, 29, 29
/* 8013A64C 0013648C 55 25 DF 7A */ rlwinm r5, r9, 27, 29, 29
/* 8013A650 00136490 55 23 76 BA */ rlwinm r3, r9, 14, 26, 29
/* 8013A654 00136494 55 20 4D F4 */ rlwinm r0, r9, 9, 23, 26
/* 8013A658 00136498 7C 03 02 14 */ add r0, r3, r0
/* 8013A65C 0013649C 7C A7 2A 14 */ add r5, r7, r5
/* 8013A660 001364A0 7C 68 32 14 */ add r3, r8, r6
/* 8013A664 001364A4 55 26 EF 7A */ rlwinm r6, r9, 29, 29, 29
/* 8013A668 001364A8 7C 65 1A 14 */ add r3, r5, r3
/* 8013A66C 001364AC 7C 04 02 14 */ add r0, r4, r0
/* 8013A670 001364B0 7C 66 1A 14 */ add r3, r6, r3
/* 8013A674 001364B4 7C 0A 02 14 */ add r0, r10, r0
/* 8013A678 001364B8 7F 03 02 14 */ add r24, r3, r0
/* 8013A67C 001364BC 48 00 00 2C */ b lbl_8013A6A8
.global lbl_8013A680
lbl_8013A680:
/* 8013A680 001364C0 88 98 00 00 */ lbz r4, 0x0(r24)
/* 8013A684 001364C4 7F 63 DB 78 */ mr r3, r27
/* 8013A688 001364C8 88 B8 00 01 */ lbz r5, 0x1(r24)
2022-10-16 16:31:36 +00:00
/* 8013A68C 001364CC 4B EF D3 95 */ bl GXSetIndTexOrder
2022-10-16 16:05:58 +00:00
/* 8013A690 001364D0 88 98 00 02 */ lbz r4, 0x2(r24)
/* 8013A694 001364D4 7F 63 DB 78 */ mr r3, r27
/* 8013A698 001364D8 88 B8 00 03 */ lbz r5, 0x3(r24)
2022-10-16 16:31:36 +00:00
/* 8013A69C 001364DC 4B EF D2 85 */ bl GXSetIndTexCoordScale
2022-10-16 16:05:58 +00:00
/* 8013A6A0 001364E0 3B 18 00 04 */ addi r24, r24, 0x4
/* 8013A6A4 001364E4 3B 7B 00 01 */ addi r27, r27, 0x1
.global lbl_8013A6A8
lbl_8013A6A8:
/* 8013A6A8 001364E8 80 1A 00 50 */ lwz r0, 0x50(r26)
/* 8013A6AC 001364EC 54 00 8F 7E */ extrwi r0, r0, 3, 14
/* 8013A6B0 001364F0 7C 1B 00 40 */ cmplw r27, r0
/* 8013A6B4 001364F4 41 80 FF CC */ blt lbl_8013A680
.global lbl_8013A6B8
lbl_8013A6B8:
/* 8013A6B8 001364F8 80 FA 00 4C */ lwz r7, 0x4c(r26)
/* 8013A6BC 001364FC 54 E0 D7 FF */ extrwi. r0, r7, 1, 25
/* 8013A6C0 00136500 41 82 00 5C */ beq lbl_8013A71C
/* 8013A6C4 00136504 54 E5 A7 7A */ rlwinm r5, r7, 20, 29, 29
/* 8013A6C8 00136508 54 E0 DF 7A */ rlwinm r0, r7, 27, 29, 29
/* 8013A6CC 0013650C 7C 05 02 14 */ add r0, r5, r0
/* 8013A6D0 00136510 54 E4 D7 7A */ rlwinm r4, r7, 26, 29, 29
/* 8013A6D4 00136514 54 E3 47 3E */ extrwi r3, r7, 4, 4
/* 8013A6D8 00136518 54 E6 76 BA */ rlwinm r6, r7, 14, 26, 29
/* 8013A6DC 0013651C 7C 04 02 14 */ add r0, r4, r0
/* 8013A6E0 00136520 54 E5 4D F4 */ rlwinm r5, r7, 9, 23, 26
/* 8013A6E4 00136524 1C 83 00 14 */ mulli r4, r3, 0x14
/* 8013A6E8 00136528 80 FA 00 58 */ lwz r7, 0x58(r26)
/* 8013A6EC 0013652C 7C 66 2A 14 */ add r3, r6, r5
/* 8013A6F0 00136530 7C 07 02 14 */ add r0, r7, r0
/* 8013A6F4 00136534 7C 64 1A 14 */ add r3, r4, r3
/* 8013A6F8 00136538 7C C3 02 14 */ add r6, r3, r0
/* 8013A6FC 0013653C 7C 03 00 AE */ lbzx r0, r3, r0
/* 8013A700 00136540 88 86 00 02 */ lbz r4, 0x2(r6)
/* 8013A704 00136544 88 A6 00 01 */ lbz r5, 0x1(r6)
/* 8013A708 00136548 54 03 07 3E */ clrlwi r3, r0, 28
/* 8013A70C 0013654C 88 E6 00 03 */ lbz r7, 0x3(r6)
/* 8013A710 00136550 54 06 E7 3E */ extrwi r6, r0, 4, 24
2022-10-16 16:31:36 +00:00
/* 8013A714 00136554 4B EF D9 1D */ bl GXSetAlphaCompare
2022-10-16 16:05:58 +00:00
/* 8013A718 00136558 48 00 00 1C */ b lbl_8013A734
.global lbl_8013A71C
lbl_8013A71C:
/* 8013A71C 0013655C 38 60 00 07 */ li r3, 0x7
/* 8013A720 00136560 38 80 00 00 */ li r4, 0x0
/* 8013A724 00136564 38 A0 00 00 */ li r5, 0x0
/* 8013A728 00136568 38 C0 00 07 */ li r6, 0x7
/* 8013A72C 0013656C 38 E0 00 00 */ li r7, 0x0
2022-10-16 16:31:36 +00:00
/* 8013A730 00136570 4B EF D9 01 */ bl GXSetAlphaCompare
2022-10-16 16:05:58 +00:00
.global lbl_8013A734
lbl_8013A734:
/* 8013A734 00136574 80 7A 00 4C */ lwz r3, 0x4c(r26)
/* 8013A738 00136578 54 60 DF FF */ extrwi. r0, r3, 1, 26
/* 8013A73C 0013657C 41 82 00 5C */ beq lbl_8013A798
/* 8013A740 00136580 54 64 47 3E */ extrwi r4, r3, 4, 4
/* 8013A744 00136584 54 68 E7 7A */ rlwinm r8, r3, 28, 29, 29
/* 8013A748 00136588 54 60 D7 7A */ rlwinm r0, r3, 26, 29, 29
/* 8013A74C 0013658C 54 67 A7 7A */ rlwinm r7, r3, 20, 29, 29
/* 8013A750 00136590 54 66 DF 7A */ rlwinm r6, r3, 27, 29, 29
/* 8013A754 00136594 54 65 76 BA */ rlwinm r5, r3, 14, 26, 29
/* 8013A758 00136598 54 63 4D F4 */ rlwinm r3, r3, 9, 23, 26
/* 8013A75C 0013659C 7C 08 02 14 */ add r0, r8, r0
/* 8013A760 001365A0 7C C7 32 14 */ add r6, r7, r6
/* 8013A764 001365A4 80 FA 00 58 */ lwz r7, 0x58(r26)
/* 8013A768 001365A8 7C 06 02 14 */ add r0, r6, r0
/* 8013A76C 001365AC 7C 65 1A 14 */ add r3, r5, r3
/* 8013A770 001365B0 1C 84 00 14 */ mulli r4, r4, 0x14
/* 8013A774 001365B4 7C 07 02 14 */ add r0, r7, r0
/* 8013A778 001365B8 7C 64 1A 14 */ add r3, r4, r3
/* 8013A77C 001365BC 7C C3 02 14 */ add r6, r3, r0
/* 8013A780 001365C0 7C 63 00 AE */ lbzx r3, r3, r0
/* 8013A784 001365C4 88 86 00 01 */ lbz r4, 0x1(r6)
/* 8013A788 001365C8 88 A6 00 02 */ lbz r5, 0x2(r6)
/* 8013A78C 001365CC 88 C6 00 03 */ lbz r6, 0x3(r6)
2022-10-16 16:31:36 +00:00
/* 8013A790 001365D0 4B EF DF A1 */ bl GXSetBlendMode
2022-10-16 16:05:58 +00:00
/* 8013A794 001365D4 48 00 00 18 */ b lbl_8013A7AC
.global lbl_8013A798
lbl_8013A798:
/* 8013A798 001365D8 38 60 00 01 */ li r3, 0x1
/* 8013A79C 001365DC 38 80 00 04 */ li r4, 0x4
/* 8013A7A0 001365E0 38 A0 00 05 */ li r5, 0x5
/* 8013A7A4 001365E4 38 C0 00 0F */ li r6, 0xf
2022-10-16 16:31:36 +00:00
/* 8013A7A8 001365E8 4B EF DF 89 */ bl GXSetBlendMode
2022-10-16 16:05:58 +00:00
.global lbl_8013A7AC
lbl_8013A7AC:
/* 8013A7AC 001365EC 2C 1D 00 00 */ cmpwi r29, 0x0
/* 8013A7B0 001365F0 38 60 00 00 */ li r3, 0x0
/* 8013A7B4 001365F4 41 82 00 10 */ beq lbl_8013A7C4
/* 8013A7B8 001365F8 2C 1E 00 00 */ cmpwi r30, 0x0
/* 8013A7BC 001365FC 41 82 00 08 */ beq lbl_8013A7C4
/* 8013A7C0 00136600 38 60 00 01 */ li r3, 0x1
.global lbl_8013A7C4
lbl_8013A7C4:
/* 8013A7C4 00136604 39 61 01 00 */ addi r11, r1, 0x100
/* 8013A7C8 00136608 E3 E1 01 18 */ psq_l f31, 0x118(r1), 0, qr0
/* 8013A7CC 0013660C CB E1 01 10 */ lfd f31, 0x110(r1)
/* 8013A7D0 00136610 E3 C1 01 08 */ psq_l f30, 0x108(r1), 0, qr0
/* 8013A7D4 00136614 CB C1 01 00 */ lfd f30, 0x100(r1)
/* 8013A7D8 00136618 4B EC CB 9D */ bl lbl_80007374
/* 8013A7DC 0013661C 80 01 01 24 */ lwz r0, 0x124(r1)
/* 8013A7E0 00136620 7C 08 03 A6 */ mtlr r0
/* 8013A7E4 00136624 38 21 01 20 */ addi r1, r1, 0x120
/* 8013A7E8 00136628 4E 80 00 20 */ blr
/* 8013A7EC 0013662C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global BindAnimation__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform
BindAnimation__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform:
/* 8013A7F0 00136630 4B FB 8D D0 */ b BindAnimation__Q34nw4r3lyt4PaneFPQ34nw4r3lyt13AnimTransformbb
2022-10-16 16:05:58 +00:00
/* 8013A7F4 00136634 00 00 00 00 */ .4byte 0x00000000
/* 8013A7F8 00136638 00 00 00 00 */ .4byte 0x00000000
/* 8013A7FC 0013663C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global UnbindAnimation__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform
UnbindAnimation__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform:
2022-10-16 16:05:58 +00:00
/* 8013A800 00136640 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8013A804 00136644 7C 08 02 A6 */ mflr r0
/* 8013A808 00136648 90 01 00 34 */ stw r0, 0x34(r1)
/* 8013A80C 0013664C 39 61 00 30 */ addi r11, r1, 0x30
/* 8013A810 00136650 4B EC CB 29 */ bl lbl_80007338
/* 8013A814 00136654 83 E3 00 1C */ lwz r31, 0x1c(r3)
/* 8013A818 00136658 7C 7A 1B 78 */ mr r26, r3
/* 8013A81C 0013665C 7C 9B 23 78 */ mr r27, r4
/* 8013A820 00136660 3B C3 00 1C */ addi r30, r3, 0x1c
/* 8013A824 00136664 3B A0 00 00 */ li r29, 0x0
/* 8013A828 00136668 48 00 00 38 */ b lbl_8013A860
.global lbl_8013A82C
lbl_8013A82C:
/* 8013A82C 0013666C 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8013A830 00136670 7F FC FB 78 */ mr r28, r31
/* 8013A834 00136674 83 FF 00 00 */ lwz r31, 0x0(r31)
/* 8013A838 00136678 41 82 00 10 */ beq lbl_8013A848
/* 8013A83C 0013667C 80 1C 00 08 */ lwz r0, 0x8(r28)
/* 8013A840 00136680 7C 00 D8 40 */ cmplw r0, r27
/* 8013A844 00136684 40 82 00 1C */ bne lbl_8013A860
.global lbl_8013A848
lbl_8013A848:
/* 8013A848 00136688 93 81 00 08 */ stw r28, 0x8(r1)
/* 8013A84C 0013668C 38 7A 00 18 */ addi r3, r26, 0x18
/* 8013A850 00136690 38 81 00 08 */ addi r4, r1, 0x8
2022-10-16 16:31:36 +00:00
/* 8013A854 00136694 4B FE 54 BD */ bl Erase__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8Iterator
2022-10-16 16:05:58 +00:00
/* 8013A858 00136698 93 BC 00 08 */ stw r29, 0x8(r28)
/* 8013A85C 0013669C B3 BC 00 0C */ sth r29, 0xc(r28)
.global lbl_8013A860
lbl_8013A860:
/* 8013A860 001366A0 7C 1F F0 40 */ cmplw r31, r30
/* 8013A864 001366A4 40 82 FF C8 */ bne lbl_8013A82C
/* 8013A868 001366A8 39 61 00 30 */ addi r11, r1, 0x30
/* 8013A86C 001366AC 4B EC CB 19 */ bl lbl_80007384
/* 8013A870 001366B0 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8013A874 001366B4 7C 08 03 A6 */ mtlr r0
/* 8013A878 001366B8 38 21 00 30 */ addi r1, r1, 0x30
/* 8013A87C 001366BC 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global UnbindAllAnimation__Q36nw4hbm3lyt8MaterialFv
UnbindAllAnimation__Q36nw4hbm3lyt8MaterialFv:
/* 8013A880 001366C0 4B FC 15 70 */ b UnbindAllAnimation__Q34nw4r3lyt8MaterialFv
2022-10-16 16:05:58 +00:00
/* 8013A884 001366C4 00 00 00 00 */ .4byte 0x00000000
/* 8013A888 001366C8 00 00 00 00 */ .4byte 0x00000000
/* 8013A88C 001366CC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global Animate__Q36nw4hbm3lyt8MaterialFv
Animate__Q36nw4hbm3lyt8MaterialFv:
2022-10-16 16:05:58 +00:00
/* 8013A890 001366D0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8013A894 001366D4 7C 08 02 A6 */ mflr r0
/* 8013A898 001366D8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8013A89C 001366DC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8013A8A0 001366E0 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8013A8A4 001366E4 3B C3 00 1C */ addi r30, r3, 0x1c
/* 8013A8A8 001366E8 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8013A8AC 001366EC 7C 7D 1B 78 */ mr r29, r3
/* 8013A8B0 001366F0 83 E3 00 1C */ lwz r31, 0x1c(r3)
/* 8013A8B4 001366F4 48 00 00 30 */ b lbl_8013A8E4
.global lbl_8013A8B8
lbl_8013A8B8:
/* 8013A8B8 001366F8 88 1F 00 0E */ lbz r0, 0xe(r31)
/* 8013A8BC 001366FC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8013A8C0 00136700 40 82 00 20 */ bne lbl_8013A8E0
/* 8013A8C4 00136704 80 7F 00 08 */ lwz r3, 0x8(r31)
/* 8013A8C8 00136708 7F A5 EB 78 */ mr r5, r29
/* 8013A8CC 0013670C A0 9F 00 0C */ lhz r4, 0xc(r31)
/* 8013A8D0 00136710 81 83 00 00 */ lwz r12, 0x0(r3)
/* 8013A8D4 00136714 81 8C 00 1C */ lwz r12, 0x1c(r12)
/* 8013A8D8 00136718 7D 89 03 A6 */ mtctr r12
/* 8013A8DC 0013671C 4E 80 04 21 */ bctrl
.global lbl_8013A8E0
lbl_8013A8E0:
/* 8013A8E0 00136720 83 FF 00 00 */ lwz r31, 0x0(r31)
.global lbl_8013A8E4
lbl_8013A8E4:
/* 8013A8E4 00136724 7C 1F F0 40 */ cmplw r31, r30
/* 8013A8E8 00136728 40 82 FF D0 */ bne lbl_8013A8B8
/* 8013A8EC 0013672C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8013A8F0 00136730 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8013A8F4 00136734 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8013A8F8 00136738 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8013A8FC 0013673C 7C 08 03 A6 */ mtlr r0
/* 8013A900 00136740 38 21 00 20 */ addi r1, r1, 0x20
/* 8013A904 00136744 4E 80 00 20 */ blr
/* 8013A908 00136748 00 00 00 00 */ .4byte 0x00000000
/* 8013A90C 0013674C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global AddAnimationLink__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimationLink
AddAnimationLink__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimationLink:
2022-10-16 16:05:58 +00:00
/* 8013A910 00136750 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8013A914 00136754 7C 08 02 A6 */ mflr r0
/* 8013A918 00136758 7C 85 23 78 */ mr r5, r4
/* 8013A91C 0013675C 90 01 00 14 */ stw r0, 0x14(r1)
/* 8013A920 00136760 38 03 00 1C */ addi r0, r3, 0x1c
/* 8013A924 00136764 38 63 00 18 */ addi r3, r3, 0x18
/* 8013A928 00136768 38 81 00 08 */ addi r4, r1, 0x8
/* 8013A92C 0013676C 90 01 00 08 */ stw r0, 0x8(r1)
2022-10-16 16:31:36 +00:00
/* 8013A930 00136770 4B FE 54 81 */ bl Insert__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8IteratorPQ34nw4r2ut12LinkListNode
2022-10-16 16:05:58 +00:00
/* 8013A934 00136774 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8013A938 00136778 7C 08 03 A6 */ mtlr r0
/* 8013A93C 0013677C 38 21 00 10 */ addi r1, r1, 0x10
/* 8013A940 00136780 4E 80 00 20 */ blr
/* 8013A944 00136784 00 00 00 00 */ .4byte 0x00000000
/* 8013A948 00136788 00 00 00 00 */ .4byte 0x00000000
/* 8013A94C 0013678C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global FindAnimationLink__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform
FindAnimationLink__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform:
2022-10-16 16:05:58 +00:00
/* 8013A950 00136790 38 63 00 18 */ addi r3, r3, 0x18
2022-10-16 16:31:36 +00:00
/* 8013A954 00136794 4B FC 2E 1C */ b "FindAnimationLink__Q34nw4r3lyt6detailFPQ34nw4r2ut38LinkList<Q34nw4r3lyt13AnimationLink,0>PQ34nw4r3lyt13AnimTransform"
2022-10-16 16:05:58 +00:00
/* 8013A958 00136798 00 00 00 00 */ .4byte 0x00000000
/* 8013A95C 0013679C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetAnimationEnable__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransformb
SetAnimationEnable__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransformb:
/* 8013A960 001367A0 4B FC 15 90 */ b SetAnimationEnable__Q34nw4r3lyt8MaterialFPQ34nw4r3lyt13AnimTransformb
2022-10-16 16:05:58 +00:00
/* 8013A964 001367A4 00 00 00 00 */ .4byte 0x00000000
/* 8013A968 001367A8 00 00 00 00 */ .4byte 0x00000000
/* 8013A96C 001367AC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GetTextureSize__Q36nw4hbm3lyt6detailFPQ36nw4hbm3lyt8MaterialUc
GetTextureSize__Q36nw4hbm3lyt6detailFPQ36nw4hbm3lyt8MaterialUc:
2022-10-16 16:05:58 +00:00
/* 8013A970 001367B0 94 21 FF A0 */ stwu r1, -0x60(r1)
/* 8013A974 001367B4 7C 08 02 A6 */ mflr r0
/* 8013A978 001367B8 90 01 00 64 */ stw r0, 0x64(r1)
/* 8013A97C 001367BC DB E1 00 50 */ stfd f31, 0x50(r1)
/* 8013A980 001367C0 F3 E1 00 58 */ psq_st f31, 0x58(r1), 0, qr0
/* 8013A984 001367C4 93 E1 00 4C */ stw r31, 0x4c(r1)
/* 8013A988 001367C8 7C 7F 1B 78 */ mr r31, r3
/* 8013A98C 001367CC 93 C1 00 48 */ stw r30, 0x48(r1)
/* 8013A990 001367D0 93 A1 00 44 */ stw r29, 0x44(r1)
/* 8013A994 001367D4 80 04 00 50 */ lwz r0, 0x50(r4)
/* 8013A998 001367D8 54 00 27 3E */ srwi r0, r0, 28
/* 8013A99C 001367DC 7C 05 00 40 */ cmplw r5, r0
/* 8013A9A0 001367E0 41 80 00 18 */ blt lbl_8013A9B8
2022-10-16 16:31:36 +00:00
/* 8013A9A4 001367E4 3C 80 80 41 */ lis r4, "@9522_8040E218"@ha
/* 8013A9A8 001367E8 C0 04 E2 18 */ lfs f0, "@9522_8040E218"@l(r4)
2022-10-16 16:05:58 +00:00
/* 8013A9AC 001367EC D0 03 00 00 */ stfs f0, 0x0(r3)
/* 8013A9B0 001367F0 D0 03 00 04 */ stfs f0, 0x4(r3)
/* 8013A9B4 001367F4 48 00 00 A8 */ b lbl_8013AA5C
.global lbl_8013A9B8
lbl_8013A9B8:
/* 8013A9B8 001367F8 54 A0 2C F4 */ rlwinm r0, r5, 5, 19, 26
/* 8013A9BC 001367FC 80 C4 00 58 */ lwz r6, 0x58(r4)
/* 8013A9C0 00136800 7C A6 00 6E */ lwzux r5, r6, r0
/* 8013A9C4 00136804 38 61 00 08 */ addi r3, r1, 0x8
/* 8013A9C8 00136808 38 80 00 00 */ li r4, 0x0
/* 8013A9CC 0013680C 80 06 00 04 */ lwz r0, 0x4(r6)
/* 8013A9D0 00136810 90 01 00 0C */ stw r0, 0xc(r1)
/* 8013A9D4 00136814 90 A1 00 08 */ stw r5, 0x8(r1)
/* 8013A9D8 00136818 80 A6 00 08 */ lwz r5, 0x8(r6)
/* 8013A9DC 0013681C 80 06 00 0C */ lwz r0, 0xc(r6)
/* 8013A9E0 00136820 90 01 00 14 */ stw r0, 0x14(r1)
/* 8013A9E4 00136824 90 A1 00 10 */ stw r5, 0x10(r1)
/* 8013A9E8 00136828 80 A6 00 10 */ lwz r5, 0x10(r6)
/* 8013A9EC 0013682C 80 06 00 14 */ lwz r0, 0x14(r6)
/* 8013A9F0 00136830 90 01 00 1C */ stw r0, 0x1c(r1)
/* 8013A9F4 00136834 90 A1 00 18 */ stw r5, 0x18(r1)
/* 8013A9F8 00136838 80 A6 00 18 */ lwz r5, 0x18(r6)
/* 8013A9FC 0013683C 80 06 00 1C */ lwz r0, 0x1c(r6)
/* 8013AA00 00136840 90 01 00 24 */ stw r0, 0x24(r1)
/* 8013AA04 00136844 90 A1 00 20 */ stw r5, 0x20(r1)
2022-10-16 16:31:36 +00:00
/* 8013AA08 00136848 4B EF C1 49 */ bl GXInitTexObjUserData
2022-10-16 16:05:58 +00:00
/* 8013AA0C 0013684C 38 61 00 08 */ addi r3, r1, 0x8
2022-10-16 16:31:36 +00:00
/* 8013AA10 00136850 4B EF C1 81 */ bl GXGetTexObjHeight
2022-10-16 16:05:58 +00:00
/* 8013AA14 00136854 54 60 04 3E */ clrlwi r0, r3, 16
/* 8013AA18 00136858 3F C0 43 30 */ lis r30, 0x4330
2022-10-16 16:31:36 +00:00
/* 8013AA1C 0013685C 3F A0 80 41 */ lis r29, "@11974"@ha
2022-10-16 16:05:58 +00:00
/* 8013AA20 00136860 90 01 00 2C */ stw r0, 0x2c(r1)
2022-10-16 16:31:36 +00:00
/* 8013AA24 00136864 C8 3D E2 28 */ lfd f1, "@11974"@l(r29)
2022-10-16 16:05:58 +00:00
/* 8013AA28 00136868 38 61 00 08 */ addi r3, r1, 0x8
/* 8013AA2C 0013686C 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8013AA30 00136870 C8 01 00 28 */ lfd f0, 0x28(r1)
/* 8013AA34 00136874 EF E0 08 28 */ fsubs f31, f0, f1
2022-10-16 16:31:36 +00:00
/* 8013AA38 00136878 4B EF C1 39 */ bl GXGetTexObjWidth
2022-10-16 16:05:58 +00:00
/* 8013AA3C 0013687C 54 60 04 3E */ clrlwi r0, r3, 16
/* 8013AA40 00136880 90 01 00 34 */ stw r0, 0x34(r1)
/* 8013AA44 00136884 C8 3D E2 28 */ lfd f1, -0x1dd8(r29)
/* 8013AA48 00136888 93 C1 00 30 */ stw r30, 0x30(r1)
/* 8013AA4C 0013688C C8 01 00 30 */ lfd f0, 0x30(r1)
/* 8013AA50 00136890 D3 FF 00 04 */ stfs f31, 0x4(r31)
/* 8013AA54 00136894 EC 00 08 28 */ fsubs f0, f0, f1
/* 8013AA58 00136898 D0 1F 00 00 */ stfs f0, 0x0(r31)
.global lbl_8013AA5C
lbl_8013AA5C:
/* 8013AA5C 0013689C 80 01 00 64 */ lwz r0, 0x64(r1)
/* 8013AA60 001368A0 E3 E1 00 58 */ psq_l f31, 0x58(r1), 0, qr0
/* 8013AA64 001368A4 CB E1 00 50 */ lfd f31, 0x50(r1)
/* 8013AA68 001368A8 83 E1 00 4C */ lwz r31, 0x4c(r1)
/* 8013AA6C 001368AC 83 C1 00 48 */ lwz r30, 0x48(r1)
/* 8013AA70 001368B0 83 A1 00 44 */ lwz r29, 0x44(r1)
/* 8013AA74 001368B4 7C 08 03 A6 */ mtlr r0
/* 8013AA78 001368B8 38 21 00 60 */ addi r1, r1, 0x60
/* 8013AA7C 001368BC 4E 80 00 20 */ blr
2022-10-17 08:59:46 +00:00
.include "macros.inc"
.section .rodata, "wa" # 0x80406560 - 0x80421040 ; 0x0001AAE0
.global DefaultBlackColor_8040E200
DefaultBlackColor_8040E200:
.4byte 0
.4byte 0
.4byte 0x00FF00FF
.4byte 0x00FF00FF
.4byte 0x3F000000
.global "@9521_8040E214"
"@9521_8040E214":
.4byte 0x3F360B61
.global "@9522_8040E218"
"@9522_8040E218":
.4byte 0
.global "@9523_8040E21C"
"@9523_8040E21C":
.4byte 0x3F800000
.4byte 0x40000000
.4byte 0
.global "@11974"
"@11974":
.4byte 0x43300000
.4byte 0
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kColSels"
"@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kColSels":
.4byte 0x0000001F
.4byte 0x0000001B
.4byte 0x00000017
.4byte 0x00000013
.4byte 0x0000001E
.4byte 0x0000001A
.4byte 0x00000016
.4byte 0x00000012
.global "@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kAlpSels@0"
"@LOCAL@SetupGX__Q36nw4hbm3lyt8MaterialFbUc@kAlpSels@0":
.4byte 0x0000001F
.4byte 0x0000001B
.4byte 0x00000017
.4byte 0x00000013
.4byte 0x0000001E
.4byte 0x0000001A
.4byte 0x00000016
.4byte 0x00000012
.global __vt__Q36nw4hbm3lyt8Material
__vt__Q36nw4hbm3lyt8Material:
.4byte __RTTI__Q36nw4hbm3lyt8Material
.4byte 0
.4byte __dt__Q36nw4hbm3lyt8MaterialFv
.4byte SetupGX__Q36nw4hbm3lyt8MaterialFbUc
.4byte BindAnimation__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform
.4byte UnbindAnimation__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform
.4byte UnbindAllAnimation__Q36nw4hbm3lyt8MaterialFv
.4byte Animate__Q36nw4hbm3lyt8MaterialFv
.4byte FindAnimationLink__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransform
.4byte SetAnimationEnable__Q36nw4hbm3lyt8MaterialFPQ36nw4hbm3lyt13AnimTransformb
.global "@8504"
"@8504":
.4byte 0x6E773468
.4byte 0x626D3A3A
.4byte 0x6C79743A
.4byte 0x3A4D6174
.4byte 0x65726961
.4byte 0x6C000000
.global __RTTI__Q36nw4hbm3lyt8Material
__RTTI__Q36nw4hbm3lyt8Material:
.4byte "@8504"
.4byte 0