donut-decomp/asm/homebuttonLib/lyt_common.s

881 lines
43 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global TestFileHeader__Q36nw4hbm3lyt6detailFRCQ46nw4hbm3lyt3res16BinaryFileHeader
TestFileHeader__Q36nw4hbm3lyt6detailFRCQ46nw4hbm3lyt3res16BinaryFileHeader:
/* 80135C80 00131AC0 A0 03 00 04 */ lhz r0, 0x4(r3)
/* 80135C84 00131AC4 38 80 00 00 */ li r4, 0x0
/* 80135C88 00131AC8 28 00 FE FF */ cmplwi r0, 0xfeff
/* 80135C8C 00131ACC 40 82 00 14 */ bne lbl_80135CA0
/* 80135C90 00131AD0 A0 03 00 06 */ lhz r0, 0x6(r3)
/* 80135C94 00131AD4 28 00 00 08 */ cmplwi r0, 0x8
/* 80135C98 00131AD8 40 82 00 08 */ bne lbl_80135CA0
/* 80135C9C 00131ADC 38 80 00 01 */ li r4, 0x1
.global lbl_80135CA0
lbl_80135CA0:
/* 80135CA0 00131AE0 7C 83 23 78 */ mr r3, r4
/* 80135CA4 00131AE4 4E 80 00 20 */ blr
/* 80135CA8 00131AE8 00 00 00 00 */ .4byte 0x00000000
/* 80135CAC 00131AEC 00 00 00 00 */ .4byte 0x00000000
.global TestFileHeader__Q36nw4hbm3lyt6detailFRCQ46nw4hbm3lyt3res16BinaryFileHeaderUl
TestFileHeader__Q36nw4hbm3lyt6detailFRCQ46nw4hbm3lyt3res16BinaryFileHeaderUl:
/* 80135CB0 00131AF0 80 03 00 00 */ lwz r0, 0x0(r3)
/* 80135CB4 00131AF4 38 A0 00 00 */ li r5, 0x0
/* 80135CB8 00131AF8 7C 04 00 40 */ cmplw r4, r0
/* 80135CBC 00131AFC 40 82 00 20 */ bne lbl_80135CDC
/* 80135CC0 00131B00 A0 03 00 04 */ lhz r0, 0x4(r3)
/* 80135CC4 00131B04 28 00 FE FF */ cmplwi r0, 0xfeff
/* 80135CC8 00131B08 40 82 00 14 */ bne lbl_80135CDC
/* 80135CCC 00131B0C A0 03 00 06 */ lhz r0, 0x6(r3)
/* 80135CD0 00131B10 28 00 00 08 */ cmplwi r0, 0x8
/* 80135CD4 00131B14 40 82 00 08 */ bne lbl_80135CDC
/* 80135CD8 00131B18 38 A0 00 01 */ li r5, 0x1
.global lbl_80135CDC
lbl_80135CDC:
/* 80135CDC 00131B1C 7C A3 2B 78 */ mr r3, r5
/* 80135CE0 00131B20 4E 80 00 20 */ blr
/* 80135CE4 00131B24 00 00 00 00 */ .4byte 0x00000000
/* 80135CE8 00131B28 00 00 00 00 */ .4byte 0x00000000
/* 80135CEC 00131B2C 00 00 00 00 */ .4byte 0x00000000
.global Free__Q46nw4hbm3lyt6detail11TexCoordAryFv
Free__Q46nw4hbm3lyt6detail11TexCoordAryFv:
/* 80135CF0 00131B30 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80135CF4 00131B34 7C 08 02 A6 */ mflr r0
/* 80135CF8 00131B38 90 01 00 14 */ stw r0, 0x14(r1)
/* 80135CFC 00131B3C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80135D00 00131B40 7C 7F 1B 78 */ mr r31, r3
/* 80135D04 00131B44 80 83 00 04 */ lwz r4, 0x4(r3)
/* 80135D08 00131B48 2C 04 00 00 */ cmpwi r4, 0x0
/* 80135D0C 00131B4C 41 82 00 20 */ beq lbl_80135D2C
/* 80135D10 00131B50 3C 60 80 54 */ lis r3, mspAllocator__Q36nw4hbm3lyt6Layout@ha
/* 80135D14 00131B54 80 63 37 70 */ lwz r3, mspAllocator__Q36nw4hbm3lyt6Layout@l(r3)
/* 80135D18 00131B58 4B F6 DA E9 */ bl MEMFreeToAllocator
/* 80135D1C 00131B5C 38 00 00 00 */ li r0, 0x0
/* 80135D20 00131B60 90 1F 00 04 */ stw r0, 0x4(r31)
/* 80135D24 00131B64 98 1F 00 00 */ stb r0, 0x0(r31)
/* 80135D28 00131B68 98 1F 00 01 */ stb r0, 0x1(r31)
.global lbl_80135D2C
lbl_80135D2C:
/* 80135D2C 00131B6C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80135D30 00131B70 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80135D34 00131B74 7C 08 03 A6 */ mtlr r0
/* 80135D38 00131B78 38 21 00 10 */ addi r1, r1, 0x10
/* 80135D3C 00131B7C 4E 80 00 20 */ blr
.global Reserve__Q46nw4hbm3lyt6detail11TexCoordAryFUc
Reserve__Q46nw4hbm3lyt6detail11TexCoordAryFUc:
/* 80135D40 00131B80 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80135D44 00131B84 7C 08 02 A6 */ mflr r0
/* 80135D48 00131B88 90 01 00 14 */ stw r0, 0x14(r1)
/* 80135D4C 00131B8C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80135D50 00131B90 7C 9F 23 78 */ mr r31, r4
/* 80135D54 00131B94 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80135D58 00131B98 7C 7E 1B 78 */ mr r30, r3
/* 80135D5C 00131B9C 88 03 00 00 */ lbz r0, 0x0(r3)
/* 80135D60 00131BA0 7C 00 20 40 */ cmplw r0, r4
/* 80135D64 00131BA4 40 80 00 4C */ bge lbl_80135DB0
/* 80135D68 00131BA8 80 83 00 04 */ lwz r4, 0x4(r3)
/* 80135D6C 00131BAC 2C 04 00 00 */ cmpwi r4, 0x0
/* 80135D70 00131BB0 41 82 00 20 */ beq lbl_80135D90
/* 80135D74 00131BB4 3C 60 80 54 */ lis r3, mspAllocator__Q36nw4hbm3lyt6Layout@ha
/* 80135D78 00131BB8 80 63 37 70 */ lwz r3, mspAllocator__Q36nw4hbm3lyt6Layout@l(r3)
/* 80135D7C 00131BBC 4B F6 DA 85 */ bl MEMFreeToAllocator
/* 80135D80 00131BC0 38 00 00 00 */ li r0, 0x0
/* 80135D84 00131BC4 90 1E 00 04 */ stw r0, 0x4(r30)
/* 80135D88 00131BC8 98 1E 00 00 */ stb r0, 0x0(r30)
/* 80135D8C 00131BCC 98 1E 00 01 */ stb r0, 0x1(r30)
.global lbl_80135D90
lbl_80135D90:
/* 80135D90 00131BD0 3C 60 80 54 */ lis r3, mspAllocator__Q36nw4hbm3lyt6Layout@ha
/* 80135D94 00131BD4 57 E4 2C F4 */ rlwinm r4, r31, 5, 19, 26
/* 80135D98 00131BD8 80 63 37 70 */ lwz r3, mspAllocator__Q36nw4hbm3lyt6Layout@l(r3)
/* 80135D9C 00131BDC 4B F6 DA 55 */ bl MEMAllocFromAllocator
/* 80135DA0 00131BE0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80135DA4 00131BE4 90 7E 00 04 */ stw r3, 0x4(r30)
/* 80135DA8 00131BE8 41 82 00 08 */ beq lbl_80135DB0
/* 80135DAC 00131BEC 9B FE 00 00 */ stb r31, 0x0(r30)
.global lbl_80135DB0
lbl_80135DB0:
/* 80135DB0 00131BF0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80135DB4 00131BF4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80135DB8 00131BF8 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80135DBC 00131BFC 7C 08 03 A6 */ mtlr r0
/* 80135DC0 00131C00 38 21 00 10 */ addi r1, r1, 0x10
/* 80135DC4 00131C04 4E 80 00 20 */ blr
/* 80135DC8 00131C08 00 00 00 00 */ .4byte 0x00000000
/* 80135DCC 00131C0C 00 00 00 00 */ .4byte 0x00000000
.global SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc
SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc:
/* 80135DD0 00131C10 80 03 00 04 */ lwz r0, 0x4(r3)
/* 80135DD4 00131C14 2C 00 00 00 */ cmpwi r0, 0x0
/* 80135DD8 00131C18 4D 82 00 20 */ beqlr
/* 80135DDC 00131C1C 88 03 00 00 */ lbz r0, 0x0(r3)
/* 80135DE0 00131C20 7C 04 00 40 */ cmplw r4, r0
/* 80135DE4 00131C24 4D 81 00 20 */ bgtlr
/* 80135DE8 00131C28 3D 00 80 54 */ lis r8, "@GUARD@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"@ha
/* 80135DEC 00131C2C 88 08 37 48 */ lbz r0, "@GUARD@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"@l(r8)
/* 80135DF0 00131C30 7C 00 07 75 */ extsb. r0, r0
/* 80135DF4 00131C34 40 82 00 44 */ bne lbl_80135E38
/* 80135DF8 00131C38 3C C0 80 41 */ lis r6, "@7898"@ha
/* 80135DFC 00131C3C 3C A0 80 41 */ lis r5, "@7899"@ha
/* 80135E00 00131C40 3C E0 80 54 */ lis r7, "@LOCAL@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"@ha
/* 80135E04 00131C44 C0 26 E1 E0 */ lfs f1, "@7898"@l(r6)
/* 80135E08 00131C48 38 C7 37 50 */ addi r6, r7, "@LOCAL@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"@l
/* 80135E0C 00131C4C C0 05 E1 E4 */ lfs f0, "@7899"@l(r5)
/* 80135E10 00131C50 38 00 00 01 */ li r0, 0x1
/* 80135E14 00131C54 D0 27 37 50 */ stfs f1, 0x3750(r7)
/* 80135E18 00131C58 D0 26 00 04 */ stfs f1, 0x4(r6)
/* 80135E1C 00131C5C D0 06 00 08 */ stfs f0, 0x8(r6)
/* 80135E20 00131C60 D0 26 00 0C */ stfs f1, 0xc(r6)
/* 80135E24 00131C64 D0 26 00 10 */ stfs f1, 0x10(r6)
/* 80135E28 00131C68 D0 06 00 14 */ stfs f0, 0x14(r6)
/* 80135E2C 00131C6C D0 06 00 18 */ stfs f0, 0x18(r6)
/* 80135E30 00131C70 D0 06 00 1C */ stfs f0, 0x1c(r6)
/* 80135E34 00131C74 98 08 37 48 */ stb r0, 0x3748(r8)
.global lbl_80135E38
lbl_80135E38:
/* 80135E38 00131C78 88 E3 00 01 */ lbz r7, 0x1(r3)
/* 80135E3C 00131C7C 3C C0 80 54 */ lis r6, "@LOCAL@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"@ha
/* 80135E40 00131C80 38 A6 37 50 */ addi r5, r6, "@LOCAL@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"@l
/* 80135E44 00131C84 C0 E6 37 50 */ lfs f7, 0x3750(r6)
/* 80135E48 00131C88 7C 07 20 50 */ subf r0, r7, r4
/* 80135E4C 00131C8C 54 E6 28 34 */ slwi r6, r7, 5
/* 80135E50 00131C90 C0 C5 00 04 */ lfs f6, 0x4(r5)
/* 80135E54 00131C94 C0 A5 00 08 */ lfs f5, 0x8(r5)
/* 80135E58 00131C98 C0 85 00 0C */ lfs f4, 0xc(r5)
/* 80135E5C 00131C9C C0 65 00 10 */ lfs f3, 0x10(r5)
/* 80135E60 00131CA0 C0 45 00 14 */ lfs f2, 0x14(r5)
/* 80135E64 00131CA4 C0 25 00 18 */ lfs f1, 0x18(r5)
/* 80135E68 00131CA8 C0 05 00 1C */ lfs f0, 0x1c(r5)
/* 80135E6C 00131CAC 7C 09 03 A6 */ mtctr r0
/* 80135E70 00131CB0 7C 07 20 00 */ cmpw r7, r4
/* 80135E74 00131CB4 40 80 00 4C */ bge lbl_80135EC0
.global lbl_80135E78
lbl_80135E78:
/* 80135E78 00131CB8 80 03 00 04 */ lwz r0, 0x4(r3)
/* 80135E7C 00131CBC 7C E6 05 2E */ stfsx f7, r6, r0
/* 80135E80 00131CC0 7C A0 32 14 */ add r5, r0, r6
/* 80135E84 00131CC4 D0 C5 00 04 */ stfs f6, 0x4(r5)
/* 80135E88 00131CC8 80 03 00 04 */ lwz r0, 0x4(r3)
/* 80135E8C 00131CCC 7C A0 32 14 */ add r5, r0, r6
/* 80135E90 00131CD0 D0 A5 00 08 */ stfs f5, 0x8(r5)
/* 80135E94 00131CD4 D0 85 00 0C */ stfs f4, 0xc(r5)
/* 80135E98 00131CD8 80 03 00 04 */ lwz r0, 0x4(r3)
/* 80135E9C 00131CDC 7C A0 32 14 */ add r5, r0, r6
/* 80135EA0 00131CE0 D0 65 00 10 */ stfs f3, 0x10(r5)
/* 80135EA4 00131CE4 D0 45 00 14 */ stfs f2, 0x14(r5)
/* 80135EA8 00131CE8 80 03 00 04 */ lwz r0, 0x4(r3)
/* 80135EAC 00131CEC 7C A0 32 14 */ add r5, r0, r6
/* 80135EB0 00131CF0 38 C6 00 20 */ addi r6, r6, 0x20
/* 80135EB4 00131CF4 D0 25 00 18 */ stfs f1, 0x18(r5)
/* 80135EB8 00131CF8 D0 05 00 1C */ stfs f0, 0x1c(r5)
/* 80135EBC 00131CFC 42 00 FF BC */ bdnz lbl_80135E78
.global lbl_80135EC0
lbl_80135EC0:
/* 80135EC0 00131D00 98 83 00 01 */ stb r4, 0x1(r3)
/* 80135EC4 00131D04 4E 80 00 20 */ blr
/* 80135EC8 00131D08 00 00 00 00 */ .4byte 0x00000000
/* 80135ECC 00131D0C 00 00 00 00 */ .4byte 0x00000000
.global DrawQuad__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeUcPA4_CQ36nw4hbm4math4VEC2PCQ36nw4hbm2ut5Color
DrawQuad__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeUcPA4_CQ36nw4hbm4math4VEC2PCQ36nw4hbm2ut5Color:
/* 80135ED0 00131D10 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80135ED4 00131D14 7C 08 02 A6 */ mflr r0
/* 80135ED8 00131D18 90 01 00 24 */ stw r0, 0x24(r1)
/* 80135EDC 00131D1C 39 61 00 20 */ addi r11, r1, 0x20
/* 80135EE0 00131D20 4B ED 14 5D */ bl lbl_8000733C
/* 80135EE4 00131D24 7C 7B 1B 78 */ mr r27, r3
/* 80135EE8 00131D28 7C 9C 23 78 */ mr r28, r4
/* 80135EEC 00131D2C 7C BD 2B 78 */ mr r29, r5
/* 80135EF0 00131D30 7C DE 33 78 */ mr r30, r6
/* 80135EF4 00131D34 7C FF 3B 78 */ mr r31, r7
/* 80135EF8 00131D38 38 60 00 80 */ li r3, 0x80
/* 80135EFC 00131D3C 38 80 00 00 */ li r4, 0x0
/* 80135F00 00131D40 38 A0 00 04 */ li r5, 0x4
/* 80135F04 00131D44 4B EF F3 6D */ bl GXBegin
/* 80135F08 00131D48 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80135F0C 00131D4C C0 1B 00 00 */ lfs f0, 0x0(r27)
/* 80135F10 00131D50 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80135F14 00131D54 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80135F18 00131D58 C0 1B 00 04 */ lfs f0, 0x4(r27)
/* 80135F1C 00131D5C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135F20 00131D60 41 82 00 0C */ beq lbl_80135F2C
/* 80135F24 00131D64 80 1F 00 00 */ lwz r0, 0x0(r31)
/* 80135F28 00131D68 90 03 80 00 */ stw r0, -0x8000(r3)
.global lbl_80135F2C
lbl_80135F2C:
/* 80135F2C 00131D6C 2C 9D 00 00 */ cmpwi cr1, r29, 0x0
/* 80135F30 00131D70 38 C0 00 00 */ li r6, 0x0
/* 80135F34 00131D74 40 85 01 10 */ ble cr1, lbl_80136044
/* 80135F38 00131D78 2C 1D 00 08 */ cmpwi r29, 0x8
/* 80135F3C 00131D7C 38 9D FF F8 */ addi r4, r29, -0x8
/* 80135F40 00131D80 40 81 00 D0 */ ble lbl_80136010
/* 80135F44 00131D84 38 A0 00 00 */ li r5, 0x0
/* 80135F48 00131D88 41 84 00 18 */ blt cr1, lbl_80135F60
/* 80135F4C 00131D8C 3C 60 80 00 */ lis r3, 0x8000
/* 80135F50 00131D90 38 03 FF FE */ addi r0, r3, -0x2
/* 80135F54 00131D94 7C 1D 00 00 */ cmpw r29, r0
/* 80135F58 00131D98 41 81 00 08 */ bgt lbl_80135F60
/* 80135F5C 00131D9C 38 A0 00 01 */ li r5, 0x1
.global lbl_80135F60
lbl_80135F60:
/* 80135F60 00131DA0 2C 05 00 00 */ cmpwi r5, 0x0
/* 80135F64 00131DA4 41 82 00 AC */ beq lbl_80136010
/* 80135F68 00131DA8 38 04 00 07 */ addi r0, r4, 0x7
/* 80135F6C 00131DAC 7F C5 F3 78 */ mr r5, r30
/* 80135F70 00131DB0 54 00 E8 FE */ srwi r0, r0, 3
/* 80135F74 00131DB4 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80135F78 00131DB8 7C 09 03 A6 */ mtctr r0
/* 80135F7C 00131DBC 2C 04 00 00 */ cmpwi r4, 0x0
/* 80135F80 00131DC0 40 81 00 90 */ ble lbl_80136010
.global lbl_80135F84
lbl_80135F84:
/* 80135F84 00131DC4 C0 05 00 00 */ lfs f0, 0x0(r5)
/* 80135F88 00131DC8 38 C6 00 08 */ addi r6, r6, 0x8
/* 80135F8C 00131DCC D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80135F90 00131DD0 C0 05 00 04 */ lfs f0, 0x4(r5)
/* 80135F94 00131DD4 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135F98 00131DD8 C0 05 00 20 */ lfs f0, 0x20(r5)
/* 80135F9C 00131DDC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FA0 00131DE0 C0 05 00 24 */ lfs f0, 0x24(r5)
/* 80135FA4 00131DE4 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FA8 00131DE8 C0 05 00 40 */ lfs f0, 0x40(r5)
/* 80135FAC 00131DEC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FB0 00131DF0 C0 05 00 44 */ lfs f0, 0x44(r5)
/* 80135FB4 00131DF4 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FB8 00131DF8 C0 05 00 60 */ lfs f0, 0x60(r5)
/* 80135FBC 00131DFC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FC0 00131E00 C0 05 00 64 */ lfs f0, 0x64(r5)
/* 80135FC4 00131E04 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FC8 00131E08 C0 05 00 80 */ lfs f0, 0x80(r5)
/* 80135FCC 00131E0C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FD0 00131E10 C0 05 00 84 */ lfs f0, 0x84(r5)
/* 80135FD4 00131E14 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FD8 00131E18 C0 05 00 A0 */ lfs f0, 0xa0(r5)
/* 80135FDC 00131E1C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FE0 00131E20 C0 05 00 A4 */ lfs f0, 0xa4(r5)
/* 80135FE4 00131E24 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FE8 00131E28 C0 05 00 C0 */ lfs f0, 0xc0(r5)
/* 80135FEC 00131E2C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FF0 00131E30 C0 05 00 C4 */ lfs f0, 0xc4(r5)
/* 80135FF4 00131E34 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80135FF8 00131E38 C0 05 00 E0 */ lfs f0, 0xe0(r5)
/* 80135FFC 00131E3C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136000 00131E40 C0 05 00 E4 */ lfs f0, 0xe4(r5)
/* 80136004 00131E44 38 A5 01 00 */ addi r5, r5, 0x100
/* 80136008 00131E48 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013600C 00131E4C 42 00 FF 78 */ bdnz lbl_80135F84
.global lbl_80136010
lbl_80136010:
/* 80136010 00131E50 54 C3 28 34 */ slwi r3, r6, 5
/* 80136014 00131E54 7C 06 E8 50 */ subf r0, r6, r29
/* 80136018 00131E58 7C 9E 1A 14 */ add r4, r30, r3
/* 8013601C 00131E5C 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80136020 00131E60 7C 09 03 A6 */ mtctr r0
/* 80136024 00131E64 7C 06 E8 00 */ cmpw r6, r29
/* 80136028 00131E68 40 80 00 1C */ bge lbl_80136044
.global lbl_8013602C
lbl_8013602C:
/* 8013602C 00131E6C C0 04 00 00 */ lfs f0, 0x0(r4)
/* 80136030 00131E70 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80136034 00131E74 C0 04 00 04 */ lfs f0, 0x4(r4)
/* 80136038 00131E78 38 84 00 20 */ addi r4, r4, 0x20
/* 8013603C 00131E7C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136040 00131E80 42 00 FF EC */ bdnz lbl_8013602C
.global lbl_80136044
lbl_80136044:
/* 80136044 00131E84 C0 3B 00 00 */ lfs f1, 0x0(r27)
/* 80136048 00131E88 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 8013604C 00131E8C C0 1C 00 00 */ lfs f0, 0x0(r28)
/* 80136050 00131E90 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80136054 00131E94 C0 5B 00 04 */ lfs f2, 0x4(r27)
/* 80136058 00131E98 EC 01 00 2A */ fadds f0, f1, f0
/* 8013605C 00131E9C D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80136060 00131EA0 D0 43 80 00 */ stfs f2, -0x8000(r3)
/* 80136064 00131EA4 41 82 00 0C */ beq lbl_80136070
/* 80136068 00131EA8 80 1F 00 04 */ lwz r0, 0x4(r31)
/* 8013606C 00131EAC 90 03 80 00 */ stw r0, -0x8000(r3)
.global lbl_80136070
lbl_80136070:
/* 80136070 00131EB0 2C 9D 00 00 */ cmpwi cr1, r29, 0x0
/* 80136074 00131EB4 38 C0 00 00 */ li r6, 0x0
/* 80136078 00131EB8 40 85 01 10 */ ble cr1, lbl_80136188
/* 8013607C 00131EBC 2C 1D 00 08 */ cmpwi r29, 0x8
/* 80136080 00131EC0 38 9D FF F8 */ addi r4, r29, -0x8
/* 80136084 00131EC4 40 81 00 D0 */ ble lbl_80136154
/* 80136088 00131EC8 38 A0 00 00 */ li r5, 0x0
/* 8013608C 00131ECC 41 84 00 18 */ blt cr1, lbl_801360A4
/* 80136090 00131ED0 3C 60 80 00 */ lis r3, 0x8000
/* 80136094 00131ED4 38 03 FF FE */ addi r0, r3, -0x2
/* 80136098 00131ED8 7C 1D 00 00 */ cmpw r29, r0
/* 8013609C 00131EDC 41 81 00 08 */ bgt lbl_801360A4
/* 801360A0 00131EE0 38 A0 00 01 */ li r5, 0x1
.global lbl_801360A4
lbl_801360A4:
/* 801360A4 00131EE4 2C 05 00 00 */ cmpwi r5, 0x0
/* 801360A8 00131EE8 41 82 00 AC */ beq lbl_80136154
/* 801360AC 00131EEC 38 04 00 07 */ addi r0, r4, 0x7
/* 801360B0 00131EF0 7F C5 F3 78 */ mr r5, r30
/* 801360B4 00131EF4 54 00 E8 FE */ srwi r0, r0, 3
/* 801360B8 00131EF8 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 801360BC 00131EFC 7C 09 03 A6 */ mtctr r0
/* 801360C0 00131F00 2C 04 00 00 */ cmpwi r4, 0x0
/* 801360C4 00131F04 40 81 00 90 */ ble lbl_80136154
.global lbl_801360C8
lbl_801360C8:
/* 801360C8 00131F08 C0 05 00 08 */ lfs f0, 0x8(r5)
/* 801360CC 00131F0C 38 C6 00 08 */ addi r6, r6, 0x8
/* 801360D0 00131F10 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 801360D4 00131F14 C0 05 00 0C */ lfs f0, 0xc(r5)
/* 801360D8 00131F18 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801360DC 00131F1C C0 05 00 28 */ lfs f0, 0x28(r5)
/* 801360E0 00131F20 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801360E4 00131F24 C0 05 00 2C */ lfs f0, 0x2c(r5)
/* 801360E8 00131F28 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801360EC 00131F2C C0 05 00 48 */ lfs f0, 0x48(r5)
/* 801360F0 00131F30 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801360F4 00131F34 C0 05 00 4C */ lfs f0, 0x4c(r5)
/* 801360F8 00131F38 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801360FC 00131F3C C0 05 00 68 */ lfs f0, 0x68(r5)
/* 80136100 00131F40 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136104 00131F44 C0 05 00 6C */ lfs f0, 0x6c(r5)
/* 80136108 00131F48 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013610C 00131F4C C0 05 00 88 */ lfs f0, 0x88(r5)
/* 80136110 00131F50 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136114 00131F54 C0 05 00 8C */ lfs f0, 0x8c(r5)
/* 80136118 00131F58 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013611C 00131F5C C0 05 00 A8 */ lfs f0, 0xa8(r5)
/* 80136120 00131F60 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136124 00131F64 C0 05 00 AC */ lfs f0, 0xac(r5)
/* 80136128 00131F68 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013612C 00131F6C C0 05 00 C8 */ lfs f0, 0xc8(r5)
/* 80136130 00131F70 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136134 00131F74 C0 05 00 CC */ lfs f0, 0xcc(r5)
/* 80136138 00131F78 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013613C 00131F7C C0 05 00 E8 */ lfs f0, 0xe8(r5)
/* 80136140 00131F80 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136144 00131F84 C0 05 00 EC */ lfs f0, 0xec(r5)
/* 80136148 00131F88 38 A5 01 00 */ addi r5, r5, 0x100
/* 8013614C 00131F8C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136150 00131F90 42 00 FF 78 */ bdnz lbl_801360C8
.global lbl_80136154
lbl_80136154:
/* 80136154 00131F94 54 C3 28 34 */ slwi r3, r6, 5
/* 80136158 00131F98 7C 06 E8 50 */ subf r0, r6, r29
/* 8013615C 00131F9C 7C 9E 1A 14 */ add r4, r30, r3
/* 80136160 00131FA0 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80136164 00131FA4 7C 09 03 A6 */ mtctr r0
/* 80136168 00131FA8 7C 06 E8 00 */ cmpw r6, r29
/* 8013616C 00131FAC 40 80 00 1C */ bge lbl_80136188
.global lbl_80136170
lbl_80136170:
/* 80136170 00131FB0 C0 04 00 08 */ lfs f0, 0x8(r4)
/* 80136174 00131FB4 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80136178 00131FB8 C0 04 00 0C */ lfs f0, 0xc(r4)
/* 8013617C 00131FBC 38 84 00 20 */ addi r4, r4, 0x20
/* 80136180 00131FC0 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136184 00131FC4 42 00 FF EC */ bdnz lbl_80136170
.global lbl_80136188
lbl_80136188:
/* 80136188 00131FC8 C0 3B 00 00 */ lfs f1, 0x0(r27)
/* 8013618C 00131FCC 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80136190 00131FD0 C0 1C 00 00 */ lfs f0, 0x0(r28)
/* 80136194 00131FD4 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80136198 00131FD8 C0 5B 00 04 */ lfs f2, 0x4(r27)
/* 8013619C 00131FDC EC 21 00 2A */ fadds f1, f1, f0
/* 801361A0 00131FE0 C0 1C 00 04 */ lfs f0, 0x4(r28)
/* 801361A4 00131FE4 D0 23 80 00 */ stfs f1, 0xCC008000@l(r3)
/* 801361A8 00131FE8 EC 02 00 2A */ fadds f0, f2, f0
/* 801361AC 00131FEC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801361B0 00131FF0 41 82 00 0C */ beq lbl_801361BC
/* 801361B4 00131FF4 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 801361B8 00131FF8 90 03 80 00 */ stw r0, -0x8000(r3)
.global lbl_801361BC
lbl_801361BC:
/* 801361BC 00131FFC 2C 9D 00 00 */ cmpwi cr1, r29, 0x0
/* 801361C0 00132000 38 C0 00 00 */ li r6, 0x0
/* 801361C4 00132004 40 85 01 10 */ ble cr1, lbl_801362D4
/* 801361C8 00132008 2C 1D 00 08 */ cmpwi r29, 0x8
/* 801361CC 0013200C 38 9D FF F8 */ addi r4, r29, -0x8
/* 801361D0 00132010 40 81 00 D0 */ ble lbl_801362A0
/* 801361D4 00132014 38 A0 00 00 */ li r5, 0x0
/* 801361D8 00132018 41 84 00 18 */ blt cr1, lbl_801361F0
/* 801361DC 0013201C 3C 60 80 00 */ lis r3, 0x8000
/* 801361E0 00132020 38 03 FF FE */ addi r0, r3, -0x2
/* 801361E4 00132024 7C 1D 00 00 */ cmpw r29, r0
/* 801361E8 00132028 41 81 00 08 */ bgt lbl_801361F0
/* 801361EC 0013202C 38 A0 00 01 */ li r5, 0x1
.global lbl_801361F0
lbl_801361F0:
/* 801361F0 00132030 2C 05 00 00 */ cmpwi r5, 0x0
/* 801361F4 00132034 41 82 00 AC */ beq lbl_801362A0
/* 801361F8 00132038 38 04 00 07 */ addi r0, r4, 0x7
/* 801361FC 0013203C 7F C5 F3 78 */ mr r5, r30
/* 80136200 00132040 54 00 E8 FE */ srwi r0, r0, 3
/* 80136204 00132044 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80136208 00132048 7C 09 03 A6 */ mtctr r0
/* 8013620C 0013204C 2C 04 00 00 */ cmpwi r4, 0x0
/* 80136210 00132050 40 81 00 90 */ ble lbl_801362A0
.global lbl_80136214
lbl_80136214:
/* 80136214 00132054 C0 05 00 18 */ lfs f0, 0x18(r5)
/* 80136218 00132058 38 C6 00 08 */ addi r6, r6, 0x8
/* 8013621C 0013205C D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80136220 00132060 C0 05 00 1C */ lfs f0, 0x1c(r5)
/* 80136224 00132064 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136228 00132068 C0 05 00 38 */ lfs f0, 0x38(r5)
/* 8013622C 0013206C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136230 00132070 C0 05 00 3C */ lfs f0, 0x3c(r5)
/* 80136234 00132074 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136238 00132078 C0 05 00 58 */ lfs f0, 0x58(r5)
/* 8013623C 0013207C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136240 00132080 C0 05 00 5C */ lfs f0, 0x5c(r5)
/* 80136244 00132084 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136248 00132088 C0 05 00 78 */ lfs f0, 0x78(r5)
/* 8013624C 0013208C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136250 00132090 C0 05 00 7C */ lfs f0, 0x7c(r5)
/* 80136254 00132094 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136258 00132098 C0 05 00 98 */ lfs f0, 0x98(r5)
/* 8013625C 0013209C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136260 001320A0 C0 05 00 9C */ lfs f0, 0x9c(r5)
/* 80136264 001320A4 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136268 001320A8 C0 05 00 B8 */ lfs f0, 0xb8(r5)
/* 8013626C 001320AC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136270 001320B0 C0 05 00 BC */ lfs f0, 0xbc(r5)
/* 80136274 001320B4 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136278 001320B8 C0 05 00 D8 */ lfs f0, 0xd8(r5)
/* 8013627C 001320BC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136280 001320C0 C0 05 00 DC */ lfs f0, 0xdc(r5)
/* 80136284 001320C4 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136288 001320C8 C0 05 00 F8 */ lfs f0, 0xf8(r5)
/* 8013628C 001320CC D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136290 001320D0 C0 05 00 FC */ lfs f0, 0xfc(r5)
/* 80136294 001320D4 38 A5 01 00 */ addi r5, r5, 0x100
/* 80136298 001320D8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013629C 001320DC 42 00 FF 78 */ bdnz lbl_80136214
.global lbl_801362A0
lbl_801362A0:
/* 801362A0 001320E0 54 C3 28 34 */ slwi r3, r6, 5
/* 801362A4 001320E4 7C 06 E8 50 */ subf r0, r6, r29
/* 801362A8 001320E8 7C 9E 1A 14 */ add r4, r30, r3
/* 801362AC 001320EC 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 801362B0 001320F0 7C 09 03 A6 */ mtctr r0
/* 801362B4 001320F4 7C 06 E8 00 */ cmpw r6, r29
/* 801362B8 001320F8 40 80 00 1C */ bge lbl_801362D4
.global lbl_801362BC
lbl_801362BC:
/* 801362BC 001320FC C0 04 00 18 */ lfs f0, 0x18(r4)
/* 801362C0 00132100 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 801362C4 00132104 C0 04 00 1C */ lfs f0, 0x1c(r4)
/* 801362C8 00132108 38 84 00 20 */ addi r4, r4, 0x20
/* 801362CC 0013210C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801362D0 00132110 42 00 FF EC */ bdnz lbl_801362BC
.global lbl_801362D4
lbl_801362D4:
/* 801362D4 00132114 C0 3B 00 04 */ lfs f1, 0x4(r27)
/* 801362D8 00132118 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 801362DC 0013211C C0 1C 00 04 */ lfs f0, 0x4(r28)
/* 801362E0 00132120 2C 1F 00 00 */ cmpwi r31, 0x0
/* 801362E4 00132124 C0 5B 00 00 */ lfs f2, 0x0(r27)
/* 801362E8 00132128 D0 43 80 00 */ stfs f2, 0xCC008000@l(r3)
/* 801362EC 0013212C EC 01 00 2A */ fadds f0, f1, f0
/* 801362F0 00132130 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801362F4 00132134 41 82 00 0C */ beq lbl_80136300
/* 801362F8 00132138 80 1F 00 08 */ lwz r0, 0x8(r31)
/* 801362FC 0013213C 90 03 80 00 */ stw r0, -0x8000(r3)
.global lbl_80136300
lbl_80136300:
/* 80136300 00132140 2C 9D 00 00 */ cmpwi cr1, r29, 0x0
/* 80136304 00132144 38 C0 00 00 */ li r6, 0x0
/* 80136308 00132148 40 85 01 10 */ ble cr1, lbl_80136418
/* 8013630C 0013214C 2C 1D 00 08 */ cmpwi r29, 0x8
/* 80136310 00132150 38 9D FF F8 */ addi r4, r29, -0x8
/* 80136314 00132154 40 81 00 D0 */ ble lbl_801363E4
/* 80136318 00132158 38 A0 00 00 */ li r5, 0x0
/* 8013631C 0013215C 41 84 00 18 */ blt cr1, lbl_80136334
/* 80136320 00132160 3C 60 80 00 */ lis r3, 0x8000
/* 80136324 00132164 38 03 FF FE */ addi r0, r3, -0x2
/* 80136328 00132168 7C 1D 00 00 */ cmpw r29, r0
/* 8013632C 0013216C 41 81 00 08 */ bgt lbl_80136334
/* 80136330 00132170 38 A0 00 01 */ li r5, 0x1
.global lbl_80136334
lbl_80136334:
/* 80136334 00132174 2C 05 00 00 */ cmpwi r5, 0x0
/* 80136338 00132178 41 82 00 AC */ beq lbl_801363E4
/* 8013633C 0013217C 38 04 00 07 */ addi r0, r4, 0x7
/* 80136340 00132180 7F C5 F3 78 */ mr r5, r30
/* 80136344 00132184 54 00 E8 FE */ srwi r0, r0, 3
/* 80136348 00132188 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 8013634C 0013218C 7C 09 03 A6 */ mtctr r0
/* 80136350 00132190 2C 04 00 00 */ cmpwi r4, 0x0
/* 80136354 00132194 40 81 00 90 */ ble lbl_801363E4
.global lbl_80136358
lbl_80136358:
/* 80136358 00132198 C0 05 00 10 */ lfs f0, 0x10(r5)
/* 8013635C 0013219C 38 C6 00 08 */ addi r6, r6, 0x8
/* 80136360 001321A0 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80136364 001321A4 C0 05 00 14 */ lfs f0, 0x14(r5)
/* 80136368 001321A8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013636C 001321AC C0 05 00 30 */ lfs f0, 0x30(r5)
/* 80136370 001321B0 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136374 001321B4 C0 05 00 34 */ lfs f0, 0x34(r5)
/* 80136378 001321B8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013637C 001321BC C0 05 00 50 */ lfs f0, 0x50(r5)
/* 80136380 001321C0 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136384 001321C4 C0 05 00 54 */ lfs f0, 0x54(r5)
/* 80136388 001321C8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013638C 001321CC C0 05 00 70 */ lfs f0, 0x70(r5)
/* 80136390 001321D0 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136394 001321D4 C0 05 00 74 */ lfs f0, 0x74(r5)
/* 80136398 001321D8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 8013639C 001321DC C0 05 00 90 */ lfs f0, 0x90(r5)
/* 801363A0 001321E0 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363A4 001321E4 C0 05 00 94 */ lfs f0, 0x94(r5)
/* 801363A8 001321E8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363AC 001321EC C0 05 00 B0 */ lfs f0, 0xb0(r5)
/* 801363B0 001321F0 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363B4 001321F4 C0 05 00 B4 */ lfs f0, 0xb4(r5)
/* 801363B8 001321F8 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363BC 001321FC C0 05 00 D0 */ lfs f0, 0xd0(r5)
/* 801363C0 00132200 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363C4 00132204 C0 05 00 D4 */ lfs f0, 0xd4(r5)
/* 801363C8 00132208 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363CC 0013220C C0 05 00 F0 */ lfs f0, 0xf0(r5)
/* 801363D0 00132210 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363D4 00132214 C0 05 00 F4 */ lfs f0, 0xf4(r5)
/* 801363D8 00132218 38 A5 01 00 */ addi r5, r5, 0x100
/* 801363DC 0013221C D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801363E0 00132220 42 00 FF 78 */ bdnz lbl_80136358
.global lbl_801363E4
lbl_801363E4:
/* 801363E4 00132224 54 C3 28 34 */ slwi r3, r6, 5
/* 801363E8 00132228 7C 06 E8 50 */ subf r0, r6, r29
/* 801363EC 0013222C 7C 9E 1A 14 */ add r4, r30, r3
/* 801363F0 00132230 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 801363F4 00132234 7C 09 03 A6 */ mtctr r0
/* 801363F8 00132238 7C 06 E8 00 */ cmpw r6, r29
/* 801363FC 0013223C 40 80 00 1C */ bge lbl_80136418
.global lbl_80136400
lbl_80136400:
/* 80136400 00132240 C0 04 00 10 */ lfs f0, 0x10(r4)
/* 80136404 00132244 D0 03 80 00 */ stfs f0, 0xCC008000@l(r3)
/* 80136408 00132248 C0 04 00 14 */ lfs f0, 0x14(r4)
/* 8013640C 0013224C 38 84 00 20 */ addi r4, r4, 0x20
/* 80136410 00132250 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 80136414 00132254 42 00 FF EC */ bdnz lbl_80136400
.global lbl_80136418
lbl_80136418:
/* 80136418 00132258 39 61 00 20 */ addi r11, r1, 0x20
/* 8013641C 0013225C 4B ED 0F 6D */ bl lbl_80007388
/* 80136420 00132260 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80136424 00132264 7C 08 03 A6 */ mtlr r0
/* 80136428 00132268 38 21 00 20 */ addi r1, r1, 0x20
/* 8013642C 0013226C 4E 80 00 20 */ blr
.global DrawQuad__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeUcPA4_CQ36nw4hbm4math4VEC2PCQ36nw4hbm2ut5ColorUc
DrawQuad__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeUcPA4_CQ36nw4hbm4math4VEC2PCQ36nw4hbm2ut5ColorUc:
/* 80136430 00132270 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80136434 00132274 7C 08 02 A6 */ mflr r0
/* 80136438 00132278 2C 07 00 00 */ cmpwi r7, 0x0
/* 8013643C 0013227C 90 01 00 34 */ stw r0, 0x34(r1)
/* 80136440 00132280 38 00 FF FF */ li r0, -0x1
/* 80136444 00132284 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80136448 00132288 90 01 00 10 */ stw r0, 0x10(r1)
/* 8013644C 0013228C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80136450 00132290 90 01 00 18 */ stw r0, 0x18(r1)
/* 80136454 00132294 90 01 00 1C */ stw r0, 0x1c(r1)
/* 80136458 00132298 41 82 00 E0 */ beq lbl_80136538
/* 8013645C 0013229C 38 00 00 02 */ li r0, 0x2
/* 80136460 001322A0 7C EC 3B 78 */ mr r12, r7
/* 80136464 001322A4 3B E1 00 10 */ addi r31, r1, 0x10
/* 80136468 001322A8 39 60 00 00 */ li r11, 0x0
/* 8013646C 001322AC 3D 20 80 81 */ lis r9, 0x80808081@ha
/* 80136470 001322B0 7C 09 03 A6 */ mtctr r0
/* 80136474 001322B4 60 00 00 00 */ nop
.global lbl_80136478
lbl_80136478:
/* 80136478 001322B8 80 0C 00 00 */ lwz r0, 0x0(r12)
/* 8013647C 001322BC 28 08 00 FF */ cmplwi r8, 0xff
/* 80136480 001322C0 90 01 00 08 */ stw r0, 0x8(r1)
/* 80136484 001322C4 90 01 00 0C */ stw r0, 0xc(r1)
/* 80136488 001322C8 41 82 00 28 */ beq lbl_801364B0
/* 8013648C 001322CC 88 01 00 0B */ lbz r0, 0xb(r1)
/* 80136490 001322D0 39 49 80 81 */ addi r10, r9, 0x80808081@l
/* 80136494 001322D4 7C 00 41 D6 */ mullw r0, r0, r8
/* 80136498 001322D8 7D 4A 00 96 */ mulhw r10, r10, r0
/* 8013649C 001322DC 7C 0A 02 14 */ add r0, r10, r0
/* 801364A0 001322E0 7C 00 3E 70 */ srawi r0, r0, 7
/* 801364A4 001322E4 54 0A 0F FE */ srwi r10, r0, 31
/* 801364A8 001322E8 7C 00 52 14 */ add r0, r0, r10
/* 801364AC 001322EC 98 01 00 0F */ stb r0, 0xf(r1)
.global lbl_801364B0
lbl_801364B0:
/* 801364B0 001322F0 88 01 00 0C */ lbz r0, 0xc(r1)
/* 801364B4 001322F4 28 08 00 FF */ cmplwi r8, 0xff
/* 801364B8 001322F8 98 1F 00 00 */ stb r0, 0x0(r31)
/* 801364BC 001322FC 88 01 00 0D */ lbz r0, 0xd(r1)
/* 801364C0 00132300 98 1F 00 01 */ stb r0, 0x1(r31)
/* 801364C4 00132304 88 01 00 0E */ lbz r0, 0xe(r1)
/* 801364C8 00132308 98 1F 00 02 */ stb r0, 0x2(r31)
/* 801364CC 0013230C 88 01 00 0F */ lbz r0, 0xf(r1)
/* 801364D0 00132310 98 1F 00 03 */ stb r0, 0x3(r31)
/* 801364D4 00132314 80 0C 00 04 */ lwz r0, 0x4(r12)
/* 801364D8 00132318 90 01 00 08 */ stw r0, 0x8(r1)
/* 801364DC 0013231C 90 01 00 0C */ stw r0, 0xc(r1)
/* 801364E0 00132320 41 82 00 28 */ beq lbl_80136508
/* 801364E4 00132324 88 01 00 0B */ lbz r0, 0xb(r1)
/* 801364E8 00132328 39 49 80 81 */ addi r10, r9, -0x7f7f
/* 801364EC 0013232C 7C 00 41 D6 */ mullw r0, r0, r8
/* 801364F0 00132330 7D 4A 00 96 */ mulhw r10, r10, r0
/* 801364F4 00132334 7C 0A 02 14 */ add r0, r10, r0
/* 801364F8 00132338 7C 00 3E 70 */ srawi r0, r0, 7
/* 801364FC 0013233C 54 0A 0F FE */ srwi r10, r0, 31
/* 80136500 00132340 7C 00 52 14 */ add r0, r0, r10
/* 80136504 00132344 98 01 00 0F */ stb r0, 0xf(r1)
.global lbl_80136508
lbl_80136508:
/* 80136508 00132348 88 01 00 0C */ lbz r0, 0xc(r1)
/* 8013650C 0013234C 39 8C 00 08 */ addi r12, r12, 0x8
/* 80136510 00132350 98 1F 00 04 */ stb r0, 0x4(r31)
/* 80136514 00132354 39 6B 00 01 */ addi r11, r11, 0x1
/* 80136518 00132358 88 01 00 0D */ lbz r0, 0xd(r1)
/* 8013651C 0013235C 98 1F 00 05 */ stb r0, 0x5(r31)
/* 80136520 00132360 88 01 00 0E */ lbz r0, 0xe(r1)
/* 80136524 00132364 98 1F 00 06 */ stb r0, 0x6(r31)
/* 80136528 00132368 88 01 00 0F */ lbz r0, 0xf(r1)
/* 8013652C 0013236C 98 1F 00 07 */ stb r0, 0x7(r31)
/* 80136530 00132370 3B FF 00 08 */ addi r31, r31, 0x8
/* 80136534 00132374 42 00 FF 44 */ bdnz lbl_80136478
.global lbl_80136538
lbl_80136538:
/* 80136538 00132378 2C 07 00 00 */ cmpwi r7, 0x0
/* 8013653C 0013237C 38 E0 00 00 */ li r7, 0x0
/* 80136540 00132380 41 82 00 08 */ beq lbl_80136548
/* 80136544 00132384 38 E1 00 10 */ addi r7, r1, 0x10
.global lbl_80136548
lbl_80136548:
/* 80136548 00132388 4B FF F9 89 */ bl DrawQuad__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeUcPA4_CQ36nw4hbm4math4VEC2PCQ36nw4hbm2ut5Color
/* 8013654C 0013238C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80136550 00132390 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 80136554 00132394 7C 08 03 A6 */ mtlr r0
/* 80136558 00132398 38 21 00 30 */ addi r1, r1, 0x30
/* 8013655C 0013239C 4E 80 00 20 */ blr
.global DrawLine__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeQ36nw4hbm2ut5Color
DrawLine__Q36nw4hbm3lyt6detailFRCQ36nw4hbm4math4VEC2RCQ36nw4hbm3lyt4SizeQ36nw4hbm2ut5Color:
/* 80136560 001323A0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80136564 001323A4 7C 08 02 A6 */ mflr r0
/* 80136568 001323A8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8013656C 001323AC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80136570 001323B0 7C BF 2B 78 */ mr r31, r5
/* 80136574 001323B4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80136578 001323B8 7C 9E 23 78 */ mr r30, r4
/* 8013657C 001323BC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80136580 001323C0 7C 7D 1B 78 */ mr r29, r3
/* 80136584 001323C4 4B EF D8 2D */ bl GXClearVtxDesc
/* 80136588 001323C8 38 60 00 09 */ li r3, 0x9
/* 8013658C 001323CC 38 80 00 01 */ li r4, 0x1
/* 80136590 001323D0 4B EF D2 11 */ bl GXSetVtxDesc
/* 80136594 001323D4 38 60 00 00 */ li r3, 0x0
/* 80136598 001323D8 38 80 00 09 */ li r4, 0x9
/* 8013659C 001323DC 38 A0 00 00 */ li r5, 0x0
/* 801365A0 001323E0 38 C0 00 04 */ li r6, 0x4
/* 801365A4 001323E4 38 E0 00 00 */ li r7, 0x0
/* 801365A8 001323E8 4B EF D8 49 */ bl GXSetVtxAttrFmt
/* 801365AC 001323EC 38 60 00 01 */ li r3, 0x1
/* 801365B0 001323F0 4B EF FF 31 */ bl GXSetNumChans
/* 801365B4 001323F4 38 60 00 04 */ li r3, 0x4
/* 801365B8 001323F8 38 80 00 00 */ li r4, 0x0
/* 801365BC 001323FC 38 A0 00 00 */ li r5, 0x0
/* 801365C0 00132400 38 C0 00 00 */ li r6, 0x0
/* 801365C4 00132404 38 E0 00 00 */ li r7, 0x0
/* 801365C8 00132408 39 00 00 00 */ li r8, 0x0
/* 801365CC 0013240C 39 20 00 02 */ li r9, 0x2
/* 801365D0 00132410 4B EF FF 41 */ bl GXSetChanCtrl
/* 801365D4 00132414 80 1F 00 00 */ lwz r0, 0x0(r31)
/* 801365D8 00132418 38 81 00 08 */ addi r4, r1, 0x8
/* 801365DC 0013241C 90 01 00 08 */ stw r0, 0x8(r1)
/* 801365E0 00132420 38 60 00 04 */ li r3, 0x4
/* 801365E4 00132424 4B EF FE 1D */ bl GXSetChanMatColor
/* 801365E8 00132428 38 60 00 00 */ li r3, 0x0
/* 801365EC 0013242C 4B EF E0 F5 */ bl GXSetNumTexGens
/* 801365F0 00132430 38 60 00 01 */ li r3, 0x1
/* 801365F4 00132434 4B F0 1C 6D */ bl GXSetNumTevStages
/* 801365F8 00132438 38 60 00 00 */ li r3, 0x0
/* 801365FC 0013243C 4B F0 14 F5 */ bl GXSetNumIndStages
/* 80136600 00132440 38 60 00 00 */ li r3, 0x0
/* 80136604 00132444 38 80 00 FF */ li r4, 0xff
/* 80136608 00132448 38 A0 00 FF */ li r5, 0xff
/* 8013660C 0013244C 38 C0 00 04 */ li r6, 0x4
/* 80136610 00132450 4B F0 1A F1 */ bl GXSetTevOrder
/* 80136614 00132454 38 60 00 00 */ li r3, 0x0
/* 80136618 00132458 38 80 00 04 */ li r4, 0x4
/* 8013661C 0013245C 4B F0 15 A5 */ bl GXSetTevOp
/* 80136620 00132460 38 60 00 00 */ li r3, 0x0
/* 80136624 00132464 4B F0 14 ED */ bl GXSetTevDirect
/* 80136628 00132468 38 60 00 00 */ li r3, 0x0
/* 8013662C 0013246C 38 80 00 00 */ li r4, 0x0
/* 80136630 00132470 38 A0 00 00 */ li r5, 0x0
/* 80136634 00132474 4B F0 19 3D */ bl GXSetTevSwapMode
/* 80136638 00132478 38 60 00 00 */ li r3, 0x0
/* 8013663C 0013247C 38 80 00 00 */ li r4, 0x0
/* 80136640 00132480 38 A0 00 01 */ li r5, 0x1
/* 80136644 00132484 38 C0 00 02 */ li r6, 0x2
/* 80136648 00132488 38 E0 00 03 */ li r7, 0x3
/* 8013664C 0013248C 4B F0 19 65 */ bl GXSetTevSwapModeTable
/* 80136650 00132490 38 60 00 07 */ li r3, 0x7
/* 80136654 00132494 38 80 00 00 */ li r4, 0x0
/* 80136658 00132498 38 A0 00 00 */ li r5, 0x0
/* 8013665C 0013249C 38 C0 00 07 */ li r6, 0x7
/* 80136660 001324A0 38 E0 00 00 */ li r7, 0x0
/* 80136664 001324A4 4B F0 19 CD */ bl GXSetAlphaCompare
/* 80136668 001324A8 38 60 00 01 */ li r3, 0x1
/* 8013666C 001324AC 38 80 00 04 */ li r4, 0x4
/* 80136670 001324B0 38 A0 00 05 */ li r5, 0x5
/* 80136674 001324B4 38 C0 00 0F */ li r6, 0xf
/* 80136678 001324B8 4B F0 20 B9 */ bl GXSetBlendMode
/* 8013667C 001324BC 38 60 00 06 */ li r3, 0x6
/* 80136680 001324C0 38 80 00 00 */ li r4, 0x0
/* 80136684 001324C4 4B EF EE 1D */ bl GXSetLineWidth
/* 80136688 001324C8 38 60 00 B0 */ li r3, 0xb0
/* 8013668C 001324CC 38 80 00 00 */ li r4, 0x0
/* 80136690 001324D0 38 A0 00 05 */ li r5, 0x5
/* 80136694 001324D4 4B EF EB DD */ bl GXBegin
/* 80136698 001324D8 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 8013669C 001324DC C0 3D 00 00 */ lfs f1, 0x0(r29)
/* 801366A0 001324E0 C0 1E 00 00 */ lfs f0, 0x0(r30)
/* 801366A4 001324E4 D0 23 80 00 */ stfs f1, 0xCC008000@l(r3)
/* 801366A8 001324E8 C0 5D 00 04 */ lfs f2, 0x4(r29)
/* 801366AC 001324EC EC 61 00 2A */ fadds f3, f1, f0
/* 801366B0 001324F0 D0 43 80 00 */ stfs f2, -0x8000(r3)
/* 801366B4 001324F4 C0 1E 00 04 */ lfs f0, 0x4(r30)
/* 801366B8 001324F8 D0 63 80 00 */ stfs f3, -0x8000(r3)
/* 801366BC 001324FC EC 02 00 2A */ fadds f0, f2, f0
/* 801366C0 00132500 D0 43 80 00 */ stfs f2, -0x8000(r3)
/* 801366C4 00132504 D0 63 80 00 */ stfs f3, -0x8000(r3)
/* 801366C8 00132508 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801366CC 0013250C D0 23 80 00 */ stfs f1, -0x8000(r3)
/* 801366D0 00132510 D0 03 80 00 */ stfs f0, -0x8000(r3)
/* 801366D4 00132514 D0 23 80 00 */ stfs f1, -0x8000(r3)
/* 801366D8 00132518 D0 43 80 00 */ stfs f2, -0x8000(r3)
/* 801366DC 0013251C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801366E0 00132520 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801366E4 00132524 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801366E8 00132528 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801366EC 0013252C 7C 08 03 A6 */ mtlr r0
/* 801366F0 00132530 38 21 00 20 */ addi r1, r1, 0x20
/* 801366F4 00132534 4E 80 00 20 */ blr
/* 801366F8 00132538 00 00 00 00 */ .4byte 0x00000000
/* 801366FC 0013253C 00 00 00 00 */ .4byte 0x00000000
.global InitGXTexObjFromTPL__Q36nw4hbm3lyt6detailFP9_GXTexObjP10TPLPaletteUl
InitGXTexObjFromTPL__Q36nw4hbm3lyt6detailFP9_GXTexObjP10TPLPaletteUl:
/* 80136700 00132540 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80136704 00132544 7C 08 02 A6 */ mflr r0
/* 80136708 00132548 90 01 00 34 */ stw r0, 0x34(r1)
/* 8013670C 0013254C 3C 00 80 00 */ lis r0, 0x8000
/* 80136710 00132550 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80136714 00132554 7C 7F 1B 78 */ mr r31, r3
/* 80136718 00132558 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8013671C 0013255C 7C BE 2B 78 */ mr r30, r5
/* 80136720 00132560 93 A1 00 24 */ stw r29, 0x24(r1)
/* 80136724 00132564 7C 9D 23 78 */ mr r29, r4
/* 80136728 00132568 80 C4 00 08 */ lwz r6, 0x8(r4)
/* 8013672C 0013256C 7C 06 00 40 */ cmplw r6, r0
/* 80136730 00132570 40 80 00 0C */ bge lbl_8013673C
/* 80136734 00132574 7F A3 EB 78 */ mr r3, r29
/* 80136738 00132578 4B F6 B6 C9 */ bl TPLBind
.global lbl_8013673C
lbl_8013673C:
/* 8013673C 0013257C 7F A3 EB 78 */ mr r3, r29
/* 80136740 00132580 7F C4 F3 78 */ mr r4, r30
/* 80136744 00132584 4B F6 B7 DD */ bl TPLGet
/* 80136748 00132588 81 23 00 00 */ lwz r9, 0x0(r3)
/* 8013674C 0013258C 7C 7E 1B 78 */ mr r30, r3
/* 80136750 00132590 80 03 00 04 */ lwz r0, 0x4(r3)
/* 80136754 00132594 88 A9 00 21 */ lbz r5, 0x21(r9)
/* 80136758 00132598 88 89 00 22 */ lbz r4, 0x22(r9)
/* 8013675C 0013259C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80136760 001325A0 7C 65 20 50 */ subf r3, r5, r4
/* 80136764 001325A4 7C 04 28 50 */ subf r0, r4, r5
/* 80136768 001325A8 7C 60 03 78 */ or r0, r3, r0
/* 8013676C 001325AC 54 0A 0F FE */ srwi r10, r0, 31
/* 80136770 001325B0 41 82 00 3C */ beq lbl_801367AC
/* 80136774 001325B4 38 00 00 00 */ li r0, 0x0
/* 80136778 001325B8 90 01 00 08 */ stw r0, 0x8(r1)
/* 8013677C 001325BC 7F E3 FB 78 */ mr r3, r31
/* 80136780 001325C0 80 89 00 08 */ lwz r4, 0x8(r9)
/* 80136784 001325C4 A0 A9 00 02 */ lhz r5, 0x2(r9)
/* 80136788 001325C8 A0 C9 00 00 */ lhz r6, 0x0(r9)
/* 8013678C 001325CC 80 E9 00 04 */ lwz r7, 0x4(r9)
/* 80136790 001325D0 81 09 00 0C */ lwz r8, 0xc(r9)
/* 80136794 001325D4 81 29 00 10 */ lwz r9, 0x10(r9)
/* 80136798 001325D8 4B F0 02 29 */ bl GXInitTexObjCI
/* 8013679C 001325DC 80 9E 00 04 */ lwz r4, 0x4(r30)
/* 801367A0 001325E0 7F E3 FB 78 */ mr r3, r31
/* 801367A4 001325E4 4B F0 03 AD */ bl GXInitTexObjUserData
/* 801367A8 001325E8 48 00 00 24 */ b lbl_801367CC
.global lbl_801367AC
lbl_801367AC:
/* 801367AC 001325EC 80 89 00 08 */ lwz r4, 0x8(r9)
/* 801367B0 001325F0 7F E3 FB 78 */ mr r3, r31
/* 801367B4 001325F4 A0 A9 00 02 */ lhz r5, 0x2(r9)
/* 801367B8 001325F8 A0 C9 00 00 */ lhz r6, 0x0(r9)
/* 801367BC 001325FC 80 E9 00 04 */ lwz r7, 0x4(r9)
/* 801367C0 00132600 81 09 00 0C */ lwz r8, 0xc(r9)
/* 801367C4 00132604 81 29 00 10 */ lwz r9, 0x10(r9)
/* 801367C8 00132608 4B EF FF E9 */ bl GXInitTexObj
.global lbl_801367CC
lbl_801367CC:
/* 801367CC 0013260C 81 3E 00 00 */ lwz r9, 0x0(r30)
/* 801367D0 00132610 3C A0 43 30 */ lis r5, 0x4330
/* 801367D4 00132614 3C 80 80 41 */ lis r4, "@8392"@ha
/* 801367D8 00132618 90 A1 00 10 */ stw r5, 0x10(r1)
/* 801367DC 0013261C 88 E9 00 21 */ lbz r7, 0x21(r9)
/* 801367E0 00132620 7F E3 FB 78 */ mr r3, r31
/* 801367E4 00132624 90 E1 00 14 */ stw r7, 0x14(r1)
/* 801367E8 00132628 38 C0 00 00 */ li r6, 0x0
/* 801367EC 0013262C 88 09 00 22 */ lbz r0, 0x22(r9)
/* 801367F0 00132630 39 00 00 00 */ li r8, 0x0
/* 801367F4 00132634 C8 44 E1 E8 */ lfd f2, "@8392"@l(r4)
/* 801367F8 00132638 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 801367FC 0013263C 90 A1 00 18 */ stw r5, 0x18(r1)
/* 80136800 00132640 EC 20 10 28 */ fsubs f1, f0, f2
/* 80136804 00132644 80 89 00 14 */ lwz r4, 0x14(r9)
/* 80136808 00132648 90 01 00 1C */ stw r0, 0x1c(r1)
/* 8013680C 0013264C 80 A9 00 18 */ lwz r5, 0x18(r9)
/* 80136810 00132650 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 80136814 00132654 C0 69 00 1C */ lfs f3, 0x1c(r9)
/* 80136818 00132658 EC 40 10 28 */ fsubs f2, f0, f2
/* 8013681C 0013265C 88 E9 00 20 */ lbz r7, 0x20(r9)
/* 80136820 00132660 4B F0 01 F1 */ bl GXInitTexObjLOD
/* 80136824 00132664 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80136828 00132668 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8013682C 0013266C 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 80136830 00132670 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 80136834 00132674 7C 08 03 A6 */ mtlr r0
/* 80136838 00132678 38 21 00 30 */ addi r1, r1, 0x30
/* 8013683C 0013267C 4E 80 00 20 */ blr
.include "macros.inc"
.section .rodata, "wa" # 0x80406560 - 0x80421040 ; 0x0001AAE0
.global "@7898"
"@7898":
.4byte 0
.global "@7899"
"@7899":
.4byte 0x3F800000
.global "@8392"
"@8392":
.4byte 0x43300000
.4byte 0
.include "macros.inc"
.section .bss, "", @nobits # 0x80496700 - 0x80556420 ; 0x000BFD20
.global "@GUARD@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"
"@GUARD@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords":
.skip 0x8
.global "@LOCAL@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords"
"@LOCAL@SetSize__Q46nw4hbm3lyt6detail11TexCoordAryFUc@texCoords":
.skip 0x20