.include "macros.inc"

.section .data
.balign 8

.global lbl_803E46C8
lbl_803E46C8:
	# ROM: 0x3E16C8
	.4byte 0
	.4byte 0
	.4byte __dt__14CFluidPlaneCPUFv
	.4byte AddRipple__11CFluidPlaneFf9TUniqueIdRC9CVector3fR13CStateManager
	.4byte AddRipple__11CFluidPlaneFf9TUniqueIdRC9CVector3fRC9CVector3fRC12CScriptWaterR13CStateManagerRC9CVector3f
	.4byte AddRipple__11CFluidPlaneFRC7CRippleRC12CScriptWaterR13CStateManager
	.4byte nullsub_209
	.4byte "Render__14CFluidPlaneCPUCFRC13CStateManagerRC6CAABoxRC12CTransform4fRC12CTransform4fbRC14CFrustumPlanesRCQ24rstl33optional_object<14CRippleManager>9TUniqueIdPCbiiRC9CVector3f"

.section .sdata
.balign 8

.global lbl_805A7B98
lbl_805A7B98:
	# ROM: 0x3F5538
	.4byte 0x00000800

.global lbl_805A7B9C
lbl_805A7B9C:
	# ROM: 0x3F553C
	.4byte 0

.global lbl_805A7BA0
lbl_805A7BA0:
	# ROM: 0x3F5540
	.4byte 0

.global lbl_805A7BA4
lbl_805A7BA4:
	# ROM: 0x3F5544
	.4byte 0

.global lbl_805A7BA8
lbl_805A7BA8:
	# ROM: 0x3F5548
	.4byte 0x00000007
	.4byte 0

.section .sbss, "wa"
.balign 8

.global lbl_805A9040
lbl_805A9040:
	.skip 0x1
.global lbl_805A9041
lbl_805A9041:
	.skip 0x7

.section .sbss2, "", @nobits  # 0x805AF460 - 0x805AF4C7
.balign 8
# CFluidPlaneCPU
.global lbl_805AF460
lbl_805AF460:
	.skip 0x8

.section .text, "ax"

.global RenderCleanup__14CFluidPlaneCPUCFv
RenderCleanup__14CFluidPlaneCPUCFv:
/* 80199894 001967F4  94 21 FF 30 */	stwu r1, -0xd0(r1)
/* 80199898 001967F8  7C 08 02 A6 */	mflr r0
/* 8019989C 001967FC  90 01 00 D4 */	stw r0, 0xd4(r1)
/* 801998A0 00196800  88 02 98 E8 */	lbz r0, lbl_805AB608@sda21(r2)
/* 801998A4 00196804  28 00 00 00 */	cmplwi r0, 0
/* 801998A8 00196808  41 82 01 B0 */	beq lbl_80199A58
/* 801998AC 0019680C  38 60 00 00 */	li r3, 0
/* 801998B0 00196810  48 1E 56 15 */	bl LCQueueWait
/* 801998B4 00196814  38 60 00 00 */	li r3, 0
/* 801998B8 00196818  38 80 00 00 */	li r4, 0
/* 801998BC 0019681C  38 A0 00 04 */	li r5, 4
/* 801998C0 00196820  38 C0 00 3C */	li r6, 0x3c
/* 801998C4 00196824  38 E0 00 00 */	li r7, 0
/* 801998C8 00196828  39 00 00 7D */	li r8, 0x7d
/* 801998CC 0019682C  48 16 EE 01 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 801998D0 00196830  38 60 00 01 */	li r3, 1
/* 801998D4 00196834  38 80 00 00 */	li r4, 0
/* 801998D8 00196838  38 A0 00 05 */	li r5, 5
/* 801998DC 0019683C  38 C0 00 3C */	li r6, 0x3c
/* 801998E0 00196840  38 E0 00 00 */	li r7, 0
/* 801998E4 00196844  39 00 00 7D */	li r8, 0x7d
/* 801998E8 00196848  48 16 ED E5 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 801998EC 0019684C  38 60 00 02 */	li r3, 2
/* 801998F0 00196850  38 80 00 00 */	li r4, 0
/* 801998F4 00196854  38 A0 00 06 */	li r5, 6
/* 801998F8 00196858  38 C0 00 3C */	li r6, 0x3c
/* 801998FC 0019685C  38 E0 00 00 */	li r7, 0
/* 80199900 00196860  39 00 00 7D */	li r8, 0x7d
/* 80199904 00196864  48 16 ED C9 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 80199908 00196868  38 60 00 03 */	li r3, 3
/* 8019990C 0019686C  38 80 00 00 */	li r4, 0
/* 80199910 00196870  38 A0 00 07 */	li r5, 7
/* 80199914 00196874  38 C0 00 3C */	li r6, 0x3c
/* 80199918 00196878  38 E0 00 00 */	li r7, 0
/* 8019991C 0019687C  39 00 00 7D */	li r8, 0x7d
/* 80199920 00196880  48 16 ED AD */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 80199924 00196884  38 60 00 04 */	li r3, 4
/* 80199928 00196888  38 80 00 00 */	li r4, 0
/* 8019992C 0019688C  38 A0 00 08 */	li r5, 8
/* 80199930 00196890  38 C0 00 3C */	li r6, 0x3c
/* 80199934 00196894  38 E0 00 00 */	li r7, 0
/* 80199938 00196898  39 00 00 7D */	li r8, 0x7d
/* 8019993C 0019689C  48 16 ED 91 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 80199940 001968A0  38 60 00 05 */	li r3, 5
/* 80199944 001968A4  38 80 00 00 */	li r4, 0
/* 80199948 001968A8  38 A0 00 09 */	li r5, 9
/* 8019994C 001968AC  38 C0 00 3C */	li r6, 0x3c
/* 80199950 001968B0  38 E0 00 00 */	li r7, 0
/* 80199954 001968B4  39 00 00 7D */	li r8, 0x7d
/* 80199958 001968B8  48 16 ED 75 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019995C 001968BC  38 60 00 06 */	li r3, 6
/* 80199960 001968C0  38 80 00 00 */	li r4, 0
/* 80199964 001968C4  38 A0 00 0A */	li r5, 0xa
/* 80199968 001968C8  38 C0 00 3C */	li r6, 0x3c
/* 8019996C 001968CC  38 E0 00 00 */	li r7, 0
/* 80199970 001968D0  39 00 00 7D */	li r8, 0x7d
/* 80199974 001968D4  48 16 ED 59 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 80199978 001968D8  38 60 00 03 */	li r3, 3
/* 8019997C 001968DC  48 16 ED C9 */	bl SetTevDirect__3CGXF13_GXTevStageID
/* 80199980 001968E0  38 60 00 06 */	li r3, 6
/* 80199984 001968E4  48 16 ED C1 */	bl SetTevDirect__3CGXF13_GXTevStageID
/* 80199988 001968E8  38 60 00 00 */	li r3, 0
/* 8019998C 001968EC  48 16 ED 05 */	bl SetNumIndStages__3CGXFUc
/* 80199990 001968F0  48 16 E4 ED */	bl ResetVtxDescv__3CGXFv
/* 80199994 001968F4  3C 80 80 5A */	lis r4, mViewMatrix__9CGraphics@ha
/* 80199998 001968F8  38 61 00 08 */	addi r3, r1, 8
/* 8019999C 001968FC  38 84 61 D4 */	addi r4, r4, mViewMatrix__9CGraphics@l
/* 801999A0 00196900  48 17 92 A1 */	bl GetRotation__12CTransform4fCFv
/* 801999A4 00196904  38 61 00 38 */	addi r3, r1, 0x38
/* 801999A8 00196908  38 81 00 08 */	addi r4, r1, 8
/* 801999AC 0019690C  48 17 92 F1 */	bl GetQuickInverse__12CTransform4fCFv
/* 801999B0 00196910  38 61 00 68 */	addi r3, r1, 0x68
/* 801999B4 00196914  38 81 00 38 */	addi r4, r1, 0x38
/* 801999B8 00196918  48 17 91 BD */	bl __ct__12CTransform4fFRC12CTransform4f
/* 801999BC 0019691C  C1 61 00 68 */	lfs f11, 0x68(r1)
/* 801999C0 00196920  38 61 00 98 */	addi r3, r1, 0x98
/* 801999C4 00196924  C1 41 00 6C */	lfs f10, 0x6c(r1)
/* 801999C8 00196928  38 80 00 00 */	li r4, 0
/* 801999CC 0019692C  C1 21 00 70 */	lfs f9, 0x70(r1)
/* 801999D0 00196930  C1 01 00 74 */	lfs f8, 0x74(r1)
/* 801999D4 00196934  C0 E1 00 78 */	lfs f7, 0x78(r1)
/* 801999D8 00196938  C0 C1 00 7C */	lfs f6, 0x7c(r1)
/* 801999DC 0019693C  C0 A1 00 80 */	lfs f5, 0x80(r1)
/* 801999E0 00196940  C0 81 00 84 */	lfs f4, 0x84(r1)
/* 801999E4 00196944  C0 61 00 88 */	lfs f3, 0x88(r1)
/* 801999E8 00196948  C0 41 00 8C */	lfs f2, 0x8c(r1)
/* 801999EC 0019694C  C0 21 00 90 */	lfs f1, 0x90(r1)
/* 801999F0 00196950  C0 01 00 94 */	lfs f0, 0x94(r1)
/* 801999F4 00196954  D1 61 00 98 */	stfs f11, 0x98(r1)
/* 801999F8 00196958  D1 41 00 9C */	stfs f10, 0x9c(r1)
/* 801999FC 0019695C  D1 21 00 A0 */	stfs f9, 0xa0(r1)
/* 80199A00 00196960  D1 01 00 A4 */	stfs f8, 0xa4(r1)
/* 80199A04 00196964  D0 E1 00 A8 */	stfs f7, 0xa8(r1)
/* 80199A08 00196968  D0 C1 00 AC */	stfs f6, 0xac(r1)
/* 80199A0C 0019696C  D0 A1 00 B0 */	stfs f5, 0xb0(r1)
/* 80199A10 00196970  D0 81 00 B4 */	stfs f4, 0xb4(r1)
/* 80199A14 00196974  D0 61 00 B8 */	stfs f3, 0xb8(r1)
/* 80199A18 00196978  D0 41 00 BC */	stfs f2, 0xbc(r1)
/* 80199A1C 0019697C  D0 21 00 C0 */	stfs f1, 0xc0(r1)
/* 80199A20 00196980  D0 01 00 C4 */	stfs f0, 0xc4(r1)
/* 80199A24 00196984  48 1E 29 E5 */	bl GXLoadNrmMtxImm
/* 80199A28 00196988  38 60 00 01 */	li r3, 1
/* 80199A2C 0019698C  38 80 00 00 */	li r4, 0
/* 80199A30 00196990  38 A0 00 00 */	li r5, 0
/* 80199A34 00196994  38 C0 00 00 */	li r6, 0
/* 80199A38 00196998  38 E0 00 00 */	li r7, 0
/* 80199A3C 0019699C  39 00 00 02 */	li r8, 2
/* 80199A40 001969A0  39 20 00 01 */	li r9, 1
/* 80199A44 001969A4  48 16 F2 89 */	bl SetChanCtrl__3CGXFQ23CGX10EChannelIdUc11_GXColorSrc11_GXColorSrc10_GXLightID12_GXDiffuseFn9_GXAttnFn
/* 80199A48 001969A8  38 60 00 01 */	li r3, 1
/* 80199A4C 001969AC  48 16 F4 05 */	bl SetNumChans__3CGXFUc
/* 80199A50 001969B0  88 6D A8 16 */	lbz r3, mLightActive__9CGraphics@sda21(r13)
/* 80199A54 001969B4  48 17 2E 7D */	bl SetLightState__9CGraphicsFUc
lbl_80199A58:
/* 80199A58 001969B8  80 01 00 D4 */	lwz r0, 0xd4(r1)
/* 80199A5C 001969BC  7C 08 03 A6 */	mtlr r0
/* 80199A60 001969C0  38 21 00 D0 */	addi r1, r1, 0xd0
/* 80199A64 001969C4  4E 80 00 20 */	blr

.global "Render__14CFluidPlaneCPUCFRC13CStateManagerRC6CAABoxRC12CTransform4fRC12CTransform4fbRC14CFrustumPlanesRCQ24rstl33optional_object<14CRippleManager>9TUniqueIdPCbiiRC9CVector3f"
"Render__14CFluidPlaneCPUCFRC13CStateManagerRC6CAABoxRC12CTransform4fRC12CTransform4fbRC14CFrustumPlanesRCQ24rstl33optional_object<14CRippleManager>9TUniqueIdPCbiiRC9CVector3f":
/* 80199A68 001969C8  94 21 FD 70 */	stwu r1, -0x290(r1)
/* 80199A6C 001969CC  7C 08 02 A6 */	mflr r0
/* 80199A70 001969D0  90 01 02 94 */	stw r0, 0x294(r1)
/* 80199A74 001969D4  DB E1 02 80 */	stfd f31, 0x280(r1)
/* 80199A78 001969D8  F3 E1 02 88 */	psq_st f31, 648(r1), 0, qr0
/* 80199A7C 001969DC  DB C1 02 70 */	stfd f30, 0x270(r1)
/* 80199A80 001969E0  F3 C1 02 78 */	psq_st f30, 632(r1), 0, qr0
/* 80199A84 001969E4  DB A1 02 60 */	stfd f29, 0x260(r1)
/* 80199A88 001969E8  F3 A1 02 68 */	psq_st f29, 616(r1), 0, qr0
/* 80199A8C 001969EC  DB 81 02 50 */	stfd f28, 0x250(r1)
/* 80199A90 001969F0  F3 81 02 58 */	psq_st f28, 600(r1), 0, qr0
/* 80199A94 001969F4  DB 61 02 40 */	stfd f27, 0x240(r1)
/* 80199A98 001969F8  F3 61 02 48 */	psq_st f27, 584(r1), 0, qr0
/* 80199A9C 001969FC  DB 41 02 30 */	stfd f26, 0x230(r1)
/* 80199AA0 00196A00  F3 41 02 38 */	psq_st f26, 568(r1), 0, qr0
/* 80199AA4 00196A04  DB 21 02 20 */	stfd f25, 0x220(r1)
/* 80199AA8 00196A08  F3 21 02 28 */	psq_st f25, 552(r1), 0, qr0
/* 80199AAC 00196A0C  DB 01 02 10 */	stfd f24, 0x210(r1)
/* 80199AB0 00196A10  F3 01 02 18 */	psq_st f24, 536(r1), 0, qr0
/* 80199AB4 00196A14  DA E1 02 00 */	stfd f23, 0x200(r1)
/* 80199AB8 00196A18  F2 E1 02 08 */	psq_st f23, 520(r1), 0, qr0
/* 80199ABC 00196A1C  DA C1 01 F0 */	stfd f22, 0x1f0(r1)
/* 80199AC0 00196A20  F2 C1 01 F8 */	psq_st f22, 504(r1), 0, qr0
/* 80199AC4 00196A24  DA A1 01 E0 */	stfd f21, 0x1e0(r1)
/* 80199AC8 00196A28  F2 A1 01 E8 */	psq_st f21, 488(r1), 0, qr0
/* 80199ACC 00196A2C  DA 81 01 D0 */	stfd f20, 0x1d0(r1)
/* 80199AD0 00196A30  F2 81 01 D8 */	psq_st f20, 472(r1), 0, qr0
/* 80199AD4 00196A34  DA 61 01 C0 */	stfd f19, 0x1c0(r1)
/* 80199AD8 00196A38  F2 61 01 C8 */	psq_st f19, 456(r1), 0, qr0
/* 80199ADC 00196A3C  DA 41 01 B0 */	stfd f18, 0x1b0(r1)
/* 80199AE0 00196A40  F2 41 01 B8 */	psq_st f18, 440(r1), 0, qr0
/* 80199AE4 00196A44  DA 21 01 A0 */	stfd f17, 0x1a0(r1)
/* 80199AE8 00196A48  F2 21 01 A8 */	psq_st f17, 424(r1), 0, qr0
/* 80199AEC 00196A4C  BD C1 01 58 */	stmw r14, 0x158(r1)
/* 80199AF0 00196A50  88 02 98 E8 */	lbz r0, lbl_805AB608@sda21(r2)
/* 80199AF4 00196A54  FE 20 08 90 */	fmr f17, f1
/* 80199AF8 00196A58  81 61 02 98 */	lwz r11, 0x298(r1)
/* 80199AFC 00196A5C  7C 6F 1B 78 */	mr r15, r3
/* 80199B00 00196A60  28 00 00 00 */	cmplwi r0, 0
/* 80199B04 00196A64  82 61 02 A0 */	lwz r19, 0x2a0(r1)
/* 80199B08 00196A68  82 81 02 A4 */	lwz r20, 0x2a4(r1)
/* 80199B0C 00196A6C  82 A1 02 A8 */	lwz r21, 0x2a8(r1)
/* 80199B10 00196A70  7C 98 23 78 */	mr r24, r4
/* 80199B14 00196A74  7C AE 2B 78 */	mr r14, r5
/* 80199B18 00196A78  7C D0 33 78 */	mr r16, r6
/* 80199B1C 00196A7C  7C F7 3B 78 */	mr r23, r7
/* 80199B20 00196A80  7D 16 43 78 */	mr r22, r8
/* 80199B24 00196A84  7D 31 4B 78 */	mr r17, r9
/* 80199B28 00196A88  7D 52 53 78 */	mr r18, r10
/* 80199B2C 00196A8C  41 82 06 F0 */	beq lbl_8019A21C
/* 80199B30 00196A90  A0 0B 00 00 */	lhz r0, 0(r11)
/* 80199B34 00196A94  7F 03 C3 78 */	mr r3, r24
/* 80199B38 00196A98  38 81 00 2C */	addi r4, r1, 0x2c
/* 80199B3C 00196A9C  B0 01 00 2C */	sth r0, 0x2c(r1)
/* 80199B40 00196AA0  4B EB 2A 65 */	bl GetObjectById__13CStateManagerCF9TUniqueId
/* 80199B44 00196AA4  7C 64 1B 78 */	mr r4, r3
/* 80199B48 00196AA8  38 61 00 38 */	addi r3, r1, 0x38
/* 80199B4C 00196AAC  4B F0 CD 15 */	bl "__ct__26TCastToPtr<12CScriptWater>FP7CEntity"
/* 80199B50 00196AB0  83 43 00 04 */	lwz r26, 4(r3)
/* 80199B54 00196AB4  FC 20 88 90 */	fmr f1, f17
/* 80199B58 00196AB8  7D E3 7B 78 */	mr r3, r15
/* 80199B5C 00196ABC  7F 04 C3 78 */	mr r4, r24
/* 80199B60 00196AC0  7E 05 83 78 */	mr r5, r16
/* 80199B64 00196AC4  7E E6 BB 78 */	mr r6, r23
/* 80199B68 00196AC8  7D C7 73 78 */	mr r7, r14
/* 80199B6C 00196ACC  7F 48 D3 78 */	mr r8, r26
/* 80199B70 00196AD0  48 00 08 C1 */	bl RenderSetup__14CFluidPlaneCPUCFRC13CStateManagerfRC12CTransform4fRC12CTransform4fRC6CAABoxP12CScriptWater
/* 80199B74 00196AD4  80 78 08 7C */	lwz r3, 0x87c(r24)
/* 80199B78 00196AD8  C3 63 01 1C */	lfs f27, 0x11c(r3)
/* 80199B7C 00196ADC  48 16 E3 01 */	bl ResetVtxDescv__3CGXFv
/* 80199B80 00196AE0  88 0F 00 BC */	lbz r0, 0xbc(r15)
/* 80199B84 00196AE4  28 00 00 00 */	cmplwi r0, 0
/* 80199B88 00196AE8  41 82 00 18 */	beq lbl_80199BA0
/* 80199B8C 00196AEC  88 02 98 EA */	lbz r0, lbl_805AB60A@sda21(r2)
/* 80199B90 00196AF0  28 00 00 00 */	cmplwi r0, 0
/* 80199B94 00196AF4  41 82 00 0C */	beq lbl_80199BA0
/* 80199B98 00196AF8  3B 20 00 03 */	li r25, 3
/* 80199B9C 00196AFC  48 00 00 18 */	b lbl_80199BB4
lbl_80199BA0:
/* 80199BA0 00196B00  56 C0 06 3F */	clrlwi. r0, r22, 0x18
/* 80199BA4 00196B04  40 82 00 0C */	bne lbl_80199BB0
/* 80199BA8 00196B08  3B 20 00 02 */	li r25, 2
/* 80199BAC 00196B0C  48 00 00 08 */	b lbl_80199BB4
lbl_80199BB0:
/* 80199BB0 00196B10  3B 20 00 01 */	li r25, 1
lbl_80199BB4:
/* 80199BB4 00196B14  38 60 00 09 */	li r3, 9
/* 80199BB8 00196B18  38 80 00 01 */	li r4, 1
/* 80199BBC 00196B1C  48 16 E2 E9 */	bl SetVtxDesc__3CGXF7_GXAttr11_GXAttrType
/* 80199BC0 00196B20  38 60 00 0B */	li r3, 0xb
/* 80199BC4 00196B24  38 80 00 01 */	li r4, 1
/* 80199BC8 00196B28  48 16 E2 DD */	bl SetVtxDesc__3CGXF7_GXAttr11_GXAttrType
/* 80199BCC 00196B2C  2C 19 00 03 */	cmpwi r25, 3
/* 80199BD0 00196B30  41 82 00 14 */	beq lbl_80199BE4
/* 80199BD4 00196B34  40 80 00 5C */	bge lbl_80199C30
/* 80199BD8 00196B38  2C 19 00 02 */	cmpwi r25, 2
/* 80199BDC 00196B3C  40 80 00 30 */	bge lbl_80199C0C
/* 80199BE0 00196B40  48 00 00 50 */	b lbl_80199C30
lbl_80199BE4:
/* 80199BE4 00196B44  38 60 00 00 */	li r3, 0
/* 80199BE8 00196B48  38 80 00 19 */	li r4, 0x19
/* 80199BEC 00196B4C  38 A0 00 01 */	li r5, 1
/* 80199BF0 00196B50  38 C0 00 01 */	li r6, 1
/* 80199BF4 00196B54  38 E0 00 06 */	li r7, 6
/* 80199BF8 00196B58  48 1D DB 95 */	bl GXSetVtxAttrFmt
/* 80199BFC 00196B5C  38 60 00 19 */	li r3, 0x19
/* 80199C00 00196B60  38 80 00 01 */	li r4, 1
/* 80199C04 00196B64  48 1D D3 15 */	bl GXSetVtxDesc
/* 80199C08 00196B68  48 00 00 28 */	b lbl_80199C30
lbl_80199C0C:
/* 80199C0C 00196B6C  38 60 00 00 */	li r3, 0
/* 80199C10 00196B70  38 80 00 0A */	li r4, 0xa
/* 80199C14 00196B74  38 A0 00 00 */	li r5, 0
/* 80199C18 00196B78  38 C0 00 01 */	li r6, 1
/* 80199C1C 00196B7C  38 E0 00 06 */	li r7, 6
/* 80199C20 00196B80  48 1D DB 6D */	bl GXSetVtxAttrFmt
/* 80199C24 00196B84  38 60 00 0A */	li r3, 0xa
/* 80199C28 00196B88  38 80 00 01 */	li r4, 1
/* 80199C2C 00196B8C  48 16 E2 79 */	bl SetVtxDesc__3CGXF7_GXAttr11_GXAttrType
lbl_80199C30:
/* 80199C30 00196B90  80 CF 01 04 */	lwz r6, 0x104(r15)
/* 80199C34 00196B94  38 00 00 2A */	li r0, 0x2a
/* 80199C38 00196B98  C3 4F 01 08 */	lfs f26, 0x108(r15)
/* 80199C3C 00196B9C  38 61 00 34 */	addi r3, r1, 0x34
/* 80199C40 00196BA0  7C 80 33 D6 */	divw r4, r0, r6
/* 80199C44 00196BA4  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 80199C48 00196BA8  80 0D 8F E8 */	lwz r0, lbl_805A7BA8@sda21(r13)
/* 80199C4C 00196BAC  EE 40 D0 24 */	fdivs f18, f0, f26
/* 80199C50 00196BB0  90 CD A5 74 */	stw r6, lbl_805A9134@sda21(r13)
/* 80199C54 00196BB4  7C 00 20 00 */	cmpw r0, r4
/* 80199C58 00196BB8  90 81 00 34 */	stw r4, 0x34(r1)
/* 80199C5C 00196BBC  40 80 00 08 */	bge lbl_80199C64
/* 80199C60 00196BC0  38 6D 8F E8 */	addi r3, r13, lbl_805A7BA8@sda21
lbl_80199C64:
/* 80199C64 00196BC4  80 A3 00 00 */	lwz r5, 0(r3)
/* 80199C68 00196BC8  7D C4 73 78 */	mr r4, r14
/* 80199C6C 00196BCC  38 61 00 A8 */	addi r3, r1, 0xa8
/* 80199C70 00196BD0  7C 05 31 D6 */	mullw r0, r5, r6
/* 80199C74 00196BD4  90 AD A5 70 */	stw r5, lbl_805A9130@sda21(r13)
/* 80199C78 00196BD8  90 0D A5 78 */	stw r0, lbl_805A9138@sda21(r13)
/* 80199C7C 00196BDC  48 19 D9 91 */	bl GetCenterPoint__6CAABoxCFv
/* 80199C80 00196BE0  C2 21 00 AC */	lfs f17, 0xac(r1)
/* 80199C84 00196BE4  7D C4 73 78 */	mr r4, r14
/* 80199C88 00196BE8  38 61 00 B4 */	addi r3, r1, 0xb4
/* 80199C8C 00196BEC  48 19 D9 81 */	bl GetCenterPoint__6CAABoxCFv
/* 80199C90 00196BF0  FC 40 88 90 */	fmr f2, f17
/* 80199C94 00196BF4  C0 21 00 B4 */	lfs f1, 0xb4(r1)
/* 80199C98 00196BF8  38 61 00 48 */	addi r3, r1, 0x48
/* 80199C9C 00196BFC  48 17 A5 65 */	bl __ct__9CVector2fFff
/* 80199CA0 00196C00  80 8D A5 78 */	lwz r4, lbl_805A9138@sda21(r13)
/* 80199CA4 00196C04  3C 00 43 30 */	lis r0, 0x4330
/* 80199CA8 00196C08  90 01 01 38 */	stw r0, 0x138(r1)
/* 80199CAC 00196C0C  38 61 00 40 */	addi r3, r1, 0x40
/* 80199CB0 00196C10  6C 84 80 00 */	xoris r4, r4, 0x8000
/* 80199CB4 00196C14  C8 22 A6 F0 */	lfd f1, lbl_805AC410@sda21(r2)
/* 80199CB8 00196C18  90 81 01 3C */	stw r4, 0x13c(r1)
/* 80199CBC 00196C1C  C3 2E 00 00 */	lfs f25, 0(r14)
/* 80199CC0 00196C20  C8 01 01 38 */	lfd f0, 0x138(r1)
/* 80199CC4 00196C24  90 81 01 44 */	stw r4, 0x144(r1)
/* 80199CC8 00196C28  EC 40 08 28 */	fsubs f2, f0, f1
/* 80199CCC 00196C2C  C3 0E 00 04 */	lfs f24, 4(r14)
/* 80199CD0 00196C30  90 01 01 40 */	stw r0, 0x140(r1)
/* 80199CD4 00196C34  C2 EE 00 08 */	lfs f23, 8(r14)
/* 80199CD8 00196C38  C8 01 01 40 */	lfd f0, 0x140(r1)
/* 80199CDC 00196C3C  EC 5A 00 B2 */	fmuls f2, f26, f2
/* 80199CE0 00196C40  C2 CE 00 0C */	lfs f22, 0xc(r14)
/* 80199CE4 00196C44  EC 00 08 28 */	fsubs f0, f0, f1
/* 80199CE8 00196C48  C2 AE 00 10 */	lfs f21, 0x10(r14)
/* 80199CEC 00196C4C  C2 8E 00 14 */	lfs f20, 0x14(r14)
/* 80199CF0 00196C50  EC 3A 00 32 */	fmuls f1, f26, f0
/* 80199CF4 00196C54  48 17 A5 0D */	bl __ct__9CVector2fFff
/* 80199CF8 00196C58  80 0F 00 44 */	lwz r0, 0x44(r15)
/* 80199CFC 00196C5C  39 C0 00 00 */	li r14, 0
/* 80199D00 00196C60  80 6D A1 20 */	lwz r3, gpTweakGame@sda21(r13)
/* 80199D04 00196C64  3A C0 00 00 */	li r22, 0
/* 80199D08 00196C68  2C 00 00 02 */	cmpwi r0, 2
/* 80199D0C 00196C6C  3A E0 00 00 */	li r23, 0
/* 80199D10 00196C70  C2 23 00 34 */	lfs f17, 0x34(r3)
/* 80199D14 00196C74  41 82 00 30 */	beq lbl_80199D44
/* 80199D18 00196C78  40 80 00 10 */	bge lbl_80199D28
/* 80199D1C 00196C7C  2C 00 00 01 */	cmpwi r0, 1
/* 80199D20 00196C80  40 80 00 14 */	bge lbl_80199D34
/* 80199D24 00196C84  48 00 00 2C */	b lbl_80199D50
lbl_80199D28:
/* 80199D28 00196C88  2C 00 00 05 */	cmpwi r0, 5
/* 80199D2C 00196C8C  41 82 00 18 */	beq lbl_80199D44
/* 80199D30 00196C90  48 00 00 20 */	b lbl_80199D50
lbl_80199D34:
/* 80199D34 00196C94  C2 23 00 38 */	lfs f17, 0x38(r3)
/* 80199D38 00196C98  39 C0 00 01 */	li r14, 1
/* 80199D3C 00196C9C  3A E0 00 01 */	li r23, 1
/* 80199D40 00196CA0  48 00 00 10 */	b lbl_80199D50
lbl_80199D44:
/* 80199D44 00196CA4  C2 23 00 3C */	lfs f17, 0x3c(r3)
/* 80199D48 00196CA8  3A E0 00 08 */	li r23, 8
/* 80199D4C 00196CAC  3A C0 00 08 */	li r22, 8
lbl_80199D50:
/* 80199D50 00196CB0  28 1A 00 00 */	cmplwi r26, 0
/* 80199D54 00196CB4  41 82 00 B4 */	beq lbl_80199E08
/* 80199D58 00196CB8  80 78 08 70 */	lwz r3, 0x870(r24)
/* 80199D5C 00196CBC  7F 04 C3 78 */	mr r4, r24
/* 80199D60 00196CC0  4B E7 1D B9 */	bl GetCurrentCamera__14CCameraManagerCFRC13CStateManager
/* 80199D64 00196CC4  C3 83 00 60 */	lfs f28, 0x60(r3)
/* 80199D68 00196CC8  C3 A3 00 50 */	lfs f29, 0x50(r3)
/* 80199D6C 00196CCC  C3 C3 00 40 */	lfs f30, 0x40(r3)
/* 80199D70 00196CD0  38 61 00 50 */	addi r3, r1, 0x50
/* 80199D74 00196CD4  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 80199D78 00196CD8  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 80199D7C 00196CDC  D0 21 00 50 */	stfs f1, 0x50(r1)
/* 80199D80 00196CE0  D0 21 00 54 */	stfs f1, 0x54(r1)
/* 80199D84 00196CE4  D0 01 00 58 */	stfs f0, 0x58(r1)
/* 80199D88 00196CE8  48 17 AB 71 */	bl Normalize__9CVector3fFv
/* 80199D8C 00196CEC  7F 44 D3 78 */	mr r4, r26
/* 80199D90 00196CF0  38 61 00 CC */	addi r3, r1, 0xcc
/* 80199D94 00196CF4  4B ED C9 39 */	bl GetTriggerBoundsWR__14CScriptTriggerCFv
/* 80199D98 00196CF8  C0 61 00 54 */	lfs f3, 0x54(r1)
/* 80199D9C 00196CFC  38 00 00 00 */	li r0, 0
/* 80199DA0 00196D00  C0 81 00 50 */	lfs f4, 0x50(r1)
/* 80199DA4 00196D04  EC 23 07 72 */	fmuls f1, f3, f29
/* 80199DA8 00196D08  C0 41 00 58 */	lfs f2, 0x58(r1)
/* 80199DAC 00196D0C  C0 A1 00 E0 */	lfs f5, 0xe0(r1)
/* 80199DB0 00196D10  C0 02 A6 E8 */	lfs f0, lbl_805AC408@sda21(r2)
/* 80199DB4 00196D14  EC 24 0F BA */	fmadds f1, f4, f30, f1
/* 80199DB8 00196D18  D0 81 00 98 */	stfs f4, 0x98(r1)
/* 80199DBC 00196D1C  D0 61 00 9C */	stfs f3, 0x9c(r1)
/* 80199DC0 00196D20  EC 22 0F 3A */	fmadds f1, f2, f28, f1
/* 80199DC4 00196D24  D0 41 00 A0 */	stfs f2, 0xa0(r1)
/* 80199DC8 00196D28  EC 21 28 28 */	fsubs f1, f1, f5
/* 80199DCC 00196D2C  D0 A1 00 A4 */	stfs f5, 0xa4(r1)
/* 80199DD0 00196D30  FC 01 00 40 */	fcmpo cr0, f1, f0
/* 80199DD4 00196D34  4C 41 13 82 */	cror 2, 1, 2
/* 80199DD8 00196D38  41 82 00 10 */	beq lbl_80199DE8
/* 80199DDC 00196D3C  C0 02 A6 E0 */	lfs f0, lbl_805AC400@sda21(r2)
/* 80199DE0 00196D40  FC 01 00 40 */	fcmpo cr0, f1, f0
/* 80199DE4 00196D44  40 80 00 08 */	bge lbl_80199DEC
lbl_80199DE8:
/* 80199DE8 00196D48  38 00 00 01 */	li r0, 1
lbl_80199DEC:
/* 80199DEC 00196D4C  54 00 06 3F */	clrlwi. r0, r0, 0x18
/* 80199DF0 00196D50  41 82 00 0C */	beq lbl_80199DFC
/* 80199DF4 00196D54  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 80199DF8 00196D58  48 00 00 0C */	b lbl_80199E04
lbl_80199DFC:
/* 80199DFC 00196D5C  C0 02 A6 E4 */	lfs f0, lbl_805AC404@sda21(r2)
/* 80199E00 00196D60  EC 00 00 72 */	fmuls f0, f0, f1
lbl_80199E04:
/* 80199E04 00196D64  EE 31 00 32 */	fmuls f17, f17, f0
lbl_80199E08:
/* 80199E08 00196D68  28 1A 00 00 */	cmplwi r26, 0
/* 80199E0C 00196D6C  38 60 00 00 */	li r3, 0
/* 80199E10 00196D70  41 82 00 14 */	beq lbl_80199E24
/* 80199E14 00196D74  80 1A 02 D0 */	lwz r0, 0x2d0(r26)
/* 80199E18 00196D78  2C 00 00 00 */	cmpwi r0, 0
/* 80199E1C 00196D7C  41 82 00 08 */	beq lbl_80199E24
/* 80199E20 00196D80  38 60 00 01 */	li r3, 1
lbl_80199E24:
/* 80199E24 00196D84  54 60 06 3F */	clrlwi. r0, r3, 0x18
/* 80199E28 00196D88  41 82 00 0C */	beq lbl_80199E34
/* 80199E2C 00196D8C  83 DA 02 D0 */	lwz r30, 0x2d0(r26)
/* 80199E30 00196D90  48 00 00 08 */	b lbl_80199E38
lbl_80199E34:
/* 80199E34 00196D94  3B C0 00 80 */	li r30, 0x80
lbl_80199E38:
/* 80199E38 00196D98  28 1A 00 00 */	cmplwi r26, 0
/* 80199E3C 00196D9C  38 60 00 00 */	li r3, 0
/* 80199E40 00196DA0  41 82 00 14 */	beq lbl_80199E54
/* 80199E44 00196DA4  80 1A 02 D4 */	lwz r0, 0x2d4(r26)
/* 80199E48 00196DA8  2C 00 00 00 */	cmpwi r0, 0
/* 80199E4C 00196DAC  41 82 00 08 */	beq lbl_80199E54
/* 80199E50 00196DB0  38 60 00 01 */	li r3, 1
lbl_80199E54:
/* 80199E54 00196DB4  54 60 06 3F */	clrlwi. r0, r3, 0x18
/* 80199E58 00196DB8  41 82 00 10 */	beq lbl_80199E68
/* 80199E5C 00196DBC  80 1A 02 D4 */	lwz r0, 0x2d4(r26)
/* 80199E60 00196DC0  90 01 01 48 */	stw r0, 0x148(r1)
/* 80199E64 00196DC4  48 00 00 0C */	b lbl_80199E70
lbl_80199E68:
/* 80199E68 00196DC8  38 00 00 80 */	li r0, 0x80
/* 80199E6C 00196DCC  90 01 01 48 */	stw r0, 0x148(r1)
lbl_80199E70:
/* 80199E70 00196DD0  55 DB 06 3E */	clrlwi r27, r14, 0x18
/* 80199E74 00196DD4  56 DC 06 3E */	clrlwi r28, r22, 0x18
/* 80199E78 00196DD8  56 EE 06 3E */	clrlwi r14, r23, 0x18
/* 80199E7C 00196DDC  3B 00 00 00 */	li r24, 0
/* 80199E80 00196DE0  3B A0 00 00 */	li r29, 0
/* 80199E84 00196DE4  48 00 03 38 */	b lbl_8019A1BC
lbl_80199E88:
/* 80199E88 00196DE8  EC 15 C0 28 */	fsubs f0, f21, f24
/* 80199E8C 00196DEC  3A E0 00 00 */	li r23, 0
/* 80199E90 00196DF0  FF 80 C8 90 */	fmr f28, f25
/* 80199E94 00196DF4  3A C0 00 00 */	li r22, 0
/* 80199E98 00196DF8  EE 72 00 32 */	fmuls f19, f18, f0
/* 80199E9C 00196DFC  48 00 02 FC */	b lbl_8019A198
lbl_80199EA0:
/* 80199EA0 00196E00  7F 43 D3 78 */	mr r3, r26
/* 80199EA4 00196E04  7E C4 B3 78 */	mr r4, r22
/* 80199EA8 00196E08  7F A5 EB 78 */	mr r5, r29
/* 80199EAC 00196E0C  4B F6 4D E9 */	bl GetPatchRenderFlags__12CScriptWaterCFii
/* 80199EB0 00196E10  7C 7F 1B 79 */	or. r31, r3, r3
/* 80199EB4 00196E14  41 82 02 D0 */	beq lbl_8019A184
/* 80199EB8 00196E18  EC 16 E0 28 */	fsubs f0, f22, f28
/* 80199EBC 00196E1C  EF F2 00 32 */	fmuls f31, f18, f0
/* 80199EC0 00196E20  F3 E1 D0 22 */	psq_st f31, 34(r1), 1, qr5
/* 80199EC4 00196E24  38 61 00 2A */	addi r3, r1, 0x2a
/* 80199EC8 00196E28  80 8D A5 78 */	lwz r4, lbl_805A9138@sda21(r13)
/* 80199ECC 00196E2C  A8 A1 00 22 */	lha r5, 0x22(r1)
/* 80199ED0 00196E30  7C 80 07 34 */	extsh r0, r4
/* 80199ED4 00196E34  B0 81 00 2A */	sth r4, 0x2a(r1)
/* 80199ED8 00196E38  7C 05 00 00 */	cmpw r5, r0
/* 80199EDC 00196E3C  B0 A1 00 28 */	sth r5, 0x28(r1)
/* 80199EE0 00196E40  40 80 00 08 */	bge lbl_80199EE8
/* 80199EE4 00196E44  38 61 00 28 */	addi r3, r1, 0x28
lbl_80199EE8:
/* 80199EE8 00196E48  A8 03 00 00 */	lha r0, 0(r3)
/* 80199EEC 00196E4C  B0 01 00 32 */	sth r0, 0x32(r1)
/* 80199EF0 00196E50  F2 61 D0 20 */	psq_st f19, 32(r1), 1, qr5
/* 80199EF4 00196E54  38 61 00 26 */	addi r3, r1, 0x26
/* 80199EF8 00196E58  80 8D A5 78 */	lwz r4, lbl_805A9138@sda21(r13)
/* 80199EFC 00196E5C  A8 A1 00 20 */	lha r5, 0x20(r1)
/* 80199F00 00196E60  7C 80 07 34 */	extsh r0, r4
/* 80199F04 00196E64  B0 81 00 26 */	sth r4, 0x26(r1)
/* 80199F08 00196E68  7C 05 00 00 */	cmpw r5, r0
/* 80199F0C 00196E6C  B0 A1 00 24 */	sth r5, 0x24(r1)
/* 80199F10 00196E70  40 80 00 08 */	bge lbl_80199F18
/* 80199F14 00196E74  38 61 00 24 */	addi r3, r1, 0x24
lbl_80199F18:
/* 80199F18 00196E78  A8 03 00 00 */	lha r0, 0(r3)
/* 80199F1C 00196E7C  B0 01 00 30 */	sth r0, 0x30(r1)
/* 80199F20 00196E80  E0 01 D0 30 */	psq_l f0, 48(r1), 1, qr5
/* 80199F24 00196E84  E0 41 D0 32 */	psq_l f2, 50(r1), 1, qr5
/* 80199F28 00196E88  FC 20 C0 18 */	frsp f1, f24
/* 80199F2C 00196E8C  EC DA C0 3A */	fmadds f6, f26, f0, f24
/* 80199F30 00196E90  C0 B0 00 1C */	lfs f5, 0x1c(r16)
/* 80199F34 00196E94  C0 90 00 2C */	lfs f4, 0x2c(r16)
/* 80199F38 00196E98  EC 5A E0 BA */	fmadds f2, f26, f2, f28
/* 80199F3C 00196E9C  C0 70 00 0C */	lfs f3, 0xc(r16)
/* 80199F40 00196EA0  FC 00 E0 18 */	frsp f0, f28
/* 80199F44 00196EA4  ED 06 28 2A */	fadds f8, f6, f5
/* 80199F48 00196EA8  D0 41 00 C0 */	stfs f2, 0xc0(r1)
/* 80199F4C 00196EAC  EC F4 20 2A */	fadds f7, f20, f4
/* 80199F50 00196EB0  38 61 00 E4 */	addi r3, r1, 0xe4
/* 80199F54 00196EB4  EC 42 18 2A */	fadds f2, f2, f3
/* 80199F58 00196EB8  EC A1 28 2A */	fadds f5, f1, f5
/* 80199F5C 00196EBC  EC 37 20 2A */	fadds f1, f23, f4
/* 80199F60 00196EC0  D0 C1 00 C4 */	stfs f6, 0xc4(r1)
/* 80199F64 00196EC4  EC 00 18 2A */	fadds f0, f0, f3
/* 80199F68 00196EC8  38 81 00 8C */	addi r4, r1, 0x8c
/* 80199F6C 00196ECC  D2 81 00 C8 */	stfs f20, 0xc8(r1)
/* 80199F70 00196ED0  38 A1 00 74 */	addi r5, r1, 0x74
/* 80199F74 00196ED4  D0 41 00 74 */	stfs f2, 0x74(r1)
/* 80199F78 00196ED8  D1 01 00 78 */	stfs f8, 0x78(r1)
/* 80199F7C 00196EDC  D0 E1 00 7C */	stfs f7, 0x7c(r1)
/* 80199F80 00196EE0  D3 81 00 80 */	stfs f28, 0x80(r1)
/* 80199F84 00196EE4  D3 01 00 84 */	stfs f24, 0x84(r1)
/* 80199F88 00196EE8  D2 E1 00 88 */	stfs f23, 0x88(r1)
/* 80199F8C 00196EEC  D0 01 00 8C */	stfs f0, 0x8c(r1)
/* 80199F90 00196EF0  D0 A1 00 90 */	stfs f5, 0x90(r1)
/* 80199F94 00196EF4  D0 21 00 94 */	stfs f1, 0x94(r1)
/* 80199F98 00196EF8  48 19 E5 71 */	bl __ct__6CAABoxFRC9CVector3fRC9CVector3f
/* 80199F9C 00196EFC  7E 23 8B 78 */	mr r3, r17
/* 80199FA0 00196F00  38 81 00 E4 */	addi r4, r1, 0xe4
/* 80199FA4 00196F04  48 1A B2 2D */	bl BoxInFrustumPlanes__14CFrustumPlanesCFRC6CAABox
/* 80199FA8 00196F08  54 60 06 3F */	clrlwi. r0, r3, 0x18
/* 80199FAC 00196F0C  41 82 01 D8 */	beq lbl_8019A184
/* 80199FB0 00196F10  C0 B0 00 2C */	lfs f5, 0x2c(r16)
/* 80199FB4 00196F14  FC 20 D0 90 */	fmr f1, f26
/* 80199FB8 00196F18  C0 90 00 1C */	lfs f4, 0x1c(r16)
/* 80199FBC 00196F1C  FC 60 88 90 */	fmr f3, f17
/* 80199FC0 00196F20  C0 10 00 0C */	lfs f0, 0xc(r16)
/* 80199FC4 00196F24  7F 28 CB 78 */	mr r8, r25
/* 80199FC8 00196F28  C0 4F 01 00 */	lfs f2, 0x100(r15)
/* 80199FCC 00196F2C  D0 01 00 5C */	stfs f0, 0x5c(r1)
/* 80199FD0 00196F30  7F 69 DB 78 */	mr r9, r27
/* 80199FD4 00196F34  80 01 02 9C */	lwz r0, 0x29c(r1)
/* 80199FD8 00196F38  7F 8A E3 78 */	mr r10, r28
/* 80199FDC 00196F3C  D0 81 00 60 */	stfs f4, 0x60(r1)
/* 80199FE0 00196F40  38 61 00 FC */	addi r3, r1, 0xfc
/* 80199FE4 00196F44  38 81 00 68 */	addi r4, r1, 0x68
/* 80199FE8 00196F48  38 A1 00 C0 */	addi r5, r1, 0xc0
/* 80199FEC 00196F4C  D0 A1 00 64 */	stfs f5, 0x64(r1)
/* 80199FF0 00196F50  38 C1 00 5C */	addi r6, r1, 0x5c
/* 80199FF4 00196F54  D3 81 00 68 */	stfs f28, 0x68(r1)
/* 80199FF8 00196F58  D3 01 00 6C */	stfs f24, 0x6c(r1)
/* 80199FFC 00196F5C  D2 E1 00 70 */	stfs f23, 0x70(r1)
/* 8019A000 00196F60  91 C1 00 08 */	stw r14, 8(r1)
/* 8019A004 00196F64  92 E1 00 0C */	stw r23, 0xc(r1)
/* 8019A008 00196F68  92 61 00 10 */	stw r19, 0x10(r1)
/* 8019A00C 00196F6C  92 81 00 14 */	stw r20, 0x14(r1)
/* 8019A010 00196F70  93 01 00 18 */	stw r24, 0x18(r1)
/* 8019A014 00196F74  90 01 00 1C */	stw r0, 0x1c(r1)
/* 8019A018 00196F78  80 ED A5 78 */	lwz r7, lbl_805A9138@sda21(r13)
/* 8019A01C 00196F7C  48 00 02 8D */	bl __ct__Q220CFluidPlaneCPURender10SPatchInfoFRC9CVector3fRC9CVector3fRC9CVector3fffb
/* 8019A020 00196F80  88 A1 00 FC */	lbz r5, 0xfc(r1)
/* 8019A024 00196F84  3C 60 E0 00 */	lis r3, 0xE0000000@ha
/* 8019A028 00196F88  7C 97 00 D0 */	neg r4, r23
/* 8019A02C 00196F8C  38 13 FF FF */	addi r0, r19, -1
/* 8019A030 00196F90  98 A3 00 00 */	stb r5, 0xE0000000@l(r3)
/* 8019A034 00196F94  7C 84 BB 78 */	or r4, r4, r23
/* 8019A038 00196F98  7C 17 00 00 */	cmpw r23, r0
/* 8019A03C 00196F9C  88 01 00 FD */	lbz r0, 0xfd(r1)
/* 8019A040 00196FA0  7C 85 FE 70 */	srawi r5, r4, 0x1f
/* 8019A044 00196FA4  98 03 00 01 */	stb r0, 1(r3)
/* 8019A048 00196FA8  C0 01 01 00 */	lfs f0, 0x100(r1)
/* 8019A04C 00196FAC  D0 03 00 04 */	stfs f0, 4(r3)
/* 8019A050 00196FB0  C0 01 01 04 */	lfs f0, 0x104(r1)
/* 8019A054 00196FB4  D0 03 00 08 */	stfs f0, 8(r3)
/* 8019A058 00196FB8  C0 01 01 08 */	lfs f0, 0x108(r1)
/* 8019A05C 00196FBC  D0 03 00 0C */	stfs f0, 0xc(r3)
/* 8019A060 00196FC0  C0 01 01 0C */	lfs f0, 0x10c(r1)
/* 8019A064 00196FC4  D0 03 00 10 */	stfs f0, 0x10(r3)
/* 8019A068 00196FC8  C0 01 01 10 */	lfs f0, 0x110(r1)
/* 8019A06C 00196FCC  D0 03 00 14 */	stfs f0, 0x14(r3)
/* 8019A070 00196FD0  C0 01 01 14 */	lfs f0, 0x114(r1)
/* 8019A074 00196FD4  D0 03 00 18 */	stfs f0, 0x18(r3)
/* 8019A078 00196FD8  C0 01 01 18 */	lfs f0, 0x118(r1)
/* 8019A07C 00196FDC  D0 03 00 1C */	stfs f0, 0x1c(r3)
/* 8019A080 00196FE0  C0 01 01 1C */	lfs f0, 0x11c(r1)
/* 8019A084 00196FE4  D0 03 00 20 */	stfs f0, 0x20(r3)
/* 8019A088 00196FE8  C0 01 01 20 */	lfs f0, 0x120(r1)
/* 8019A08C 00196FEC  D0 03 00 24 */	stfs f0, 0x24(r3)
/* 8019A090 00196FF0  A8 01 01 24 */	lha r0, 0x124(r1)
/* 8019A094 00196FF4  B0 03 00 28 */	sth r0, 0x28(r3)
/* 8019A098 00196FF8  A8 01 01 26 */	lha r0, 0x126(r1)
/* 8019A09C 00196FFC  B0 03 00 2A */	sth r0, 0x2a(r3)
/* 8019A0A0 00197000  A8 01 01 28 */	lha r0, 0x128(r1)
/* 8019A0A4 00197004  B0 03 00 2C */	sth r0, 0x2c(r3)
/* 8019A0A8 00197008  A8 01 01 2A */	lha r0, 0x12a(r1)
/* 8019A0AC 0019700C  B0 03 00 2E */	sth r0, 0x2e(r3)
/* 8019A0B0 00197010  80 01 01 2C */	lwz r0, 0x12c(r1)
/* 8019A0B4 00197014  90 03 00 30 */	stw r0, 0x30(r3)
/* 8019A0B8 00197018  88 01 01 30 */	lbz r0, 0x130(r1)
/* 8019A0BC 0019701C  98 03 00 34 */	stb r0, 0x34(r3)
/* 8019A0C0 00197020  88 01 01 31 */	lbz r0, 0x131(r1)
/* 8019A0C4 00197024  98 03 00 35 */	stb r0, 0x35(r3)
/* 8019A0C8 00197028  88 01 01 32 */	lbz r0, 0x132(r1)
/* 8019A0CC 0019702C  98 03 00 36 */	stb r0, 0x36(r3)
/* 8019A0D0 00197030  88 01 01 33 */	lbz r0, 0x133(r1)
/* 8019A0D4 00197034  98 03 00 37 */	stb r0, 0x37(r3)
/* 8019A0D8 00197038  C0 01 01 34 */	lfs f0, 0x134(r1)
/* 8019A0DC 0019703C  D0 03 00 38 */	stfs f0, 0x38(r3)
/* 8019A0E0 00197040  80 8D A5 74 */	lwz r4, lbl_805A9134@sda21(r13)
/* 8019A0E4 00197044  20 04 00 02 */	subfic r0, r4, 2
/* 8019A0E8 00197048  7C 07 28 38 */	and r7, r0, r5
/* 8019A0EC 0019704C  41 82 00 18 */	beq lbl_8019A104
/* 8019A0F0 00197050  88 03 00 00 */	lbz r0, 0(r3)
/* 8019A0F4 00197054  39 04 FF FE */	addi r8, r4, -2
/* 8019A0F8 00197058  7C 00 07 74 */	extsb r0, r0
/* 8019A0FC 0019705C  7D 00 42 14 */	add r8, r0, r8
/* 8019A100 00197060  48 00 00 0C */	b lbl_8019A10C
lbl_8019A104:
/* 8019A104 00197064  89 03 00 00 */	lbz r8, 0(r3)
/* 8019A108 00197068  7D 08 07 74 */	extsb r8, r8
lbl_8019A10C:
/* 8019A10C 0019706C  7C 78 00 D0 */	neg r3, r24
/* 8019A110 00197070  38 14 FF FF */	addi r0, r20, -1
/* 8019A114 00197074  7C 63 C3 78 */	or r3, r3, r24
/* 8019A118 00197078  81 4D A5 74 */	lwz r10, lbl_805A9134@sda21(r13)
/* 8019A11C 0019707C  7C 64 FE 70 */	srawi r4, r3, 0x1f
/* 8019A120 00197080  FC 20 D8 90 */	fmr f1, f27
/* 8019A124 00197084  20 6A 00 02 */	subfic r3, r10, 2
/* 8019A128 00197088  7C 18 00 00 */	cmpw r24, r0
/* 8019A12C 0019708C  7C 69 20 38 */	and r9, r3, r4
/* 8019A130 00197090  7D E4 7B 78 */	mr r4, r15
/* 8019A134 00197094  7E A5 AB 78 */	mr r5, r21
/* 8019A138 00197098  7E 46 93 78 */	mr r6, r18
/* 8019A13C 0019709C  3C 60 E0 00 */	lis r3, 0xe000
/* 8019A140 001970A0  41 82 00 1C */	beq lbl_8019A15C
/* 8019A144 001970A4  3D 60 E0 00 */	lis r11, 0xE0000001@ha
/* 8019A148 001970A8  39 4A FF FE */	addi r10, r10, -2
/* 8019A14C 001970AC  88 0B 00 01 */	lbz r0, 0xE0000001@l(r11)
/* 8019A150 001970B0  7C 00 07 74 */	extsb r0, r0
/* 8019A154 001970B4  7D 40 52 14 */	add r10, r0, r10
/* 8019A158 001970B8  48 00 00 10 */	b lbl_8019A168
lbl_8019A15C:
/* 8019A15C 001970BC  3D 40 E0 00 */	lis r10, 0xE0000001@ha
/* 8019A160 001970C0  89 4A 00 01 */	lbz r10, 0xE0000001@l(r10)
/* 8019A164 001970C4  7D 4A 07 74 */	extsb r10, r10
lbl_8019A168:
/* 8019A168 001970C8  48 00 1C 41 */	bl UpdatePatch__FfRQ220CFluidPlaneCPURender10SPatchInfoRC14CFluidPlaneCPURC9CVector3fRC14CRippleManageriiii
/* 8019A16C 001970CC  20 1F 00 01 */	subfic r0, r31, 1
/* 8019A170 001970D0  7C 64 1B 78 */	mr r4, r3
/* 8019A174 001970D4  7C 00 00 34 */	cntlzw r0, r0
/* 8019A178 001970D8  3C 60 E0 00 */	lis r3, 0xe000
/* 8019A17C 001970DC  54 05 D9 7E */	srwi r5, r0, 5
/* 8019A180 001970E0  48 0D 1A 71 */	bl RenderPatch__FRCQ220CFluidPlaneCPURender10SPatchInfob
lbl_8019A184:
/* 8019A184 001970E4  C0 01 00 40 */	lfs f0, 0x40(r1)
/* 8019A188 001970E8  3A D6 00 01 */	addi r22, r22, 1
/* 8019A18C 001970EC  80 0D A5 70 */	lwz r0, lbl_805A9130@sda21(r13)
/* 8019A190 001970F0  EF 9C 00 2A */	fadds f28, f28, f0
/* 8019A194 001970F4  7E F7 02 14 */	add r23, r23, r0
lbl_8019A198:
/* 8019A198 001970F8  FC 1C B0 40 */	fcmpo cr0, f28, f22
/* 8019A19C 001970FC  40 80 00 0C */	bge lbl_8019A1A8
/* 8019A1A0 00197100  7C 16 F0 00 */	cmpw r22, r30
/* 8019A1A4 00197104  41 80 FC FC */	blt lbl_80199EA0
lbl_8019A1A8:
/* 8019A1A8 00197108  C0 01 00 44 */	lfs f0, 0x44(r1)
/* 8019A1AC 0019710C  3B BD 00 01 */	addi r29, r29, 1
/* 8019A1B0 00197110  80 0D A5 70 */	lwz r0, lbl_805A9130@sda21(r13)
/* 8019A1B4 00197114  EF 18 00 2A */	fadds f24, f24, f0
/* 8019A1B8 00197118  7F 18 02 14 */	add r24, r24, r0
lbl_8019A1BC:
/* 8019A1BC 0019711C  FC 18 A8 40 */	fcmpo cr0, f24, f21
/* 8019A1C0 00197120  40 80 00 10 */	bge lbl_8019A1D0
/* 8019A1C4 00197124  80 01 01 48 */	lwz r0, 0x148(r1)
/* 8019A1C8 00197128  7C 1D 00 00 */	cmpw r29, r0
/* 8019A1CC 0019712C  41 80 FC BC */	blt lbl_80199E88
lbl_8019A1D0:
/* 8019A1D0 00197130  38 60 00 00 */	li r3, 0
/* 8019A1D4 00197134  38 80 00 19 */	li r4, 0x19
/* 8019A1D8 00197138  38 A0 00 01 */	li r5, 1
/* 8019A1DC 0019713C  38 C0 00 04 */	li r6, 4
/* 8019A1E0 00197140  38 E0 00 06 */	li r7, 6
/* 8019A1E4 00197144  48 1D D5 A9 */	bl GXSetVtxAttrFmt
/* 8019A1E8 00197148  38 60 00 00 */	li r3, 0
/* 8019A1EC 0019714C  38 80 00 0A */	li r4, 0xa
/* 8019A1F0 00197150  38 A0 00 00 */	li r5, 0
/* 8019A1F4 00197154  38 C0 00 04 */	li r6, 4
/* 8019A1F8 00197158  38 E0 00 06 */	li r7, 6
/* 8019A1FC 0019715C  48 1D D5 91 */	bl GXSetVtxAttrFmt
/* 8019A200 00197160  38 60 00 19 */	li r3, 0x19
/* 8019A204 00197164  38 80 00 00 */	li r4, 0
/* 8019A208 00197168  48 1D CD 11 */	bl GXSetVtxDesc
/* 8019A20C 0019716C  38 60 00 01 */	li r3, 1
/* 8019A210 00197170  48 1D E9 49 */	bl GXSetCullMode
/* 8019A214 00197174  7D E3 7B 78 */	mr r3, r15
/* 8019A218 00197178  4B FF F6 7D */	bl RenderCleanup__14CFluidPlaneCPUCFv
lbl_8019A21C:
/* 8019A21C 0019717C  E3 E1 02 88 */	psq_l f31, 648(r1), 0, qr0
/* 8019A220 00197180  CB E1 02 80 */	lfd f31, 0x280(r1)
/* 8019A224 00197184  E3 C1 02 78 */	psq_l f30, 632(r1), 0, qr0
/* 8019A228 00197188  CB C1 02 70 */	lfd f30, 0x270(r1)
/* 8019A22C 0019718C  E3 A1 02 68 */	psq_l f29, 616(r1), 0, qr0
/* 8019A230 00197190  CB A1 02 60 */	lfd f29, 0x260(r1)
/* 8019A234 00197194  E3 81 02 58 */	psq_l f28, 600(r1), 0, qr0
/* 8019A238 00197198  CB 81 02 50 */	lfd f28, 0x250(r1)
/* 8019A23C 0019719C  E3 61 02 48 */	psq_l f27, 584(r1), 0, qr0
/* 8019A240 001971A0  CB 61 02 40 */	lfd f27, 0x240(r1)
/* 8019A244 001971A4  E3 41 02 38 */	psq_l f26, 568(r1), 0, qr0
/* 8019A248 001971A8  CB 41 02 30 */	lfd f26, 0x230(r1)
/* 8019A24C 001971AC  E3 21 02 28 */	psq_l f25, 552(r1), 0, qr0
/* 8019A250 001971B0  CB 21 02 20 */	lfd f25, 0x220(r1)
/* 8019A254 001971B4  E3 01 02 18 */	psq_l f24, 536(r1), 0, qr0
/* 8019A258 001971B8  CB 01 02 10 */	lfd f24, 0x210(r1)
/* 8019A25C 001971BC  E2 E1 02 08 */	psq_l f23, 520(r1), 0, qr0
/* 8019A260 001971C0  CA E1 02 00 */	lfd f23, 0x200(r1)
/* 8019A264 001971C4  E2 C1 01 F8 */	psq_l f22, 504(r1), 0, qr0
/* 8019A268 001971C8  CA C1 01 F0 */	lfd f22, 0x1f0(r1)
/* 8019A26C 001971CC  E2 A1 01 E8 */	psq_l f21, 488(r1), 0, qr0
/* 8019A270 001971D0  CA A1 01 E0 */	lfd f21, 0x1e0(r1)
/* 8019A274 001971D4  E2 81 01 D8 */	psq_l f20, 472(r1), 0, qr0
/* 8019A278 001971D8  CA 81 01 D0 */	lfd f20, 0x1d0(r1)
/* 8019A27C 001971DC  E2 61 01 C8 */	psq_l f19, 456(r1), 0, qr0
/* 8019A280 001971E0  CA 61 01 C0 */	lfd f19, 0x1c0(r1)
/* 8019A284 001971E4  E2 41 01 B8 */	psq_l f18, 440(r1), 0, qr0
/* 8019A288 001971E8  CA 41 01 B0 */	lfd f18, 0x1b0(r1)
/* 8019A28C 001971EC  E2 21 01 A8 */	psq_l f17, 424(r1), 0, qr0
/* 8019A290 001971F0  CA 21 01 A0 */	lfd f17, 0x1a0(r1)
/* 8019A294 001971F4  B9 C1 01 58 */	lmw r14, 0x158(r1)
/* 8019A298 001971F8  80 01 02 94 */	lwz r0, 0x294(r1)
/* 8019A29C 001971FC  7C 08 03 A6 */	mtlr r0
/* 8019A2A0 00197200  38 21 02 90 */	addi r1, r1, 0x290
/* 8019A2A4 00197204  4E 80 00 20 */	blr

.global __ct__Q220CFluidPlaneCPURender10SPatchInfoFRC9CVector3fRC9CVector3fRC9CVector3fffb
__ct__Q220CFluidPlaneCPURender10SPatchInfoFRC9CVector3fRC9CVector3fRC9CVector3fffb:
/* 8019A2A8 00197208  94 21 FF C0 */	stwu r1, -0x40(r1)
/* 8019A2AC 0019720C  C0 A2 A6 DC */	lfs f5, lbl_805AC3FC@sda21(r2)
/* 8019A2B0 00197210  BF 21 00 24 */	stmw r25, 0x24(r1)
/* 8019A2B4 00197214  8B A1 00 4B */	lbz r29, 0x4b(r1)
/* 8019A2B8 00197218  83 C1 00 4C */	lwz r30, 0x4c(r1)
/* 8019A2BC 0019721C  83 E1 00 50 */	lwz r31, 0x50(r1)
/* 8019A2C0 00197220  81 81 00 54 */	lwz r12, 0x54(r1)
/* 8019A2C4 00197224  81 61 00 58 */	lwz r11, 0x58(r1)
/* 8019A2C8 00197228  80 01 00 5C */	lwz r0, 0x5c(r1)
/* 8019A2CC 0019722C  C0 85 00 00 */	lfs f4, 0(r5)
/* 8019A2D0 00197230  C0 04 00 00 */	lfs f0, 0(r4)
/* 8019A2D4 00197234  EC 84 00 28 */	fsubs f4, f4, f0
/* 8019A2D8 00197238  C0 02 A6 F8 */	lfs f0, lbl_805AC418@sda21(r2)
/* 8019A2DC 0019723C  EC 84 08 24 */	fdivs f4, f4, f1
/* 8019A2E0 00197240  EC 85 20 2A */	fadds f4, f5, f4
/* 8019A2E4 00197244  EC C4 00 28 */	fsubs f6, f4, f0
/* 8019A2E8 00197248  F0 C1 D0 0A */	psq_st f6, 10(r1), 1, qr5
/* 8019A2EC 0019724C  3B 47 00 02 */	addi r26, r7, 2
/* 8019A2F0 00197250  7F 5C 07 34 */	extsh r28, r26
/* 8019A2F4 00197254  3B 61 00 12 */	addi r27, r1, 0x12
/* 8019A2F8 00197258  AB 21 00 0A */	lha r25, 0xa(r1)
/* 8019A2FC 0019725C  B3 41 00 12 */	sth r26, 0x12(r1)
/* 8019A300 00197260  3B 39 00 02 */	addi r25, r25, 2
/* 8019A304 00197264  7F 3A 07 34 */	extsh r26, r25
/* 8019A308 00197268  B3 21 00 10 */	sth r25, 0x10(r1)
/* 8019A30C 0019726C  7C 1A E0 00 */	cmpw r26, r28
/* 8019A310 00197270  40 80 00 08 */	bge lbl_8019A318
/* 8019A314 00197274  3B 61 00 10 */	addi r27, r1, 0x10
lbl_8019A318:
/* 8019A318 00197278  AB 7B 00 00 */	lha r27, 0(r27)
/* 8019A31C 0019727C  C0 C2 A6 DC */	lfs f6, lbl_805AC3FC@sda21(r2)
/* 8019A320 00197280  9B 63 00 00 */	stb r27, 0(r3)
/* 8019A324 00197284  C0 02 A6 F8 */	lfs f0, lbl_805AC418@sda21(r2)
/* 8019A328 00197288  C0 A5 00 04 */	lfs f5, 4(r5)
/* 8019A32C 0019728C  C0 84 00 04 */	lfs f4, 4(r4)
/* 8019A330 00197290  EC 85 20 28 */	fsubs f4, f5, f4
/* 8019A334 00197294  EC 84 08 24 */	fdivs f4, f4, f1
/* 8019A338 00197298  EC 86 20 2A */	fadds f4, f6, f4
/* 8019A33C 0019729C  EC E4 00 28 */	fsubs f7, f4, f0
/* 8019A340 001972A0  F0 E1 D0 08 */	psq_st f7, 8(r1), 1, qr5
/* 8019A344 001972A4  3B 87 00 02 */	addi r28, r7, 2
/* 8019A348 001972A8  7F 87 07 34 */	extsh r7, r28
/* 8019A34C 001972AC  38 A1 00 0E */	addi r5, r1, 0xe
/* 8019A350 001972B0  AB 61 00 08 */	lha r27, 8(r1)
/* 8019A354 001972B4  B3 81 00 0E */	sth r28, 0xe(r1)
/* 8019A358 001972B8  3B 7B 00 02 */	addi r27, r27, 2
/* 8019A35C 001972BC  7F 7C 07 34 */	extsh r28, r27
/* 8019A360 001972C0  B3 61 00 0C */	sth r27, 0xc(r1)
/* 8019A364 001972C4  7C 1C 38 00 */	cmpw r28, r7
/* 8019A368 001972C8  40 80 00 08 */	bge lbl_8019A370
/* 8019A36C 001972CC  38 A1 00 0C */	addi r5, r1, 0xc
lbl_8019A370:
/* 8019A370 001972D0  A8 A5 00 00 */	lha r5, 0(r5)
/* 8019A374 001972D4  EC 02 00 B2 */	fmuls f0, f2, f2
/* 8019A378 001972D8  C0 A2 A6 FC */	lfs f5, lbl_805AC41C@sda21(r2)
/* 8019A37C 001972DC  98 A3 00 01 */	stb r5, 1(r3)
/* 8019A380 001972E0  EC 80 00 2A */	fadds f4, f0, f0
/* 8019A384 001972E4  C0 02 A6 E0 */	lfs f0, lbl_805AC400@sda21(r2)
/* 8019A388 001972E8  C0 C4 00 00 */	lfs f6, 0(r4)
/* 8019A38C 001972EC  D0 C3 00 04 */	stfs f6, 4(r3)
/* 8019A390 001972F0  ED 05 01 32 */	fmuls f8, f5, f4
/* 8019A394 001972F4  C0 84 00 04 */	lfs f4, 4(r4)
/* 8019A398 001972F8  FC 00 40 00 */	fcmpu cr0, f0, f8
/* 8019A39C 001972FC  D0 83 00 08 */	stfs f4, 8(r3)
/* 8019A3A0 00197300  C0 83 00 04 */	lfs f4, 4(r3)
/* 8019A3A4 00197304  C0 06 00 00 */	lfs f0, 0(r6)
/* 8019A3A8 00197308  EC 04 00 2A */	fadds f0, f4, f0
/* 8019A3AC 0019730C  D0 03 00 0C */	stfs f0, 0xc(r3)
/* 8019A3B0 00197310  C0 83 00 08 */	lfs f4, 8(r3)
/* 8019A3B4 00197314  C0 06 00 04 */	lfs f0, 4(r6)
/* 8019A3B8 00197318  EC 04 00 2A */	fadds f0, f4, f0
/* 8019A3BC 0019731C  D0 03 00 10 */	stfs f0, 0x10(r3)
/* 8019A3C0 00197320  D0 43 00 14 */	stfs f2, 0x14(r3)
/* 8019A3C4 00197324  D0 23 00 18 */	stfs f1, 0x18(r3)
/* 8019A3C8 00197328  40 82 00 08 */	bne lbl_8019A3D0
/* 8019A3CC 0019732C  48 00 00 10 */	b lbl_8019A3DC
lbl_8019A3D0:
/* 8019A3D0 00197330  10 00 40 34 */	ps_rsqrte f0, f8
/* 8019A3D4 00197334  10 00 02 32 */	ps_mul f0, f0, f8
/* 8019A3D8 00197338  FD 00 00 90 */	fmr f8, f0
lbl_8019A3DC:
/* 8019A3DC 0019733C  D1 03 00 1C */	stfs f8, 0x1c(r3)
/* 8019A3E0 00197340  C0 22 A6 DC */	lfs f1, lbl_805AC3FC@sda21(r2)
/* 8019A3E4 00197344  C0 03 00 14 */	lfs f0, 0x14(r3)
/* 8019A3E8 00197348  EC 01 00 24 */	fdivs f0, f1, f0
/* 8019A3EC 0019734C  D0 03 00 20 */	stfs f0, 0x20(r3)
/* 8019A3F0 00197350  C0 03 00 18 */	lfs f0, 0x18(r3)
/* 8019A3F4 00197354  EC 01 00 24 */	fdivs f0, f1, f0
/* 8019A3F8 00197358  D0 03 00 24 */	stfs f0, 0x24(r3)
/* 8019A3FC 0019735C  B3 C3 00 28 */	sth r30, 0x28(r3)
/* 8019A400 00197360  B3 E3 00 2A */	sth r31, 0x2a(r3)
/* 8019A404 00197364  B1 83 00 2C */	sth r12, 0x2c(r3)
/* 8019A408 00197368  B1 63 00 2E */	sth r11, 0x2e(r3)
/* 8019A40C 0019736C  90 03 00 30 */	stw r0, 0x30(r3)
/* 8019A410 00197370  99 23 00 34 */	stb r9, 0x34(r3)
/* 8019A414 00197374  99 43 00 35 */	stb r10, 0x35(r3)
/* 8019A418 00197378  9B A3 00 36 */	stb r29, 0x36(r3)
/* 8019A41C 0019737C  99 03 00 37 */	stb r8, 0x37(r3)
/* 8019A420 00197380  D0 63 00 38 */	stfs f3, 0x38(r3)
/* 8019A424 00197384  BB 21 00 24 */	lmw r25, 0x24(r1)
/* 8019A428 00197388  38 21 00 40 */	addi r1, r1, 0x40
/* 8019A42C 0019738C  4E 80 00 20 */	blr

.global RenderSetup__14CFluidPlaneCPUCFRC13CStateManagerfRC12CTransform4fRC12CTransform4fRC6CAABoxP12CScriptWater
RenderSetup__14CFluidPlaneCPUCFRC13CStateManagerfRC12CTransform4fRC12CTransform4fRC6CAABoxP12CScriptWater:
/* 8019A430 00197390  94 21 FB C0 */	stwu r1, -0x440(r1)
/* 8019A434 00197394  7C 08 02 A6 */	mflr r0
/* 8019A438 00197398  90 01 04 44 */	stw r0, 0x444(r1)
/* 8019A43C 0019739C  DB E1 04 30 */	stfd f31, 0x430(r1)
/* 8019A440 001973A0  F3 E1 04 38 */	psq_st f31, 1080(r1), 0, qr0
/* 8019A444 001973A4  DB C1 04 20 */	stfd f30, 0x420(r1)
/* 8019A448 001973A8  F3 C1 04 28 */	psq_st f30, 1064(r1), 0, qr0
/* 8019A44C 001973AC  DB A1 04 10 */	stfd f29, 0x410(r1)
/* 8019A450 001973B0  F3 A1 04 18 */	psq_st f29, 1048(r1), 0, qr0
/* 8019A454 001973B4  DB 81 04 00 */	stfd f28, 0x400(r1)
/* 8019A458 001973B8  F3 81 04 08 */	psq_st f28, 1032(r1), 0, qr0
/* 8019A45C 001973BC  BD C1 03 B8 */	stmw r14, 0x3b8(r1)
/* 8019A460 001973C0  88 02 98 E8 */	lbz r0, lbl_805AB608@sda21(r2)
/* 8019A464 001973C4  3D 20 80 3D */	lis r9, lbl_803D1230@ha
/* 8019A468 001973C8  FF E0 08 90 */	fmr f31, f1
/* 8019A46C 001973CC  7C 72 1B 78 */	mr r18, r3
/* 8019A470 001973D0  28 00 00 00 */	cmplwi r0, 0
/* 8019A474 001973D4  7C 93 23 78 */	mr r19, r4
/* 8019A478 001973D8  7C B4 2B 78 */	mr r20, r5
/* 8019A47C 001973DC  7C D5 33 78 */	mr r21, r6
/* 8019A480 001973E0  7C F6 3B 78 */	mr r22, r7
/* 8019A484 001973E4  7D 17 43 78 */	mr r23, r8
/* 8019A488 001973E8  3B E9 12 30 */	addi r31, r9, lbl_803D1230@l
/* 8019A48C 001973EC  41 82 15 40 */	beq lbl_8019B9CC
/* 8019A490 001973F0  88 12 00 BC */	lbz r0, 0xbc(r18)
/* 8019A494 001973F4  3B C0 00 00 */	li r30, 0
/* 8019A498 001973F8  80 73 08 7C */	lwz r3, 0x87c(r19)
/* 8019A49C 001973FC  28 00 00 00 */	cmplwi r0, 0
/* 8019A4A0 00197400  C3 C3 01 1C */	lfs f30, 0x11c(r3)
/* 8019A4A4 00197404  41 82 00 14 */	beq lbl_8019A4B8
/* 8019A4A8 00197408  88 02 98 EA */	lbz r0, lbl_805AB60A@sda21(r2)
/* 8019A4AC 0019740C  28 00 00 00 */	cmplwi r0, 0
/* 8019A4B0 00197410  41 82 00 08 */	beq lbl_8019A4B8
/* 8019A4B4 00197414  3B C0 00 01 */	li r30, 1
lbl_8019A4B8:
/* 8019A4B8 00197418  80 73 08 70 */	lwz r3, 0x870(r19)
/* 8019A4BC 0019741C  3B 40 00 00 */	li r26, 0
/* 8019A4C0 00197420  8B B2 00 EC */	lbz r29, 0xec(r18)
/* 8019A4C4 00197424  80 03 00 74 */	lwz r0, 0x74(r3)
/* 8019A4C8 00197428  2C 00 00 00 */	cmpwi r0, 0
/* 8019A4CC 0019742C  41 82 00 0C */	beq lbl_8019A4D8
/* 8019A4D0 00197430  3B 80 00 00 */	li r28, 0
/* 8019A4D4 00197434  48 00 00 1C */	b lbl_8019A4F0
lbl_8019A4D8:
/* 8019A4D8 00197438  88 92 00 CC */	lbz r4, 0xcc(r18)
/* 8019A4DC 0019743C  80 02 98 EC */	lwz r0, lbl_805AB60C@sda21(r2)
/* 8019A4E0 00197440  7C 64 00 D0 */	neg r3, r4
/* 8019A4E4 00197444  7C 63 23 78 */	or r3, r3, r4
/* 8019A4E8 00197448  7C 63 FE 70 */	srawi r3, r3, 0x1f
/* 8019A4EC 0019744C  7C 1C 18 38 */	and r28, r0, r3
lbl_8019A4F0:
/* 8019A4F0 00197450  8B 72 00 DC */	lbz r27, 0xdc(r18)
/* 8019A4F4 00197454  48 0D 55 81 */	bl InitializeSineWave__Fv
/* 8019A4F8 00197458  80 6D A0 68 */	lwz r3, gpRender@sda21(r13)
/* 8019A4FC 0019745C  7E 84 A3 78 */	mr r4, r20
/* 8019A500 00197460  81 83 00 00 */	lwz r12, 0(r3)
/* 8019A504 00197464  81 8C 00 30 */	lwz r12, 0x30(r12)
/* 8019A508 00197468  7D 89 03 A6 */	mtctr r12
/* 8019A50C 0019746C  4E 80 04 21 */	bctrl
/* 8019A510 00197470  80 82 D7 40 */	lwz r4, lbl_805AF460@sda21(r2)
/* 8019A514 00197474  57 C0 06 3F */	clrlwi. r0, r30, 0x18
/* 8019A518 00197478  80 62 A6 D8 */	lwz r3, lbl_805AC3F8@sda21(r2)
/* 8019A51C 0019747C  90 81 00 38 */	stw r4, 0x38(r1)
/* 8019A520 00197480  90 61 00 34 */	stw r3, 0x34(r1)
/* 8019A524 00197484  41 82 00 D0 */	beq lbl_8019A5F4
/* 8019A528 00197488  C0 22 A6 E8 */	lfs f1, lbl_805AC408@sda21(r2)
/* 8019A52C 0019748C  38 61 00 30 */	addi r3, r1, 0x30
/* 8019A530 00197490  C0 82 A6 DC */	lfs f4, lbl_805AC3FC@sda21(r2)
/* 8019A534 00197494  FC 40 08 90 */	fmr f2, f1
/* 8019A538 00197498  FC 60 08 90 */	fmr f3, f1
/* 8019A53C 0019749C  48 1C 8E B1 */	bl __ct__6CColorFffff
/* 8019A540 001974A0  7C 6E 1B 78 */	mr r14, r3
/* 8019A544 001974A4  38 61 00 84 */	addi r3, r1, 0x84
/* 8019A548 001974A8  38 92 00 F0 */	addi r4, r18, 0xf0
/* 8019A54C 001974AC  48 17 A3 05 */	bl AsNormalized__9CVector3fCFv
/* 8019A550 001974B0  7D C5 73 78 */	mr r5, r14
/* 8019A554 001974B4  38 61 02 E0 */	addi r3, r1, 0x2e0
/* 8019A558 001974B8  38 81 00 84 */	addi r4, r1, 0x84
/* 8019A55C 001974BC  48 16 BF 11 */	bl BuildDirectional__6CLightFRC9CVector3fRC6CColor
/* 8019A560 001974C0  38 61 03 30 */	addi r3, r1, 0x330
/* 8019A564 001974C4  38 81 02 E0 */	addi r4, r1, 0x2e0
/* 8019A568 001974C8  4B EA 10 09 */	bl __ct__6CLightFRC6CLight
/* 8019A56C 001974CC  38 81 03 30 */	addi r4, r1, 0x330
/* 8019A570 001974D0  38 60 00 03 */	li r3, 3
/* 8019A574 001974D4  48 17 24 51 */	bl LoadLight__9CGraphicsF9ERglLightRC6CLight
/* 8019A578 001974D8  38 60 00 02 */	li r3, 2
/* 8019A57C 001974DC  48 16 E8 D5 */	bl SetNumChans__3CGXFUc
/* 8019A580 001974E0  38 60 00 01 */	li r3, 1
/* 8019A584 001974E4  38 80 00 01 */	li r4, 1
/* 8019A588 001974E8  38 A0 00 00 */	li r5, 0
/* 8019A58C 001974EC  38 C0 00 00 */	li r6, 0
/* 8019A590 001974F0  38 E0 00 08 */	li r7, 8
/* 8019A594 001974F4  39 00 00 02 */	li r8, 2
/* 8019A598 001974F8  39 20 00 01 */	li r9, 1
/* 8019A59C 001974FC  48 16 E7 31 */	bl SetChanCtrl__3CGXFQ23CGX10EChannelIdUc11_GXColorSrc11_GXColorSrc10_GXLightID12_GXDiffuseFn9_GXAttnFn
/* 8019A5A0 00197500  38 81 00 34 */	addi r4, r1, 0x34
/* 8019A5A4 00197504  38 60 00 01 */	li r3, 1
/* 8019A5A8 00197508  48 16 E7 B5 */	bl SetChanMatColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
/* 8019A5AC 0019750C  38 81 00 38 */	addi r4, r1, 0x38
/* 8019A5B0 00197510  38 60 00 01 */	li r3, 1
/* 8019A5B4 00197514  48 16 E8 11 */	bl SetChanAmbColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
/* 8019A5B8 00197518  38 60 00 00 */	li r3, 0
/* 8019A5BC 0019751C  38 80 00 01 */	li r4, 1
/* 8019A5C0 00197520  38 A0 00 00 */	li r5, 0
/* 8019A5C4 00197524  38 C0 00 01 */	li r6, 1
/* 8019A5C8 00197528  38 E0 00 00 */	li r7, 0
/* 8019A5CC 0019752C  39 00 00 02 */	li r8, 2
/* 8019A5D0 00197530  39 20 00 01 */	li r9, 1
/* 8019A5D4 00197534  48 16 E6 F9 */	bl SetChanCtrl__3CGXFQ23CGX10EChannelIdUc11_GXColorSrc11_GXColorSrc10_GXLightID12_GXDiffuseFn9_GXAttnFn
/* 8019A5D8 00197538  38 81 00 34 */	addi r4, r1, 0x34
/* 8019A5DC 0019753C  38 60 00 00 */	li r3, 0
/* 8019A5E0 00197540  48 16 E7 7D */	bl SetChanMatColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
/* 8019A5E4 00197544  38 81 00 38 */	addi r4, r1, 0x38
/* 8019A5E8 00197548  38 60 00 00 */	li r3, 0
/* 8019A5EC 0019754C  48 16 E7 D9 */	bl SetChanAmbColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
/* 8019A5F0 00197550  48 00 00 94 */	b lbl_8019A684
lbl_8019A5F4:
/* 8019A5F4 00197554  38 60 00 02 */	li r3, 2
/* 8019A5F8 00197558  48 16 E8 59 */	bl SetNumChans__3CGXFUc
/* 8019A5FC 0019755C  88 ED A8 16 */	lbz r7, mLightActive__9CGraphics@sda21(r13)
/* 8019A600 00197560  38 60 00 01 */	li r3, 1
/* 8019A604 00197564  38 80 00 01 */	li r4, 1
/* 8019A608 00197568  38 A0 00 00 */	li r5, 0
/* 8019A60C 0019756C  38 C0 00 00 */	li r6, 0
/* 8019A610 00197570  39 00 00 02 */	li r8, 2
/* 8019A614 00197574  39 20 00 01 */	li r9, 1
/* 8019A618 00197578  48 16 E6 B5 */	bl SetChanCtrl__3CGXFQ23CGX10EChannelIdUc11_GXColorSrc11_GXColorSrc10_GXLightID12_GXDiffuseFn9_GXAttnFn
/* 8019A61C 0019757C  88 0D A8 16 */	lbz r0, mLightActive__9CGraphics@sda21(r13)
/* 8019A620 00197580  38 81 00 38 */	addi r4, r1, 0x38
/* 8019A624 00197584  38 60 00 01 */	li r3, 1
/* 8019A628 00197588  28 00 00 00 */	cmplwi r0, 0
/* 8019A62C 0019758C  41 82 00 08 */	beq lbl_8019A634
/* 8019A630 00197590  38 81 00 34 */	addi r4, r1, 0x34
lbl_8019A634:
/* 8019A634 00197594  48 16 E7 29 */	bl SetChanMatColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
/* 8019A638 00197598  28 1D 00 00 */	cmplwi r29, 0
/* 8019A63C 0019759C  41 82 00 10 */	beq lbl_8019A64C
/* 8019A640 001975A0  38 81 00 38 */	addi r4, r1, 0x38
/* 8019A644 001975A4  38 60 00 01 */	li r3, 1
/* 8019A648 001975A8  48 16 E7 7D */	bl SetChanAmbColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
lbl_8019A64C:
/* 8019A64C 001975AC  38 60 00 00 */	li r3, 0
/* 8019A650 001975B0  38 80 00 01 */	li r4, 1
/* 8019A654 001975B4  38 A0 00 00 */	li r5, 0
/* 8019A658 001975B8  38 C0 00 01 */	li r6, 1
/* 8019A65C 001975BC  38 E0 00 00 */	li r7, 0
/* 8019A660 001975C0  39 00 00 02 */	li r8, 2
/* 8019A664 001975C4  39 20 00 01 */	li r9, 1
/* 8019A668 001975C8  48 16 E6 65 */	bl SetChanCtrl__3CGXFQ23CGX10EChannelIdUc11_GXColorSrc11_GXColorSrc10_GXLightID12_GXDiffuseFn9_GXAttnFn
/* 8019A66C 001975CC  38 81 00 34 */	addi r4, r1, 0x34
/* 8019A670 001975D0  38 60 00 00 */	li r3, 0
/* 8019A674 001975D4  48 16 E6 E9 */	bl SetChanMatColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
/* 8019A678 001975D8  38 81 00 38 */	addi r4, r1, 0x38
/* 8019A67C 001975DC  38 60 00 00 */	li r3, 0
/* 8019A680 001975E0  48 16 E7 45 */	bl SetChanAmbColor__3CGXFQ23CGX10EChannelIdRC8_GXColor
lbl_8019A684:
/* 8019A684 001975E4  88 12 00 1C */	lbz r0, 0x1c(r18)
/* 8019A688 001975E8  3B 20 00 00 */	li r25, 0
/* 8019A68C 001975EC  80 6D A5 F0 */	lwz r3, sRenderer__13CCubeRenderer@sda21(r13)
/* 8019A690 001975F0  3B 00 00 00 */	li r24, 0
/* 8019A694 001975F4  28 00 00 00 */	cmplwi r0, 0
/* 8019A698 001975F8  39 C3 00 E4 */	addi r14, r3, 0xe4
/* 8019A69C 001975FC  41 82 00 18 */	beq lbl_8019A6B4
/* 8019A6A0 00197600  80 72 00 18 */	lwz r3, 0x18(r18)
/* 8019A6A4 00197604  38 80 00 00 */	li r4, 0
/* 8019A6A8 00197608  38 A0 00 01 */	li r5, 1
/* 8019A6AC 0019760C  48 17 50 91 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019A6B0 00197610  48 00 00 14 */	b lbl_8019A6C4
lbl_8019A6B4:
/* 8019A6B4 00197614  7D C3 73 78 */	mr r3, r14
/* 8019A6B8 00197618  38 80 00 00 */	li r4, 0
/* 8019A6BC 0019761C  38 A0 00 01 */	li r5, 1
/* 8019A6C0 00197620  48 17 50 7D */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
lbl_8019A6C4:
/* 8019A6C4 00197624  88 12 00 2C */	lbz r0, 0x2c(r18)
/* 8019A6C8 00197628  93 21 01 40 */	stw r25, 0x140(r1)
/* 8019A6CC 0019762C  3B 20 00 01 */	li r25, 1
/* 8019A6D0 00197630  28 00 00 00 */	cmplwi r0, 0
/* 8019A6D4 00197634  41 82 00 18 */	beq lbl_8019A6EC
/* 8019A6D8 00197638  80 72 00 28 */	lwz r3, 0x28(r18)
/* 8019A6DC 0019763C  38 80 00 01 */	li r4, 1
/* 8019A6E0 00197640  38 A0 00 01 */	li r5, 1
/* 8019A6E4 00197644  48 17 50 59 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019A6E8 00197648  48 00 00 14 */	b lbl_8019A6FC
lbl_8019A6EC:
/* 8019A6EC 0019764C  7D C3 73 78 */	mr r3, r14
/* 8019A6F0 00197650  38 80 00 01 */	li r4, 1
/* 8019A6F4 00197654  38 A0 00 01 */	li r5, 1
/* 8019A6F8 00197658  48 17 50 45 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
lbl_8019A6FC:
/* 8019A6FC 0019765C  88 12 00 3C */	lbz r0, 0x3c(r18)
/* 8019A700 00197660  93 21 01 44 */	stw r25, 0x144(r1)
/* 8019A704 00197664  3B 20 00 02 */	li r25, 2
/* 8019A708 00197668  28 00 00 00 */	cmplwi r0, 0
/* 8019A70C 0019766C  41 82 00 18 */	beq lbl_8019A724
/* 8019A710 00197670  80 72 00 38 */	lwz r3, 0x38(r18)
/* 8019A714 00197674  38 80 00 02 */	li r4, 2
/* 8019A718 00197678  38 A0 00 01 */	li r5, 1
/* 8019A71C 0019767C  48 17 50 21 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019A720 00197680  48 00 00 14 */	b lbl_8019A734
lbl_8019A724:
/* 8019A724 00197684  7D C3 73 78 */	mr r3, r14
/* 8019A728 00197688  38 80 00 02 */	li r4, 2
/* 8019A72C 0019768C  38 A0 00 01 */	li r5, 1
/* 8019A730 00197690  48 17 50 0D */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
lbl_8019A734:
/* 8019A734 00197694  57 C0 06 3F */	clrlwi. r0, r30, 0x18
/* 8019A738 00197698  93 21 01 48 */	stw r25, 0x148(r1)
/* 8019A73C 0019769C  3B 20 00 03 */	li r25, 3
/* 8019A740 001976A0  41 82 00 1C */	beq lbl_8019A75C
/* 8019A744 001976A4  93 21 01 4C */	stw r25, 0x14c(r1)
/* 8019A748 001976A8  38 80 00 03 */	li r4, 3
/* 8019A74C 001976AC  80 72 00 B8 */	lwz r3, 0xb8(r18)
/* 8019A750 001976B0  38 A0 00 01 */	li r5, 1
/* 8019A754 001976B4  3B 20 00 04 */	li r25, 4
/* 8019A758 001976B8  48 17 4F E5 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
lbl_8019A75C:
/* 8019A75C 001976BC  2C 1C 00 00 */	cmpwi r28, 0
/* 8019A760 001976C0  41 82 00 1C */	beq lbl_8019A77C
/* 8019A764 001976C4  93 21 01 50 */	stw r25, 0x150(r1)
/* 8019A768 001976C8  7F 24 CB 78 */	mr r4, r25
/* 8019A76C 001976CC  80 72 00 C8 */	lwz r3, 0xc8(r18)
/* 8019A770 001976D0  38 A0 00 01 */	li r5, 1
/* 8019A774 001976D4  3B 39 00 01 */	addi r25, r25, 1
/* 8019A778 001976D8  48 17 4F C5 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
lbl_8019A77C:
/* 8019A77C 001976DC  28 1B 00 00 */	cmplwi r27, 0
/* 8019A780 001976E0  41 82 00 1C */	beq lbl_8019A79C
/* 8019A784 001976E4  93 21 01 54 */	stw r25, 0x154(r1)
/* 8019A788 001976E8  7F 24 CB 78 */	mr r4, r25
/* 8019A78C 001976EC  80 72 00 D8 */	lwz r3, 0xd8(r18)
/* 8019A790 001976F0  38 A0 00 01 */	li r5, 1
/* 8019A794 001976F4  3B 39 00 01 */	addi r25, r25, 1
/* 8019A798 001976F8  48 17 4F A5 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
lbl_8019A79C:
/* 8019A79C 001976FC  FC 20 F0 90 */	fmr f1, f30
/* 8019A7A0 00197700  38 72 00 4C */	addi r3, r18, 0x4c
/* 8019A7A4 00197704  38 81 01 08 */	addi r4, r1, 0x108
/* 8019A7A8 00197708  4B F8 23 3D */	bl CalculateFluidTextureOffset__14CFluidUVMotionCFfPA2_f
/* 8019A7AC 0019770C  80 1F 00 4C */	lwz r0, 0x4c(r31)
/* 8019A7B0 00197710  38 61 00 E8 */	addi r3, r1, 0xe8
/* 8019A7B4 00197714  80 DF 00 40 */	lwz r6, 0x40(r31)
/* 8019A7B8 00197718  38 80 00 1E */	li r4, 0x1e
/* 8019A7BC 0019771C  90 01 03 B0 */	stw r0, 0x3b0(r1)
/* 8019A7C0 00197720  38 A0 00 01 */	li r5, 1
/* 8019A7C4 00197724  80 1F 00 54 */	lwz r0, 0x54(r31)
/* 8019A7C8 00197728  90 C1 00 C8 */	stw r6, 0xc8(r1)
/* 8019A7CC 0019772C  80 C1 03 B0 */	lwz r6, 0x3b0(r1)
/* 8019A7D0 00197730  90 01 03 84 */	stw r0, 0x384(r1)
/* 8019A7D4 00197734  80 1F 00 5C */	lwz r0, 0x5c(r31)
/* 8019A7D8 00197738  81 FF 00 50 */	lwz r15, 0x50(r31)
/* 8019A7DC 0019773C  90 01 03 8C */	stw r0, 0x38c(r1)
/* 8019A7E0 00197740  80 1F 00 60 */	lwz r0, 0x60(r31)
/* 8019A7E4 00197744  90 C1 00 D4 */	stw r6, 0xd4(r1)
/* 8019A7E8 00197748  80 C1 03 84 */	lwz r6, 0x384(r1)
/* 8019A7EC 0019774C  90 01 03 90 */	stw r0, 0x390(r1)
/* 8019A7F0 00197750  80 1F 00 6C */	lwz r0, 0x6c(r31)
/* 8019A7F4 00197754  91 E1 03 80 */	stw r15, 0x380(r1)
/* 8019A7F8 00197758  81 FF 00 58 */	lwz r15, 0x58(r31)
/* 8019A7FC 0019775C  90 01 03 9C */	stw r0, 0x39c(r1)
/* 8019A800 00197760  80 1F 00 74 */	lwz r0, 0x74(r31)
/* 8019A804 00197764  90 C1 00 DC */	stw r6, 0xdc(r1)
/* 8019A808 00197768  80 C1 03 8C */	lwz r6, 0x38c(r1)
/* 8019A80C 0019776C  90 01 03 A4 */	stw r0, 0x3a4(r1)
/* 8019A810 00197770  80 1F 00 7C */	lwz r0, 0x7c(r31)
/* 8019A814 00197774  91 E1 03 88 */	stw r15, 0x388(r1)
/* 8019A818 00197778  81 FF 00 64 */	lwz r15, 0x64(r31)
/* 8019A81C 0019777C  C0 F2 00 94 */	lfs f7, 0x94(r18)
/* 8019A820 00197780  90 01 03 AC */	stw r0, 0x3ac(r1)
/* 8019A824 00197784  80 1F 00 44 */	lwz r0, 0x44(r31)
/* 8019A828 00197788  90 C1 00 E4 */	stw r6, 0xe4(r1)
/* 8019A82C 0019778C  80 C1 03 90 */	lwz r6, 0x390(r1)
/* 8019A830 00197790  90 01 00 CC */	stw r0, 0xcc(r1)
/* 8019A834 00197794  80 01 03 80 */	lwz r0, 0x380(r1)
/* 8019A838 00197798  91 E1 03 94 */	stw r15, 0x394(r1)
/* 8019A83C 0019779C  81 FF 00 68 */	lwz r15, 0x68(r31)
/* 8019A840 001977A0  90 01 00 D8 */	stw r0, 0xd8(r1)
/* 8019A844 001977A4  80 01 03 88 */	lwz r0, 0x388(r1)
/* 8019A848 001977A8  90 C1 00 A8 */	stw r6, 0xa8(r1)
/* 8019A84C 001977AC  80 C1 03 9C */	lwz r6, 0x39c(r1)
/* 8019A850 001977B0  91 E1 03 98 */	stw r15, 0x398(r1)
/* 8019A854 001977B4  81 FF 00 70 */	lwz r15, 0x70(r31)
/* 8019A858 001977B8  90 01 00 E0 */	stw r0, 0xe0(r1)
/* 8019A85C 001977BC  80 01 03 94 */	lwz r0, 0x394(r1)
/* 8019A860 001977C0  90 C1 00 B4 */	stw r6, 0xb4(r1)
/* 8019A864 001977C4  80 C1 03 A4 */	lwz r6, 0x3a4(r1)
/* 8019A868 001977C8  91 E1 03 A0 */	stw r15, 0x3a0(r1)
/* 8019A86C 001977CC  82 1F 00 20 */	lwz r16, 0x20(r31)
/* 8019A870 001977D0  90 01 00 AC */	stw r0, 0xac(r1)
/* 8019A874 001977D4  80 01 03 98 */	lwz r0, 0x398(r1)
/* 8019A878 001977D8  81 7F 00 2C */	lwz r11, 0x2c(r31)
/* 8019A87C 001977DC  81 3F 00 34 */	lwz r9, 0x34(r31)
/* 8019A880 001977E0  80 FF 00 3C */	lwz r7, 0x3c(r31)
/* 8019A884 001977E4  90 C1 00 BC */	stw r6, 0xbc(r1)
/* 8019A888 001977E8  C0 D2 00 64 */	lfs f6, 0x64(r18)
/* 8019A88C 001977EC  80 C1 03 AC */	lwz r6, 0x3ac(r1)
/* 8019A890 001977F0  81 FF 00 78 */	lwz r15, 0x78(r31)
/* 8019A894 001977F4  90 01 00 B0 */	stw r0, 0xb0(r1)
/* 8019A898 001977F8  80 01 03 A0 */	lwz r0, 0x3a0(r1)
/* 8019A89C 001977FC  82 3F 00 24 */	lwz r17, 0x24(r31)
/* 8019A8A0 00197800  81 9F 00 28 */	lwz r12, 0x28(r31)
/* 8019A8A4 00197804  81 5F 00 30 */	lwz r10, 0x30(r31)
/* 8019A8A8 00197808  81 1F 00 38 */	lwz r8, 0x38(r31)
/* 8019A8AC 0019780C  81 DF 00 48 */	lwz r14, 0x48(r31)
/* 8019A8B0 00197810  C0 61 01 18 */	lfs f3, 0x118(r1)
/* 8019A8B4 00197814  C0 41 01 1C */	lfs f2, 0x11c(r1)
/* 8019A8B8 00197818  C0 21 01 08 */	lfs f1, 0x108(r1)
/* 8019A8BC 0019781C  90 01 00 B8 */	stw r0, 0xb8(r1)
/* 8019A8C0 00197820  7D E0 7B 78 */	mr r0, r15
/* 8019A8C4 00197824  C1 12 00 7C */	lfs f8, 0x7c(r18)
/* 8019A8C8 00197828  92 01 00 E8 */	stw r16, 0xe8(r1)
/* 8019A8CC 0019782C  C0 A1 01 10 */	lfs f5, 0x110(r1)
/* 8019A8D0 00197830  91 21 00 FC */	stw r9, 0xfc(r1)
/* 8019A8D4 00197834  C0 81 01 14 */	lfs f4, 0x114(r1)
/* 8019A8D8 00197838  91 61 00 F4 */	stw r11, 0xf4(r1)
/* 8019A8DC 0019783C  C0 01 01 0C */	lfs f0, 0x10c(r1)
/* 8019A8E0 00197840  90 E1 01 04 */	stw r7, 0x104(r1)
/* 8019A8E4 00197844  90 C1 00 C4 */	stw r6, 0xc4(r1)
/* 8019A8E8 00197848  91 E1 03 A8 */	stw r15, 0x3a8(r1)
/* 8019A8EC 0019784C  92 21 00 EC */	stw r17, 0xec(r1)
/* 8019A8F0 00197850  91 81 00 F0 */	stw r12, 0xf0(r1)
/* 8019A8F4 00197854  91 41 00 F8 */	stw r10, 0xf8(r1)
/* 8019A8F8 00197858  91 01 01 00 */	stw r8, 0x100(r1)
/* 8019A8FC 0019785C  D1 01 00 E8 */	stfs f8, 0xe8(r1)
/* 8019A900 00197860  D0 A1 00 F4 */	stfs f5, 0xf4(r1)
/* 8019A904 00197864  D1 01 00 FC */	stfs f8, 0xfc(r1)
/* 8019A908 00197868  D0 81 01 04 */	stfs f4, 0x104(r1)
/* 8019A90C 0019786C  91 C1 00 D0 */	stw r14, 0xd0(r1)
/* 8019A910 00197870  D0 E1 00 C8 */	stfs f7, 0xc8(r1)
/* 8019A914 00197874  D0 61 00 D4 */	stfs f3, 0xd4(r1)
/* 8019A918 00197878  D0 E1 00 DC */	stfs f7, 0xdc(r1)
/* 8019A91C 0019787C  D0 41 00 E4 */	stfs f2, 0xe4(r1)
/* 8019A920 00197880  90 01 00 C0 */	stw r0, 0xc0(r1)
/* 8019A924 00197884  D0 C1 00 A8 */	stfs f6, 0xa8(r1)
/* 8019A928 00197888  D0 21 00 B4 */	stfs f1, 0xb4(r1)
/* 8019A92C 0019788C  D0 C1 00 BC */	stfs f6, 0xbc(r1)
/* 8019A930 00197890  D0 01 00 C4 */	stfs f0, 0xc4(r1)
/* 8019A934 00197894  48 1E 1B 5D */	bl GXLoadTexMtxImm
/* 8019A938 00197898  38 61 00 C8 */	addi r3, r1, 0xc8
/* 8019A93C 0019789C  38 80 00 21 */	li r4, 0x21
/* 8019A940 001978A0  38 A0 00 01 */	li r5, 1
/* 8019A944 001978A4  48 1E 1B 4D */	bl GXLoadTexMtxImm
/* 8019A948 001978A8  38 61 00 A8 */	addi r3, r1, 0xa8
/* 8019A94C 001978AC  38 80 00 24 */	li r4, 0x24
/* 8019A950 001978B0  38 A0 00 01 */	li r5, 1
/* 8019A954 001978B4  48 1E 1B 3D */	bl GXLoadTexMtxImm
/* 8019A958 001978B8  57 C0 06 3F */	clrlwi. r0, r30, 0x18
/* 8019A95C 001978BC  39 E0 00 27 */	li r15, 0x27
/* 8019A960 001978C0  41 82 00 B4 */	beq lbl_8019AA14
/* 8019A964 001978C4  3C 60 80 5A */	lis r3, mViewMatrix__9CGraphics@ha
/* 8019A968 001978C8  C3 B2 00 FC */	lfs f29, 0xfc(r18)
/* 8019A96C 001978CC  38 83 61 D4 */	addi r4, r3, mViewMatrix__9CGraphics@l
/* 8019A970 001978D0  38 61 01 90 */	addi r3, r1, 0x190
/* 8019A974 001978D4  48 17 82 CD */	bl GetRotation__12CTransform4fCFv
/* 8019A978 001978D8  38 61 01 C0 */	addi r3, r1, 0x1c0
/* 8019A97C 001978DC  38 81 01 90 */	addi r4, r1, 0x190
/* 8019A980 001978E0  48 17 83 1D */	bl GetQuickInverse__12CTransform4fCFv
/* 8019A984 001978E4  38 61 02 80 */	addi r3, r1, 0x280
/* 8019A988 001978E8  38 81 01 C0 */	addi r4, r1, 0x1c0
/* 8019A98C 001978EC  48 17 81 E9 */	bl __ct__12CTransform4fFRC12CTransform4f
/* 8019A990 001978F0  C3 C1 02 80 */	lfs f30, 0x280(r1)
/* 8019A994 001978F4  38 61 02 B0 */	addi r3, r1, 0x2b0
/* 8019A998 001978F8  C1 A1 02 84 */	lfs f13, 0x284(r1)
/* 8019A99C 001978FC  FC 20 E8 90 */	fmr f1, f29
/* 8019A9A0 00197900  C1 81 02 88 */	lfs f12, 0x288(r1)
/* 8019A9A4 00197904  FC 40 E8 90 */	fmr f2, f29
/* 8019A9A8 00197908  C1 61 02 8C */	lfs f11, 0x28c(r1)
/* 8019A9AC 0019790C  FC 60 E8 90 */	fmr f3, f29
/* 8019A9B0 00197910  C1 41 02 90 */	lfs f10, 0x290(r1)
/* 8019A9B4 00197914  C1 21 02 94 */	lfs f9, 0x294(r1)
/* 8019A9B8 00197918  7C 64 1B 78 */	mr r4, r3
/* 8019A9BC 0019791C  C1 01 02 98 */	lfs f8, 0x298(r1)
/* 8019A9C0 00197920  C0 E1 02 9C */	lfs f7, 0x29c(r1)
/* 8019A9C4 00197924  C0 C1 02 A0 */	lfs f6, 0x2a0(r1)
/* 8019A9C8 00197928  C0 A1 02 A4 */	lfs f5, 0x2a4(r1)
/* 8019A9CC 0019792C  C0 81 02 A8 */	lfs f4, 0x2a8(r1)
/* 8019A9D0 00197930  C0 01 02 AC */	lfs f0, 0x2ac(r1)
/* 8019A9D4 00197934  D3 C1 02 B0 */	stfs f30, 0x2b0(r1)
/* 8019A9D8 00197938  D1 A1 02 B4 */	stfs f13, 0x2b4(r1)
/* 8019A9DC 0019793C  D1 81 02 B8 */	stfs f12, 0x2b8(r1)
/* 8019A9E0 00197940  D1 61 02 BC */	stfs f11, 0x2bc(r1)
/* 8019A9E4 00197944  D1 41 02 C0 */	stfs f10, 0x2c0(r1)
/* 8019A9E8 00197948  D1 21 02 C4 */	stfs f9, 0x2c4(r1)
/* 8019A9EC 0019794C  D1 01 02 C8 */	stfs f8, 0x2c8(r1)
/* 8019A9F0 00197950  D0 E1 02 CC */	stfs f7, 0x2cc(r1)
/* 8019A9F4 00197954  D0 C1 02 D0 */	stfs f6, 0x2d0(r1)
/* 8019A9F8 00197958  D0 A1 02 D4 */	stfs f5, 0x2d4(r1)
/* 8019A9FC 0019795C  D0 81 02 D8 */	stfs f4, 0x2d8(r1)
/* 8019AA00 00197960  D0 01 02 DC */	stfs f0, 0x2dc(r1)
/* 8019AA04 00197964  48 1E 28 8D */	bl PSMTXScaleApply
/* 8019AA08 00197968  38 61 02 B0 */	addi r3, r1, 0x2b0
/* 8019AA0C 0019796C  38 80 00 00 */	li r4, 0
/* 8019AA10 00197970  48 1E 19 F9 */	bl GXLoadNrmMtxImm
lbl_8019AA14:
/* 8019AA14 00197974  93 01 01 20 */	stw r24, 0x120(r1)
/* 8019AA18 00197978  38 60 00 00 */	li r3, 0
/* 8019AA1C 0019797C  38 80 00 01 */	li r4, 1
/* 8019AA20 00197980  38 A0 00 00 */	li r5, 0
/* 8019AA24 00197984  38 C0 00 1E */	li r6, 0x1e
/* 8019AA28 00197988  38 E0 00 00 */	li r7, 0
/* 8019AA2C 0019798C  39 00 00 7D */	li r8, 0x7d
/* 8019AA30 00197990  3B 00 00 01 */	li r24, 1
/* 8019AA34 00197994  48 16 DC 99 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AA38 00197998  93 01 01 24 */	stw r24, 0x124(r1)
/* 8019AA3C 0019799C  38 60 00 01 */	li r3, 1
/* 8019AA40 001979A0  38 80 00 01 */	li r4, 1
/* 8019AA44 001979A4  38 A0 00 00 */	li r5, 0
/* 8019AA48 001979A8  38 C0 00 21 */	li r6, 0x21
/* 8019AA4C 001979AC  38 E0 00 00 */	li r7, 0
/* 8019AA50 001979B0  39 00 00 7D */	li r8, 0x7d
/* 8019AA54 001979B4  3B 00 00 02 */	li r24, 2
/* 8019AA58 001979B8  48 16 DC 75 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AA5C 001979BC  93 01 01 28 */	stw r24, 0x128(r1)
/* 8019AA60 001979C0  38 60 00 02 */	li r3, 2
/* 8019AA64 001979C4  38 80 00 01 */	li r4, 1
/* 8019AA68 001979C8  38 A0 00 00 */	li r5, 0
/* 8019AA6C 001979CC  38 C0 00 24 */	li r6, 0x24
/* 8019AA70 001979D0  38 E0 00 00 */	li r7, 0
/* 8019AA74 001979D4  39 00 00 7D */	li r8, 0x7d
/* 8019AA78 001979D8  3B 00 00 03 */	li r24, 3
/* 8019AA7C 001979DC  48 16 DC 51 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AA80 001979E0  57 C0 06 3F */	clrlwi. r0, r30, 0x18
/* 8019AA84 001979E4  41 82 00 44 */	beq lbl_8019AAC8
/* 8019AA88 001979E8  93 01 01 2C */	stw r24, 0x12c(r1)
/* 8019AA8C 001979EC  38 60 00 03 */	li r3, 3
/* 8019AA90 001979F0  38 80 00 01 */	li r4, 1
/* 8019AA94 001979F4  38 A0 00 00 */	li r5, 0
/* 8019AA98 001979F8  38 C0 00 1E */	li r6, 0x1e
/* 8019AA9C 001979FC  38 E0 00 00 */	li r7, 0
/* 8019AAA0 00197A00  39 00 00 7D */	li r8, 0x7d
/* 8019AAA4 00197A04  48 16 DC 29 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AAA8 00197A08  38 60 00 04 */	li r3, 4
/* 8019AAAC 00197A0C  38 80 00 05 */	li r4, 5
/* 8019AAB0 00197A10  38 A0 00 0F */	li r5, 0xf
/* 8019AAB4 00197A14  38 C0 00 3C */	li r6, 0x3c
/* 8019AAB8 00197A18  38 E0 00 00 */	li r7, 0
/* 8019AABC 00197A1C  39 00 00 7D */	li r8, 0x7d
/* 8019AAC0 00197A20  48 16 DC 0D */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AAC4 00197A24  3B 00 00 05 */	li r24, 5
lbl_8019AAC8:
/* 8019AAC8 00197A28  28 1B 00 00 */	cmplwi r27, 0
/* 8019AACC 00197A2C  41 82 01 4C */	beq lbl_8019AC18
/* 8019AAD0 00197A30  2C 1C 00 00 */	cmpwi r28, 0
/* 8019AAD4 00197A34  41 82 00 1C */	beq lbl_8019AAF0
/* 8019AAD8 00197A38  C0 22 A6 DC */	lfs f1, lbl_805AC3FC@sda21(r2)
/* 8019AADC 00197A3C  C0 12 01 18 */	lfs f0, 0x118(r18)
/* 8019AAE0 00197A40  C0 42 A6 E8 */	lfs f2, lbl_805AC408@sda21(r2)
/* 8019AAE4 00197A44  EC 01 00 28 */	fsubs f0, f1, f0
/* 8019AAE8 00197A48  EF A2 00 32 */	fmuls f29, f2, f0
/* 8019AAEC 00197A4C  48 00 00 14 */	b lbl_8019AB00
lbl_8019AAF0:
/* 8019AAF0 00197A50  80 6D A1 20 */	lwz r3, gpTweakGame@sda21(r13)
/* 8019AAF4 00197A54  C0 12 00 64 */	lfs f0, 0x64(r18)
/* 8019AAF8 00197A58  C0 23 00 4C */	lfs f1, 0x4c(r3)
/* 8019AAFC 00197A5C  EF A1 00 32 */	fmuls f29, f1, f0
lbl_8019AB00:
/* 8019AB00 00197A60  2C 1C 00 00 */	cmpwi r28, 0
/* 8019AB04 00197A64  40 82 00 10 */	bne lbl_8019AB14
/* 8019AB08 00197A68  38 61 02 50 */	addi r3, r1, 0x250
/* 8019AB0C 00197A6C  48 1E 25 35 */	bl PSMTXIdentity
/* 8019AB10 00197A70  48 00 00 0C */	b lbl_8019AB1C
lbl_8019AB14:
/* 8019AB14 00197A74  38 61 02 50 */	addi r3, r1, 0x250
/* 8019AB18 00197A78  48 1E 25 29 */	bl PSMTXIdentity
lbl_8019AB1C:
/* 8019AB1C 00197A7C  38 61 02 50 */	addi r3, r1, 0x250
/* 8019AB20 00197A80  38 80 00 27 */	li r4, 0x27
/* 8019AB24 00197A84  38 A0 00 01 */	li r5, 1
/* 8019AB28 00197A88  48 1E 19 69 */	bl GXLoadTexMtxImm
/* 8019AB2C 00197A8C  FC 20 E8 90 */	fmr f1, f29
/* 8019AB30 00197A90  C0 62 A6 DC */	lfs f3, lbl_805AC3FC@sda21(r2)
/* 8019AB34 00197A94  FC 40 E8 50 */	fneg f2, f29
/* 8019AB38 00197A98  38 61 02 20 */	addi r3, r1, 0x220
/* 8019AB3C 00197A9C  48 1E 27 2D */	bl PSMTXScale
/* 8019AB40 00197AA0  C0 02 A6 E8 */	lfs f0, lbl_805AC408@sda21(r2)
/* 8019AB44 00197AA4  38 61 02 20 */	addi r3, r1, 0x220
/* 8019AB48 00197AA8  38 80 00 40 */	li r4, 0x40
/* 8019AB4C 00197AAC  38 A0 00 00 */	li r5, 0
/* 8019AB50 00197AB0  D0 01 02 2C */	stfs f0, 0x22c(r1)
/* 8019AB54 00197AB4  D0 01 02 3C */	stfs f0, 0x23c(r1)
/* 8019AB58 00197AB8  48 1E 19 39 */	bl GXLoadTexMtxImm
/* 8019AB5C 00197ABC  93 01 01 34 */	stw r24, 0x134(r1)
/* 8019AB60 00197AC0  7F 0E C3 78 */	mr r14, r24
/* 8019AB64 00197AC4  7F 03 C3 78 */	mr r3, r24
/* 8019AB68 00197AC8  38 80 00 01 */	li r4, 1
/* 8019AB6C 00197ACC  38 A0 00 01 */	li r5, 1
/* 8019AB70 00197AD0  38 C0 00 27 */	li r6, 0x27
/* 8019AB74 00197AD4  38 E0 00 01 */	li r7, 1
/* 8019AB78 00197AD8  39 00 00 40 */	li r8, 0x40
/* 8019AB7C 00197ADC  3B 18 00 01 */	addi r24, r24, 1
/* 8019AB80 00197AE0  48 16 DB 4D */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AB84 00197AE4  2C 1C 00 00 */	cmpwi r28, 0
/* 8019AB88 00197AE8  C0 22 A6 E8 */	lfs f1, lbl_805AC408@sda21(r2)
/* 8019AB8C 00197AEC  39 E0 00 2A */	li r15, 0x2a
/* 8019AB90 00197AF0  41 82 00 0C */	beq lbl_8019AB9C
/* 8019AB94 00197AF4  C0 12 01 18 */	lfs f0, 0x118(r18)
/* 8019AB98 00197AF8  48 00 00 08 */	b lbl_8019ABA0
lbl_8019AB9C:
/* 8019AB9C 00197AFC  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
lbl_8019ABA0:
/* 8019ABA0 00197B00  EC 21 00 32 */	fmuls f1, f1, f0
/* 8019ABA4 00197B04  80 7F 00 80 */	lwz r3, 0x80(r31)
/* 8019ABA8 00197B08  80 1F 00 90 */	lwz r0, 0x90(r31)
/* 8019ABAC 00197B0C  38 81 00 90 */	addi r4, r1, 0x90
/* 8019ABB0 00197B10  90 61 00 90 */	stw r3, 0x90(r1)
/* 8019ABB4 00197B14  38 60 00 01 */	li r3, 1
/* 8019ABB8 00197B18  81 1F 00 84 */	lwz r8, 0x84(r31)
/* 8019ABBC 00197B1C  FC 00 08 50 */	fneg f0, f1
/* 8019ABC0 00197B20  90 01 00 A0 */	stw r0, 0xa0(r1)
/* 8019ABC4 00197B24  38 A0 00 01 */	li r5, 1
/* 8019ABC8 00197B28  80 FF 00 88 */	lwz r7, 0x88(r31)
/* 8019ABCC 00197B2C  80 DF 00 8C */	lwz r6, 0x8c(r31)
/* 8019ABD0 00197B30  80 1F 00 94 */	lwz r0, 0x94(r31)
/* 8019ABD4 00197B34  91 01 00 94 */	stw r8, 0x94(r1)
/* 8019ABD8 00197B38  90 E1 00 98 */	stw r7, 0x98(r1)
/* 8019ABDC 00197B3C  90 C1 00 9C */	stw r6, 0x9c(r1)
/* 8019ABE0 00197B40  90 01 00 A4 */	stw r0, 0xa4(r1)
/* 8019ABE4 00197B44  D0 21 00 90 */	stfs f1, 0x90(r1)
/* 8019ABE8 00197B48  D0 01 00 A0 */	stfs f0, 0xa0(r1)
/* 8019ABEC 00197B4C  48 1E 02 DD */	bl GXSetIndTexMtx
/* 8019ABF0 00197B50  38 60 00 00 */	li r3, 0
/* 8019ABF4 00197B54  38 80 00 00 */	li r4, 0
/* 8019ABF8 00197B58  38 A0 00 00 */	li r5, 0
/* 8019ABFC 00197B5C  48 1E 04 2D */	bl GXSetIndTexCoordScale
/* 8019AC00 00197B60  80 A1 01 54 */	lwz r5, 0x154(r1)
/* 8019AC04 00197B64  7D C4 73 78 */	mr r4, r14
/* 8019AC08 00197B68  38 60 00 00 */	li r3, 0
/* 8019AC0C 00197B6C  48 1E 05 99 */	bl GXSetIndTexOrder
/* 8019AC10 00197B70  38 60 00 01 */	li r3, 1
/* 8019AC14 00197B74  48 16 DA 7D */	bl SetNumIndStages__3CGXFUc
lbl_8019AC18:
/* 8019AC18 00197B78  2C 1C 00 00 */	cmpwi r28, 0
/* 8019AC1C 00197B7C  41 82 01 2C */	beq lbl_8019AD48
/* 8019AC20 00197B80  C0 76 00 10 */	lfs f3, 0x10(r22)
/* 8019AC24 00197B84  C0 56 00 04 */	lfs f2, 4(r22)
/* 8019AC28 00197B88  C0 36 00 0C */	lfs f1, 0xc(r22)
/* 8019AC2C 00197B8C  C0 16 00 00 */	lfs f0, 0(r22)
/* 8019AC30 00197B90  EC 43 10 28 */	fsubs f2, f3, f2
/* 8019AC34 00197B94  EC 01 00 28 */	fsubs f0, f1, f0
/* 8019AC38 00197B98  D0 41 00 28 */	stfs f2, 0x28(r1)
/* 8019AC3C 00197B9C  FC 00 10 40 */	fcmpo cr0, f0, f2
/* 8019AC40 00197BA0  D0 01 00 2C */	stfs f0, 0x2c(r1)
/* 8019AC44 00197BA4  40 80 00 0C */	bge lbl_8019AC50
/* 8019AC48 00197BA8  38 61 00 28 */	addi r3, r1, 0x28
/* 8019AC4C 00197BAC  48 00 00 08 */	b lbl_8019AC54
lbl_8019AC50:
/* 8019AC50 00197BB0  38 61 00 2C */	addi r3, r1, 0x2c
lbl_8019AC54:
/* 8019AC54 00197BB4  C3 A3 00 00 */	lfs f29, 0(r3)
/* 8019AC58 00197BB8  7E C4 B3 78 */	mr r4, r22
/* 8019AC5C 00197BBC  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 8019AC60 00197BC0  38 61 00 78 */	addi r3, r1, 0x78
/* 8019AC64 00197BC4  80 1F 00 98 */	lwz r0, 0x98(r31)
/* 8019AC68 00197BC8  EF 80 E8 24 */	fdivs f28, f0, f29
/* 8019AC6C 00197BCC  82 1F 00 9C */	lwz r16, 0x9c(r31)
/* 8019AC70 00197BD0  90 01 01 F0 */	stw r0, 0x1f0(r1)
/* 8019AC74 00197BD4  81 DF 00 A0 */	lwz r14, 0xa0(r31)
/* 8019AC78 00197BD8  81 9F 00 A4 */	lwz r12, 0xa4(r31)
/* 8019AC7C 00197BDC  81 7F 00 A8 */	lwz r11, 0xa8(r31)
/* 8019AC80 00197BE0  81 5F 00 AC */	lwz r10, 0xac(r31)
/* 8019AC84 00197BE4  81 3F 00 B0 */	lwz r9, 0xb0(r31)
/* 8019AC88 00197BE8  81 1F 00 B4 */	lwz r8, 0xb4(r31)
/* 8019AC8C 00197BEC  80 FF 00 B8 */	lwz r7, 0xb8(r31)
/* 8019AC90 00197BF0  80 DF 00 BC */	lwz r6, 0xbc(r31)
/* 8019AC94 00197BF4  80 BF 00 C0 */	lwz r5, 0xc0(r31)
/* 8019AC98 00197BF8  80 1F 00 C4 */	lwz r0, 0xc4(r31)
/* 8019AC9C 00197BFC  92 01 01 F4 */	stw r16, 0x1f4(r1)
/* 8019ACA0 00197C00  91 C1 01 F8 */	stw r14, 0x1f8(r1)
/* 8019ACA4 00197C04  91 81 01 FC */	stw r12, 0x1fc(r1)
/* 8019ACA8 00197C08  91 61 02 00 */	stw r11, 0x200(r1)
/* 8019ACAC 00197C0C  91 41 02 04 */	stw r10, 0x204(r1)
/* 8019ACB0 00197C10  91 21 02 08 */	stw r9, 0x208(r1)
/* 8019ACB4 00197C14  91 01 02 0C */	stw r8, 0x20c(r1)
/* 8019ACB8 00197C18  90 E1 02 10 */	stw r7, 0x210(r1)
/* 8019ACBC 00197C1C  90 C1 02 14 */	stw r6, 0x214(r1)
/* 8019ACC0 00197C20  90 A1 02 18 */	stw r5, 0x218(r1)
/* 8019ACC4 00197C24  90 01 02 1C */	stw r0, 0x21c(r1)
/* 8019ACC8 00197C28  D3 81 01 F0 */	stfs f28, 0x1f0(r1)
/* 8019ACCC 00197C2C  48 19 C9 41 */	bl GetCenterPoint__6CAABoxCFv
/* 8019ACD0 00197C30  C0 01 00 78 */	lfs f0, 0x78(r1)
/* 8019ACD4 00197C34  7E C4 B3 78 */	mr r4, r22
/* 8019ACD8 00197C38  C0 22 A6 E8 */	lfs f1, lbl_805AC408@sda21(r2)
/* 8019ACDC 00197C3C  38 61 00 6C */	addi r3, r1, 0x6c
/* 8019ACE0 00197C40  FC 00 00 50 */	fneg f0, f0
/* 8019ACE4 00197C44  D3 81 02 04 */	stfs f28, 0x204(r1)
/* 8019ACE8 00197C48  EC 00 E8 24 */	fdivs f0, f0, f29
/* 8019ACEC 00197C4C  EC 01 00 2A */	fadds f0, f1, f0
/* 8019ACF0 00197C50  D0 01 01 FC */	stfs f0, 0x1fc(r1)
/* 8019ACF4 00197C54  48 19 C9 19 */	bl GetCenterPoint__6CAABoxCFv
/* 8019ACF8 00197C58  C0 01 00 70 */	lfs f0, 0x70(r1)
/* 8019ACFC 00197C5C  7D E4 7B 78 */	mr r4, r15
/* 8019AD00 00197C60  C0 22 A6 E8 */	lfs f1, lbl_805AC408@sda21(r2)
/* 8019AD04 00197C64  38 61 01 F0 */	addi r3, r1, 0x1f0
/* 8019AD08 00197C68  FC 00 00 50 */	fneg f0, f0
/* 8019AD0C 00197C6C  38 A0 00 01 */	li r5, 1
/* 8019AD10 00197C70  EC 00 E8 24 */	fdivs f0, f0, f29
/* 8019AD14 00197C74  EC 01 00 2A */	fadds f0, f1, f0
/* 8019AD18 00197C78  D0 01 02 0C */	stfs f0, 0x20c(r1)
/* 8019AD1C 00197C7C  48 1E 17 75 */	bl GXLoadTexMtxImm
/* 8019AD20 00197C80  93 01 01 30 */	stw r24, 0x130(r1)
/* 8019AD24 00197C84  7F 03 C3 78 */	mr r3, r24
/* 8019AD28 00197C88  7D E6 7B 78 */	mr r6, r15
/* 8019AD2C 00197C8C  38 80 00 01 */	li r4, 1
/* 8019AD30 00197C90  38 A0 00 00 */	li r5, 0
/* 8019AD34 00197C94  38 E0 00 00 */	li r7, 0
/* 8019AD38 00197C98  39 00 00 7D */	li r8, 0x7d
/* 8019AD3C 00197C9C  3B 18 00 01 */	addi r24, r24, 1
/* 8019AD40 00197CA0  48 16 D9 8D */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AD44 00197CA4  39 EF 00 03 */	addi r15, r15, 3
lbl_8019AD48:
/* 8019AD48 00197CA8  28 1D 00 00 */	cmplwi r29, 0
/* 8019AD4C 00197CAC  41 82 02 5C */	beq lbl_8019AFA8
/* 8019AD50 00197CB0  80 F3 08 CC */	lwz r7, 0x8cc(r19)
/* 8019AD54 00197CB4  7E E3 BB 78 */	mr r3, r23
/* 8019AD58 00197CB8  80 D3 08 50 */	lwz r6, 0x850(r19)
/* 8019AD5C 00197CBC  7E 64 9B 78 */	mr r4, r19
/* 8019AD60 00197CC0  54 E5 18 38 */	slwi r5, r7, 3
/* 8019AD64 00197CC4  90 E1 00 20 */	stw r7, 0x20(r1)
/* 8019AD68 00197CC8  80 C6 00 20 */	lwz r6, 0x20(r6)
/* 8019AD6C 00197CCC  38 05 00 04 */	addi r0, r5, 4
/* 8019AD70 00197CD0  90 E1 00 24 */	stw r7, 0x24(r1)
/* 8019AD74 00197CD4  7C A6 00 2E */	lwzx r5, r6, r0
/* 8019AD78 00197CD8  C3 82 A6 DC */	lfs f28, lbl_805AC3FC@sda21(r2)
/* 8019AD7C 00197CDC  80 A5 01 2C */	lwz r5, 0x12c(r5)
/* 8019AD80 00197CE0  C3 A5 11 28 */	lfs f29, 0x1128(r5)
/* 8019AD84 00197CE4  4B F6 5B E9 */	bl GetNextConnectedWater__12CScriptWaterFR13CStateManager
/* 8019AD88 00197CE8  C0 57 01 F8 */	lfs f2, 0x1f8(r23)
/* 8019AD8C 00197CEC  7C 6E 1B 78 */	mr r14, r3
/* 8019AD90 00197CF0  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 8019AD94 00197CF4  C0 02 A7 00 */	lfs f0, lbl_805AC420@sda21(r2)
/* 8019AD98 00197CF8  EC 22 08 28 */	fsubs f1, f2, f1
/* 8019AD9C 00197CFC  FC 20 0A 10 */	fabs f1, f1
/* 8019ADA0 00197D00  FC 01 00 40 */	fcmpo cr0, f1, f0
/* 8019ADA4 00197D04  41 80 00 20 */	blt lbl_8019ADC4
/* 8019ADA8 00197D08  28 0E 00 00 */	cmplwi r14, 0
/* 8019ADAC 00197D0C  41 82 00 18 */	beq lbl_8019ADC4
/* 8019ADB0 00197D10  41 82 00 68 */	beq lbl_8019AE18
/* 8019ADB4 00197D14  80 6E 01 B4 */	lwz r3, 0x1b4(r14)
/* 8019ADB8 00197D18  88 03 00 EC */	lbz r0, 0xec(r3)
/* 8019ADBC 00197D1C  28 00 00 00 */	cmplwi r0, 0
/* 8019ADC0 00197D20  40 82 00 58 */	bne lbl_8019AE18
lbl_8019ADC4:
/* 8019ADC4 00197D24  93 21 01 58 */	stw r25, 0x158(r1)
/* 8019ADC8 00197D28  7F 24 CB 78 */	mr r4, r25
/* 8019ADCC 00197D2C  80 72 00 E8 */	lwz r3, 0xe8(r18)
/* 8019ADD0 00197D30  38 A0 00 01 */	li r5, 1
/* 8019ADD4 00197D34  48 17 49 69 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019ADD8 00197D38  7E 43 93 78 */	mr r3, r18
/* 8019ADDC 00197D3C  7E A4 AB 78 */	mr r4, r21
/* 8019ADE0 00197D40  7E 85 A3 78 */	mr r5, r20
/* 8019ADE4 00197D44  7E C6 B3 78 */	mr r6, r22
/* 8019ADE8 00197D48  7D E7 7B 78 */	mr r7, r15
/* 8019ADEC 00197D4C  48 00 0C 15 */	bl CalculateLightmapMtx__14CFluidPlaneCPUFRC12CTransform4fRC12CTransform4fRC6CAABoxi
/* 8019ADF0 00197D50  93 01 01 38 */	stw r24, 0x138(r1)
/* 8019ADF4 00197D54  7F 03 C3 78 */	mr r3, r24
/* 8019ADF8 00197D58  7D E6 7B 78 */	mr r6, r15
/* 8019ADFC 00197D5C  38 80 00 01 */	li r4, 1
/* 8019AE00 00197D60  38 A0 00 00 */	li r5, 0
/* 8019AE04 00197D64  38 E0 00 00 */	li r7, 0
/* 8019AE08 00197D68  39 00 00 7D */	li r8, 0x7d
/* 8019AE0C 00197D6C  3B 18 00 01 */	addi r24, r24, 1
/* 8019AE10 00197D70  48 16 D8 BD */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AE14 00197D74  48 00 01 6C */	b lbl_8019AF80
lbl_8019AE18:
/* 8019AE18 00197D78  28 0E 00 00 */	cmplwi r14, 0
/* 8019AE1C 00197D7C  41 82 01 64 */	beq lbl_8019AF80
/* 8019AE20 00197D80  80 6E 01 B4 */	lwz r3, 0x1b4(r14)
/* 8019AE24 00197D84  88 03 00 EC */	lbz r0, 0xec(r3)
/* 8019AE28 00197D88  28 00 00 00 */	cmplwi r0, 0
/* 8019AE2C 00197D8C  41 82 01 54 */	beq lbl_8019AF80
/* 8019AE30 00197D90  C0 57 01 F8 */	lfs f2, 0x1f8(r23)
/* 8019AE34 00197D94  C0 22 A6 DC */	lfs f1, lbl_805AC3FC@sda21(r2)
/* 8019AE38 00197D98  C0 02 A7 00 */	lfs f0, lbl_805AC420@sda21(r2)
/* 8019AE3C 00197D9C  EC 22 08 28 */	fsubs f1, f2, f1
/* 8019AE40 00197DA0  FC 20 0A 10 */	fabs f1, f1
/* 8019AE44 00197DA4  FC 01 00 40 */	fcmpo cr0, f1, f0
/* 8019AE48 00197DA8  40 80 00 58 */	bge lbl_8019AEA0
/* 8019AE4C 00197DAC  93 21 01 58 */	stw r25, 0x158(r1)
/* 8019AE50 00197DB0  7F 24 CB 78 */	mr r4, r25
/* 8019AE54 00197DB4  80 63 00 E8 */	lwz r3, 0xe8(r3)
/* 8019AE58 00197DB8  38 A0 00 01 */	li r5, 1
/* 8019AE5C 00197DBC  48 17 48 E1 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019AE60 00197DC0  80 6E 01 B4 */	lwz r3, 0x1b4(r14)
/* 8019AE64 00197DC4  7E A4 AB 78 */	mr r4, r21
/* 8019AE68 00197DC8  7E 85 A3 78 */	mr r5, r20
/* 8019AE6C 00197DCC  7E C6 B3 78 */	mr r6, r22
/* 8019AE70 00197DD0  7D E7 7B 78 */	mr r7, r15
/* 8019AE74 00197DD4  48 00 0B 8D */	bl CalculateLightmapMtx__14CFluidPlaneCPUFRC12CTransform4fRC12CTransform4fRC6CAABoxi
/* 8019AE78 00197DD8  93 01 01 38 */	stw r24, 0x138(r1)
/* 8019AE7C 00197DDC  7F 03 C3 78 */	mr r3, r24
/* 8019AE80 00197DE0  7D E6 7B 78 */	mr r6, r15
/* 8019AE84 00197DE4  38 80 00 01 */	li r4, 1
/* 8019AE88 00197DE8  38 A0 00 00 */	li r5, 0
/* 8019AE8C 00197DEC  38 E0 00 00 */	li r7, 0
/* 8019AE90 00197DF0  39 00 00 7D */	li r8, 0x7d
/* 8019AE94 00197DF4  3B 18 00 01 */	addi r24, r24, 1
/* 8019AE98 00197DF8  48 16 D8 35 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AE9C 00197DFC  48 00 00 E4 */	b lbl_8019AF80
lbl_8019AEA0:
/* 8019AEA0 00197E00  93 21 01 58 */	stw r25, 0x158(r1)
/* 8019AEA4 00197E04  7F 24 CB 78 */	mr r4, r25
/* 8019AEA8 00197E08  80 72 00 E8 */	lwz r3, 0xe8(r18)
/* 8019AEAC 00197E0C  38 A0 00 01 */	li r5, 1
/* 8019AEB0 00197E10  3B 39 00 01 */	addi r25, r25, 1
/* 8019AEB4 00197E14  48 17 48 89 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019AEB8 00197E18  7E 43 93 78 */	mr r3, r18
/* 8019AEBC 00197E1C  7E A4 AB 78 */	mr r4, r21
/* 8019AEC0 00197E20  7E 85 A3 78 */	mr r5, r20
/* 8019AEC4 00197E24  7E C6 B3 78 */	mr r6, r22
/* 8019AEC8 00197E28  7D E7 7B 78 */	mr r7, r15
/* 8019AECC 00197E2C  48 00 0B 35 */	bl CalculateLightmapMtx__14CFluidPlaneCPUFRC12CTransform4fRC12CTransform4fRC6CAABoxi
/* 8019AED0 00197E30  93 01 01 38 */	stw r24, 0x138(r1)
/* 8019AED4 00197E34  7F 03 C3 78 */	mr r3, r24
/* 8019AED8 00197E38  7D E6 7B 78 */	mr r6, r15
/* 8019AEDC 00197E3C  38 80 00 01 */	li r4, 1
/* 8019AEE0 00197E40  38 A0 00 00 */	li r5, 0
/* 8019AEE4 00197E44  38 E0 00 00 */	li r7, 0
/* 8019AEE8 00197E48  39 00 00 7D */	li r8, 0x7d
/* 8019AEEC 00197E4C  3B 18 00 01 */	addi r24, r24, 1
/* 8019AEF0 00197E50  48 16 D7 DD */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AEF4 00197E54  80 6E 01 B4 */	lwz r3, 0x1b4(r14)
/* 8019AEF8 00197E58  7F 24 CB 78 */	mr r4, r25
/* 8019AEFC 00197E5C  93 21 01 5C */	stw r25, 0x15c(r1)
/* 8019AF00 00197E60  38 A0 00 01 */	li r5, 1
/* 8019AF04 00197E64  80 63 00 E8 */	lwz r3, 0xe8(r3)
/* 8019AF08 00197E68  48 17 48 35 */	bl Load__8CTextureCF11_GXTexMapIDQ28CTexture10EClampMode
/* 8019AF0C 00197E6C  80 6E 01 B4 */	lwz r3, 0x1b4(r14)
/* 8019AF10 00197E70  7E A4 AB 78 */	mr r4, r21
/* 8019AF14 00197E74  7E 85 A3 78 */	mr r5, r20
/* 8019AF18 00197E78  7E C6 B3 78 */	mr r6, r22
/* 8019AF1C 00197E7C  38 EF 00 03 */	addi r7, r15, 3
/* 8019AF20 00197E80  48 00 0A E1 */	bl CalculateLightmapMtx__14CFluidPlaneCPUFRC12CTransform4fRC12CTransform4fRC6CAABoxi
/* 8019AF24 00197E84  93 01 01 3C */	stw r24, 0x13c(r1)
/* 8019AF28 00197E88  7F 03 C3 78 */	mr r3, r24
/* 8019AF2C 00197E8C  38 CF 00 03 */	addi r6, r15, 3
/* 8019AF30 00197E90  38 80 00 01 */	li r4, 1
/* 8019AF34 00197E94  38 A0 00 00 */	li r5, 0
/* 8019AF38 00197E98  38 E0 00 00 */	li r7, 0
/* 8019AF3C 00197E9C  39 00 00 7D */	li r8, 0x7d
/* 8019AF40 00197EA0  3B 18 00 01 */	addi r24, r24, 1
/* 8019AF44 00197EA4  48 16 D7 89 */	bl SetTexCoordGen__3CGXF13_GXTexCoordID13_GXTexGenType12_GXTexGenSrc9_GXTexMtxUc11_GXPTTexMtx
/* 8019AF48 00197EA8  C0 17 01 F8 */	lfs f0, 0x1f8(r23)
/* 8019AF4C 00197EAC  38 61 00 1C */	addi r3, r1, 0x1c
/* 8019AF50 00197EB0  C0 82 A6 DC */	lfs f4, lbl_805AC3FC@sda21(r2)
/* 8019AF54 00197EB4  EC 3D 00 32 */	fmuls f1, f29, f0
/* 8019AF58 00197EB8  EC 64 00 28 */	fsubs f3, f4, f0
/* 8019AF5C 00197EBC  EC 04 08 28 */	fsubs f0, f4, f1
/* 8019AF60 00197EC0  FC 40 08 90 */	fmr f2, f1
/* 8019AF64 00197EC4  EF 83 00 24 */	fdivs f28, f3, f0
/* 8019AF68 00197EC8  FC 60 08 90 */	fmr f3, f1
/* 8019AF6C 00197ECC  48 1C 84 81 */	bl __ct__6CColorFffff
/* 8019AF70 00197ED0  7C 64 1B 78 */	mr r4, r3
/* 8019AF74 00197ED4  38 60 00 03 */	li r3, 3
/* 8019AF78 00197ED8  48 16 DC CD */	bl SetTevKColor__3CGXF14_GXTevKColorIDRC8_GXColor
/* 8019AF7C 00197EDC  3B 40 00 01 */	li r26, 1
lbl_8019AF80:
/* 8019AF80 00197EE0  EF 9C 07 72 */	fmuls f28, f28, f29
/* 8019AF84 00197EE4  C0 82 A6 DC */	lfs f4, lbl_805AC3FC@sda21(r2)
/* 8019AF88 00197EE8  38 61 00 18 */	addi r3, r1, 0x18
/* 8019AF8C 00197EEC  FC 20 E0 90 */	fmr f1, f28
/* 8019AF90 00197EF0  FC 40 E0 90 */	fmr f2, f28
/* 8019AF94 00197EF4  FC 60 E0 90 */	fmr f3, f28
/* 8019AF98 00197EF8  48 1C 84 55 */	bl __ct__6CColorFffff
/* 8019AF9C 00197EFC  7C 64 1B 78 */	mr r4, r3
/* 8019AFA0 00197F00  38 60 00 02 */	li r3, 2
/* 8019AFA4 00197F04  48 16 DC A1 */	bl SetTevKColor__3CGXF14_GXTevKColorIDRC8_GXColor
lbl_8019AFA8:
/* 8019AFA8 00197F08  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 8019AFAC 00197F0C  7E 84 A3 78 */	mr r4, r20
/* 8019AFB0 00197F10  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 8019AFB4 00197F14  38 61 00 60 */	addi r3, r1, 0x60
/* 8019AFB8 00197F18  D0 21 00 54 */	stfs f1, 0x54(r1)
/* 8019AFBC 00197F1C  38 A1 00 54 */	addi r5, r1, 0x54
/* 8019AFC0 00197F20  D0 21 00 58 */	stfs f1, 0x58(r1)
/* 8019AFC4 00197F24  D0 01 00 5C */	stfs f0, 0x5c(r1)
/* 8019AFC8 00197F28  48 17 7A 5D */	bl TransposeRotate__12CTransform4fCFRC9CVector3f
/* 8019AFCC 00197F2C  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 8019AFD0 00197F30  3C 60 80 5A */	lis r3, mViewMatrix__9CGraphics@ha
/* 8019AFD4 00197F34  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 8019AFD8 00197F38  38 83 61 D4 */	addi r4, r3, mViewMatrix__9CGraphics@l
/* 8019AFDC 00197F3C  D0 21 00 3C */	stfs f1, 0x3c(r1)
/* 8019AFE0 00197F40  38 61 01 60 */	addi r3, r1, 0x160
/* 8019AFE4 00197F44  C3 A1 00 60 */	lfs f29, 0x60(r1)
/* 8019AFE8 00197F48  D0 01 00 40 */	stfs f0, 0x40(r1)
/* 8019AFEC 00197F4C  C3 C1 00 64 */	lfs f30, 0x64(r1)
/* 8019AFF0 00197F50  D0 21 00 44 */	stfs f1, 0x44(r1)
/* 8019AFF4 00197F54  C3 81 00 68 */	lfs f28, 0x68(r1)
/* 8019AFF8 00197F58  48 17 7C A5 */	bl GetQuickInverse__12CTransform4fCFv
/* 8019AFFC 00197F5C  38 61 00 48 */	addi r3, r1, 0x48
/* 8019B000 00197F60  38 81 01 60 */	addi r4, r1, 0x160
/* 8019B004 00197F64  38 A1 00 3C */	addi r5, r1, 0x3c
/* 8019B008 00197F68  48 17 7A 1D */	bl TransposeRotate__12CTransform4fCFRC9CVector3f
/* 8019B00C 00197F6C  C0 01 00 4C */	lfs f0, 0x4c(r1)
/* 8019B010 00197F70  C0 41 00 48 */	lfs f2, 0x48(r1)
/* 8019B014 00197F74  EC 3E 00 32 */	fmuls f1, f30, f0
/* 8019B018 00197F78  C0 61 00 50 */	lfs f3, 0x50(r1)
/* 8019B01C 00197F7C  C0 02 A6 E0 */	lfs f0, lbl_805AC400@sda21(r2)
/* 8019B020 00197F80  EC 3D 08 BA */	fmadds f1, f29, f2, f1
/* 8019B024 00197F84  EC 3C 08 FA */	fmadds f1, f28, f3, f1
/* 8019B028 00197F88  FC 01 00 40 */	fcmpo cr0, f1, f0
/* 8019B02C 00197F8C  40 80 00 08 */	bge lbl_8019B034
/* 8019B030 00197F90  FC 20 08 50 */	fneg f1, f1
lbl_8019B034:
/* 8019B034 00197F94  C0 82 A6 DC */	lfs f4, lbl_805AC3FC@sda21(r2)
/* 8019B038 00197F98  2C 1C 00 02 */	cmpwi r28, 2
/* 8019B03C 00197F9C  C0 52 01 0C */	lfs f2, 0x10c(r18)
/* 8019B040 00197FA0  38 61 00 14 */	addi r3, r1, 0x14
/* 8019B044 00197FA4  C0 12 01 10 */	lfs f0, 0x110(r18)
/* 8019B048 00197FA8  EC 24 08 28 */	fsubs f1, f4, f1
/* 8019B04C 00197FAC  EC 00 10 28 */	fsubs f0, f0, f2
/* 8019B050 00197FB0  EC 21 10 3A */	fmadds f1, f1, f0, f2
/* 8019B054 00197FB4  FC 40 08 90 */	fmr f2, f1
/* 8019B058 00197FB8  FC 60 08 90 */	fmr f3, f1
/* 8019B05C 00197FBC  40 82 00 08 */	bne lbl_8019B064
/* 8019B060 00197FC0  48 00 00 08 */	b lbl_8019B068
lbl_8019B064:
/* 8019B064 00197FC4  FC 80 F8 90 */	fmr f4, f31
lbl_8019B068:
/* 8019B068 00197FC8  48 1C 83 85 */	bl __ct__6CColorFffff
/* 8019B06C 00197FCC  7C 64 1B 78 */	mr r4, r3
/* 8019B070 00197FD0  38 60 00 00 */	li r3, 0
/* 8019B074 00197FD4  48 16 DB D1 */	bl SetTevKColor__3CGXF14_GXTevKColorIDRC8_GXColor
/* 8019B078 00197FD8  C0 32 01 14 */	lfs f1, 0x114(r18)
/* 8019B07C 00197FDC  38 61 00 10 */	addi r3, r1, 0x10
/* 8019B080 00197FE0  C0 82 A6 DC */	lfs f4, lbl_805AC3FC@sda21(r2)
/* 8019B084 00197FE4  FC 40 08 90 */	fmr f2, f1
/* 8019B088 00197FE8  FC 60 08 90 */	fmr f3, f1
/* 8019B08C 00197FEC  48 1C 83 61 */	bl __ct__6CColorFffff
/* 8019B090 00197FF0  7C 64 1B 78 */	mr r4, r3
/* 8019B094 00197FF4  38 60 00 01 */	li r3, 1
/* 8019B098 00197FF8  48 16 DB AD */	bl SetTevKColor__3CGXF14_GXTevKColorIDRC8_GXColor
/* 8019B09C 00197FFC  57 03 06 3E */	clrlwi r3, r24, 0x18
/* 8019B0A0 00198000  48 16 DD 75 */	bl SetNumTexGens__3CGXFUc
/* 8019B0A4 00198004  80 12 00 44 */	lwz r0, 0x44(r18)
/* 8019B0A8 00198008  39 C0 00 00 */	li r14, 0
/* 8019B0AC 0019800C  2C 00 00 02 */	cmpwi r0, 2
/* 8019B0B0 00198010  41 82 05 0C */	beq lbl_8019B5BC
/* 8019B0B4 00198014  40 80 00 14 */	bge lbl_8019B0C8
/* 8019B0B8 00198018  2C 00 00 00 */	cmpwi r0, 0
/* 8019B0BC 0019801C  41 82 00 18 */	beq lbl_8019B0D4
/* 8019B0C0 00198020  40 80 02 EC */	bge lbl_8019B3AC
/* 8019B0C4 00198024  48 00 08 10 */	b lbl_8019B8D4
lbl_8019B0C8:
/* 8019B0C8 00198028  2C 00 00 05 */	cmpwi r0, 5
/* 8019B0CC 0019802C  41 82 06 C8 */	beq lbl_8019B794
/* 8019B0D0 00198030  40 80 08 04 */	bge lbl_8019B8D4
lbl_8019B0D4:
/* 8019B0D4 00198034  28 1D 00 00 */	cmplwi r29, 0
/* 8019B0D8 00198038  41 82 00 D4 */	beq lbl_8019B1AC
/* 8019B0DC 0019803C  57 40 06 3F */	clrlwi. r0, r26, 0x18
/* 8019B0E0 00198040  80 81 01 38 */	lwz r4, 0x138(r1)
/* 8019B0E4 00198044  80 A1 01 58 */	lwz r5, 0x158(r1)
/* 8019B0E8 00198048  38 60 00 00 */	li r3, 0
/* 8019B0EC 0019804C  38 C0 00 05 */	li r6, 5
/* 8019B0F0 00198050  41 82 00 08 */	beq lbl_8019B0F8
/* 8019B0F4 00198054  38 C0 00 FF */	li r6, 0xff
lbl_8019B0F8:
/* 8019B0F8 00198058  48 16 D8 55 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B0FC 0019805C  57 40 06 3F */	clrlwi. r0, r26, 0x18
/* 8019B100 00198060  38 60 00 00 */	li r3, 0
/* 8019B104 00198064  38 80 00 0F */	li r4, 0xf
/* 8019B108 00198068  38 A0 00 08 */	li r5, 8
/* 8019B10C 0019806C  38 C0 00 0E */	li r6, 0xe
/* 8019B110 00198070  38 E0 00 0A */	li r7, 0xa
/* 8019B114 00198074  41 82 00 08 */	beq lbl_8019B11C
/* 8019B118 00198078  38 E0 00 0F */	li r7, 0xf
lbl_8019B11C:
/* 8019B11C 0019807C  48 16 DA D1 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B120 00198080  38 60 00 00 */	li r3, 0
/* 8019B124 00198084  38 80 00 00 */	li r4, 0
/* 8019B128 00198088  38 A0 00 00 */	li r5, 0
/* 8019B12C 0019808C  38 C0 00 00 */	li r6, 0
/* 8019B130 00198090  38 E0 00 01 */	li r7, 1
/* 8019B134 00198094  39 00 00 03 */	li r8, 3
/* 8019B138 00198098  48 16 DA 01 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B13C 0019809C  38 60 00 00 */	li r3, 0
/* 8019B140 001980A0  38 80 00 0E */	li r4, 0xe
/* 8019B144 001980A4  48 16 D8 9D */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B148 001980A8  57 40 06 3F */	clrlwi. r0, r26, 0x18
/* 8019B14C 001980AC  39 C0 00 01 */	li r14, 1
/* 8019B150 001980B0  41 82 00 5C */	beq lbl_8019B1AC
/* 8019B154 001980B4  80 81 01 3C */	lwz r4, 0x13c(r1)
/* 8019B158 001980B8  38 60 00 01 */	li r3, 1
/* 8019B15C 001980BC  80 A1 01 5C */	lwz r5, 0x15c(r1)
/* 8019B160 001980C0  38 C0 00 05 */	li r6, 5
/* 8019B164 001980C4  48 16 D7 E9 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B168 001980C8  38 60 00 01 */	li r3, 1
/* 8019B16C 001980CC  38 80 00 06 */	li r4, 6
/* 8019B170 001980D0  38 A0 00 08 */	li r5, 8
/* 8019B174 001980D4  38 C0 00 0E */	li r6, 0xe
/* 8019B178 001980D8  38 E0 00 0A */	li r7, 0xa
/* 8019B17C 001980DC  48 16 DA 71 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B180 001980E0  38 60 00 01 */	li r3, 1
/* 8019B184 001980E4  38 80 00 00 */	li r4, 0
/* 8019B188 001980E8  38 A0 00 00 */	li r5, 0
/* 8019B18C 001980EC  38 C0 00 00 */	li r6, 0
/* 8019B190 001980F0  38 E0 00 01 */	li r7, 1
/* 8019B194 001980F4  39 00 00 03 */	li r8, 3
/* 8019B198 001980F8  48 16 D9 A1 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B19C 001980FC  38 60 00 01 */	li r3, 1
/* 8019B1A0 00198100  38 80 00 0F */	li r4, 0xf
/* 8019B1A4 00198104  48 16 D8 3D */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B1A8 00198108  39 C0 00 02 */	li r14, 2
lbl_8019B1AC:
/* 8019B1AC 0019810C  80 81 01 20 */	lwz r4, 0x120(r1)
/* 8019B1B0 00198110  7D C3 73 78 */	mr r3, r14
/* 8019B1B4 00198114  80 A1 01 40 */	lwz r5, 0x140(r1)
/* 8019B1B8 00198118  38 C0 00 05 */	li r6, 5
/* 8019B1BC 0019811C  48 16 D7 91 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B1C0 00198120  7D C3 73 78 */	mr r3, r14
/* 8019B1C4 00198124  38 80 00 0F */	li r4, 0xf
/* 8019B1C8 00198128  38 A0 00 08 */	li r5, 8
/* 8019B1CC 0019812C  38 C0 00 0E */	li r6, 0xe
/* 8019B1D0 00198130  38 E0 00 0A */	li r7, 0xa
/* 8019B1D4 00198134  48 16 DA 19 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B1D8 00198138  7D C3 73 78 */	mr r3, r14
/* 8019B1DC 0019813C  38 80 00 00 */	li r4, 0
/* 8019B1E0 00198140  38 A0 00 00 */	li r5, 0
/* 8019B1E4 00198144  38 C0 00 00 */	li r6, 0
/* 8019B1E8 00198148  38 E0 00 01 */	li r7, 1
/* 8019B1EC 0019814C  39 00 00 00 */	li r8, 0
/* 8019B1F0 00198150  48 16 D9 49 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B1F4 00198154  7D C3 73 78 */	mr r3, r14
/* 8019B1F8 00198158  38 80 00 0C */	li r4, 0xc
/* 8019B1FC 0019815C  48 16 D7 E5 */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B200 00198160  39 CE 00 01 */	addi r14, r14, 1
/* 8019B204 00198164  80 81 01 24 */	lwz r4, 0x124(r1)
/* 8019B208 00198168  80 A1 01 44 */	lwz r5, 0x144(r1)
/* 8019B20C 0019816C  7D C3 73 78 */	mr r3, r14
/* 8019B210 00198170  38 C0 00 04 */	li r6, 4
/* 8019B214 00198174  48 16 D7 39 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B218 00198178  7D C3 73 78 */	mr r3, r14
/* 8019B21C 0019817C  38 80 00 0F */	li r4, 0xf
/* 8019B220 00198180  38 A0 00 08 */	li r5, 8
/* 8019B224 00198184  38 C0 00 00 */	li r6, 0
/* 8019B228 00198188  38 E0 00 0A */	li r7, 0xa
/* 8019B22C 0019818C  48 16 D9 C1 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B230 00198190  7D C3 73 78 */	mr r3, r14
/* 8019B234 00198194  38 80 00 00 */	li r4, 0
/* 8019B238 00198198  38 A0 00 00 */	li r5, 0
/* 8019B23C 0019819C  38 C0 00 00 */	li r6, 0
/* 8019B240 001981A0  38 E0 00 01 */	li r7, 1
/* 8019B244 001981A4  39 00 00 00 */	li r8, 0
/* 8019B248 001981A8  48 16 D8 F1 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B24C 001981AC  39 CE 00 01 */	addi r14, r14, 1
/* 8019B250 001981B0  80 81 01 28 */	lwz r4, 0x128(r1)
/* 8019B254 001981B4  80 A1 01 48 */	lwz r5, 0x148(r1)
/* 8019B258 001981B8  7D C3 73 78 */	mr r3, r14
/* 8019B25C 001981BC  38 C0 00 05 */	li r6, 5
/* 8019B260 001981C0  48 16 D6 ED */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B264 001981C4  28 1D 00 00 */	cmplwi r29, 0
/* 8019B268 001981C8  7D C3 73 78 */	mr r3, r14
/* 8019B26C 001981CC  38 80 00 0F */	li r4, 0xf
/* 8019B270 001981D0  38 A0 00 08 */	li r5, 8
/* 8019B274 001981D4  38 C0 00 0A */	li r6, 0xa
/* 8019B278 001981D8  41 82 00 08 */	beq lbl_8019B280
/* 8019B27C 001981DC  38 C0 00 06 */	li r6, 6
lbl_8019B280:
/* 8019B280 001981E0  38 E0 00 00 */	li r7, 0
/* 8019B284 001981E4  48 16 D9 69 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B288 001981E8  7D C3 73 78 */	mr r3, r14
/* 8019B28C 001981EC  38 80 00 00 */	li r4, 0
/* 8019B290 001981F0  38 A0 00 00 */	li r5, 0
/* 8019B294 001981F4  38 C0 00 00 */	li r6, 0
/* 8019B298 001981F8  38 E0 00 01 */	li r7, 1
/* 8019B29C 001981FC  39 00 00 00 */	li r8, 0
/* 8019B2A0 00198200  48 16 D8 99 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B2A4 00198204  2C 1C 00 00 */	cmpwi r28, 0
/* 8019B2A8 00198208  40 82 00 3C */	bne lbl_8019B2E4
/* 8019B2AC 0019820C  28 1B 00 00 */	cmplwi r27, 0
/* 8019B2B0 00198210  41 82 00 34 */	beq lbl_8019B2E4
/* 8019B2B4 00198214  38 00 00 00 */	li r0, 0
/* 8019B2B8 00198218  7D C3 73 78 */	mr r3, r14
/* 8019B2BC 0019821C  90 01 00 08 */	stw r0, 8(r1)
/* 8019B2C0 00198220  38 80 00 00 */	li r4, 0
/* 8019B2C4 00198224  38 A0 00 00 */	li r5, 0
/* 8019B2C8 00198228  38 C0 00 07 */	li r6, 7
/* 8019B2CC 0019822C  90 01 00 0C */	stw r0, 0xc(r1)
/* 8019B2D0 00198230  38 E0 00 01 */	li r7, 1
/* 8019B2D4 00198234  39 00 00 00 */	li r8, 0
/* 8019B2D8 00198238  39 20 00 00 */	li r9, 0
/* 8019B2DC 0019823C  39 40 00 00 */	li r10, 0
/* 8019B2E0 00198240  48 16 D4 AD */	bl SetTevIndirect__3CGXF13_GXTevStageID16_GXIndTexStageID15_GXIndTexFormat16_GXIndTexBiasSel14_GXIndTexMtxID13_GXIndTexWrap13_GXIndTexWrapUcUc17_GXIndTexAlphaSel
lbl_8019B2E4:
/* 8019B2E4 00198244  2C 1C 00 00 */	cmpwi r28, 0
/* 8019B2E8 00198248  39 CE 00 01 */	addi r14, r14, 1
/* 8019B2EC 0019824C  40 81 06 18 */	ble lbl_8019B904
/* 8019B2F0 00198250  80 81 01 30 */	lwz r4, 0x130(r1)
/* 8019B2F4 00198254  7D C3 73 78 */	mr r3, r14
/* 8019B2F8 00198258  80 A1 01 50 */	lwz r5, 0x150(r1)
/* 8019B2FC 0019825C  38 C0 00 FF */	li r6, 0xff
/* 8019B300 00198260  48 16 D6 4D */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B304 00198264  2C 1C 00 01 */	cmpwi r28, 1
/* 8019B308 00198268  38 E0 00 08 */	li r7, 8
/* 8019B30C 0019826C  40 82 00 08 */	bne lbl_8019B314
/* 8019B310 00198270  38 E0 00 0F */	li r7, 0xf
lbl_8019B314:
/* 8019B314 00198274  2C 1C 00 01 */	cmpwi r28, 1
/* 8019B318 00198278  38 C0 00 0F */	li r6, 0xf
/* 8019B31C 0019827C  40 82 00 08 */	bne lbl_8019B324
/* 8019B320 00198280  38 C0 00 0E */	li r6, 0xe
lbl_8019B324:
/* 8019B324 00198284  2C 1C 00 01 */	cmpwi r28, 1
/* 8019B328 00198288  38 A0 00 0F */	li r5, 0xf
/* 8019B32C 0019828C  40 82 00 08 */	bne lbl_8019B334
/* 8019B330 00198290  38 A0 00 08 */	li r5, 8
lbl_8019B334:
/* 8019B334 00198294  2C 1C 00 01 */	cmpwi r28, 1
/* 8019B338 00198298  7D C3 73 78 */	mr r3, r14
/* 8019B33C 0019829C  38 80 00 0F */	li r4, 0xf
/* 8019B340 001982A0  40 82 00 08 */	bne lbl_8019B348
/* 8019B344 001982A4  38 80 00 00 */	li r4, 0
lbl_8019B348:
/* 8019B348 001982A8  48 16 D8 A5 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B34C 001982AC  7D C3 73 78 */	mr r3, r14
/* 8019B350 001982B0  38 80 00 00 */	li r4, 0
/* 8019B354 001982B4  38 A0 00 00 */	li r5, 0
/* 8019B358 001982B8  38 C0 00 00 */	li r6, 0
/* 8019B35C 001982BC  38 E0 00 01 */	li r7, 1
/* 8019B360 001982C0  39 00 00 00 */	li r8, 0
/* 8019B364 001982C4  48 16 D7 D5 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B368 001982C8  7D C3 73 78 */	mr r3, r14
/* 8019B36C 001982CC  38 80 00 0D */	li r4, 0xd
/* 8019B370 001982D0  48 16 D6 71 */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B374 001982D4  38 00 00 00 */	li r0, 0
/* 8019B378 001982D8  7D C3 73 78 */	mr r3, r14
/* 8019B37C 001982DC  90 01 00 08 */	stw r0, 8(r1)
/* 8019B380 001982E0  38 80 00 00 */	li r4, 0
/* 8019B384 001982E4  38 A0 00 00 */	li r5, 0
/* 8019B388 001982E8  38 C0 00 07 */	li r6, 7
/* 8019B38C 001982EC  90 01 00 0C */	stw r0, 0xc(r1)
/* 8019B390 001982F0  38 E0 00 01 */	li r7, 1
/* 8019B394 001982F4  39 00 00 00 */	li r8, 0
/* 8019B398 001982F8  39 20 00 00 */	li r9, 0
/* 8019B39C 001982FC  39 40 00 00 */	li r10, 0
/* 8019B3A0 00198300  48 16 D3 ED */	bl SetTevIndirect__3CGXF13_GXTevStageID16_GXIndTexStageID15_GXIndTexFormat16_GXIndTexBiasSel14_GXIndTexMtxID13_GXIndTexWrap13_GXIndTexWrapUcUc17_GXIndTexAlphaSel
/* 8019B3A4 00198304  39 CE 00 01 */	addi r14, r14, 1
/* 8019B3A8 00198308  48 00 05 5C */	b lbl_8019B904
lbl_8019B3AC:
/* 8019B3AC 0019830C  28 1D 00 00 */	cmplwi r29, 0
/* 8019B3B0 00198310  41 82 00 D4 */	beq lbl_8019B484
/* 8019B3B4 00198314  57 40 06 3F */	clrlwi. r0, r26, 0x18
/* 8019B3B8 00198318  80 81 01 38 */	lwz r4, 0x138(r1)
/* 8019B3BC 0019831C  80 A1 01 58 */	lwz r5, 0x158(r1)
/* 8019B3C0 00198320  38 60 00 00 */	li r3, 0
/* 8019B3C4 00198324  38 C0 00 05 */	li r6, 5
/* 8019B3C8 00198328  41 82 00 08 */	beq lbl_8019B3D0
/* 8019B3CC 0019832C  38 C0 00 FF */	li r6, 0xff
lbl_8019B3D0:
/* 8019B3D0 00198330  48 16 D5 7D */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B3D4 00198334  57 40 06 3F */	clrlwi. r0, r26, 0x18
/* 8019B3D8 00198338  38 60 00 00 */	li r3, 0
/* 8019B3DC 0019833C  38 80 00 0F */	li r4, 0xf
/* 8019B3E0 00198340  38 A0 00 08 */	li r5, 8
/* 8019B3E4 00198344  38 C0 00 0E */	li r6, 0xe
/* 8019B3E8 00198348  38 E0 00 0A */	li r7, 0xa
/* 8019B3EC 0019834C  41 82 00 08 */	beq lbl_8019B3F4
/* 8019B3F0 00198350  38 E0 00 0F */	li r7, 0xf
lbl_8019B3F4:
/* 8019B3F4 00198354  48 16 D7 F9 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B3F8 00198358  38 60 00 00 */	li r3, 0
/* 8019B3FC 0019835C  38 80 00 00 */	li r4, 0
/* 8019B400 00198360  38 A0 00 00 */	li r5, 0
/* 8019B404 00198364  38 C0 00 00 */	li r6, 0
/* 8019B408 00198368  38 E0 00 01 */	li r7, 1
/* 8019B40C 0019836C  39 00 00 03 */	li r8, 3
/* 8019B410 00198370  48 16 D7 29 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B414 00198374  38 60 00 00 */	li r3, 0
/* 8019B418 00198378  38 80 00 0E */	li r4, 0xe
/* 8019B41C 0019837C  48 16 D5 C5 */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B420 00198380  57 40 06 3F */	clrlwi. r0, r26, 0x18
/* 8019B424 00198384  39 C0 00 01 */	li r14, 1
/* 8019B428 00198388  41 82 00 5C */	beq lbl_8019B484
/* 8019B42C 0019838C  80 81 01 3C */	lwz r4, 0x13c(r1)
/* 8019B430 00198390  38 60 00 01 */	li r3, 1
/* 8019B434 00198394  80 A1 01 5C */	lwz r5, 0x15c(r1)
/* 8019B438 00198398  38 C0 00 05 */	li r6, 5
/* 8019B43C 0019839C  48 16 D5 11 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B440 001983A0  38 60 00 01 */	li r3, 1
/* 8019B444 001983A4  38 80 00 06 */	li r4, 6
/* 8019B448 001983A8  38 A0 00 08 */	li r5, 8
/* 8019B44C 001983AC  38 C0 00 0E */	li r6, 0xe
/* 8019B450 001983B0  38 E0 00 0A */	li r7, 0xa
/* 8019B454 001983B4  48 16 D7 99 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B458 001983B8  38 60 00 01 */	li r3, 1
/* 8019B45C 001983BC  38 80 00 00 */	li r4, 0
/* 8019B460 001983C0  38 A0 00 00 */	li r5, 0
/* 8019B464 001983C4  38 C0 00 00 */	li r6, 0
/* 8019B468 001983C8  38 E0 00 01 */	li r7, 1
/* 8019B46C 001983CC  39 00 00 03 */	li r8, 3
/* 8019B470 001983D0  48 16 D6 C9 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B474 001983D4  38 60 00 01 */	li r3, 1
/* 8019B478 001983D8  38 80 00 0F */	li r4, 0xf
/* 8019B47C 001983DC  48 16 D5 65 */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B480 001983E0  39 C0 00 02 */	li r14, 2
lbl_8019B484:
/* 8019B484 001983E4  80 81 01 20 */	lwz r4, 0x120(r1)
/* 8019B488 001983E8  7D C3 73 78 */	mr r3, r14
/* 8019B48C 001983EC  80 A1 01 40 */	lwz r5, 0x140(r1)
/* 8019B490 001983F0  38 C0 00 05 */	li r6, 5
/* 8019B494 001983F4  48 16 D4 B9 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B498 001983F8  7D C3 73 78 */	mr r3, r14
/* 8019B49C 001983FC  38 80 00 0F */	li r4, 0xf
/* 8019B4A0 00198400  38 A0 00 08 */	li r5, 8
/* 8019B4A4 00198404  38 C0 00 0E */	li r6, 0xe
/* 8019B4A8 00198408  38 E0 00 0A */	li r7, 0xa
/* 8019B4AC 0019840C  48 16 D7 41 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B4B0 00198410  7D C3 73 78 */	mr r3, r14
/* 8019B4B4 00198414  38 80 00 00 */	li r4, 0
/* 8019B4B8 00198418  38 A0 00 00 */	li r5, 0
/* 8019B4BC 0019841C  38 C0 00 00 */	li r6, 0
/* 8019B4C0 00198420  38 E0 00 01 */	li r7, 1
/* 8019B4C4 00198424  39 00 00 00 */	li r8, 0
/* 8019B4C8 00198428  48 16 D6 71 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B4CC 0019842C  7D C3 73 78 */	mr r3, r14
/* 8019B4D0 00198430  38 80 00 0C */	li r4, 0xc
/* 8019B4D4 00198434  48 16 D5 0D */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B4D8 00198438  39 CE 00 01 */	addi r14, r14, 1
/* 8019B4DC 0019843C  80 81 01 24 */	lwz r4, 0x124(r1)
/* 8019B4E0 00198440  80 A1 01 44 */	lwz r5, 0x144(r1)
/* 8019B4E4 00198444  7D C3 73 78 */	mr r3, r14
/* 8019B4E8 00198448  38 C0 00 04 */	li r6, 4
/* 8019B4EC 0019844C  48 16 D4 61 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B4F0 00198450  7D C3 73 78 */	mr r3, r14
/* 8019B4F4 00198454  38 80 00 0F */	li r4, 0xf
/* 8019B4F8 00198458  38 A0 00 08 */	li r5, 8
/* 8019B4FC 0019845C  38 C0 00 00 */	li r6, 0
/* 8019B500 00198460  38 E0 00 0A */	li r7, 0xa
/* 8019B504 00198464  48 16 D6 E9 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B508 00198468  7D C3 73 78 */	mr r3, r14
/* 8019B50C 0019846C  38 80 00 00 */	li r4, 0
/* 8019B510 00198470  38 A0 00 00 */	li r5, 0
/* 8019B514 00198474  38 C0 00 00 */	li r6, 0
/* 8019B518 00198478  38 E0 00 01 */	li r7, 1
/* 8019B51C 0019847C  39 00 00 00 */	li r8, 0
/* 8019B520 00198480  48 16 D6 19 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B524 00198484  39 CE 00 01 */	addi r14, r14, 1
/* 8019B528 00198488  80 81 01 28 */	lwz r4, 0x128(r1)
/* 8019B52C 0019848C  80 A1 01 48 */	lwz r5, 0x148(r1)
/* 8019B530 00198490  7D C3 73 78 */	mr r3, r14
/* 8019B534 00198494  38 C0 00 05 */	li r6, 5
/* 8019B538 00198498  48 16 D4 15 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B53C 0019849C  28 1D 00 00 */	cmplwi r29, 0
/* 8019B540 001984A0  7D C3 73 78 */	mr r3, r14
/* 8019B544 001984A4  38 80 00 0F */	li r4, 0xf
/* 8019B548 001984A8  38 A0 00 08 */	li r5, 8
/* 8019B54C 001984AC  38 C0 00 0A */	li r6, 0xa
/* 8019B550 001984B0  41 82 00 08 */	beq lbl_8019B558
/* 8019B554 001984B4  38 C0 00 06 */	li r6, 6
lbl_8019B558:
/* 8019B558 001984B8  38 E0 00 00 */	li r7, 0
/* 8019B55C 001984BC  48 16 D6 91 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B560 001984C0  7D C3 73 78 */	mr r3, r14
/* 8019B564 001984C4  38 80 00 00 */	li r4, 0
/* 8019B568 001984C8  38 A0 00 00 */	li r5, 0
/* 8019B56C 001984CC  38 C0 00 00 */	li r6, 0
/* 8019B570 001984D0  38 E0 00 01 */	li r7, 1
/* 8019B574 001984D4  39 00 00 00 */	li r8, 0
/* 8019B578 001984D8  48 16 D5 C1 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B57C 001984DC  28 1B 00 00 */	cmplwi r27, 0
/* 8019B580 001984E0  41 82 00 34 */	beq lbl_8019B5B4
/* 8019B584 001984E4  38 00 00 00 */	li r0, 0
/* 8019B588 001984E8  7D C3 73 78 */	mr r3, r14
/* 8019B58C 001984EC  90 01 00 08 */	stw r0, 8(r1)
/* 8019B590 001984F0  38 80 00 00 */	li r4, 0
/* 8019B594 001984F4  38 A0 00 00 */	li r5, 0
/* 8019B598 001984F8  38 C0 00 07 */	li r6, 7
/* 8019B59C 001984FC  90 01 00 0C */	stw r0, 0xc(r1)
/* 8019B5A0 00198500  38 E0 00 01 */	li r7, 1
/* 8019B5A4 00198504  39 00 00 00 */	li r8, 0
/* 8019B5A8 00198508  39 20 00 00 */	li r9, 0
/* 8019B5AC 0019850C  39 40 00 00 */	li r10, 0
/* 8019B5B0 00198510  48 16 D1 DD */	bl SetTevIndirect__3CGXF13_GXTevStageID16_GXIndTexStageID15_GXIndTexFormat16_GXIndTexBiasSel14_GXIndTexMtxID13_GXIndTexWrap13_GXIndTexWrapUcUc17_GXIndTexAlphaSel
lbl_8019B5B4:
/* 8019B5B4 00198514  39 CE 00 01 */	addi r14, r14, 1
/* 8019B5B8 00198518  48 00 03 4C */	b lbl_8019B904
lbl_8019B5BC:
/* 8019B5BC 0019851C  80 81 01 20 */	lwz r4, 0x120(r1)
/* 8019B5C0 00198520  38 60 00 00 */	li r3, 0
/* 8019B5C4 00198524  80 A1 01 40 */	lwz r5, 0x140(r1)
/* 8019B5C8 00198528  38 C0 00 04 */	li r6, 4
/* 8019B5CC 0019852C  48 16 D3 81 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B5D0 00198530  38 60 00 00 */	li r3, 0
/* 8019B5D4 00198534  38 80 00 0F */	li r4, 0xf
/* 8019B5D8 00198538  38 A0 00 08 */	li r5, 8
/* 8019B5DC 0019853C  38 C0 00 0E */	li r6, 0xe
/* 8019B5E0 00198540  38 E0 00 0A */	li r7, 0xa
/* 8019B5E4 00198544  48 16 D6 09 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B5E8 00198548  38 60 00 00 */	li r3, 0
/* 8019B5EC 0019854C  38 80 00 00 */	li r4, 0
/* 8019B5F0 00198550  38 A0 00 00 */	li r5, 0
/* 8019B5F4 00198554  38 C0 00 00 */	li r6, 0
/* 8019B5F8 00198558  38 E0 00 01 */	li r7, 1
/* 8019B5FC 0019855C  39 00 00 00 */	li r8, 0
/* 8019B600 00198560  48 16 D5 39 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B604 00198564  38 60 00 00 */	li r3, 0
/* 8019B608 00198568  38 80 00 0C */	li r4, 0xc
/* 8019B60C 0019856C  48 16 D3 D5 */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B610 00198570  80 81 01 24 */	lwz r4, 0x124(r1)
/* 8019B614 00198574  38 60 00 01 */	li r3, 1
/* 8019B618 00198578  80 A1 01 44 */	lwz r5, 0x144(r1)
/* 8019B61C 0019857C  38 C0 00 04 */	li r6, 4
/* 8019B620 00198580  48 16 D3 2D */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B624 00198584  38 60 00 01 */	li r3, 1
/* 8019B628 00198588  38 80 00 0F */	li r4, 0xf
/* 8019B62C 0019858C  38 A0 00 08 */	li r5, 8
/* 8019B630 00198590  38 C0 00 00 */	li r6, 0
/* 8019B634 00198594  38 E0 00 0A */	li r7, 0xa
/* 8019B638 00198598  48 16 D5 B5 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B63C 0019859C  38 60 00 01 */	li r3, 1
/* 8019B640 001985A0  38 80 00 00 */	li r4, 0
/* 8019B644 001985A4  38 A0 00 00 */	li r5, 0
/* 8019B648 001985A8  38 C0 00 00 */	li r6, 0
/* 8019B64C 001985AC  38 E0 00 01 */	li r7, 1
/* 8019B650 001985B0  39 00 00 00 */	li r8, 0
/* 8019B654 001985B4  48 16 D4 E5 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B658 001985B8  80 81 01 28 */	lwz r4, 0x128(r1)
/* 8019B65C 001985BC  38 60 00 02 */	li r3, 2
/* 8019B660 001985C0  80 A1 01 48 */	lwz r5, 0x148(r1)
/* 8019B664 001985C4  38 C0 00 FF */	li r6, 0xff
/* 8019B668 001985C8  48 16 D2 E5 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B66C 001985CC  38 60 00 02 */	li r3, 2
/* 8019B670 001985D0  38 80 00 0F */	li r4, 0xf
/* 8019B674 001985D4  38 A0 00 08 */	li r5, 8
/* 8019B678 001985D8  38 C0 00 0C */	li r6, 0xc
/* 8019B67C 001985DC  38 E0 00 00 */	li r7, 0
/* 8019B680 001985E0  48 16 D5 6D */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B684 001985E4  38 60 00 02 */	li r3, 2
/* 8019B688 001985E8  38 80 00 00 */	li r4, 0
/* 8019B68C 001985EC  38 A0 00 00 */	li r5, 0
/* 8019B690 001985F0  38 C0 00 00 */	li r6, 0
/* 8019B694 001985F4  38 E0 00 01 */	li r7, 1
/* 8019B698 001985F8  39 00 00 00 */	li r8, 0
/* 8019B69C 001985FC  48 16 D4 9D */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B6A0 00198600  57 C0 06 3F */	clrlwi. r0, r30, 0x18
/* 8019B6A4 00198604  39 C0 00 03 */	li r14, 3
/* 8019B6A8 00198608  41 82 02 5C */	beq lbl_8019B904
/* 8019B6AC 0019860C  81 C1 01 4C */	lwz r14, 0x14c(r1)
/* 8019B6B0 00198610  38 60 00 03 */	li r3, 3
/* 8019B6B4 00198614  80 81 01 2C */	lwz r4, 0x12c(r1)
/* 8019B6B8 00198618  38 C0 00 FF */	li r6, 0xff
/* 8019B6BC 0019861C  7D C5 73 78 */	mr r5, r14
/* 8019B6C0 00198620  48 16 D2 8D */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B6C4 00198624  38 60 00 03 */	li r3, 3
/* 8019B6C8 00198628  38 80 00 0F */	li r4, 0xf
/* 8019B6CC 0019862C  38 A0 00 08 */	li r5, 8
/* 8019B6D0 00198630  38 C0 00 0C */	li r6, 0xc
/* 8019B6D4 00198634  38 E0 00 0D */	li r7, 0xd
/* 8019B6D8 00198638  48 16 D5 15 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B6DC 0019863C  38 60 00 03 */	li r3, 3
/* 8019B6E0 00198640  38 80 00 00 */	li r4, 0
/* 8019B6E4 00198644  38 A0 00 00 */	li r5, 0
/* 8019B6E8 00198648  38 C0 00 00 */	li r6, 0
/* 8019B6EC 0019864C  38 E0 00 00 */	li r7, 0
/* 8019B6F0 00198650  39 00 00 01 */	li r8, 1
/* 8019B6F4 00198654  48 16 D4 45 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B6F8 00198658  80 81 01 2C */	lwz r4, 0x12c(r1)
/* 8019B6FC 0019865C  7D C5 73 78 */	mr r5, r14
/* 8019B700 00198660  38 60 00 04 */	li r3, 4
/* 8019B704 00198664  38 C0 00 FF */	li r6, 0xff
/* 8019B708 00198668  38 84 00 01 */	addi r4, r4, 1
/* 8019B70C 0019866C  48 16 D2 41 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B710 00198670  38 60 00 04 */	li r3, 4
/* 8019B714 00198674  38 80 00 0F */	li r4, 0xf
/* 8019B718 00198678  38 A0 00 08 */	li r5, 8
/* 8019B71C 0019867C  38 C0 00 0C */	li r6, 0xc
/* 8019B720 00198680  38 E0 00 02 */	li r7, 2
/* 8019B724 00198684  48 16 D4 C9 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B728 00198688  38 60 00 04 */	li r3, 4
/* 8019B72C 0019868C  38 80 00 01 */	li r4, 1
/* 8019B730 00198690  38 A0 00 00 */	li r5, 0
/* 8019B734 00198694  38 C0 00 00 */	li r6, 0
/* 8019B738 00198698  38 E0 00 01 */	li r7, 1
/* 8019B73C 0019869C  39 00 00 01 */	li r8, 1
/* 8019B740 001986A0  48 16 D3 F9 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B744 001986A4  38 60 00 05 */	li r3, 5
/* 8019B748 001986A8  38 80 00 FF */	li r4, 0xff
/* 8019B74C 001986AC  38 A0 00 FF */	li r5, 0xff
/* 8019B750 001986B0  38 C0 00 FF */	li r6, 0xff
/* 8019B754 001986B4  48 16 D1 F9 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B758 001986B8  38 60 00 05 */	li r3, 5
/* 8019B75C 001986BC  38 80 00 0F */	li r4, 0xf
/* 8019B760 001986C0  38 A0 00 00 */	li r5, 0
/* 8019B764 001986C4  38 C0 00 02 */	li r6, 2
/* 8019B768 001986C8  38 E0 00 0F */	li r7, 0xf
/* 8019B76C 001986CC  48 16 D4 81 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B770 001986D0  38 60 00 05 */	li r3, 5
/* 8019B774 001986D4  38 80 00 00 */	li r4, 0
/* 8019B778 001986D8  38 A0 00 00 */	li r5, 0
/* 8019B77C 001986DC  38 C0 00 01 */	li r6, 1
/* 8019B780 001986E0  38 E0 00 01 */	li r7, 1
/* 8019B784 001986E4  39 00 00 00 */	li r8, 0
/* 8019B788 001986E8  48 16 D3 B1 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B78C 001986EC  39 C0 00 06 */	li r14, 6
/* 8019B790 001986F0  48 00 01 74 */	b lbl_8019B904
lbl_8019B794:
/* 8019B794 001986F4  80 81 01 20 */	lwz r4, 0x120(r1)
/* 8019B798 001986F8  38 60 00 00 */	li r3, 0
/* 8019B79C 001986FC  80 A1 01 40 */	lwz r5, 0x140(r1)
/* 8019B7A0 00198700  38 C0 00 04 */	li r6, 4
/* 8019B7A4 00198704  48 16 D1 A9 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B7A8 00198708  38 60 00 00 */	li r3, 0
/* 8019B7AC 0019870C  38 80 00 0F */	li r4, 0xf
/* 8019B7B0 00198710  38 A0 00 08 */	li r5, 8
/* 8019B7B4 00198714  38 C0 00 0E */	li r6, 0xe
/* 8019B7B8 00198718  38 E0 00 0A */	li r7, 0xa
/* 8019B7BC 0019871C  48 16 D4 31 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B7C0 00198720  38 60 00 00 */	li r3, 0
/* 8019B7C4 00198724  38 80 00 00 */	li r4, 0
/* 8019B7C8 00198728  38 A0 00 00 */	li r5, 0
/* 8019B7CC 0019872C  38 C0 00 00 */	li r6, 0
/* 8019B7D0 00198730  38 E0 00 01 */	li r7, 1
/* 8019B7D4 00198734  39 00 00 00 */	li r8, 0
/* 8019B7D8 00198738  48 16 D3 61 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B7DC 0019873C  38 60 00 00 */	li r3, 0
/* 8019B7E0 00198740  38 80 00 0C */	li r4, 0xc
/* 8019B7E4 00198744  48 16 D1 FD */	bl SetTevKColorSel__3CGXF13_GXTevStageID15_GXTevKColorSel
/* 8019B7E8 00198748  80 81 01 24 */	lwz r4, 0x124(r1)
/* 8019B7EC 0019874C  38 60 00 01 */	li r3, 1
/* 8019B7F0 00198750  80 A1 01 44 */	lwz r5, 0x144(r1)
/* 8019B7F4 00198754  38 C0 00 04 */	li r6, 4
/* 8019B7F8 00198758  48 16 D1 55 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B7FC 0019875C  38 60 00 01 */	li r3, 1
/* 8019B800 00198760  38 80 00 0F */	li r4, 0xf
/* 8019B804 00198764  38 A0 00 08 */	li r5, 8
/* 8019B808 00198768  38 C0 00 00 */	li r6, 0
/* 8019B80C 0019876C  38 E0 00 0A */	li r7, 0xa
/* 8019B810 00198770  48 16 D3 DD */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B814 00198774  38 60 00 01 */	li r3, 1
/* 8019B818 00198778  38 80 00 00 */	li r4, 0
/* 8019B81C 0019877C  38 A0 00 00 */	li r5, 0
/* 8019B820 00198780  38 C0 00 00 */	li r6, 0
/* 8019B824 00198784  38 E0 00 01 */	li r7, 1
/* 8019B828 00198788  39 00 00 00 */	li r8, 0
/* 8019B82C 0019878C  48 16 D3 0D */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B830 00198790  80 81 01 28 */	lwz r4, 0x128(r1)
/* 8019B834 00198794  38 60 00 02 */	li r3, 2
/* 8019B838 00198798  80 A1 01 48 */	lwz r5, 0x148(r1)
/* 8019B83C 0019879C  38 C0 00 FF */	li r6, 0xff
/* 8019B840 001987A0  48 16 D1 0D */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B844 001987A4  38 60 00 02 */	li r3, 2
/* 8019B848 001987A8  38 80 00 0F */	li r4, 0xf
/* 8019B84C 001987AC  38 A0 00 08 */	li r5, 8
/* 8019B850 001987B0  38 C0 00 0C */	li r6, 0xc
/* 8019B854 001987B4  38 E0 00 00 */	li r7, 0
/* 8019B858 001987B8  48 16 D3 95 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B85C 001987BC  38 60 00 02 */	li r3, 2
/* 8019B860 001987C0  38 80 00 00 */	li r4, 0
/* 8019B864 001987C4  38 A0 00 00 */	li r5, 0
/* 8019B868 001987C8  38 C0 00 00 */	li r6, 0
/* 8019B86C 001987CC  38 E0 00 01 */	li r7, 1
/* 8019B870 001987D0  39 00 00 00 */	li r8, 0
/* 8019B874 001987D4  48 16 D2 C5 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B878 001987D8  57 C0 06 3F */	clrlwi. r0, r30, 0x18
/* 8019B87C 001987DC  39 C0 00 03 */	li r14, 3
/* 8019B880 001987E0  41 82 00 84 */	beq lbl_8019B904
/* 8019B884 001987E4  80 81 01 2C */	lwz r4, 0x12c(r1)
/* 8019B888 001987E8  38 60 00 03 */	li r3, 3
/* 8019B88C 001987EC  80 A1 01 4C */	lwz r5, 0x14c(r1)
/* 8019B890 001987F0  38 C0 00 FF */	li r6, 0xff
/* 8019B894 001987F4  48 16 D0 B9 */	bl SetTevOrder__3CGXF13_GXTevStageID13_GXTexCoordID11_GXTexMapID12_GXChannelID
/* 8019B898 001987F8  38 60 00 03 */	li r3, 3
/* 8019B89C 001987FC  38 80 00 0F */	li r4, 0xf
/* 8019B8A0 00198800  38 A0 00 08 */	li r5, 8
/* 8019B8A4 00198804  38 C0 00 00 */	li r6, 0
/* 8019B8A8 00198808  38 E0 00 0F */	li r7, 0xf
/* 8019B8AC 0019880C  48 16 D3 41 */	bl SetTevColorIn__3CGXF13_GXTevStageID14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg14_GXTevColorArg
/* 8019B8B0 00198810  38 60 00 03 */	li r3, 3
/* 8019B8B4 00198814  38 80 00 00 */	li r4, 0
/* 8019B8B8 00198818  38 A0 00 00 */	li r5, 0
/* 8019B8BC 0019881C  38 C0 00 01 */	li r6, 1
/* 8019B8C0 00198820  38 E0 00 01 */	li r7, 1
/* 8019B8C4 00198824  39 00 00 00 */	li r8, 0
/* 8019B8C8 00198828  48 16 D2 71 */	bl SetTevColorOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B8CC 0019882C  39 C0 00 04 */	li r14, 4
/* 8019B8D0 00198830  48 00 00 34 */	b lbl_8019B904
lbl_8019B8D4:
/* 8019B8D4 00198834  88 0D A4 81 */	lbz r0, lbl_805A9041@sda21(r13)
/* 8019B8D8 00198838  7C 00 07 75 */	extsb. r0, r0
/* 8019B8DC 0019883C  40 82 00 14 */	bne lbl_8019B8F0
/* 8019B8E0 00198840  38 60 00 00 */	li r3, 0
/* 8019B8E4 00198844  38 00 00 01 */	li r0, 1
/* 8019B8E8 00198848  98 6D A4 80 */	stb r3, lbl_805A9040@sda21(r13)
/* 8019B8EC 0019884C  98 0D A4 81 */	stb r0, lbl_805A9041@sda21(r13)
lbl_8019B8F0:
/* 8019B8F0 00198850  88 0D A4 80 */	lbz r0, lbl_805A9040@sda21(r13)
/* 8019B8F4 00198854  28 00 00 00 */	cmplwi r0, 0
/* 8019B8F8 00198858  40 82 00 0C */	bne lbl_8019B904
/* 8019B8FC 0019885C  38 00 00 01 */	li r0, 1
/* 8019B900 00198860  98 0D A4 80 */	stb r0, lbl_805A9040@sda21(r13)
lbl_8019B904:
/* 8019B904 00198864  55 C3 06 3E */	clrlwi r3, r14, 0x18
/* 8019B908 00198868  48 16 D3 89 */	bl SetNumTevStages__3CGXFUc
/* 8019B90C 0019886C  39 CE FF FF */	addi r14, r14, -1
/* 8019B910 00198870  38 80 00 07 */	li r4, 7
/* 8019B914 00198874  7D C3 73 78 */	mr r3, r14
/* 8019B918 00198878  38 A0 00 07 */	li r5, 7
/* 8019B91C 0019887C  38 C0 00 07 */	li r6, 7
/* 8019B920 00198880  38 E0 00 06 */	li r7, 6
/* 8019B924 00198884  48 16 D2 71 */	bl SetTevAlphaIn__3CGXF13_GXTevStageID14_GXTevAlphaArg14_GXTevAlphaArg14_GXTevAlphaArg14_GXTevAlphaArg
/* 8019B928 00198888  7D C3 73 78 */	mr r3, r14
/* 8019B92C 0019888C  38 80 00 00 */	li r4, 0
/* 8019B930 00198890  38 A0 00 00 */	li r5, 0
/* 8019B934 00198894  38 C0 00 00 */	li r6, 0
/* 8019B938 00198898  38 E0 00 01 */	li r7, 1
/* 8019B93C 0019889C  39 00 00 00 */	li r8, 0
/* 8019B940 001988A0  48 16 D1 41 */	bl SetTevAlphaOp__3CGXF13_GXTevStageID8_GXTevOp10_GXTevBias11_GXTevScaleUc11_GXTevRegID
/* 8019B944 001988A4  7D C3 73 78 */	mr r3, r14
/* 8019B948 001988A8  38 80 00 1C */	li r4, 0x1c
/* 8019B94C 001988AC  48 16 D0 51 */	bl SetTevKAlphaSel__3CGXF13_GXTevStageID15_GXTevKAlphaSel
/* 8019B950 001988B0  80 13 0F 34 */	lwz r0, 0xf34(r19)
/* 8019B954 001988B4  2C 00 00 00 */	cmpwi r0, 0
/* 8019B958 001988B8  40 82 00 1C */	bne lbl_8019B974
/* 8019B95C 001988BC  38 60 00 01 */	li r3, 1
/* 8019B960 001988C0  38 80 00 01 */	li r4, 1
/* 8019B964 001988C4  38 A0 00 01 */	li r5, 1
/* 8019B968 001988C8  38 C0 00 00 */	li r6, 0
/* 8019B96C 001988CC  48 16 CF 65 */	bl SetBlendMode__3CGXF12_GXBlendMode14_GXBlendFactor14_GXBlendFactor10_GXLogicOp
/* 8019B970 001988D0  48 00 00 2C */	b lbl_8019B99C
lbl_8019B974:
/* 8019B974 001988D4  C0 02 A6 DC */	lfs f0, lbl_805AC3FC@sda21(r2)
/* 8019B978 001988D8  FC 00 F8 00 */	fcmpu cr0, f0, f31
/* 8019B97C 001988DC  40 82 00 0C */	bne lbl_8019B988
/* 8019B980 001988E0  38 60 00 00 */	li r3, 0
/* 8019B984 001988E4  48 00 00 08 */	b lbl_8019B98C
lbl_8019B988:
/* 8019B988 001988E8  38 60 00 01 */	li r3, 1
lbl_8019B98C:
/* 8019B98C 001988EC  38 80 00 04 */	li r4, 4
/* 8019B990 001988F0  38 A0 00 05 */	li r5, 5
/* 8019B994 001988F4  38 C0 00 00 */	li r6, 0
/* 8019B998 001988F8  48 16 CF 39 */	bl SetBlendMode__3CGXF12_GXBlendMode14_GXBlendFactor14_GXBlendFactor10_GXLogicOp
lbl_8019B99C:
/* 8019B99C 001988FC  38 60 00 01 */	li r3, 1
/* 8019B9A0 00198900  38 80 00 03 */	li r4, 3
/* 8019B9A4 00198904  38 A0 00 00 */	li r5, 0
/* 8019B9A8 00198908  48 16 CE D5 */	bl SetZMode__3CGXFb10_GXCompareb
/* 8019B9AC 0019890C  38 60 00 07 */	li r3, 7
/* 8019B9B0 00198910  38 80 00 00 */	li r4, 0
/* 8019B9B4 00198914  38 A0 00 00 */	li r5, 0
/* 8019B9B8 00198918  38 C0 00 07 */	li r6, 7
/* 8019B9BC 0019891C  38 E0 00 00 */	li r7, 0
/* 8019B9C0 00198920  48 16 CE 55 */	bl SetAlphaCompare__3CGXF10_GXCompareUc10_GXAlphaOp10_GXCompareUc
/* 8019B9C4 00198924  38 60 00 00 */	li r3, 0
/* 8019B9C8 00198928  48 1D D1 91 */	bl GXSetCullMode
lbl_8019B9CC:
/* 8019B9CC 0019892C  E3 E1 04 38 */	psq_l f31, 1080(r1), 0, qr0
/* 8019B9D0 00198930  CB E1 04 30 */	lfd f31, 0x430(r1)
/* 8019B9D4 00198934  E3 C1 04 28 */	psq_l f30, 1064(r1), 0, qr0
/* 8019B9D8 00198938  CB C1 04 20 */	lfd f30, 0x420(r1)
/* 8019B9DC 0019893C  E3 A1 04 18 */	psq_l f29, 1048(r1), 0, qr0
/* 8019B9E0 00198940  CB A1 04 10 */	lfd f29, 0x410(r1)
/* 8019B9E4 00198944  E3 81 04 08 */	psq_l f28, 1032(r1), 0, qr0
/* 8019B9E8 00198948  CB 81 04 00 */	lfd f28, 0x400(r1)
/* 8019B9EC 0019894C  B9 C1 03 B8 */	lmw r14, 0x3b8(r1)
/* 8019B9F0 00198950  80 01 04 44 */	lwz r0, 0x444(r1)
/* 8019B9F4 00198954  7C 08 03 A6 */	mtlr r0
/* 8019B9F8 00198958  38 21 04 40 */	addi r1, r1, 0x440
/* 8019B9FC 0019895C  4E 80 00 20 */	blr

.global CalculateLightmapMtx__14CFluidPlaneCPUFRC12CTransform4fRC12CTransform4fRC6CAABoxi
CalculateLightmapMtx__14CFluidPlaneCPUFRC12CTransform4fRC12CTransform4fRC6CAABoxi:
/* 8019BA00 00198960  94 21 FD 90 */	stwu r1, -0x270(r1)
/* 8019BA04 00198964  7C 08 02 A6 */	mflr r0
/* 8019BA08 00198968  90 01 02 74 */	stw r0, 0x274(r1)
/* 8019BA0C 0019896C  DB E1 02 60 */	stfd f31, 0x260(r1)
/* 8019BA10 00198970  F3 E1 02 68 */	psq_st f31, 616(r1), 0, qr0
/* 8019BA14 00198974  DB C1 02 50 */	stfd f30, 0x250(r1)
/* 8019BA18 00198978  F3 C1 02 58 */	psq_st f30, 600(r1), 0, qr0
/* 8019BA1C 0019897C  DB A1 02 40 */	stfd f29, 0x240(r1)
/* 8019BA20 00198980  F3 A1 02 48 */	psq_st f29, 584(r1), 0, qr0
/* 8019BA24 00198984  DB 81 02 30 */	stfd f28, 0x230(r1)
/* 8019BA28 00198988  F3 81 02 38 */	psq_st f28, 568(r1), 0, qr0
/* 8019BA2C 0019898C  DB 61 02 20 */	stfd f27, 0x220(r1)
/* 8019BA30 00198990  F3 61 02 28 */	psq_st f27, 552(r1), 0, qr0
/* 8019BA34 00198994  DB 41 02 10 */	stfd f26, 0x210(r1)
/* 8019BA38 00198998  F3 41 02 18 */	psq_st f26, 536(r1), 0, qr0
/* 8019BA3C 0019899C  DB 21 02 00 */	stfd f25, 0x200(r1)
/* 8019BA40 001989A0  F3 21 02 08 */	psq_st f25, 520(r1), 0, qr0
/* 8019BA44 001989A4  DB 01 01 F0 */	stfd f24, 0x1f0(r1)
/* 8019BA48 001989A8  F3 01 01 F8 */	psq_st f24, 504(r1), 0, qr0
/* 8019BA4C 001989AC  DA E1 01 E0 */	stfd f23, 0x1e0(r1)
/* 8019BA50 001989B0  F2 E1 01 E8 */	psq_st f23, 488(r1), 0, qr0
/* 8019BA54 001989B4  BF 21 01 C4 */	stmw r25, 0x1c4(r1)
/* 8019BA58 001989B8  7C 79 1B 78 */	mr r25, r3
/* 8019BA5C 001989BC  7C 9A 23 78 */	mr r26, r4
/* 8019BA60 001989C0  80 83 00 E8 */	lwz r4, 0xe8(r3)
/* 8019BA64 001989C4  7C BB 2B 78 */	mr r27, r5
/* 8019BA68 001989C8  7C DC 33 78 */	mr r28, r6
/* 8019BA6C 001989CC  7C FF 3B 78 */	mr r31, r7
/* 8019BA70 001989D0  AB C4 00 04 */	lha r30, 4(r4)
/* 8019BA74 001989D4  38 61 00 20 */	addi r3, r1, 0x20
/* 8019BA78 001989D8  AB A4 00 06 */	lha r29, 6(r4)
/* 8019BA7C 001989DC  38 9A 00 20 */	addi r4, r26, 0x20
/* 8019BA80 001989E0  48 17 8D D1 */	bl AsNormalized__9CVector3fCFv
/* 8019BA84 001989E4  7F 44 D3 78 */	mr r4, r26
/* 8019BA88 001989E8  38 61 00 94 */	addi r3, r1, 0x94
/* 8019BA8C 001989EC  48 17 71 B5 */	bl GetRotation__12CTransform4fCFv
/* 8019BA90 001989F0  38 61 00 C4 */	addi r3, r1, 0xc4
/* 8019BA94 001989F4  38 81 00 94 */	addi r4, r1, 0x94
/* 8019BA98 001989F8  48 17 72 05 */	bl GetQuickInverse__12CTransform4fCFv
/* 8019BA9C 001989FC  38 61 01 54 */	addi r3, r1, 0x154
/* 8019BAA0 00198A00  38 81 00 C4 */	addi r4, r1, 0xc4
/* 8019BAA4 00198A04  48 17 70 D1 */	bl __ct__12CTransform4fFRC12CTransform4f
/* 8019BAA8 00198A08  7F 84 E3 78 */	mr r4, r28
/* 8019BAAC 00198A0C  38 61 00 2C */	addi r3, r1, 0x2c
/* 8019BAB0 00198A10  38 A1 01 54 */	addi r5, r1, 0x154
/* 8019BAB4 00198A14  48 19 BE 49 */	bl GetTransformedAABox__6CAABoxCFRC12CTransform4f
/* 8019BAB8 00198A18  3C 60 43 30 */	lis r3, 0x4330
/* 8019BABC 00198A1C  6F C4 80 00 */	xoris r4, r30, 0x8000
/* 8019BAC0 00198A20  90 81 01 8C */	stw r4, 0x18c(r1)
/* 8019BAC4 00198A24  6F A0 80 00 */	xoris r0, r29, 0x8000
/* 8019BAC8 00198A28  C8 62 A6 F0 */	lfd f3, lbl_805AC410@sda21(r2)
/* 8019BACC 00198A2C  90 61 01 88 */	stw r3, 0x188(r1)
/* 8019BAD0 00198A30  C0 59 01 1C */	lfs f2, 0x11c(r25)
/* 8019BAD4 00198A34  C8 01 01 88 */	lfd f0, 0x188(r1)
/* 8019BAD8 00198A38  90 01 01 94 */	stw r0, 0x194(r1)
/* 8019BADC 00198A3C  EC 20 18 28 */	fsubs f1, f0, f3
/* 8019BAE0 00198A40  C3 81 00 2C */	lfs f28, 0x2c(r1)
/* 8019BAE4 00198A44  90 61 01 90 */	stw r3, 0x190(r1)
/* 8019BAE8 00198A48  C3 C1 00 38 */	lfs f30, 0x38(r1)
/* 8019BAEC 00198A4C  C8 01 01 90 */	lfd f0, 0x190(r1)
/* 8019BAF0 00198A50  EC 21 00 B2 */	fmuls f1, f1, f2
/* 8019BAF4 00198A54  EC 9E E0 28 */	fsubs f4, f30, f28
/* 8019BAF8 00198A58  C3 E1 00 30 */	lfs f31, 0x30(r1)
/* 8019BAFC 00198A5C  EC 00 18 28 */	fsubs f0, f0, f3
/* 8019BB00 00198A60  C3 A1 00 3C */	lfs f29, 0x3c(r1)
/* 8019BB04 00198A64  C0 7B 00 0C */	lfs f3, 0xc(r27)
/* 8019BB08 00198A68  EF 44 08 24 */	fdivs f26, f4, f1
/* 8019BB0C 00198A6C  EF 7D F8 28 */	fsubs f27, f29, f31
/* 8019BB10 00198A70  EC 00 00 B2 */	fmuls f0, f0, f2
/* 8019BB14 00198A74  EC 3C 18 2A */	fadds f1, f28, f3
/* 8019BB18 00198A78  EF 3B 00 24 */	fdivs f25, f27, f0
/* 8019BB1C 00198A7C  48 1F 91 91 */	bl fmod
/* 8019BB20 00198A80  6F C3 80 00 */	xoris r3, r30, 0x8000
/* 8019BB24 00198A84  3C 00 43 30 */	lis r0, 0x4330
/* 8019BB28 00198A88  90 61 01 9C */	stw r3, 0x19c(r1)
/* 8019BB2C 00198A8C  C8 02 A7 08 */	lfd f0, lbl_805AC428@sda21(r2)
/* 8019BB30 00198A90  90 01 01 98 */	stw r0, 0x198(r1)
/* 8019BB34 00198A94  C8 42 A6 F0 */	lfd f2, lbl_805AC410@sda21(r2)
/* 8019BB38 00198A98  FC 60 08 2A */	fadd f3, f0, f1
/* 8019BB3C 00198A9C  C8 01 01 98 */	lfd f0, 0x198(r1)
/* 8019BB40 00198AA0  C0 3B 00 0C */	lfs f1, 0xc(r27)
/* 8019BB44 00198AA4  FC 00 10 28 */	fsub f0, f0, f2
/* 8019BB48 00198AA8  C0 59 01 1C */	lfs f2, 0x11c(r25)
/* 8019BB4C 00198AAC  EC 3E 08 2A */	fadds f1, f30, f1
/* 8019BB50 00198AB0  FF 03 00 24 */	fdiv f24, f3, f0
/* 8019BB54 00198AB4  FF 00 C0 18 */	frsp f24, f24
/* 8019BB58 00198AB8  48 1F 91 55 */	bl fmod
/* 8019BB5C 00198ABC  6F C3 80 00 */	xoris r3, r30, 0x8000
/* 8019BB60 00198AC0  3C 00 43 30 */	lis r0, 0x4330
/* 8019BB64 00198AC4  C8 02 A7 10 */	lfd f0, lbl_805AC430@sda21(r2)
/* 8019BB68 00198AC8  90 61 01 A4 */	stw r3, 0x1a4(r1)
/* 8019BB6C 00198ACC  C8 42 A6 F0 */	lfd f2, lbl_805AC410@sda21(r2)
/* 8019BB70 00198AD0  FC 80 08 28 */	fsub f4, f0, f1
/* 8019BB74 00198AD4  90 01 01 A0 */	stw r0, 0x1a0(r1)
/* 8019BB78 00198AD8  C0 BB 00 1C */	lfs f5, 0x1c(r27)
/* 8019BB7C 00198ADC  C8 01 01 A0 */	lfd f0, 0x1a0(r1)
/* 8019BB80 00198AE0  C0 DB 00 2C */	lfs f6, 0x2c(r27)
/* 8019BB84 00198AE4  EC 3F 28 2A */	fadds f1, f31, f5
/* 8019BB88 00198AE8  FC 60 10 28 */	fsub f3, f0, f2
/* 8019BB8C 00198AEC  C0 1B 00 0C */	lfs f0, 0xc(r27)
/* 8019BB90 00198AF0  C0 59 01 1C */	lfs f2, 0x11c(r25)
/* 8019BB94 00198AF4  D0 01 00 14 */	stfs f0, 0x14(r1)
/* 8019BB98 00198AF8  FE E4 18 24 */	fdiv f23, f4, f3
/* 8019BB9C 00198AFC  D0 A1 00 18 */	stfs f5, 0x18(r1)
/* 8019BBA0 00198B00  D0 C1 00 1C */	stfs f6, 0x1c(r1)
/* 8019BBA4 00198B04  FE E0 B8 18 */	frsp f23, f23
/* 8019BBA8 00198B08  48 1F 91 05 */	bl fmod
/* 8019BBAC 00198B0C  6F A3 80 00 */	xoris r3, r29, 0x8000
/* 8019BBB0 00198B10  3C 00 43 30 */	lis r0, 0x4330
/* 8019BBB4 00198B14  C8 02 A7 08 */	lfd f0, lbl_805AC428@sda21(r2)
/* 8019BBB8 00198B18  90 61 01 AC */	stw r3, 0x1ac(r1)
/* 8019BBBC 00198B1C  C8 42 A6 F0 */	lfd f2, lbl_805AC410@sda21(r2)
/* 8019BBC0 00198B20  FC 80 08 2A */	fadd f4, f0, f1
/* 8019BBC4 00198B24  90 01 01 A8 */	stw r0, 0x1a8(r1)
/* 8019BBC8 00198B28  C0 BB 00 1C */	lfs f5, 0x1c(r27)
/* 8019BBCC 00198B2C  C8 01 01 A8 */	lfd f0, 0x1a8(r1)
/* 8019BBD0 00198B30  C0 DB 00 2C */	lfs f6, 0x2c(r27)
/* 8019BBD4 00198B34  EC 3D 28 2A */	fadds f1, f29, f5
/* 8019BBD8 00198B38  FC 60 10 28 */	fsub f3, f0, f2
/* 8019BBDC 00198B3C  C0 1B 00 0C */	lfs f0, 0xc(r27)
/* 8019BBE0 00198B40  C0 59 01 1C */	lfs f2, 0x11c(r25)
/* 8019BBE4 00198B44  D0 01 00 08 */	stfs f0, 8(r1)
/* 8019BBE8 00198B48  FF A4 18 24 */	fdiv f29, f4, f3
/* 8019BBEC 00198B4C  D0 A1 00 0C */	stfs f5, 0xc(r1)
/* 8019BBF0 00198B50  D0 C1 00 10 */	stfs f6, 0x10(r1)
/* 8019BBF4 00198B54  FF A0 E8 18 */	frsp f29, f29
/* 8019BBF8 00198B58  48 1F 90 B5 */	bl fmod
/* 8019BBFC 00198B5C  6F A3 80 00 */	xoris r3, r29, 0x8000
/* 8019BC00 00198B60  3C 00 43 30 */	lis r0, 0x4330
/* 8019BC04 00198B64  90 61 01 B4 */	stw r3, 0x1b4(r1)
/* 8019BC08 00198B68  FC 60 E0 50 */	fneg f3, f28
/* 8019BC0C 00198B6C  C0 82 A6 E0 */	lfs f4, lbl_805AC400@sda21(r2)
/* 8019BC10 00198B70  EC BA C0 28 */	fsubs f5, f26, f24
/* 8019BC14 00198B74  90 01 01 B0 */	stw r0, 0x1b0(r1)
/* 8019BC18 00198B78  EC 19 07 F2 */	fmuls f0, f25, f31
/* 8019BC1C 00198B7C  C9 02 A7 10 */	lfd f8, lbl_805AC430@sda21(r2)
/* 8019BC20 00198B80  C8 E2 A6 F0 */	lfd f7, lbl_805AC410@sda21(r2)
/* 8019BC24 00198B84  EC 59 E8 28 */	fsubs f2, f25, f29
/* 8019BC28 00198B88  C8 C1 01 B0 */	lfd f6, 0x1b0(r1)
/* 8019BC2C 00198B8C  FD 08 08 28 */	fsub f8, f8, f1
/* 8019BC30 00198B90  ED 3E E0 28 */	fsubs f9, f30, f28
/* 8019BC34 00198B94  D0 81 01 28 */	stfs f4, 0x128(r1)
/* 8019BC38 00198B98  FC C6 38 28 */	fsub f6, f6, f7
/* 8019BC3C 00198B9C  EC 3A 00 F2 */	fmuls f1, f26, f3
/* 8019BC40 00198BA0  D0 81 01 2C */	stfs f4, 0x12c(r1)
/* 8019BC44 00198BA4  EC A5 B8 28 */	fsubs f5, f5, f23
/* 8019BC48 00198BA8  FC C8 30 24 */	fdiv f6, f8, f6
/* 8019BC4C 00198BAC  D0 81 01 34 */	stfs f4, 0x134(r1)
/* 8019BC50 00198BB0  38 61 00 64 */	addi r3, r1, 0x64
/* 8019BC54 00198BB4  D0 81 01 3C */	stfs f4, 0x13c(r1)
/* 8019BC58 00198BB8  38 81 01 24 */	addi r4, r1, 0x124
/* 8019BC5C 00198BBC  38 A1 01 54 */	addi r5, r1, 0x154
/* 8019BC60 00198BC0  FC C0 30 18 */	frsp f6, f6
/* 8019BC64 00198BC4  D0 81 01 44 */	stfs f4, 0x144(r1)
/* 8019BC68 00198BC8  EC 61 48 24 */	fdivs f3, f1, f9
/* 8019BC6C 00198BCC  D0 81 01 48 */	stfs f4, 0x148(r1)
/* 8019BC70 00198BD0  D0 81 01 4C */	stfs f4, 0x14c(r1)
/* 8019BC74 00198BD4  D0 81 01 50 */	stfs f4, 0x150(r1)
/* 8019BC78 00198BD8  EC 22 30 28 */	fsubs f1, f2, f6
/* 8019BC7C 00198BDC  EC 00 D8 24 */	fdivs f0, f0, f27
/* 8019BC80 00198BE0  FC 20 08 50 */	fneg f1, f1
/* 8019BC84 00198BE4  EC 45 48 24 */	fdivs f2, f5, f9
/* 8019BC88 00198BE8  EC 21 D8 24 */	fdivs f1, f1, f27
/* 8019BC8C 00198BEC  D0 41 01 24 */	stfs f2, 0x124(r1)
/* 8019BC90 00198BF0  EC 58 18 2A */	fadds f2, f24, f3
/* 8019BC94 00198BF4  D0 21 01 38 */	stfs f1, 0x138(r1)
/* 8019BC98 00198BF8  EC 00 30 28 */	fsubs f0, f0, f6
/* 8019BC9C 00198BFC  D0 41 01 30 */	stfs f2, 0x130(r1)
/* 8019BCA0 00198C00  D0 01 01 40 */	stfs f0, 0x140(r1)
/* 8019BCA4 00198C04  48 17 6C AD */	bl __ml__12CTransform4fCFRC12CTransform4f
/* 8019BCA8 00198C08  38 61 00 F4 */	addi r3, r1, 0xf4
/* 8019BCAC 00198C0C  38 81 00 64 */	addi r4, r1, 0x64
/* 8019BCB0 00198C10  48 17 6E C5 */	bl __ct__12CTransform4fFRC12CTransform4f
/* 8019BCB4 00198C14  3C 60 80 3D */	lis r3, lbl_803D1230@ha
/* 8019BCB8 00198C18  C0 E1 00 F4 */	lfs f7, 0xf4(r1)
/* 8019BCBC 00198C1C  3B C3 12 30 */	addi r30, r3, lbl_803D1230@l
/* 8019BCC0 00198C20  C0 C1 00 F8 */	lfs f6, 0xf8(r1)
/* 8019BCC4 00198C24  81 9E 00 00 */	lwz r12, 0(r30)
/* 8019BCC8 00198C28  7F E4 FB 78 */	mr r4, r31
/* 8019BCCC 00198C2C  81 7E 00 04 */	lwz r11, 4(r30)
/* 8019BCD0 00198C30  38 61 00 44 */	addi r3, r1, 0x44
/* 8019BCD4 00198C34  81 5E 00 08 */	lwz r10, 8(r30)
/* 8019BCD8 00198C38  38 A0 00 01 */	li r5, 1
/* 8019BCDC 00198C3C  81 3E 00 0C */	lwz r9, 0xc(r30)
/* 8019BCE0 00198C40  81 1E 00 10 */	lwz r8, 0x10(r30)
/* 8019BCE4 00198C44  80 FE 00 14 */	lwz r7, 0x14(r30)
/* 8019BCE8 00198C48  80 DE 00 18 */	lwz r6, 0x18(r30)
/* 8019BCEC 00198C4C  80 1E 00 1C */	lwz r0, 0x1c(r30)
/* 8019BCF0 00198C50  91 81 00 44 */	stw r12, 0x44(r1)
/* 8019BCF4 00198C54  C0 A1 00 FC */	lfs f5, 0xfc(r1)
/* 8019BCF8 00198C58  91 61 00 48 */	stw r11, 0x48(r1)
/* 8019BCFC 00198C5C  C0 81 01 00 */	lfs f4, 0x100(r1)
/* 8019BD00 00198C60  91 41 00 4C */	stw r10, 0x4c(r1)
/* 8019BD04 00198C64  C0 61 01 04 */	lfs f3, 0x104(r1)
/* 8019BD08 00198C68  91 21 00 50 */	stw r9, 0x50(r1)
/* 8019BD0C 00198C6C  C0 41 01 08 */	lfs f2, 0x108(r1)
/* 8019BD10 00198C70  91 01 00 54 */	stw r8, 0x54(r1)
/* 8019BD14 00198C74  C0 21 01 0C */	lfs f1, 0x10c(r1)
/* 8019BD18 00198C78  90 E1 00 58 */	stw r7, 0x58(r1)
/* 8019BD1C 00198C7C  C0 01 01 10 */	lfs f0, 0x110(r1)
/* 8019BD20 00198C80  90 C1 00 5C */	stw r6, 0x5c(r1)
/* 8019BD24 00198C84  90 01 00 60 */	stw r0, 0x60(r1)
/* 8019BD28 00198C88  D0 E1 00 44 */	stfs f7, 0x44(r1)
/* 8019BD2C 00198C8C  D0 C1 00 48 */	stfs f6, 0x48(r1)
/* 8019BD30 00198C90  D0 A1 00 4C */	stfs f5, 0x4c(r1)
/* 8019BD34 00198C94  D0 81 00 50 */	stfs f4, 0x50(r1)
/* 8019BD38 00198C98  D0 61 00 54 */	stfs f3, 0x54(r1)
/* 8019BD3C 00198C9C  D0 41 00 58 */	stfs f2, 0x58(r1)
/* 8019BD40 00198CA0  D0 21 00 5C */	stfs f1, 0x5c(r1)
/* 8019BD44 00198CA4  D0 01 00 60 */	stfs f0, 0x60(r1)
/* 8019BD48 00198CA8  48 1E 07 49 */	bl GXLoadTexMtxImm
/* 8019BD4C 00198CAC  E3 E1 02 68 */	psq_l f31, 616(r1), 0, qr0
/* 8019BD50 00198CB0  CB E1 02 60 */	lfd f31, 0x260(r1)
/* 8019BD54 00198CB4  E3 C1 02 58 */	psq_l f30, 600(r1), 0, qr0
/* 8019BD58 00198CB8  CB C1 02 50 */	lfd f30, 0x250(r1)
/* 8019BD5C 00198CBC  E3 A1 02 48 */	psq_l f29, 584(r1), 0, qr0
/* 8019BD60 00198CC0  CB A1 02 40 */	lfd f29, 0x240(r1)
/* 8019BD64 00198CC4  E3 81 02 38 */	psq_l f28, 568(r1), 0, qr0
/* 8019BD68 00198CC8  CB 81 02 30 */	lfd f28, 0x230(r1)
/* 8019BD6C 00198CCC  E3 61 02 28 */	psq_l f27, 552(r1), 0, qr0
/* 8019BD70 00198CD0  CB 61 02 20 */	lfd f27, 0x220(r1)
/* 8019BD74 00198CD4  E3 41 02 18 */	psq_l f26, 536(r1), 0, qr0
/* 8019BD78 00198CD8  CB 41 02 10 */	lfd f26, 0x210(r1)
/* 8019BD7C 00198CDC  E3 21 02 08 */	psq_l f25, 520(r1), 0, qr0
/* 8019BD80 00198CE0  CB 21 02 00 */	lfd f25, 0x200(r1)
/* 8019BD84 00198CE4  E3 01 01 F8 */	psq_l f24, 504(r1), 0, qr0
/* 8019BD88 00198CE8  CB 01 01 F0 */	lfd f24, 0x1f0(r1)
/* 8019BD8C 00198CEC  E2 E1 01 E8 */	psq_l f23, 488(r1), 0, qr0
/* 8019BD90 00198CF0  CA E1 01 E0 */	lfd f23, 0x1e0(r1)
/* 8019BD94 00198CF4  BB 21 01 C4 */	lmw r25, 0x1c4(r1)
/* 8019BD98 00198CF8  80 01 02 74 */	lwz r0, 0x274(r1)
/* 8019BD9C 00198CFC  7C 08 03 A6 */	mtlr r0
/* 8019BDA0 00198D00  38 21 02 70 */	addi r1, r1, 0x270
/* 8019BDA4 00198D04  4E 80 00 20 */	blr

.global UpdatePatch__FfRQ220CFluidPlaneCPURender10SPatchInfoRC14CFluidPlaneCPURC9CVector3fRC14CRippleManageriiii
UpdatePatch__FfRQ220CFluidPlaneCPURender10SPatchInfoRC14CFluidPlaneCPURC9CVector3fRC14CRippleManageriiii:
/* 8019BDA8 00198D08  94 21 FB 10 */	stwu r1, -0x4f0(r1)
/* 8019BDAC 00198D0C  7C 08 02 A6 */	mflr r0
/* 8019BDB0 00198D10  90 01 04 F4 */	stw r0, 0x4f4(r1)
/* 8019BDB4 00198D14  DB E1 04 E0 */	stfd f31, 0x4e0(r1)
/* 8019BDB8 00198D18  F3 E1 04 E8 */	psq_st f31, 1256(r1), 0, qr0
/* 8019BDBC 00198D1C  BE 81 04 B0 */	stmw r20, 0x4b0(r1)
/* 8019BDC0 00198D20  FF E0 08 90 */	fmr f31, f1
/* 8019BDC4 00198D24  7C 74 1B 78 */	mr r20, r3
/* 8019BDC8 00198D28  7C 95 23 78 */	mr r21, r4
/* 8019BDCC 00198D2C  7C B6 2B 78 */	mr r22, r5
/* 8019BDD0 00198D30  7C D7 33 78 */	mr r23, r6
/* 8019BDD4 00198D34  7C F8 3B 78 */	mr r24, r7
/* 8019BDD8 00198D38  7D 19 43 78 */	mr r25, r8
/* 8019BDDC 00198D3C  7D 3A 4B 78 */	mr r26, r9
/* 8019BDE0 00198D40  7D 5B 53 78 */	mr r27, r10
/* 8019BDE4 00198D44  48 0D 3C 85 */	bl GetGlobalSineWave__Fv
/* 8019BDE8 00198D48  3C A0 E0 00 */	lis r5, 0xE0000040@ha
/* 8019BDEC 00198D4C  7C 7D 1B 78 */	mr r29, r3
/* 8019BDF0 00198D50  38 80 00 51 */	li r4, 0x51
/* 8019BDF4 00198D54  38 65 00 40 */	addi r3, r5, 0xE0000040@l
/* 8019BDF8 00198D58  48 1E 2D 71 */	bl DCZeroRange
/* 8019BDFC 00198D5C  88 17 00 18 */	lbz r0, 0x18(r23)
/* 8019BE00 00198D60  38 60 00 00 */	li r3, 0
/* 8019BE04 00198D64  90 61 00 2C */	stw r3, 0x2c(r1)
/* 8019BE08 00198D68  3B 80 00 01 */	li r28, 1
/* 8019BE0C 00198D6C  28 00 00 00 */	cmplwi r0, 0
/* 8019BE10 00198D70  41 82 00 E0 */	beq lbl_8019BEF0
/* 8019BE14 00198D74  83 F7 00 10 */	lwz r31, 0x10(r23)
/* 8019BE18 00198D78  3B C1 00 30 */	addi r30, r1, 0x30
/* 8019BE1C 00198D7C  48 00 00 AC */	b lbl_8019BEC8
lbl_8019BE20:
/* 8019BE20 00198D80  C0 3F 00 04 */	lfs f1, 4(r31)
/* 8019BE24 00198D84  C0 1F 00 14 */	lfs f0, 0x14(r31)
/* 8019BE28 00198D88  FC 01 00 40 */	fcmpo cr0, f1, f0
/* 8019BE2C 00198D8C  4C 41 13 82 */	cror 2, 1, 2
/* 8019BE30 00198D90  41 82 00 94 */	beq lbl_8019BEC4
/* 8019BE34 00198D94  93 E1 00 08 */	stw r31, 8(r1)
/* 8019BE38 00198D98  7F E3 FB 78 */	mr r3, r31
/* 8019BE3C 00198D9C  7E 84 A3 78 */	mr r4, r20
/* 8019BE40 00198DA0  38 A1 00 08 */	addi r5, r1, 8
/* 8019BE44 00198DA4  93 01 00 1C */	stw r24, 0x1c(r1)
/* 8019BE48 00198DA8  93 21 00 20 */	stw r25, 0x20(r1)
/* 8019BE4C 00198DAC  93 41 00 24 */	stw r26, 0x24(r1)
/* 8019BE50 00198DB0  93 61 00 28 */	stw r27, 0x28(r1)
/* 8019BE54 00198DB4  48 0D 39 B1 */	bl PrepareRipple__FRC7CRippleRCQ220CFluidPlaneCPURender10SPatchInfoRQ220CFluidPlaneCPURender11SRippleInfo
/* 8019BE58 00198DB8  54 60 06 3F */	clrlwi. r0, r3, 0x18
/* 8019BE5C 00198DBC  41 82 00 68 */	beq lbl_8019BEC4
/* 8019BE60 00198DC0  80 01 00 2C */	lwz r0, 0x2c(r1)
/* 8019BE64 00198DC4  1C 00 00 24 */	mulli r0, r0, 0x24
/* 8019BE68 00198DC8  7C 9E 02 15 */	add. r4, r30, r0
/* 8019BE6C 00198DCC  41 82 00 4C */	beq lbl_8019BEB8
/* 8019BE70 00198DD0  80 01 00 08 */	lwz r0, 8(r1)
/* 8019BE74 00198DD4  80 61 00 0C */	lwz r3, 0xc(r1)
/* 8019BE78 00198DD8  90 04 00 00 */	stw r0, 0(r4)
/* 8019BE7C 00198DDC  80 01 00 10 */	lwz r0, 0x10(r1)
/* 8019BE80 00198DE0  90 64 00 04 */	stw r3, 4(r4)
/* 8019BE84 00198DE4  80 61 00 14 */	lwz r3, 0x14(r1)
/* 8019BE88 00198DE8  90 04 00 08 */	stw r0, 8(r4)
/* 8019BE8C 00198DEC  80 01 00 18 */	lwz r0, 0x18(r1)
/* 8019BE90 00198DF0  90 64 00 0C */	stw r3, 0xc(r4)
/* 8019BE94 00198DF4  80 61 00 1C */	lwz r3, 0x1c(r1)
/* 8019BE98 00198DF8  90 04 00 10 */	stw r0, 0x10(r4)
/* 8019BE9C 00198DFC  80 01 00 20 */	lwz r0, 0x20(r1)
/* 8019BEA0 00198E00  90 64 00 14 */	stw r3, 0x14(r4)
/* 8019BEA4 00198E04  80 61 00 24 */	lwz r3, 0x24(r1)
/* 8019BEA8 00198E08  90 04 00 18 */	stw r0, 0x18(r4)
/* 8019BEAC 00198E0C  80 01 00 28 */	lwz r0, 0x28(r1)
/* 8019BEB0 00198E10  90 64 00 1C */	stw r3, 0x1c(r4)
/* 8019BEB4 00198E14  90 04 00 20 */	stw r0, 0x20(r4)
lbl_8019BEB8:
/* 8019BEB8 00198E18  80 61 00 2C */	lwz r3, 0x2c(r1)
/* 8019BEBC 00198E1C  38 03 00 01 */	addi r0, r3, 1
/* 8019BEC0 00198E20  90 01 00 2C */	stw r0, 0x2c(r1)
lbl_8019BEC4:
/* 8019BEC4 00198E24  3B FF 00 40 */	addi r31, r31, 0x40
lbl_8019BEC8:
/* 8019BEC8 00198E28  80 17 00 08 */	lwz r0, 8(r23)
/* 8019BECC 00198E2C  80 77 00 10 */	lwz r3, 0x10(r23)
/* 8019BED0 00198E30  54 00 30 32 */	slwi r0, r0, 6
/* 8019BED4 00198E34  7C 03 02 14 */	add r0, r3, r0
/* 8019BED8 00198E38  7C 1F 00 40 */	cmplw r31, r0
/* 8019BEDC 00198E3C  40 82 FF 44 */	bne lbl_8019BE20
/* 8019BEE0 00198E40  80 01 00 2C */	lwz r0, 0x2c(r1)
/* 8019BEE4 00198E44  2C 00 00 00 */	cmpwi r0, 0
/* 8019BEE8 00198E48  41 82 00 08 */	beq lbl_8019BEF0
/* 8019BEEC 00198E4C  3B 80 00 00 */	li r28, 0
lbl_8019BEF0:
/* 8019BEF0 00198E50  57 83 06 3F */	clrlwi. r3, r28, 0x18
/* 8019BEF4 00198E54  41 82 00 5C */	beq lbl_8019BF50
/* 8019BEF8 00198E58  80 C1 00 2C */	lwz r6, 0x2c(r1)
/* 8019BEFC 00198E5C  38 80 00 00 */	li r4, 0
/* 8019BF00 00198E60  2C 06 00 00 */	cmpwi r6, 0
/* 8019BF04 00198E64  40 81 00 40 */	ble lbl_8019BF44
/* 8019BF08 00198E68  2C 06 00 08 */	cmpwi r6, 8
/* 8019BF0C 00198E6C  38 A6 FF F8 */	addi r5, r6, -8
/* 8019BF10 00198E70  40 81 00 20 */	ble lbl_8019BF30
/* 8019BF14 00198E74  38 05 00 07 */	addi r0, r5, 7
/* 8019BF18 00198E78  54 00 E8 FE */	srwi r0, r0, 3
/* 8019BF1C 00198E7C  7C 09 03 A6 */	mtctr r0
/* 8019BF20 00198E80  2C 05 00 00 */	cmpwi r5, 0
/* 8019BF24 00198E84  40 81 00 0C */	ble lbl_8019BF30
lbl_8019BF28:
/* 8019BF28 00198E88  38 84 00 08 */	addi r4, r4, 8
/* 8019BF2C 00198E8C  42 00 FF FC */	bdnz lbl_8019BF28
lbl_8019BF30:
/* 8019BF30 00198E90  7C 04 30 50 */	subf r0, r4, r6
/* 8019BF34 00198E94  7C 09 03 A6 */	mtctr r0
/* 8019BF38 00198E98  7C 04 30 00 */	cmpw r4, r6
/* 8019BF3C 00198E9C  40 80 00 08 */	bge lbl_8019BF44
lbl_8019BF40:
/* 8019BF40 00198EA0  42 00 00 00 */	bdnz lbl_8019BF40
lbl_8019BF44:
/* 8019BF44 00198EA4  38 00 00 00 */	li r0, 0
/* 8019BF48 00198EA8  90 01 00 2C */	stw r0, 0x2c(r1)
/* 8019BF4C 00198EAC  48 00 00 D4 */	b lbl_8019C020
lbl_8019BF50:
/* 8019BF50 00198EB0  FC 20 F8 90 */	fmr f1, f31
/* 8019BF54 00198EB4  3C 80 E0 00 */	lis r4, 0xE00000A0@ha
/* 8019BF58 00198EB8  7F A5 EB 78 */	mr r5, r29
/* 8019BF5C 00198EBC  7E 86 A3 78 */	mr r6, r20
/* 8019BF60 00198EC0  7E A7 AB 78 */	mr r7, r21
/* 8019BF64 00198EC4  7E C8 B3 78 */	mr r8, r22
/* 8019BF68 00198EC8  38 64 00 A0 */	addi r3, r4, 0xE00000A0@l
/* 8019BF6C 00198ECC  38 84 00 40 */	addi r4, r4, 0x40
/* 8019BF70 00198ED0  48 00 00 CD */	bl ApplyTurbulence__FfRA45_A45_Q220CFluidPlaneCPURender13SHFieldSamplePCUcRA256_CfRCQ220CFluidPlaneCPURender10SPatchInfoRC14CFluidPlaneCPURC9CVector3f
/* 8019BF74 00198ED4  3C A0 E0 00 */	lis r5, 0xE00000A0@ha
/* 8019BF78 00198ED8  7F A6 EB 78 */	mr r6, r29
/* 8019BF7C 00198EDC  7E 87 A3 78 */	mr r7, r20
/* 8019BF80 00198EE0  38 61 00 2C */	addi r3, r1, 0x2c
/* 8019BF84 00198EE4  38 85 00 A0 */	addi r4, r5, 0xE00000A0@l
/* 8019BF88 00198EE8  38 A5 00 40 */	addi r5, r5, 0x40
/* 8019BF8C 00198EEC  48 0D 09 FD */	bl ApplyRipples__FRC14CRippleManagerRA43_A43_Q220CFluidPlaneCPURender13SHFieldSampleRA22_A22_UcRA256_CfRQ220CFluidPlaneCPURender10SPatchInfo
/* 8019BF90 00198EF0  88 14 00 37 */	lbz r0, 0x37(r20)
/* 8019BF94 00198EF4  2C 00 00 01 */	cmpwi r0, 1
/* 8019BF98 00198EF8  40 82 00 1C */	bne lbl_8019BFB4
/* 8019BF9C 00198EFC  3C 80 E0 00 */	lis r4, 0xE00000A0@ha
/* 8019BFA0 00198F00  7E 85 A3 78 */	mr r5, r20
/* 8019BFA4 00198F04  38 64 00 A0 */	addi r3, r4, 0xE00000A0@l
/* 8019BFA8 00198F08  38 84 00 40 */	addi r4, r4, 0x40
/* 8019BFAC 00198F0C  48 00 01 F5 */	bl UpdatePatchNoNormals__FPCUcPCUcQ220CFluidPlaneCPURender10SPatchInfo
/* 8019BFB0 00198F10  48 00 00 18 */	b lbl_8019BFC8
lbl_8019BFB4:
/* 8019BFB4 00198F14  3C 80 E0 00 */	lis r4, 0xE00000A0@ha
/* 8019BFB8 00198F18  7E 85 A3 78 */	mr r5, r20
/* 8019BFBC 00198F1C  38 64 00 A0 */	addi r3, r4, 0xE00000A0@l
/* 8019BFC0 00198F20  38 84 00 40 */	addi r4, r4, 0x40
/* 8019BFC4 00198F24  48 00 05 05 */	bl UpdatePatchWithNormals__FPCUcPCUcQ220CFluidPlaneCPURender10SPatchInfo
lbl_8019BFC8:
/* 8019BFC8 00198F28  80 C1 00 2C */	lwz r6, 0x2c(r1)
/* 8019BFCC 00198F2C  57 83 06 3E */	clrlwi r3, r28, 0x18
/* 8019BFD0 00198F30  38 80 00 00 */	li r4, 0
/* 8019BFD4 00198F34  2C 06 00 00 */	cmpwi r6, 0
/* 8019BFD8 00198F38  40 81 00 40 */	ble lbl_8019C018
/* 8019BFDC 00198F3C  2C 06 00 08 */	cmpwi r6, 8
/* 8019BFE0 00198F40  38 A6 FF F8 */	addi r5, r6, -8
/* 8019BFE4 00198F44  40 81 00 20 */	ble lbl_8019C004
/* 8019BFE8 00198F48  38 05 00 07 */	addi r0, r5, 7
/* 8019BFEC 00198F4C  54 00 E8 FE */	srwi r0, r0, 3
/* 8019BFF0 00198F50  7C 09 03 A6 */	mtctr r0
/* 8019BFF4 00198F54  2C 05 00 00 */	cmpwi r5, 0
/* 8019BFF8 00198F58  40 81 00 0C */	ble lbl_8019C004
lbl_8019BFFC:
/* 8019BFFC 00198F5C  38 84 00 08 */	addi r4, r4, 8
/* 8019C000 00198F60  42 00 FF FC */	bdnz lbl_8019BFFC
lbl_8019C004:
/* 8019C004 00198F64  7C 04 30 50 */	subf r0, r4, r6
/* 8019C008 00198F68  7C 09 03 A6 */	mtctr r0
/* 8019C00C 00198F6C  7C 04 30 00 */	cmpw r4, r6
/* 8019C010 00198F70  40 80 00 08 */	bge lbl_8019C018
lbl_8019C014:
/* 8019C014 00198F74  42 00 00 00 */	bdnz lbl_8019C014
lbl_8019C018:
/* 8019C018 00198F78  38 00 00 00 */	li r0, 0
/* 8019C01C 00198F7C  90 01 00 2C */	stw r0, 0x2c(r1)
lbl_8019C020:
/* 8019C020 00198F80  E3 E1 04 E8 */	psq_l f31, 1256(r1), 0, qr0
/* 8019C024 00198F84  CB E1 04 E0 */	lfd f31, 0x4e0(r1)
/* 8019C028 00198F88  BA 81 04 B0 */	lmw r20, 0x4b0(r1)
/* 8019C02C 00198F8C  80 01 04 F4 */	lwz r0, 0x4f4(r1)
/* 8019C030 00198F90  7C 08 03 A6 */	mtlr r0
/* 8019C034 00198F94  38 21 04 F0 */	addi r1, r1, 0x4f0
/* 8019C038 00198F98  4E 80 00 20 */	blr

.global ApplyTurbulence__FfRA45_A45_Q220CFluidPlaneCPURender13SHFieldSamplePCUcRA256_CfRCQ220CFluidPlaneCPURender10SPatchInfoRC14CFluidPlaneCPURC9CVector3f
ApplyTurbulence__FfRA45_A45_Q220CFluidPlaneCPURender13SHFieldSamplePCUcRA256_CfRCQ220CFluidPlaneCPURender10SPatchInfoRC14CFluidPlaneCPURC9CVector3f:
/* 8019C03C 00198F9C  94 21 FF E0 */	stwu r1, -0x20(r1)
/* 8019C040 00198FA0  7C 08 02 A6 */	mflr r0
/* 8019C044 00198FA4  90 01 00 24 */	stw r0, 0x24(r1)
/* 8019C048 00198FA8  88 02 98 E9 */	lbz r0, lbl_805AB609@sda21(r2)
/* 8019C04C 00198FAC  93 E1 00 1C */	stw r31, 0x1c(r1)
/* 8019C050 00198FB0  28 00 00 00 */	cmplwi r0, 0
/* 8019C054 00198FB4  41 82 00 0C */	beq lbl_8019C060
/* 8019C058 00198FB8  88 07 01 54 */	lbz r0, 0x154(r7)
/* 8019C05C 00198FBC  48 00 00 08 */	b lbl_8019C064
lbl_8019C060:
/* 8019C060 00198FC0  38 00 00 00 */	li r0, 0
lbl_8019C064:
/* 8019C064 00198FC4  54 00 06 3F */	clrlwi. r0, r0, 0x18
/* 8019C068 00198FC8  40 82 00 10 */	bne lbl_8019C078
/* 8019C06C 00198FCC  38 80 3F 48 */	li r4, 0x3f48
/* 8019C070 00198FD0  48 1E 2A F9 */	bl DCZeroRange
/* 8019C074 00198FD4  48 00 01 18 */	b lbl_8019C18C
lbl_8019C078:
/* 8019C078 00198FD8  88 A6 00 00 */	lbz r5, 0(r6)
/* 8019C07C 00198FDC  38 80 00 00 */	li r4, 0
/* 8019C080 00198FE0  88 06 00 01 */	lbz r0, 1(r6)
/* 8019C084 00198FE4  81 4D A5 74 */	lwz r10, lbl_805A9134@sda21(r13)
/* 8019C088 00198FE8  7C A5 07 74 */	extsb r5, r5
/* 8019C08C 00198FEC  7C 00 07 74 */	extsb r0, r0
/* 8019C090 00198FF0  C0 07 01 4C */	lfs f0, 0x14c(r7)
/* 8019C094 00198FF4  7C A5 52 14 */	add r5, r5, r10
/* 8019C098 00198FF8  C0 86 00 18 */	lfs f4, 0x18(r6)
/* 8019C09C 00198FFC  39 25 FF FC */	addi r9, r5, -4
/* 8019C0A0 00199000  C0 62 A6 DC */	lfs f3, lbl_805AC3FC@sda21(r2)
/* 8019C0A4 00199004  7C A0 52 14 */	add r5, r0, r10
/* 8019C0A8 00199008  C0 46 00 08 */	lfs f2, 8(r6)
/* 8019C0AC 0019900C  7D 29 53 D6 */	divw r9, r9, r10
/* 8019C0B0 00199010  EC E4 00 F2 */	fmuls f7, f4, f3
/* 8019C0B4 00199014  38 05 FF FC */	addi r0, r5, -4
/* 8019C0B8 00199018  C0 68 00 04 */	lfs f3, 4(r8)
/* 8019C0BC 0019901C  ED 01 00 32 */	fmuls f8, f1, f0
/* 8019C0C0 00199020  C0 C7 01 50 */	lfs f6, 0x150(r7)
/* 8019C0C4 00199024  EC 82 38 28 */	fsubs f4, f2, f7
/* 8019C0C8 00199028  7C 00 53 D6 */	divw r0, r0, r10
/* 8019C0CC 0019902C  C0 42 A6 E0 */	lfs f2, lbl_805AC400@sda21(r2)
/* 8019C0D0 00199030  EC 64 18 28 */	fsubs f3, f4, f3
/* 8019C0D4 00199034  7D 2A 49 D6 */	mullw r9, r10, r9
/* 8019C0D8 00199038  7C AA 01 D6 */	mullw r5, r10, r0
/* 8019C0DC 0019903C  39 89 00 02 */	addi r12, r9, 2
/* 8019C0E0 00199040  38 0C 00 01 */	addi r0, r12, 1
/* 8019C0E4 00199044  3B E5 00 02 */	addi r31, r5, 2
/* 8019C0E8 00199048  48 00 00 9C */	b lbl_8019C184
lbl_8019C0EC:
/* 8019C0EC 0019904C  C0 26 00 04 */	lfs f1, 4(r6)
/* 8019C0F0 00199050  7C 6B 1B 78 */	mr r11, r3
/* 8019C0F4 00199054  C0 08 00 00 */	lfs f0, 0(r8)
/* 8019C0F8 00199058  EC 83 00 F2 */	fmuls f4, f3, f3
/* 8019C0FC 0019905C  EC 21 38 28 */	fsubs f1, f1, f7
/* 8019C100 00199060  ED 21 00 28 */	fsubs f9, f1, f0
/* 8019C104 00199064  7C 09 03 A6 */	mtctr r0
/* 8019C108 00199068  2C 0C 00 00 */	cmpwi r12, 0
/* 8019C10C 0019906C  41 80 00 68 */	blt lbl_8019C174
lbl_8019C110:
/* 8019C110 00199070  EC A9 22 7A */	fmadds f5, f9, f9, f4
/* 8019C114 00199074  FC 02 28 00 */	fcmpu cr0, f2, f5
/* 8019C118 00199078  40 82 00 0C */	bne lbl_8019C124
/* 8019C11C 0019907C  FC 00 28 90 */	fmr f0, f5
/* 8019C120 00199080  48 00 00 0C */	b lbl_8019C12C
lbl_8019C124:
/* 8019C124 00199084  10 00 28 34 */	ps_rsqrte f0, f5
/* 8019C128 00199088  10 00 01 72 */	ps_mul f0, f0, f5
lbl_8019C12C:
/* 8019C12C 0019908C  EC 26 00 32 */	fmuls f1, f6, f0
/* 8019C130 00199090  80 A7 01 44 */	lwz r5, 0x144(r7)
/* 8019C134 00199094  C0 07 01 48 */	lfs f0, 0x148(r7)
/* 8019C138 00199098  39 25 FF FF */	addi r9, r5, -1
/* 8019C13C 0019909C  81 47 01 40 */	lwz r10, 0x140(r7)
/* 8019C140 001990A0  EC 21 40 2A */	fadds f1, f1, f8
/* 8019C144 001990A4  EC 01 00 32 */	fmuls f0, f1, f0
/* 8019C148 001990A8  FC 00 00 1E */	fctiwz f0, f0
/* 8019C14C 001990AC  D8 01 00 08 */	stfd f0, 8(r1)
/* 8019C150 001990B0  80 A1 00 0C */	lwz r5, 0xc(r1)
/* 8019C154 001990B4  7D 25 28 38 */	and r5, r9, r5
/* 8019C158 001990B8  54 A5 10 3A */	slwi r5, r5, 2
/* 8019C15C 001990BC  7C 0A 2C 2E */	lfsx f0, r10, r5
/* 8019C160 001990C0  D0 0B 00 00 */	stfs f0, 0(r11)
/* 8019C164 001990C4  39 6B 00 08 */	addi r11, r11, 8
/* 8019C168 001990C8  C0 06 00 18 */	lfs f0, 0x18(r6)
/* 8019C16C 001990CC  ED 29 00 2A */	fadds f9, f9, f0
/* 8019C170 001990D0  42 00 FF A0 */	bdnz lbl_8019C110
lbl_8019C174:
/* 8019C174 001990D4  C0 06 00 18 */	lfs f0, 0x18(r6)
/* 8019C178 001990D8  38 63 01 68 */	addi r3, r3, 0x168
/* 8019C17C 001990DC  38 84 00 01 */	addi r4, r4, 1
/* 8019C180 001990E0  EC 63 00 2A */	fadds f3, f3, f0
lbl_8019C184:
/* 8019C184 001990E4  7C 04 F8 00 */	cmpw r4, r31
/* 8019C188 001990E8  40 81 FF 64 */	ble lbl_8019C0EC
lbl_8019C18C:
/* 8019C18C 001990EC  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C190 001990F0  83 E1 00 1C */	lwz r31, 0x1c(r1)
/* 8019C194 001990F4  7C 08 03 A6 */	mtlr r0
/* 8019C198 001990F8  38 21 00 20 */	addi r1, r1, 0x20
/* 8019C19C 001990FC  4E 80 00 20 */	blr

.global UpdatePatchNoNormals__FPCUcPCUcQ220CFluidPlaneCPURender10SPatchInfo
UpdatePatchNoNormals__FPCUcPCUcQ220CFluidPlaneCPURender10SPatchInfo:
/* 8019C1A0 00199100  94 21 FF C0 */	stwu r1, -0x40(r1)
/* 8019C1A4 00199104  38 C4 00 09 */	addi r6, r4, 9
/* 8019C1A8 00199108  39 00 00 01 */	li r8, 1
/* 8019C1AC 0019910C  93 E1 00 3C */	stw r31, 0x3c(r1)
/* 8019C1B0 00199110  93 C1 00 38 */	stw r30, 0x38(r1)
/* 8019C1B4 00199114  93 A1 00 34 */	stw r29, 0x34(r1)
/* 8019C1B8 00199118  93 81 00 30 */	stw r28, 0x30(r1)
/* 8019C1BC 0019911C  48 00 02 D4 */	b lbl_8019C490
lbl_8019C1C0:
/* 8019C1C0 00199120  7C 88 49 D6 */	mullw r4, r8, r9
/* 8019C1C4 00199124  80 0D 8F E0 */	lwz r0, lbl_805A7BA0@sda21(r13)
/* 8019C1C8 00199128  38 ED 8F E0 */	addi r7, r13, lbl_805A7BA0@sda21
/* 8019C1CC 0019912C  39 44 00 01 */	addi r10, r4, 1
/* 8019C1D0 00199130  7C 89 50 50 */	subf r4, r9, r10
/* 8019C1D4 00199134  91 41 00 1C */	stw r10, 0x1c(r1)
/* 8019C1D8 00199138  7C 00 20 00 */	cmpw r0, r4
/* 8019C1DC 0019913C  90 81 00 14 */	stw r4, 0x14(r1)
/* 8019C1E0 00199140  40 80 00 08 */	bge lbl_8019C1E8
/* 8019C1E4 00199144  38 E1 00 14 */	addi r7, r1, 0x14
lbl_8019C1E8:
/* 8019C1E8 00199148  88 05 00 01 */	lbz r0, 1(r5)
/* 8019C1EC 0019914C  38 81 00 10 */	addi r4, r1, 0x10
/* 8019C1F0 00199150  81 27 00 00 */	lwz r9, 0(r7)
/* 8019C1F4 00199154  7C 07 07 74 */	extsb r7, r0
/* 8019C1F8 00199158  38 07 00 01 */	addi r0, r7, 1
/* 8019C1FC 0019915C  7C 0A 00 00 */	cmpw r10, r0
/* 8019C200 00199160  90 01 00 10 */	stw r0, 0x10(r1)
/* 8019C204 00199164  40 80 00 08 */	bge lbl_8019C20C
/* 8019C208 00199168  38 81 00 1C */	addi r4, r1, 0x1c
lbl_8019C20C:
/* 8019C20C 0019916C  1C 09 01 68 */	mulli r0, r9, 0x168
/* 8019C210 00199170  80 E4 00 00 */	lwz r7, 0(r4)
/* 8019C214 00199174  38 86 00 01 */	addi r4, r6, 1
/* 8019C218 00199178  90 E1 00 1C */	stw r7, 0x1c(r1)
/* 8019C21C 0019917C  39 40 00 01 */	li r10, 1
/* 8019C220 00199180  7C E3 02 14 */	add r7, r3, r0
/* 8019C224 00199184  48 00 02 44 */	b lbl_8019C468
lbl_8019C228:
/* 8019C228 00199188  7D 8A 01 D6 */	mullw r12, r10, r0
/* 8019C22C 0019918C  81 6D 8F E4 */	lwz r11, lbl_805A7BA4@sda21(r13)
/* 8019C230 00199190  3B CD 8F E4 */	addi r30, r13, lbl_805A7BA4@sda21
/* 8019C234 00199194  3B AC 00 01 */	addi r29, r12, 1
/* 8019C238 00199198  7D 80 E8 50 */	subf r12, r0, r29
/* 8019C23C 0019919C  93 A1 00 18 */	stw r29, 0x18(r1)
/* 8019C240 001991A0  7C 0B 60 00 */	cmpw r11, r12
/* 8019C244 001991A4  91 81 00 0C */	stw r12, 0xc(r1)
/* 8019C248 001991A8  40 80 00 08 */	bge lbl_8019C250
/* 8019C24C 001991AC  3B C1 00 0C */	addi r30, r1, 0xc
lbl_8019C250:
/* 8019C250 001991B0  89 85 00 00 */	lbz r12, 0(r5)
/* 8019C254 001991B4  3B E1 00 08 */	addi r31, r1, 8
/* 8019C258 001991B8  81 7E 00 00 */	lwz r11, 0(r30)
/* 8019C25C 001991BC  7D 8C 07 74 */	extsb r12, r12
/* 8019C260 001991C0  39 8C 00 01 */	addi r12, r12, 1
/* 8019C264 001991C4  7C 1D 60 00 */	cmpw r29, r12
/* 8019C268 001991C8  91 81 00 08 */	stw r12, 8(r1)
/* 8019C26C 001991CC  40 80 00 08 */	bge lbl_8019C274
/* 8019C270 001991D0  3B E1 00 18 */	addi r31, r1, 0x18
lbl_8019C274:
/* 8019C274 001991D4  89 84 00 00 */	lbz r12, 0(r4)
/* 8019C278 001991D8  83 FF 00 00 */	lwz r31, 0(r31)
/* 8019C27C 001991DC  55 8C 06 FE */	clrlwi r12, r12, 0x1b
/* 8019C280 001991E0  2C 0C 00 1F */	cmpwi r12, 0x1f
/* 8019C284 001991E4  93 E1 00 18 */	stw r31, 0x18(r1)
/* 8019C288 001991E8  40 82 00 84 */	bne lbl_8019C30C
/* 8019C28C 001991EC  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 8019C290 001991F0  7D 3F 4B 78 */	mr r31, r9
/* 8019C294 001991F4  7C FE 3B 78 */	mr r30, r7
/* 8019C298 001991F8  55 6C 18 38 */	slwi r12, r11, 3
/* 8019C29C 001991FC  48 00 00 60 */	b lbl_8019C2FC
lbl_8019C2A0:
/* 8019C2A0 00199200  7D 7C 5B 78 */	mr r28, r11
/* 8019C2A4 00199204  7F BE 62 14 */	add r29, r30, r12
/* 8019C2A8 00199208  48 00 00 40 */	b lbl_8019C2E8
lbl_8019C2AC:
/* 8019C2AC 0019920C  C0 5D 00 00 */	lfs f2, 0(r29)
/* 8019C2B0 00199210  38 00 00 00 */	li r0, 0
/* 8019C2B4 00199214  C0 05 00 38 */	lfs f0, 0x38(r5)
/* 8019C2B8 00199218  FC 02 08 40 */	fcmpo cr0, f2, f1
/* 8019C2BC 0019921C  40 81 00 20 */	ble lbl_8019C2DC
/* 8019C2C0 00199220  EC 00 00 B2 */	fmuls f0, f0, f2
/* 8019C2C4 00199224  FC 00 00 1E */	fctiwz f0, f0
/* 8019C2C8 00199228  D8 01 00 20 */	stfd f0, 0x20(r1)
/* 8019C2CC 0019922C  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C2D0 00199230  2C 00 00 FF */	cmpwi r0, 0xff
/* 8019C2D4 00199234  40 81 00 08 */	ble lbl_8019C2DC
/* 8019C2D8 00199238  38 00 00 FF */	li r0, 0xff
lbl_8019C2DC:
/* 8019C2DC 0019923C  98 1D 00 07 */	stb r0, 7(r29)
/* 8019C2E0 00199240  3B BD 00 08 */	addi r29, r29, 8
/* 8019C2E4 00199244  3B 9C 00 01 */	addi r28, r28, 1
lbl_8019C2E8:
/* 8019C2E8 00199248  80 01 00 18 */	lwz r0, 0x18(r1)
/* 8019C2EC 0019924C  7C 1C 00 00 */	cmpw r28, r0
/* 8019C2F0 00199250  41 80 FF BC */	blt lbl_8019C2AC
/* 8019C2F4 00199254  3B DE 01 68 */	addi r30, r30, 0x168
/* 8019C2F8 00199258  3B FF 00 01 */	addi r31, r31, 1
lbl_8019C2FC:
/* 8019C2FC 0019925C  80 01 00 1C */	lwz r0, 0x1c(r1)
/* 8019C300 00199260  7C 1F 00 00 */	cmpw r31, r0
/* 8019C304 00199264  41 80 FF 9C */	blt lbl_8019C2A0
/* 8019C308 00199268  48 00 01 58 */	b lbl_8019C460
lbl_8019C30C:
/* 8019C30C 0019926C  2C 08 00 00 */	cmpwi r8, 0
/* 8019C310 00199270  40 81 00 80 */	ble lbl_8019C390
/* 8019C314 00199274  81 8D A5 70 */	lwz r12, lbl_805A9130@sda21(r13)
/* 8019C318 00199278  39 8C 00 01 */	addi r12, r12, 1
/* 8019C31C 0019927C  7C 08 60 00 */	cmpw r8, r12
/* 8019C320 00199280  40 80 00 70 */	bge lbl_8019C390
/* 8019C324 00199284  2C 0A 00 00 */	cmpwi r10, 0
/* 8019C328 00199288  40 81 00 68 */	ble lbl_8019C390
/* 8019C32C 0019928C  7C 0A 60 00 */	cmpw r10, r12
/* 8019C330 00199290  40 80 00 60 */	bge lbl_8019C390
/* 8019C334 00199294  54 0C 0F FE */	srwi r12, r0, 0x1f
/* 8019C338 00199298  C0 02 A6 E0 */	lfs f0, lbl_805AC400@sda21(r2)
/* 8019C33C 0019929C  7C 0C 02 14 */	add r0, r12, r0
/* 8019C340 001992A0  C0 25 00 38 */	lfs f1, 0x38(r5)
/* 8019C344 001992A4  7C 1E 0E 70 */	srawi r30, r0, 1
/* 8019C348 001992A8  3B A0 00 00 */	li r29, 0
/* 8019C34C 001992AC  7C 09 F2 14 */	add r0, r9, r30
/* 8019C350 001992B0  1D 80 01 68 */	mulli r12, r0, 0x168
/* 8019C354 001992B4  7C 0B F2 14 */	add r0, r11, r30
/* 8019C358 001992B8  54 00 18 38 */	slwi r0, r0, 3
/* 8019C35C 001992BC  7D 8C 02 14 */	add r12, r12, r0
/* 8019C360 001992C0  7D 83 62 14 */	add r12, r3, r12
/* 8019C364 001992C4  C0 4C 00 00 */	lfs f2, 0(r12)
/* 8019C368 001992C8  FC 02 00 40 */	fcmpo cr0, f2, f0
/* 8019C36C 001992CC  40 81 00 20 */	ble lbl_8019C38C
/* 8019C370 001992D0  EC 01 00 B2 */	fmuls f0, f1, f2
/* 8019C374 001992D4  FC 00 00 1E */	fctiwz f0, f0
/* 8019C378 001992D8  D8 01 00 20 */	stfd f0, 0x20(r1)
/* 8019C37C 001992DC  83 A1 00 24 */	lwz r29, 0x24(r1)
/* 8019C380 001992E0  2C 1D 00 FF */	cmpwi r29, 0xff
/* 8019C384 001992E4  40 81 00 08 */	ble lbl_8019C38C
/* 8019C388 001992E8  3B A0 00 FF */	li r29, 0xff
lbl_8019C38C:
/* 8019C38C 001992EC  9B AC 00 07 */	stb r29, 7(r12)
lbl_8019C390:
/* 8019C390 001992F0  2C 08 00 00 */	cmpwi r8, 0
/* 8019C394 001992F4  41 82 00 60 */	beq lbl_8019C3F4
/* 8019C398 001992F8  55 60 18 38 */	slwi r0, r11, 3
/* 8019C39C 001992FC  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 8019C3A0 00199300  7D 7C 5B 78 */	mr r28, r11
/* 8019C3A4 00199304  7D 87 02 14 */	add r12, r7, r0
/* 8019C3A8 00199308  48 00 00 40 */	b lbl_8019C3E8
lbl_8019C3AC:
/* 8019C3AC 0019930C  C0 4C 00 00 */	lfs f2, 0(r12)
/* 8019C3B0 00199310  38 00 00 00 */	li r0, 0
/* 8019C3B4 00199314  C0 05 00 38 */	lfs f0, 0x38(r5)
/* 8019C3B8 00199318  FC 02 08 40 */	fcmpo cr0, f2, f1
/* 8019C3BC 0019931C  40 81 00 20 */	ble lbl_8019C3DC
/* 8019C3C0 00199320  EC 00 00 B2 */	fmuls f0, f0, f2
/* 8019C3C4 00199324  FC 00 00 1E */	fctiwz f0, f0
/* 8019C3C8 00199328  D8 01 00 20 */	stfd f0, 0x20(r1)
/* 8019C3CC 0019932C  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C3D0 00199330  2C 00 00 FF */	cmpwi r0, 0xff
/* 8019C3D4 00199334  40 81 00 08 */	ble lbl_8019C3DC
/* 8019C3D8 00199338  38 00 00 FF */	li r0, 0xff
lbl_8019C3DC:
/* 8019C3DC 0019933C  98 0C 00 07 */	stb r0, 7(r12)
/* 8019C3E0 00199340  39 8C 00 08 */	addi r12, r12, 8
/* 8019C3E4 00199344  3B 9C 00 01 */	addi r28, r28, 1
lbl_8019C3E8:
/* 8019C3E8 00199348  80 01 00 18 */	lwz r0, 0x18(r1)
/* 8019C3EC 0019934C  7C 1C 00 00 */	cmpw r28, r0
/* 8019C3F0 00199350  41 80 FF BC */	blt lbl_8019C3AC
lbl_8019C3F4:
/* 8019C3F4 00199354  2C 0A 00 00 */	cmpwi r10, 0
/* 8019C3F8 00199358  41 82 00 68 */	beq lbl_8019C460
/* 8019C3FC 0019935C  39 89 00 01 */	addi r12, r9, 1
/* 8019C400 00199360  55 6B 18 38 */	slwi r11, r11, 3
/* 8019C404 00199364  1C 0C 01 68 */	mulli r0, r12, 0x168
/* 8019C408 00199368  C0 22 A6 E0 */	lfs f1, lbl_805AC400@sda21(r2)
/* 8019C40C 0019936C  7D 6B 02 14 */	add r11, r11, r0
/* 8019C410 00199370  7D 63 5A 14 */	add r11, r3, r11
/* 8019C414 00199374  48 00 00 40 */	b lbl_8019C454
lbl_8019C418:
/* 8019C418 00199378  C0 4B 00 00 */	lfs f2, 0(r11)
/* 8019C41C 0019937C  38 00 00 00 */	li r0, 0
/* 8019C420 00199380  C0 05 00 38 */	lfs f0, 0x38(r5)
/* 8019C424 00199384  FC 02 08 40 */	fcmpo cr0, f2, f1
/* 8019C428 00199388  40 81 00 20 */	ble lbl_8019C448
/* 8019C42C 0019938C  EC 00 00 B2 */	fmuls f0, f0, f2
/* 8019C430 00199390  FC 00 00 1E */	fctiwz f0, f0
/* 8019C434 00199394  D8 01 00 20 */	stfd f0, 0x20(r1)
/* 8019C438 00199398  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C43C 0019939C  2C 00 00 FF */	cmpwi r0, 0xff
/* 8019C440 001993A0  40 81 00 08 */	ble lbl_8019C448
/* 8019C444 001993A4  38 00 00 FF */	li r0, 0xff
lbl_8019C448:
/* 8019C448 001993A8  98 0B 00 07 */	stb r0, 7(r11)
/* 8019C44C 001993AC  39 6B 01 68 */	addi r11, r11, 0x168
/* 8019C450 001993B0  39 8C 00 01 */	addi r12, r12, 1
lbl_8019C454:
/* 8019C454 001993B4  80 01 00 1C */	lwz r0, 0x1c(r1)
/* 8019C458 001993B8  7C 0C 00 00 */	cmpw r12, r0
/* 8019C45C 001993BC  41 80 FF BC */	blt lbl_8019C418
lbl_8019C460:
/* 8019C460 001993C0  38 84 00 01 */	addi r4, r4, 1
/* 8019C464 001993C4  39 4A 00 01 */	addi r10, r10, 1
lbl_8019C468:
/* 8019C468 001993C8  89 65 00 00 */	lbz r11, 0(r5)
/* 8019C46C 001993CC  80 0D A5 74 */	lwz r0, lbl_805A9134@sda21(r13)
/* 8019C470 001993D0  7D 6B 07 74 */	extsb r11, r11
/* 8019C474 001993D4  7D 6B 02 14 */	add r11, r11, r0
/* 8019C478 001993D8  39 6B FF FE */	addi r11, r11, -2
/* 8019C47C 001993DC  7D 6B 03 D6 */	divw r11, r11, r0
/* 8019C480 001993E0  7C 0A 58 00 */	cmpw r10, r11
/* 8019C484 001993E4  40 81 FD A4 */	ble lbl_8019C228
/* 8019C488 001993E8  38 C6 00 09 */	addi r6, r6, 9
/* 8019C48C 001993EC  39 08 00 01 */	addi r8, r8, 1
lbl_8019C490:
/* 8019C490 001993F0  88 05 00 01 */	lbz r0, 1(r5)
/* 8019C494 001993F4  81 2D A5 74 */	lwz r9, lbl_805A9134@sda21(r13)
/* 8019C498 001993F8  7C 00 07 74 */	extsb r0, r0
/* 8019C49C 001993FC  7C 80 4A 14 */	add r4, r0, r9
/* 8019C4A0 00199400  38 04 FF FE */	addi r0, r4, -2
/* 8019C4A4 00199404  7C 00 4B D6 */	divw r0, r0, r9
/* 8019C4A8 00199408  7C 08 00 00 */	cmpw r8, r0
/* 8019C4AC 0019940C  40 81 FD 14 */	ble lbl_8019C1C0
/* 8019C4B0 00199410  83 E1 00 3C */	lwz r31, 0x3c(r1)
/* 8019C4B4 00199414  83 C1 00 38 */	lwz r30, 0x38(r1)
/* 8019C4B8 00199418  83 A1 00 34 */	lwz r29, 0x34(r1)
/* 8019C4BC 0019941C  83 81 00 30 */	lwz r28, 0x30(r1)
/* 8019C4C0 00199420  38 21 00 40 */	addi r1, r1, 0x40
/* 8019C4C4 00199424  4E 80 00 20 */	blr

.global UpdatePatchWithNormals__FPCUcPCUcQ220CFluidPlaneCPURender10SPatchInfo
UpdatePatchWithNormals__FPCUcPCUcQ220CFluidPlaneCPURender10SPatchInfo:
/* 8019C4C8 00199428  94 21 FF B0 */	stwu r1, -0x50(r1)
/* 8019C4CC 0019942C  38 E3 01 70 */	addi r7, r3, 0x170
/* 8019C4D0 00199430  C0 E2 A6 E4 */	lfs f7, lbl_805AC404@sda21(r2)
/* 8019C4D4 00199434  38 84 00 09 */	addi r4, r4, 9
/* 8019C4D8 00199438  BF 41 00 38 */	stmw r26, 0x38(r1)
/* 8019C4DC 0019943C  39 00 00 01 */	li r8, 1
/* 8019C4E0 00199440  C0 C2 A6 FC */	lfs f6, lbl_805AC41C@sda21(r2)
/* 8019C4E4 00199444  A8 C5 00 2E */	lha r6, 0x2e(r5)
/* 8019C4E8 00199448  A8 05 00 2A */	lha r0, 0x2a(r5)
/* 8019C4EC 0019944C  C0 A5 00 18 */	lfs f5, 0x18(r5)
/* 8019C4F0 00199450  7C 66 01 D6 */	mullw r3, r6, r0
/* 8019C4F4 00199454  A8 05 00 28 */	lha r0, 0x28(r5)
/* 8019C4F8 00199458  EC E7 01 72 */	fmuls f7, f7, f5
/* 8019C4FC 0019945C  FC A0 38 50 */	fneg f5, f7
/* 8019C500 00199460  38 C3 FF FF */	addi r6, r3, -1
/* 8019C504 00199464  EC C6 01 F2 */	fmuls f6, f6, f7
/* 8019C508 00199468  7C C0 32 14 */	add r6, r0, r6
/* 8019C50C 0019946C  48 00 05 FC */	b lbl_8019CB08
lbl_8019C510:
/* 8019C510 00199470  7C 68 51 D6 */	mullw r3, r8, r10
/* 8019C514 00199474  80 0D 8F DC */	lwz r0, lbl_805A7B9C@sda21(r13)
/* 8019C518 00199478  39 2D 8F DC */	addi r9, r13, lbl_805A7B9C@sda21
/* 8019C51C 0019947C  39 63 00 01 */	addi r11, r3, 1
/* 8019C520 00199480  7C 6A 58 50 */	subf r3, r10, r11
/* 8019C524 00199484  91 61 00 18 */	stw r11, 0x18(r1)
/* 8019C528 00199488  7C 00 18 00 */	cmpw r0, r3
/* 8019C52C 0019948C  90 61 00 10 */	stw r3, 0x10(r1)
/* 8019C530 00199490  40 80 00 08 */	bge lbl_8019C538
/* 8019C534 00199494  39 21 00 10 */	addi r9, r1, 0x10
lbl_8019C538:
/* 8019C538 00199498  88 05 00 01 */	lbz r0, 1(r5)
/* 8019C53C 0019949C  38 61 00 0C */	addi r3, r1, 0xc
/* 8019C540 001994A0  81 29 00 00 */	lwz r9, 0(r9)
/* 8019C544 001994A4  7C 0A 07 74 */	extsb r10, r0
/* 8019C548 001994A8  38 0A 00 01 */	addi r0, r10, 1
/* 8019C54C 001994AC  7C 0B 00 00 */	cmpw r11, r0
/* 8019C550 001994B0  90 01 00 0C */	stw r0, 0xc(r1)
/* 8019C554 001994B4  40 80 00 08 */	bge lbl_8019C55C
/* 8019C558 001994B8  38 61 00 18 */	addi r3, r1, 0x18
lbl_8019C55C:
/* 8019C55C 001994BC  80 03 00 00 */	lwz r0, 0(r3)
/* 8019C560 001994C0  7C EA 3B 78 */	mr r10, r7
/* 8019C564 001994C4  38 64 00 01 */	addi r3, r4, 1
/* 8019C568 001994C8  39 60 00 01 */	li r11, 1
/* 8019C56C 001994CC  90 01 00 18 */	stw r0, 0x18(r1)
/* 8019C570 001994D0  48 00 05 60 */	b lbl_8019CAD0
lbl_8019C574:
/* 8019C574 001994D4  7F AB 01 D6 */	mullw r29, r11, r0
/* 8019C578 001994D8  89 85 00 00 */	lbz r12, 0(r5)
/* 8019C57C 001994DC  3B E1 00 08 */	addi r31, r1, 8
/* 8019C580 001994E0  7D 8C 07 74 */	extsb r12, r12
/* 8019C584 001994E4  3B CC 00 01 */	addi r30, r12, 1
/* 8019C588 001994E8  39 9D 00 01 */	addi r12, r29, 1
/* 8019C58C 001994EC  7C 0C F0 00 */	cmpw r12, r30
/* 8019C590 001994F0  91 81 00 14 */	stw r12, 0x14(r1)
/* 8019C594 001994F4  7D 80 60 50 */	subf r12, r0, r12
/* 8019C598 001994F8  93 C1 00 08 */	stw r30, 8(r1)
/* 8019C59C 001994FC  40 80 00 08 */	bge lbl_8019C5A4
/* 8019C5A0 00199500  3B E1 00 14 */	addi r31, r1, 0x14
lbl_8019C5A4:
/* 8019C5A4 00199504  8B C3 00 00 */	lbz r30, 0(r3)
/* 8019C5A8 00199508  83 FF 00 00 */	lwz r31, 0(r31)
/* 8019C5AC 0019950C  57 DE 06 FE */	clrlwi r30, r30, 0x1b
/* 8019C5B0 00199510  2C 1E 00 1F */	cmpwi r30, 0x1f
/* 8019C5B4 00199514  93 E1 00 14 */	stw r31, 0x14(r1)
/* 8019C5B8 00199518  40 82 01 08 */	bne lbl_8019C6C0
/* 8019C5BC 0019951C  C1 62 A6 E0 */	lfs f11, lbl_805AC400@sda21(r2)
/* 8019C5C0 00199520  7D 5F 53 78 */	mr r31, r10
/* 8019C5C4 00199524  C1 42 A7 18 */	lfs f10, lbl_805AC438@sda21(r2)
/* 8019C5C8 00199528  7D 3C 4B 78 */	mr r28, r9
/* 8019C5CC 0019952C  48 00 00 E4 */	b lbl_8019C6B0
lbl_8019C5D0:
/* 8019C5D0 00199530  7F FB FB 78 */	mr r27, r31
/* 8019C5D4 00199534  7D 9A 63 78 */	mr r26, r12
/* 8019C5D8 00199538  48 00 00 C4 */	b lbl_8019C69C
lbl_8019C5DC:
/* 8019C5DC 0019953C  C1 1B 01 68 */	lfs f8, 0x168(r27)
/* 8019C5E0 00199540  C0 FB FE 98 */	lfs f7, -0x168(r27)
/* 8019C5E4 00199544  C1 3B 00 08 */	lfs f9, 8(r27)
/* 8019C5E8 00199548  EC E8 38 28 */	fsubs f7, f8, f7
/* 8019C5EC 0019954C  C1 1B FF F8 */	lfs f8, -8(r27)
/* 8019C5F0 00199550  ED 09 40 28 */	fsubs f8, f9, f8
/* 8019C5F4 00199554  ED 85 01 F2 */	fmuls f12, f5, f7
/* 8019C5F8 00199558  ED 05 02 32 */	fmuls f8, f5, f8
/* 8019C5FC 0019955C  EC EC 03 32 */	fmuls f7, f12, f12
/* 8019C600 00199560  EC E8 3A 3A */	fmadds f7, f8, f8, f7
/* 8019C604 00199564  EC 06 39 BA */	fmadds f0, f6, f6, f7
/* 8019C608 00199568  FC 0B 00 00 */	fcmpu cr0, f11, f0
/* 8019C60C 0019956C  40 82 00 0C */	bne lbl_8019C618
/* 8019C610 00199570  FC E0 00 90 */	fmr f7, f0
/* 8019C614 00199574  48 00 00 0C */	b lbl_8019C620
lbl_8019C618:
/* 8019C618 00199578  10 E0 00 34 */	ps_rsqrte f7, f0
/* 8019C61C 0019957C  10 E7 00 32 */	ps_mul f7, f7, f0
lbl_8019C620:
/* 8019C620 00199580  EC EA 38 24 */	fdivs f7, f10, f7
/* 8019C624 00199584  3B A0 00 00 */	li r29, 0
/* 8019C628 00199588  ED 27 02 32 */	fmuls f9, f7, f8
/* 8019C62C 0019958C  ED 07 03 32 */	fmuls f8, f7, f12
/* 8019C630 00199590  EC E7 01 B2 */	fmuls f7, f7, f6
/* 8019C634 00199594  FD 20 48 1E */	fctiwz f9, f9
/* 8019C638 00199598  FD 00 40 1E */	fctiwz f8, f8
/* 8019C63C 0019959C  FC E0 38 1E */	fctiwz f7, f7
/* 8019C640 001995A0  D9 21 00 20 */	stfd f9, 0x20(r1)
/* 8019C644 001995A4  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C648 001995A8  D9 01 00 28 */	stfd f8, 0x28(r1)
/* 8019C64C 001995AC  D8 E1 00 30 */	stfd f7, 0x30(r1)
/* 8019C650 001995B0  83 C1 00 2C */	lwz r30, 0x2c(r1)
/* 8019C654 001995B4  98 1B 00 04 */	stb r0, 4(r27)
/* 8019C658 001995B8  80 01 00 34 */	lwz r0, 0x34(r1)
/* 8019C65C 001995BC  9B DB 00 05 */	stb r30, 5(r27)
/* 8019C660 001995C0  98 1B 00 06 */	stb r0, 6(r27)
/* 8019C664 001995C4  C1 1B 00 00 */	lfs f8, 0(r27)
/* 8019C668 001995C8  C0 E5 00 38 */	lfs f7, 0x38(r5)
/* 8019C66C 001995CC  FC 08 58 40 */	fcmpo cr0, f8, f11
/* 8019C670 001995D0  40 81 00 20 */	ble lbl_8019C690
/* 8019C674 001995D4  EC E8 01 F2 */	fmuls f7, f8, f7
/* 8019C678 001995D8  FC E0 38 1E */	fctiwz f7, f7
/* 8019C67C 001995DC  D8 E1 00 30 */	stfd f7, 0x30(r1)
/* 8019C680 001995E0  83 A1 00 34 */	lwz r29, 0x34(r1)
/* 8019C684 001995E4  2C 1D 00 FF */	cmpwi r29, 0xff
/* 8019C688 001995E8  40 81 00 08 */	ble lbl_8019C690
/* 8019C68C 001995EC  3B A0 00 FF */	li r29, 0xff
lbl_8019C690:
/* 8019C690 001995F0  9B BB 00 07 */	stb r29, 7(r27)
/* 8019C694 001995F4  3B 5A 00 01 */	addi r26, r26, 1
/* 8019C698 001995F8  3B 7B 00 08 */	addi r27, r27, 8
lbl_8019C69C:
/* 8019C69C 001995FC  80 01 00 14 */	lwz r0, 0x14(r1)
/* 8019C6A0 00199600  7C 1A 00 00 */	cmpw r26, r0
/* 8019C6A4 00199604  41 80 FF 38 */	blt lbl_8019C5DC
/* 8019C6A8 00199608  3B 9C 00 01 */	addi r28, r28, 1
/* 8019C6AC 0019960C  3B FF 01 68 */	addi r31, r31, 0x168
lbl_8019C6B0:
/* 8019C6B0 00199610  80 01 00 18 */	lwz r0, 0x18(r1)
/* 8019C6B4 00199614  7C 1C 00 00 */	cmpw r28, r0
/* 8019C6B8 00199618  41 80 FF 18 */	blt lbl_8019C5D0
/* 8019C6BC 0019961C  48 00 04 00 */	b lbl_8019CABC
lbl_8019C6C0:
/* 8019C6C0 00199620  83 A5 00 30 */	lwz r29, 0x30(r5)
/* 8019C6C4 00199624  28 1D 00 00 */	cmplwi r29, 0
/* 8019C6C8 00199628  41 82 00 18 */	beq lbl_8019C6E0
/* 8019C6CC 0019962C  41 82 01 2C */	beq lbl_8019C7F8
/* 8019C6D0 00199630  7F DD 5A 14 */	add r30, r29, r11
/* 8019C6D4 00199634  7F C6 F0 AE */	lbzx r30, r6, r30
/* 8019C6D8 00199638  7F DE 07 75 */	extsb. r30, r30
/* 8019C6DC 0019963C  41 82 01 1C */	beq lbl_8019C7F8
lbl_8019C6E0:
/* 8019C6E0 00199640  2C 08 00 00 */	cmpwi r8, 0
/* 8019C6E4 00199644  40 81 01 14 */	ble lbl_8019C7F8
/* 8019C6E8 00199648  83 CD A5 70 */	lwz r30, lbl_805A9130@sda21(r13)
/* 8019C6EC 0019964C  3B BE 00 01 */	addi r29, r30, 1
/* 8019C6F0 00199650  7C 08 E8 00 */	cmpw r8, r29
/* 8019C6F4 00199654  40 80 01 04 */	bge lbl_8019C7F8
/* 8019C6F8 00199658  2C 0B 00 00 */	cmpwi r11, 0
/* 8019C6FC 0019965C  40 81 00 FC */	ble lbl_8019C7F8
/* 8019C700 00199660  7C 0B E8 00 */	cmpw r11, r29
/* 8019C704 00199664  40 80 00 F4 */	bge lbl_8019C7F8
/* 8019C708 00199668  1F C0 00 2D */	mulli r30, r0, 0x2d
/* 8019C70C 0019966C  54 1F 0F FE */	srwi r31, r0, 0x1f
/* 8019C710 00199670  C0 E2 A6 E0 */	lfs f7, lbl_805AC400@sda21(r2)
/* 8019C714 00199674  7C 1F 02 14 */	add r0, r31, r0
/* 8019C718 00199678  57 DF 0F FE */	srwi r31, r30, 0x1f
/* 8019C71C 0019967C  7F FF F2 14 */	add r31, r31, r30
/* 8019C720 00199680  7F FF 0E 70 */	srawi r31, r31, 1
/* 8019C724 00199684  7C 00 0E 70 */	srawi r0, r0, 1
/* 8019C728 00199688  57 FF 18 38 */	slwi r31, r31, 3
/* 8019C72C 0019968C  54 00 18 38 */	slwi r0, r0, 3
/* 8019C730 00199690  7F 5F 02 14 */	add r26, r31, r0
/* 8019C734 00199694  7F 4A D2 14 */	add r26, r10, r26
/* 8019C738 00199698  C1 3A 01 68 */	lfs f9, 0x168(r26)
/* 8019C73C 0019969C  C1 1A FE 98 */	lfs f8, -0x168(r26)
/* 8019C740 001996A0  C1 5A 00 08 */	lfs f10, 8(r26)
/* 8019C744 001996A4  ED 09 40 28 */	fsubs f8, f9, f8
/* 8019C748 001996A8  C1 3A FF F8 */	lfs f9, -8(r26)
/* 8019C74C 001996AC  ED 2A 48 28 */	fsubs f9, f10, f9
/* 8019C750 001996B0  ED 65 02 32 */	fmuls f11, f5, f8
/* 8019C754 001996B4  ED 45 02 72 */	fmuls f10, f5, f9
/* 8019C758 001996B8  ED 0B 02 F2 */	fmuls f8, f11, f11
/* 8019C75C 001996BC  ED 0A 42 BA */	fmadds f8, f10, f10, f8
/* 8019C760 001996C0  EC 26 41 BA */	fmadds f1, f6, f6, f8
/* 8019C764 001996C4  FC 07 08 00 */	fcmpu cr0, f7, f1
/* 8019C768 001996C8  40 82 00 0C */	bne lbl_8019C774
/* 8019C76C 001996CC  FD 20 08 90 */	fmr f9, f1
/* 8019C770 001996D0  48 00 00 0C */	b lbl_8019C77C
lbl_8019C774:
/* 8019C774 001996D4  11 20 08 34 */	ps_rsqrte f9, f1
/* 8019C778 001996D8  11 29 00 72 */	ps_mul f9, f9, f1
lbl_8019C77C:
/* 8019C77C 001996DC  C1 02 A7 18 */	lfs f8, lbl_805AC438@sda21(r2)
/* 8019C780 001996E0  3B A0 00 00 */	li r29, 0
/* 8019C784 001996E4  C0 E2 A6 E0 */	lfs f7, lbl_805AC400@sda21(r2)
/* 8019C788 001996E8  ED 08 48 24 */	fdivs f8, f8, f9
/* 8019C78C 001996EC  ED 48 02 B2 */	fmuls f10, f8, f10
/* 8019C790 001996F0  ED 28 02 F2 */	fmuls f9, f8, f11
/* 8019C794 001996F4  ED 08 01 B2 */	fmuls f8, f8, f6
/* 8019C798 001996F8  FD 40 50 1E */	fctiwz f10, f10
/* 8019C79C 001996FC  FD 20 48 1E */	fctiwz f9, f9
/* 8019C7A0 00199700  FD 00 40 1E */	fctiwz f8, f8
/* 8019C7A4 00199704  D9 41 00 30 */	stfd f10, 0x30(r1)
/* 8019C7A8 00199708  80 01 00 34 */	lwz r0, 0x34(r1)
/* 8019C7AC 0019970C  D9 21 00 28 */	stfd f9, 0x28(r1)
/* 8019C7B0 00199710  D9 01 00 20 */	stfd f8, 0x20(r1)
/* 8019C7B4 00199714  83 E1 00 2C */	lwz r31, 0x2c(r1)
/* 8019C7B8 00199718  98 1A 00 04 */	stb r0, 4(r26)
/* 8019C7BC 0019971C  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C7C0 00199720  9B FA 00 05 */	stb r31, 5(r26)
/* 8019C7C4 00199724  98 1A 00 06 */	stb r0, 6(r26)
/* 8019C7C8 00199728  C1 3A 00 00 */	lfs f9, 0(r26)
/* 8019C7CC 0019972C  C1 05 00 38 */	lfs f8, 0x38(r5)
/* 8019C7D0 00199730  FC 09 38 40 */	fcmpo cr0, f9, f7
/* 8019C7D4 00199734  40 81 00 20 */	ble lbl_8019C7F4
/* 8019C7D8 00199738  EC E9 02 32 */	fmuls f7, f9, f8
/* 8019C7DC 0019973C  FC E0 38 1E */	fctiwz f7, f7
/* 8019C7E0 00199740  D8 E1 00 30 */	stfd f7, 0x30(r1)
/* 8019C7E4 00199744  83 A1 00 34 */	lwz r29, 0x34(r1)
/* 8019C7E8 00199748  2C 1D 00 FF */	cmpwi r29, 0xff
/* 8019C7EC 0019974C  40 81 00 08 */	ble lbl_8019C7F4
/* 8019C7F0 00199750  3B A0 00 FF */	li r29, 0xff
lbl_8019C7F4:
/* 8019C7F4 00199754  9B BA 00 07 */	stb r29, 7(r26)
lbl_8019C7F8:
/* 8019C7F8 00199758  2C 0B 00 00 */	cmpwi r11, 0
/* 8019C7FC 0019975C  41 82 02 C0 */	beq lbl_8019CABC
/* 8019C800 00199760  2C 08 00 00 */	cmpwi r8, 0
/* 8019C804 00199764  41 82 02 B8 */	beq lbl_8019CABC
/* 8019C808 00199768  8B A3 00 00 */	lbz r29, 0(r3)
/* 8019C80C 0019976C  57 A0 07 BD */	rlwinm. r0, r29, 0, 0x1e, 0x1e
/* 8019C810 00199770  40 82 00 24 */	bne lbl_8019C834
/* 8019C814 00199774  88 03 FF F7 */	lbz r0, -9(r3)
/* 8019C818 00199778  54 00 07 FF */	clrlwi. r0, r0, 0x1f
/* 8019C81C 0019977C  40 82 00 18 */	bne lbl_8019C834
/* 8019C820 00199780  57 A0 07 7B */	rlwinm. r0, r29, 0, 0x1d, 0x1d
/* 8019C824 00199784  40 82 00 10 */	bne lbl_8019C834
/* 8019C828 00199788  88 03 FF FF */	lbz r0, -1(r3)
/* 8019C82C 0019978C  54 00 07 39 */	rlwinm. r0, r0, 0, 0x1c, 0x1c
/* 8019C830 00199790  41 82 01 C8 */	beq lbl_8019C9F8
lbl_8019C834:
/* 8019C834 00199794  C1 62 A6 E0 */	lfs f11, lbl_805AC400@sda21(r2)
/* 8019C838 00199798  7D 5A 53 78 */	mr r26, r10
/* 8019C83C 0019979C  C1 42 A7 18 */	lfs f10, lbl_805AC438@sda21(r2)
/* 8019C840 001997A0  7D 9B 63 78 */	mr r27, r12
/* 8019C844 001997A4  48 00 00 C4 */	b lbl_8019C908
lbl_8019C848:
/* 8019C848 001997A8  C1 1A 01 68 */	lfs f8, 0x168(r26)
/* 8019C84C 001997AC  C0 FA FE 98 */	lfs f7, -0x168(r26)
/* 8019C850 001997B0  C1 3A 00 08 */	lfs f9, 8(r26)
/* 8019C854 001997B4  EC E8 38 28 */	fsubs f7, f8, f7
/* 8019C858 001997B8  C1 1A FF F8 */	lfs f8, -8(r26)
/* 8019C85C 001997BC  ED 09 40 28 */	fsubs f8, f9, f8
/* 8019C860 001997C0  ED 85 01 F2 */	fmuls f12, f5, f7
/* 8019C864 001997C4  ED 05 02 32 */	fmuls f8, f5, f8
/* 8019C868 001997C8  EC EC 03 32 */	fmuls f7, f12, f12
/* 8019C86C 001997CC  EC E8 3A 3A */	fmadds f7, f8, f8, f7
/* 8019C870 001997D0  EC 46 39 BA */	fmadds f2, f6, f6, f7
/* 8019C874 001997D4  FC 0B 10 00 */	fcmpu cr0, f11, f2
/* 8019C878 001997D8  40 82 00 0C */	bne lbl_8019C884
/* 8019C87C 001997DC  FC E0 10 90 */	fmr f7, f2
/* 8019C880 001997E0  48 00 00 0C */	b lbl_8019C88C
lbl_8019C884:
/* 8019C884 001997E4  10 E0 10 34 */	ps_rsqrte f7, f2
/* 8019C888 001997E8  10 E7 00 B2 */	ps_mul f7, f7, f2
lbl_8019C88C:
/* 8019C88C 001997EC  EC EA 38 24 */	fdivs f7, f10, f7
/* 8019C890 001997F0  3B A0 00 00 */	li r29, 0
/* 8019C894 001997F4  ED 27 02 32 */	fmuls f9, f7, f8
/* 8019C898 001997F8  ED 07 03 32 */	fmuls f8, f7, f12
/* 8019C89C 001997FC  EC E7 01 B2 */	fmuls f7, f7, f6
/* 8019C8A0 00199800  FD 20 48 1E */	fctiwz f9, f9
/* 8019C8A4 00199804  FD 00 40 1E */	fctiwz f8, f8
/* 8019C8A8 00199808  FC E0 38 1E */	fctiwz f7, f7
/* 8019C8AC 0019980C  D9 21 00 30 */	stfd f9, 0x30(r1)
/* 8019C8B0 00199810  80 01 00 34 */	lwz r0, 0x34(r1)
/* 8019C8B4 00199814  D9 01 00 28 */	stfd f8, 0x28(r1)
/* 8019C8B8 00199818  D8 E1 00 20 */	stfd f7, 0x20(r1)
/* 8019C8BC 0019981C  81 81 00 2C */	lwz r12, 0x2c(r1)
/* 8019C8C0 00199820  98 1A 00 04 */	stb r0, 4(r26)
/* 8019C8C4 00199824  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C8C8 00199828  99 9A 00 05 */	stb r12, 5(r26)
/* 8019C8CC 0019982C  98 1A 00 06 */	stb r0, 6(r26)
/* 8019C8D0 00199830  C1 1A 00 00 */	lfs f8, 0(r26)
/* 8019C8D4 00199834  C0 E5 00 38 */	lfs f7, 0x38(r5)
/* 8019C8D8 00199838  FC 08 58 40 */	fcmpo cr0, f8, f11
/* 8019C8DC 0019983C  40 81 00 20 */	ble lbl_8019C8FC
/* 8019C8E0 00199840  EC E8 01 F2 */	fmuls f7, f8, f7
/* 8019C8E4 00199844  FC E0 38 1E */	fctiwz f7, f7
/* 8019C8E8 00199848  D8 E1 00 30 */	stfd f7, 0x30(r1)
/* 8019C8EC 0019984C  83 A1 00 34 */	lwz r29, 0x34(r1)
/* 8019C8F0 00199850  2C 1D 00 FF */	cmpwi r29, 0xff
/* 8019C8F4 00199854  40 81 00 08 */	ble lbl_8019C8FC
/* 8019C8F8 00199858  3B A0 00 FF */	li r29, 0xff
lbl_8019C8FC:
/* 8019C8FC 0019985C  9B BA 00 07 */	stb r29, 7(r26)
/* 8019C900 00199860  3B 7B 00 01 */	addi r27, r27, 1
/* 8019C904 00199864  3B 5A 00 08 */	addi r26, r26, 8
lbl_8019C908:
/* 8019C908 00199868  80 01 00 14 */	lwz r0, 0x14(r1)
/* 8019C90C 0019986C  7C 1B 00 00 */	cmpw r27, r0
/* 8019C910 00199870  41 80 FF 38 */	blt lbl_8019C848
/* 8019C914 00199874  C1 62 A6 E0 */	lfs f11, lbl_805AC400@sda21(r2)
/* 8019C918 00199878  3B 4A 01 68 */	addi r26, r10, 0x168
/* 8019C91C 0019987C  C1 42 A7 18 */	lfs f10, lbl_805AC438@sda21(r2)
/* 8019C920 00199880  3B 69 00 01 */	addi r27, r9, 1
/* 8019C924 00199884  48 00 00 C4 */	b lbl_8019C9E8
lbl_8019C928:
/* 8019C928 00199888  C1 1A 01 68 */	lfs f8, 0x168(r26)
/* 8019C92C 0019988C  C0 FA FE 98 */	lfs f7, -0x168(r26)
/* 8019C930 00199890  C1 3A 00 08 */	lfs f9, 8(r26)
/* 8019C934 00199894  EC E8 38 28 */	fsubs f7, f8, f7
/* 8019C938 00199898  C1 1A FF F8 */	lfs f8, -8(r26)
/* 8019C93C 0019989C  ED 09 40 28 */	fsubs f8, f9, f8
/* 8019C940 001998A0  ED 85 01 F2 */	fmuls f12, f5, f7
/* 8019C944 001998A4  ED 05 02 32 */	fmuls f8, f5, f8
/* 8019C948 001998A8  EC EC 03 32 */	fmuls f7, f12, f12
/* 8019C94C 001998AC  EC E8 3A 3A */	fmadds f7, f8, f8, f7
/* 8019C950 001998B0  EC 66 39 BA */	fmadds f3, f6, f6, f7
/* 8019C954 001998B4  FC 0B 18 00 */	fcmpu cr0, f11, f3
/* 8019C958 001998B8  40 82 00 0C */	bne lbl_8019C964
/* 8019C95C 001998BC  FC E0 18 90 */	fmr f7, f3
/* 8019C960 001998C0  48 00 00 0C */	b lbl_8019C96C
lbl_8019C964:
/* 8019C964 001998C4  10 E0 18 34 */	ps_rsqrte f7, f3
/* 8019C968 001998C8  10 E7 00 F2 */	ps_mul f7, f7, f3
lbl_8019C96C:
/* 8019C96C 001998CC  EC EA 38 24 */	fdivs f7, f10, f7
/* 8019C970 001998D0  3B A0 00 00 */	li r29, 0
/* 8019C974 001998D4  ED 27 02 32 */	fmuls f9, f7, f8
/* 8019C978 001998D8  ED 07 03 32 */	fmuls f8, f7, f12
/* 8019C97C 001998DC  EC E7 01 B2 */	fmuls f7, f7, f6
/* 8019C980 001998E0  FD 20 48 1E */	fctiwz f9, f9
/* 8019C984 001998E4  FD 00 40 1E */	fctiwz f8, f8
/* 8019C988 001998E8  FC E0 38 1E */	fctiwz f7, f7
/* 8019C98C 001998EC  D9 21 00 30 */	stfd f9, 0x30(r1)
/* 8019C990 001998F0  80 01 00 34 */	lwz r0, 0x34(r1)
/* 8019C994 001998F4  D9 01 00 28 */	stfd f8, 0x28(r1)
/* 8019C998 001998F8  D8 E1 00 20 */	stfd f7, 0x20(r1)
/* 8019C99C 001998FC  81 81 00 2C */	lwz r12, 0x2c(r1)
/* 8019C9A0 00199900  98 1A 00 04 */	stb r0, 4(r26)
/* 8019C9A4 00199904  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019C9A8 00199908  99 9A 00 05 */	stb r12, 5(r26)
/* 8019C9AC 0019990C  98 1A 00 06 */	stb r0, 6(r26)
/* 8019C9B0 00199910  C1 1A 00 00 */	lfs f8, 0(r26)
/* 8019C9B4 00199914  C0 E5 00 38 */	lfs f7, 0x38(r5)
/* 8019C9B8 00199918  FC 08 58 40 */	fcmpo cr0, f8, f11
/* 8019C9BC 0019991C  40 81 00 20 */	ble lbl_8019C9DC
/* 8019C9C0 00199920  EC E8 01 F2 */	fmuls f7, f8, f7
/* 8019C9C4 00199924  FC E0 38 1E */	fctiwz f7, f7
/* 8019C9C8 00199928  D8 E1 00 30 */	stfd f7, 0x30(r1)
/* 8019C9CC 0019992C  83 A1 00 34 */	lwz r29, 0x34(r1)
/* 8019C9D0 00199930  2C 1D 00 FF */	cmpwi r29, 0xff
/* 8019C9D4 00199934  40 81 00 08 */	ble lbl_8019C9DC
/* 8019C9D8 00199938  3B A0 00 FF */	li r29, 0xff
lbl_8019C9DC:
/* 8019C9DC 0019993C  9B BA 00 07 */	stb r29, 7(r26)
/* 8019C9E0 00199940  3B 7B 00 01 */	addi r27, r27, 1
/* 8019C9E4 00199944  3B 5A 01 68 */	addi r26, r26, 0x168
lbl_8019C9E8:
/* 8019C9E8 00199948  80 01 00 18 */	lwz r0, 0x18(r1)
/* 8019C9EC 0019994C  7C 1B 00 00 */	cmpw r27, r0
/* 8019C9F0 00199950  41 80 FF 38 */	blt lbl_8019C928
/* 8019C9F4 00199954  48 00 00 C8 */	b lbl_8019CABC
lbl_8019C9F8:
/* 8019C9F8 00199958  C1 0A 01 68 */	lfs f8, 0x168(r10)
/* 8019C9FC 0019995C  C0 EA FE 98 */	lfs f7, -0x168(r10)
/* 8019CA00 00199960  C1 4A 00 08 */	lfs f10, 8(r10)
/* 8019CA04 00199964  ED 08 38 28 */	fsubs f8, f8, f7
/* 8019CA08 00199968  C1 2A FF F8 */	lfs f9, -8(r10)
/* 8019CA0C 0019996C  C0 E2 A6 E0 */	lfs f7, lbl_805AC400@sda21(r2)
/* 8019CA10 00199970  ED 2A 48 28 */	fsubs f9, f10, f9
/* 8019CA14 00199974  ED 65 02 32 */	fmuls f11, f5, f8
/* 8019CA18 00199978  ED 45 02 72 */	fmuls f10, f5, f9
/* 8019CA1C 0019997C  ED 0B 02 F2 */	fmuls f8, f11, f11
/* 8019CA20 00199980  ED 0A 42 BA */	fmadds f8, f10, f10, f8
/* 8019CA24 00199984  EC 86 41 BA */	fmadds f4, f6, f6, f8
/* 8019CA28 00199988  FC 07 20 00 */	fcmpu cr0, f7, f4
/* 8019CA2C 0019998C  40 82 00 0C */	bne lbl_8019CA38
/* 8019CA30 00199990  FD 20 20 90 */	fmr f9, f4
/* 8019CA34 00199994  48 00 00 0C */	b lbl_8019CA40
lbl_8019CA38:
/* 8019CA38 00199998  11 20 20 34 */	ps_rsqrte f9, f4
/* 8019CA3C 0019999C  11 29 01 32 */	ps_mul f9, f9, f4
lbl_8019CA40:
/* 8019CA40 001999A0  C1 02 A7 18 */	lfs f8, lbl_805AC438@sda21(r2)
/* 8019CA44 001999A4  3B A0 00 00 */	li r29, 0
/* 8019CA48 001999A8  C0 E2 A6 E0 */	lfs f7, lbl_805AC400@sda21(r2)
/* 8019CA4C 001999AC  ED 08 48 24 */	fdivs f8, f8, f9
/* 8019CA50 001999B0  ED 48 02 B2 */	fmuls f10, f8, f10
/* 8019CA54 001999B4  ED 28 02 F2 */	fmuls f9, f8, f11
/* 8019CA58 001999B8  ED 08 01 B2 */	fmuls f8, f8, f6
/* 8019CA5C 001999BC  FD 40 50 1E */	fctiwz f10, f10
/* 8019CA60 001999C0  FD 20 48 1E */	fctiwz f9, f9
/* 8019CA64 001999C4  FD 00 40 1E */	fctiwz f8, f8
/* 8019CA68 001999C8  D9 41 00 30 */	stfd f10, 0x30(r1)
/* 8019CA6C 001999CC  80 01 00 34 */	lwz r0, 0x34(r1)
/* 8019CA70 001999D0  D9 21 00 28 */	stfd f9, 0x28(r1)
/* 8019CA74 001999D4  D9 01 00 20 */	stfd f8, 0x20(r1)
/* 8019CA78 001999D8  81 81 00 2C */	lwz r12, 0x2c(r1)
/* 8019CA7C 001999DC  98 0A 00 04 */	stb r0, 4(r10)
/* 8019CA80 001999E0  80 01 00 24 */	lwz r0, 0x24(r1)
/* 8019CA84 001999E4  99 8A 00 05 */	stb r12, 5(r10)
/* 8019CA88 001999E8  98 0A 00 06 */	stb r0, 6(r10)
/* 8019CA8C 001999EC  C1 2A 00 00 */	lfs f9, 0(r10)
/* 8019CA90 001999F0  C1 05 00 38 */	lfs f8, 0x38(r5)
/* 8019CA94 001999F4  FC 09 38 40 */	fcmpo cr0, f9, f7
/* 8019CA98 001999F8  40 81 00 20 */	ble lbl_8019CAB8
/* 8019CA9C 001999FC  EC E9 02 32 */	fmuls f7, f9, f8
/* 8019CAA0 00199A00  FC E0 38 1E */	fctiwz f7, f7
/* 8019CAA4 00199A04  D8 E1 00 30 */	stfd f7, 0x30(r1)
/* 8019CAA8 00199A08  83 A1 00 34 */	lwz r29, 0x34(r1)
/* 8019CAAC 00199A0C  2C 1D 00 FF */	cmpwi r29, 0xff
/* 8019CAB0 00199A10  40 81 00 08 */	ble lbl_8019CAB8
/* 8019CAB4 00199A14  3B A0 00 FF */	li r29, 0xff
lbl_8019CAB8:
/* 8019CAB8 00199A18  9B AA 00 07 */	stb r29, 7(r10)
lbl_8019CABC:
/* 8019CABC 00199A1C  80 0D A5 74 */	lwz r0, lbl_805A9134@sda21(r13)
/* 8019CAC0 00199A20  38 63 00 01 */	addi r3, r3, 1
/* 8019CAC4 00199A24  39 6B 00 01 */	addi r11, r11, 1
/* 8019CAC8 00199A28  54 00 18 38 */	slwi r0, r0, 3
/* 8019CACC 00199A2C  7D 4A 02 14 */	add r10, r10, r0
lbl_8019CAD0:
/* 8019CAD0 00199A30  89 85 00 00 */	lbz r12, 0(r5)
/* 8019CAD4 00199A34  80 0D A5 74 */	lwz r0, lbl_805A9134@sda21(r13)
/* 8019CAD8 00199A38  7D 8C 07 74 */	extsb r12, r12
/* 8019CADC 00199A3C  7D 8C 02 14 */	add r12, r12, r0
/* 8019CAE0 00199A40  39 8C FF FE */	addi r12, r12, -2
/* 8019CAE4 00199A44  7D 8C 03 D6 */	divw r12, r12, r0
/* 8019CAE8 00199A48  7C 0B 60 00 */	cmpw r11, r12
/* 8019CAEC 00199A4C  40 81 FA 88 */	ble lbl_8019C574
/* 8019CAF0 00199A50  1C 00 01 68 */	mulli r0, r0, 0x168
/* 8019CAF4 00199A54  A8 65 00 2A */	lha r3, 0x2a(r5)
/* 8019CAF8 00199A58  39 08 00 01 */	addi r8, r8, 1
/* 8019CAFC 00199A5C  7C C6 1A 14 */	add r6, r6, r3
/* 8019CB00 00199A60  7C E7 02 14 */	add r7, r7, r0
/* 8019CB04 00199A64  38 84 00 09 */	addi r4, r4, 9
lbl_8019CB08:
/* 8019CB08 00199A68  88 05 00 01 */	lbz r0, 1(r5)
/* 8019CB0C 00199A6C  81 4D A5 74 */	lwz r10, lbl_805A9134@sda21(r13)
/* 8019CB10 00199A70  7C 00 07 74 */	extsb r0, r0
/* 8019CB14 00199A74  7C 60 52 14 */	add r3, r0, r10
/* 8019CB18 00199A78  38 03 FF FE */	addi r0, r3, -2
/* 8019CB1C 00199A7C  7C 00 53 D6 */	divw r0, r0, r10
/* 8019CB20 00199A80  7C 08 00 00 */	cmpw r8, r0
/* 8019CB24 00199A84  40 81 F9 EC */	ble lbl_8019C510
/* 8019CB28 00199A88  BB 41 00 38 */	lmw r26, 0x38(r1)
/* 8019CB2C 00199A8C  38 21 00 50 */	addi r1, r1, 0x50
/* 8019CB30 00199A90  4E 80 00 20 */	blr

.global __dt__11CTurbulenceFv
__dt__11CTurbulenceFv:
/* 8019CB34 00199A94  94 21 FF F0 */	stwu r1, -0x10(r1)
/* 8019CB38 00199A98  7C 08 02 A6 */	mflr r0
/* 8019CB3C 00199A9C  90 01 00 14 */	stw r0, 0x14(r1)
/* 8019CB40 00199AA0  93 E1 00 0C */	stw r31, 0xc(r1)
/* 8019CB44 00199AA4  7C 9F 23 78 */	mr r31, r4
/* 8019CB48 00199AA8  93 C1 00 08 */	stw r30, 8(r1)
/* 8019CB4C 00199AAC  7C 7E 1B 79 */	or. r30, r3, r3
/* 8019CB50 00199AB0  41 82 00 1C */	beq lbl_8019CB6C
/* 8019CB54 00199AB4  80 7E 00 20 */	lwz r3, 0x20(r30)
/* 8019CB58 00199AB8  48 17 8D D9 */	bl Free__7CMemoryFPCv
/* 8019CB5C 00199ABC  7F E0 07 35 */	extsh. r0, r31
/* 8019CB60 00199AC0  40 81 00 0C */	ble lbl_8019CB6C
/* 8019CB64 00199AC4  7F C3 F3 78 */	mr r3, r30
/* 8019CB68 00199AC8  48 17 8D C9 */	bl Free__7CMemoryFPCv
lbl_8019CB6C:
/* 8019CB6C 00199ACC  80 01 00 14 */	lwz r0, 0x14(r1)
/* 8019CB70 00199AD0  7F C3 F3 78 */	mr r3, r30
/* 8019CB74 00199AD4  83 E1 00 0C */	lwz r31, 0xc(r1)
/* 8019CB78 00199AD8  83 C1 00 08 */	lwz r30, 8(r1)
/* 8019CB7C 00199ADC  7C 08 03 A6 */	mtlr r0
/* 8019CB80 00199AE0  38 21 00 10 */	addi r1, r1, 0x10
/* 8019CB84 00199AE4  4E 80 00 20 */	blr

.global __ct__Q214CFluidPlaneCPU11CTurbulenceFffffffff
__ct__Q214CFluidPlaneCPU11CTurbulenceFffffffff:
/* 8019CB88 00199AE8  94 21 FF 50 */	stwu r1, -0xb0(r1)
/* 8019CB8C 00199AEC  7C 08 02 A6 */	mflr r0
/* 8019CB90 00199AF0  90 01 00 B4 */	stw r0, 0xb4(r1)
/* 8019CB94 00199AF4  DB E1 00 A0 */	stfd f31, 0xa0(r1)
/* 8019CB98 00199AF8  F3 E1 00 A8 */	psq_st f31, 168(r1), 0, qr0
/* 8019CB9C 00199AFC  DB C1 00 90 */	stfd f30, 0x90(r1)
/* 8019CBA0 00199B00  F3 C1 00 98 */	psq_st f30, 152(r1), 0, qr0
/* 8019CBA4 00199B04  DB A1 00 80 */	stfd f29, 0x80(r1)
/* 8019CBA8 00199B08  F3 A1 00 88 */	psq_st f29, 136(r1), 0, qr0
/* 8019CBAC 00199B0C  DB 81 00 70 */	stfd f28, 0x70(r1)
/* 8019CBB0 00199B10  F3 81 00 78 */	psq_st f28, 120(r1), 0, qr0
/* 8019CBB4 00199B14  DB 61 00 60 */	stfd f27, 0x60(r1)
/* 8019CBB8 00199B18  F3 61 00 68 */	psq_st f27, 104(r1), 0, qr0
/* 8019CBBC 00199B1C  DB 41 00 50 */	stfd f26, 0x50(r1)
/* 8019CBC0 00199B20  F3 41 00 58 */	psq_st f26, 88(r1), 0, qr0
/* 8019CBC4 00199B24  DB 21 00 40 */	stfd f25, 0x40(r1)
/* 8019CBC8 00199B28  F3 21 00 48 */	psq_st f25, 72(r1), 0, qr0
/* 8019CBCC 00199B2C  DB 01 00 30 */	stfd f24, 0x30(r1)
/* 8019CBD0 00199B30  F3 01 00 38 */	psq_st f24, 56(r1), 0, qr0
/* 8019CBD4 00199B34  DA E1 00 20 */	stfd f23, 0x20(r1)
/* 8019CBD8 00199B38  F2 E1 00 28 */	psq_st f23, 40(r1), 0, qr0
/* 8019CBDC 00199B3C  93 E1 00 1C */	stw r31, 0x1c(r1)
/* 8019CBE0 00199B40  93 C1 00 18 */	stw r30, 0x18(r1)
/* 8019CBE4 00199B44  93 A1 00 14 */	stw r29, 0x14(r1)
/* 8019CBE8 00199B48  7C 7D 1B 78 */	mr r29, r3
/* 8019CBEC 00199B4C  38 00 00 00 */	li r0, 0
/* 8019CBF0 00199B50  D0 23 00 00 */	stfs f1, 0(r3)
/* 8019CBF4 00199B54  C1 22 A6 E0 */	lfs f9, lbl_805AC400@sda21(r2)
/* 8019CBF8 00199B58  D0 43 00 04 */	stfs f2, 4(r3)
/* 8019CBFC 00199B5C  C0 22 A6 DC */	lfs f1, lbl_805AC3FC@sda21(r2)
/* 8019CC00 00199B60  D0 63 00 08 */	stfs f3, 8(r3)
/* 8019CC04 00199B64  D0 83 00 0C */	stfs f4, 0xc(r3)
/* 8019CC08 00199B68  D0 A3 00 10 */	stfs f5, 0x10(r3)
/* 8019CC0C 00199B6C  D0 C3 00 14 */	stfs f6, 0x14(r3)
/* 8019CC10 00199B70  D0 E3 00 18 */	stfs f7, 0x18(r3)
/* 8019CC14 00199B74  D1 03 00 1C */	stfs f8, 0x1c(r3)
/* 8019CC18 00199B78  90 03 00 20 */	stw r0, 0x20(r3)
/* 8019CC1C 00199B7C  90 03 00 24 */	stw r0, 0x24(r3)
/* 8019CC20 00199B80  D1 23 00 28 */	stfs f9, 0x28(r3)
/* 8019CC24 00199B84  C0 03 00 00 */	lfs f0, 0(r3)
/* 8019CC28 00199B88  EC 01 00 24 */	fdivs f0, f1, f0
/* 8019CC2C 00199B8C  D0 03 00 2C */	stfs f0, 0x2c(r3)
/* 8019CC30 00199B90  C0 03 00 04 */	lfs f0, 4(r3)
/* 8019CC34 00199B94  EC 01 00 24 */	fdivs f0, f1, f0
/* 8019CC38 00199B98  D0 03 00 30 */	stfs f0, 0x30(r3)
/* 8019CC3C 00199B9C  98 03 00 34 */	stb r0, 0x34(r3)
/* 8019CC40 00199BA0  C0 03 00 18 */	lfs f0, 0x18(r3)
/* 8019CC44 00199BA4  FC 09 00 00 */	fcmpu cr0, f9, f0
/* 8019CC48 00199BA8  40 82 00 14 */	bne lbl_8019CC5C
/* 8019CC4C 00199BAC  C0 1D 00 1C */	lfs f0, 0x1c(r29)
/* 8019CC50 00199BB0  FC 09 00 00 */	fcmpu cr0, f9, f0
/* 8019CC54 00199BB4  40 82 00 08 */	bne lbl_8019CC5C
/* 8019CC58 00199BB8  48 00 01 04 */	b lbl_8019CD5C
lbl_8019CC5C:
/* 8019CC5C 00199BBC  80 AD 8F D8 */	lwz r5, lbl_805A7B98@sda21(r13)
/* 8019CC60 00199BC0  3C 00 43 30 */	lis r0, 0x4330
/* 8019CC64 00199BC4  3C 60 80 3D */	lis r3, lbl_803D12F8@ha
/* 8019CC68 00199BC8  90 01 00 08 */	stw r0, 8(r1)
/* 8019CC6C 00199BCC  C8 22 A6 F0 */	lfd f1, lbl_805AC410@sda21(r2)
/* 8019CC70 00199BD0  38 83 12 F8 */	addi r4, r3, lbl_803D12F8@l
/* 8019CC74 00199BD4  90 BD 00 24 */	stw r5, 0x24(r29)
/* 8019CC78 00199BD8  38 A0 00 00 */	li r5, 0
/* 8019CC7C 00199BDC  80 1D 00 24 */	lwz r0, 0x24(r29)
/* 8019CC80 00199BE0  6C 00 80 00 */	xoris r0, r0, 0x8000
/* 8019CC84 00199BE4  90 01 00 0C */	stw r0, 0xc(r1)
/* 8019CC88 00199BE8  C8 01 00 08 */	lfd f0, 8(r1)
/* 8019CC8C 00199BEC  EC 00 08 28 */	fsubs f0, f0, f1
/* 8019CC90 00199BF0  D0 1D 00 28 */	stfs f0, 0x28(r29)
/* 8019CC94 00199BF4  80 1D 00 24 */	lwz r0, 0x24(r29)
/* 8019CC98 00199BF8  54 03 10 3A */	slwi r3, r0, 2
/* 8019CC9C 00199BFC  48 17 8B 7D */	bl __nwa__FUlPCcPCc
/* 8019CCA0 00199C00  90 7D 00 20 */	stw r3, 0x20(r29)
/* 8019CCA4 00199C04  3B C0 00 00 */	li r30, 0
/* 8019CCA8 00199C08  C0 22 A7 1C */	lfs f1, lbl_805AC43C@sda21(r2)
/* 8019CCAC 00199C0C  3B E0 00 00 */	li r31, 0
/* 8019CCB0 00199C10  C0 1D 00 28 */	lfs f0, 0x28(r29)
/* 8019CCB4 00199C14  C0 5D 00 08 */	lfs f2, 8(r29)
/* 8019CCB8 00199C18  EF C1 00 24 */	fdivs f30, f1, f0
/* 8019CCBC 00199C1C  C0 1D 00 0C */	lfs f0, 0xc(r29)
/* 8019CCC0 00199C20  C0 FD 00 10 */	lfs f7, 0x10(r29)
/* 8019CCC4 00199C24  C0 3D 00 14 */	lfs f1, 0x14(r29)
/* 8019CCC8 00199C28  C1 3D 00 18 */	lfs f9, 0x18(r29)
/* 8019CCCC 00199C2C  C1 1D 00 1C */	lfs f8, 0x1c(r29)
/* 8019CCD0 00199C30  EC A2 00 2A */	fadds f5, f2, f0
/* 8019CCD4 00199C34  C0 C2 A6 E8 */	lfs f6, lbl_805AC408@sda21(r2)
/* 8019CCD8 00199C38  EC 82 00 28 */	fsubs f4, f2, f0
/* 8019CCDC 00199C3C  C3 E2 A6 E0 */	lfs f31, lbl_805AC400@sda21(r2)
/* 8019CCE0 00199C40  EC 67 08 2A */	fadds f3, f7, f1
/* 8019CCE4 00199C44  EC 47 08 28 */	fsubs f2, f7, f1
/* 8019CCE8 00199C48  EC 29 40 2A */	fadds f1, f9, f8
/* 8019CCEC 00199C4C  EC 09 40 28 */	fsubs f0, f9, f8
/* 8019CCF0 00199C50  EF 86 01 72 */	fmuls f28, f6, f5
/* 8019CCF4 00199C54  EF 66 01 32 */	fmuls f27, f6, f4
/* 8019CCF8 00199C58  EF 46 00 F2 */	fmuls f26, f6, f3
/* 8019CCFC 00199C5C  EF 26 00 B2 */	fmuls f25, f6, f2
/* 8019CD00 00199C60  EF 06 00 72 */	fmuls f24, f6, f1
/* 8019CD04 00199C64  EE E6 00 32 */	fmuls f23, f6, f0
/* 8019CD08 00199C68  48 00 00 3C */	b lbl_8019CD44
lbl_8019CD0C:
/* 8019CD0C 00199C6C  FC 20 F8 90 */	fmr f1, f31
/* 8019CD10 00199C70  48 17 80 35 */	bl FastCosR__5CMathFf
/* 8019CD14 00199C74  FF A0 08 90 */	fmr f29, f1
/* 8019CD18 00199C78  EC 3B E7 7A */	fmadds f1, f27, f29, f28
/* 8019CD1C 00199C7C  EC 19 D7 7A */	fmadds f0, f25, f29, f26
/* 8019CD20 00199C80  EC 21 07 FA */	fmadds f1, f1, f31, f0
/* 8019CD24 00199C84  48 17 80 CD */	bl FastSinR__5CMathFf
/* 8019CD28 00199C88  EC 17 C7 7A */	fmadds f0, f23, f29, f24
/* 8019CD2C 00199C8C  80 7D 00 20 */	lwz r3, 0x20(r29)
/* 8019CD30 00199C90  EF FF F0 2A */	fadds f31, f31, f30
/* 8019CD34 00199C94  3B DE 00 01 */	addi r30, r30, 1
/* 8019CD38 00199C98  EC 00 00 72 */	fmuls f0, f0, f1
/* 8019CD3C 00199C9C  7C 03 FD 2E */	stfsx f0, r3, r31
/* 8019CD40 00199CA0  3B FF 00 04 */	addi r31, r31, 4
lbl_8019CD44:
/* 8019CD44 00199CA4  80 1D 00 24 */	lwz r0, 0x24(r29)
/* 8019CD48 00199CA8  7C 1E 00 00 */	cmpw r30, r0
/* 8019CD4C 00199CAC  41 80 FF C0 */	blt lbl_8019CD0C
/* 8019CD50 00199CB0  38 00 00 01 */	li r0, 1
/* 8019CD54 00199CB4  7F A3 EB 78 */	mr r3, r29
/* 8019CD58 00199CB8  98 1D 00 34 */	stb r0, 0x34(r29)
lbl_8019CD5C:
/* 8019CD5C 00199CBC  E3 E1 00 A8 */	psq_l f31, 168(r1), 0, qr0
/* 8019CD60 00199CC0  CB E1 00 A0 */	lfd f31, 0xa0(r1)
/* 8019CD64 00199CC4  E3 C1 00 98 */	psq_l f30, 152(r1), 0, qr0
/* 8019CD68 00199CC8  CB C1 00 90 */	lfd f30, 0x90(r1)
/* 8019CD6C 00199CCC  E3 A1 00 88 */	psq_l f29, 136(r1), 0, qr0
/* 8019CD70 00199CD0  CB A1 00 80 */	lfd f29, 0x80(r1)
/* 8019CD74 00199CD4  E3 81 00 78 */	psq_l f28, 120(r1), 0, qr0
/* 8019CD78 00199CD8  CB 81 00 70 */	lfd f28, 0x70(r1)
/* 8019CD7C 00199CDC  E3 61 00 68 */	psq_l f27, 104(r1), 0, qr0
/* 8019CD80 00199CE0  CB 61 00 60 */	lfd f27, 0x60(r1)
/* 8019CD84 00199CE4  E3 41 00 58 */	psq_l f26, 88(r1), 0, qr0
/* 8019CD88 00199CE8  CB 41 00 50 */	lfd f26, 0x50(r1)
/* 8019CD8C 00199CEC  E3 21 00 48 */	psq_l f25, 72(r1), 0, qr0
/* 8019CD90 00199CF0  CB 21 00 40 */	lfd f25, 0x40(r1)
/* 8019CD94 00199CF4  E3 01 00 38 */	psq_l f24, 56(r1), 0, qr0
/* 8019CD98 00199CF8  CB 01 00 30 */	lfd f24, 0x30(r1)
/* 8019CD9C 00199CFC  E2 E1 00 28 */	psq_l f23, 40(r1), 0, qr0
/* 8019CDA0 00199D00  CA E1 00 20 */	lfd f23, 0x20(r1)
/* 8019CDA4 00199D04  83 E1 00 1C */	lwz r31, 0x1c(r1)
/* 8019CDA8 00199D08  83 C1 00 18 */	lwz r30, 0x18(r1)
/* 8019CDAC 00199D0C  80 01 00 B4 */	lwz r0, 0xb4(r1)
/* 8019CDB0 00199D10  83 A1 00 14 */	lwz r29, 0x14(r1)
/* 8019CDB4 00199D14  7C 08 03 A6 */	mtlr r0
/* 8019CDB8 00199D18  38 21 00 B0 */	addi r1, r1, 0xb0
/* 8019CDBC 00199D1C  4E 80 00 20 */	blr

.global __ct__14CFluidPlaneCPUFUiUiUiUiUiUifUiQ211CFluidPlane10EFluidTypefRC9CVector3ffRC14CFluidUVMotionfffffffffffff
__ct__14CFluidPlaneCPUFUiUiUiUiUiUifUiQ211CFluidPlane10EFluidTypefRC9CVector3ffRC14CFluidUVMotionfffffffffffff:
/* 8019CDC0 00199D20  94 21 FE 60 */	stwu r1, -0x1a0(r1)
/* 8019CDC4 00199D24  7C 08 02 A6 */	mflr r0
/* 8019CDC8 00199D28  90 01 01 A4 */	stw r0, 0x1a4(r1)
/* 8019CDCC 00199D2C  DB E1 01 90 */	stfd f31, 0x190(r1)
/* 8019CDD0 00199D30  F3 E1 01 98 */	psq_st f31, 408(r1), 0, qr0
/* 8019CDD4 00199D34  DB C1 01 80 */	stfd f30, 0x180(r1)
/* 8019CDD8 00199D38  F3 C1 01 88 */	psq_st f30, 392(r1), 0, qr0
/* 8019CDDC 00199D3C  DB A1 01 70 */	stfd f29, 0x170(r1)
/* 8019CDE0 00199D40  F3 A1 01 78 */	psq_st f29, 376(r1), 0, qr0
/* 8019CDE4 00199D44  DB 81 01 60 */	stfd f28, 0x160(r1)
/* 8019CDE8 00199D48  F3 81 01 68 */	psq_st f28, 360(r1), 0, qr0
/* 8019CDEC 00199D4C  DB 61 01 50 */	stfd f27, 0x150(r1)
/* 8019CDF0 00199D50  F3 61 01 58 */	psq_st f27, 344(r1), 0, qr0
/* 8019CDF4 00199D54  DB 41 01 40 */	stfd f26, 0x140(r1)
/* 8019CDF8 00199D58  F3 41 01 48 */	psq_st f26, 328(r1), 0, qr0
/* 8019CDFC 00199D5C  DB 21 01 30 */	stfd f25, 0x130(r1)
/* 8019CE00 00199D60  F3 21 01 38 */	psq_st f25, 312(r1), 0, qr0
/* 8019CE04 00199D64  DB 01 01 20 */	stfd f24, 0x120(r1)
/* 8019CE08 00199D68  F3 01 01 28 */	psq_st f24, 296(r1), 0, qr0
/* 8019CE0C 00199D6C  DA E1 01 10 */	stfd f23, 0x110(r1)
/* 8019CE10 00199D70  F2 E1 01 18 */	psq_st f23, 280(r1), 0, qr0
/* 8019CE14 00199D74  DA C1 01 00 */	stfd f22, 0x100(r1)
/* 8019CE18 00199D78  F2 C1 01 08 */	psq_st f22, 264(r1), 0, qr0
/* 8019CE1C 00199D7C  DA A1 00 F0 */	stfd f21, 0xf0(r1)
/* 8019CE20 00199D80  F2 A1 00 F8 */	psq_st f21, 248(r1), 0, qr0
/* 8019CE24 00199D84  DA 81 00 E0 */	stfd f20, 0xe0(r1)
/* 8019CE28 00199D88  F2 81 00 E8 */	psq_st f20, 232(r1), 0, qr0
/* 8019CE2C 00199D8C  DA 61 00 D0 */	stfd f19, 0xd0(r1)
/* 8019CE30 00199D90  F2 61 00 D8 */	psq_st f19, 216(r1), 0, qr0
/* 8019CE34 00199D94  DA 41 00 C0 */	stfd f18, 0xc0(r1)
/* 8019CE38 00199D98  F2 41 00 C8 */	psq_st f18, 200(r1), 0, qr0
/* 8019CE3C 00199D9C  DA 21 00 B0 */	stfd f17, 0xb0(r1)
/* 8019CE40 00199DA0  F2 21 00 B8 */	psq_st f17, 184(r1), 0, qr0
/* 8019CE44 00199DA4  BF 01 00 90 */	stmw r24, 0x90(r1)
/* 8019CE48 00199DA8  C0 01 01 D8 */	lfs f0, 0x1d8(r1)
/* 8019CE4C 00199DAC  FE 20 08 90 */	fmr f17, f1
/* 8019CE50 00199DB0  FE 40 10 90 */	fmr f18, f2
/* 8019CE54 00199DB4  83 E1 01 AC */	lwz r31, 0x1ac(r1)
/* 8019CE58 00199DB8  FE 60 20 90 */	fmr f19, f4
/* 8019CE5C 00199DBC  80 01 01 B4 */	lwz r0, 0x1b4(r1)
/* 8019CE60 00199DC0  FE 80 28 90 */	fmr f20, f5
/* 8019CE64 00199DC4  7C F8 3B 78 */	mr r24, r7
/* 8019CE68 00199DC8  7D 19 43 78 */	mr r25, r8
/* 8019CE6C 00199DCC  FE A0 30 90 */	fmr f21, f6
/* 8019CE70 00199DD0  FE C0 38 90 */	fmr f22, f7
/* 8019CE74 00199DD4  83 81 01 A8 */	lwz r28, 0x1a8(r1)
/* 8019CE78 00199DD8  FE E0 40 90 */	fmr f23, f8
/* 8019CE7C 00199DDC  83 A1 01 B0 */	lwz r29, 0x1b0(r1)
/* 8019CE80 00199DE0  FC 20 18 90 */	fmr f1, f3
/* 8019CE84 00199DE4  FC 40 00 90 */	fmr f2, f0
/* 8019CE88 00199DE8  C3 01 01 B8 */	lfs f24, 0x1b8(r1)
/* 8019CE8C 00199DEC  7C 7E 1B 78 */	mr r30, r3
/* 8019CE90 00199DF0  C3 21 01 BC */	lfs f25, 0x1bc(r1)
/* 8019CE94 00199DF4  7D 3A 4B 78 */	mr r26, r9
/* 8019CE98 00199DF8  C3 41 01 C0 */	lfs f26, 0x1c0(r1)
/* 8019CE9C 00199DFC  C3 61 01 C4 */	lfs f27, 0x1c4(r1)
/* 8019CEA0 00199E00  7D 5B 53 78 */	mr r27, r10
/* 8019CEA4 00199E04  C3 81 01 C8 */	lfs f28, 0x1c8(r1)
/* 8019CEA8 00199E08  7F E7 FB 78 */	mr r7, r31
/* 8019CEAC 00199E0C  C3 A1 01 CC */	lfs f29, 0x1cc(r1)
/* 8019CEB0 00199E10  7C 08 03 78 */	mr r8, r0
/* 8019CEB4 00199E14  C3 C1 01 D0 */	lfs f30, 0x1d0(r1)
/* 8019CEB8 00199E18  C3 E1 01 D4 */	lfs f31, 0x1d4(r1)
/* 8019CEBC 00199E1C  4B F9 1E 79 */	bl __ct__11CFluidPlaneFUiUiUifQ211CFluidPlane10EFluidTypefRC14CFluidUVMotion
/* 8019CEC0 00199E20  3C 60 80 3E */	lis r3, lbl_803E46C8@ha
/* 8019CEC4 00199E24  38 00 00 00 */	li r0, 0
/* 8019CEC8 00199E28  38 63 46 C8 */	addi r3, r3, lbl_803E46C8@l
/* 8019CECC 00199E2C  7F A4 EB 78 */	mr r4, r29
/* 8019CED0 00199E30  90 7E 00 00 */	stw r3, 0(r30)
/* 8019CED4 00199E34  38 61 00 78 */	addi r3, r1, 0x78
/* 8019CED8 00199E38  93 1E 00 A0 */	stw r24, 0xa0(r30)
/* 8019CEDC 00199E3C  93 3E 00 A4 */	stw r25, 0xa4(r30)
/* 8019CEE0 00199E40  93 5E 00 A8 */	stw r26, 0xa8(r30)
/* 8019CEE4 00199E44  93 7E 00 AC */	stw r27, 0xac(r30)
/* 8019CEE8 00199E48  98 1E 00 BC */	stb r0, 0xbc(r30)
/* 8019CEEC 00199E4C  98 1E 00 CC */	stb r0, 0xcc(r30)
/* 8019CEF0 00199E50  98 1E 00 DC */	stb r0, 0xdc(r30)
/* 8019CEF4 00199E54  98 1E 00 EC */	stb r0, 0xec(r30)
/* 8019CEF8 00199E58  48 17 79 59 */	bl AsNormalized__9CVector3fCFv
/* 8019CEFC 00199E5C  C0 01 00 78 */	lfs f0, 0x78(r1)
/* 8019CF00 00199E60  3C 00 43 30 */	lis r0, 0x4330
/* 8019CF04 00199E64  57 84 00 3C */	rlwinm r4, r28, 0, 0, 0x1e
/* 8019CF08 00199E68  90 01 00 88 */	stw r0, 0x88(r1)
/* 8019CF0C 00199E6C  C9 22 A6 F0 */	lfd f9, lbl_805AC410@sda21(r2)
/* 8019CF10 00199E70  FC 20 A0 90 */	fmr f1, f20
/* 8019CF14 00199E74  D0 1E 00 F0 */	stfs f0, 0xf0(r30)
/* 8019CF18 00199E78  FC 40 A8 90 */	fmr f2, f21
/* 8019CF1C 00199E7C  FC 60 B0 90 */	fmr f3, f22
/* 8019CF20 00199E80  38 7E 01 20 */	addi r3, r30, 0x120
/* 8019CF24 00199E84  C0 01 00 7C */	lfs f0, 0x7c(r1)
/* 8019CF28 00199E88  FC 80 B8 90 */	fmr f4, f23
/* 8019CF2C 00199E8C  D0 1E 00 F4 */	stfs f0, 0xf4(r30)
/* 8019CF30 00199E90  FC A0 C0 90 */	fmr f5, f24
/* 8019CF34 00199E94  FC C0 C8 90 */	fmr f6, f25
/* 8019CF38 00199E98  C0 01 00 80 */	lfs f0, 0x80(r1)
/* 8019CF3C 00199E9C  FC E0 D0 90 */	fmr f7, f26
/* 8019CF40 00199EA0  FD 00 D8 90 */	fmr f8, f27
/* 8019CF44 00199EA4  D0 1E 00 F8 */	stfs f0, 0xf8(r30)
/* 8019CF48 00199EA8  D2 7E 00 FC */	stfs f19, 0xfc(r30)
/* 8019CF4C 00199EAC  D2 5E 01 00 */	stfs f18, 0x100(r30)
/* 8019CF50 00199EB0  90 9E 01 04 */	stw r4, 0x104(r30)
/* 8019CF54 00199EB4  80 1E 01 04 */	lwz r0, 0x104(r30)
/* 8019CF58 00199EB8  6C 00 80 00 */	xoris r0, r0, 0x8000
/* 8019CF5C 00199EBC  90 01 00 8C */	stw r0, 0x8c(r1)
/* 8019CF60 00199EC0  C8 01 00 88 */	lfd f0, 0x88(r1)
/* 8019CF64 00199EC4  EC 00 48 28 */	fsubs f0, f0, f9
/* 8019CF68 00199EC8  EC 12 00 24 */	fdivs f0, f18, f0
/* 8019CF6C 00199ECC  D0 1E 01 08 */	stfs f0, 0x108(r30)
/* 8019CF70 00199ED0  D3 9E 01 0C */	stfs f28, 0x10c(r30)
/* 8019CF74 00199ED4  D3 BE 01 10 */	stfs f29, 0x110(r30)
/* 8019CF78 00199ED8  D3 DE 01 14 */	stfs f30, 0x114(r30)
/* 8019CF7C 00199EDC  D3 FE 01 18 */	stfs f31, 0x118(r30)
/* 8019CF80 00199EE0  D2 3E 01 1C */	stfs f17, 0x11c(r30)
/* 8019CF84 00199EE4  4B FF FC 05 */	bl __ct__Q214CFluidPlaneCPU11CTurbulenceFffffffff
/* 8019CF88 00199EE8  80 6D A0 60 */	lwz r3, gpResourceFactory@sda21(r13)
/* 8019CF8C 00199EEC  80 9E 00 A0 */	lwz r4, 0xa0(r30)
/* 8019CF90 00199EF0  38 63 00 04 */	addi r3, r3, 4
/* 8019CF94 00199EF4  48 19 ED 39 */	bl GetResourceTypeById__10CResLoaderCFUi
/* 8019CF98 00199EF8  3C 03 AB A8 */	addis r0, r3, 0xaba8
/* 8019CF9C 00199EFC  28 00 54 52 */	cmplwi r0, 0x5452
/* 8019CFA0 00199F00  40 82 00 D0 */	bne lbl_8019D070
/* 8019CFA4 00199F04  2C 1F 00 02 */	cmpwi r31, 2
/* 8019CFA8 00199F08  41 82 00 0C */	beq lbl_8019CFB4
/* 8019CFAC 00199F0C  2C 1F 00 05 */	cmpwi r31, 5
/* 8019CFB0 00199F10  40 82 00 C0 */	bne lbl_8019D070
lbl_8019CFB4:
/* 8019CFB4 00199F14  80 DE 00 A0 */	lwz r6, 0xa0(r30)
/* 8019CFB8 00199F18  3C 60 54 58 */	lis r3, 0x54585452@ha
/* 8019CFBC 00199F1C  38 03 54 52 */	addi r0, r3, 0x54585452@l
/* 8019CFC0 00199F20  80 8D A0 64 */	lwz r4, gpSimplePool@sda21(r13)
/* 8019CFC4 00199F24  90 01 00 40 */	stw r0, 0x40(r1)
/* 8019CFC8 00199F28  38 61 00 38 */	addi r3, r1, 0x38
/* 8019CFCC 00199F2C  38 A1 00 40 */	addi r5, r1, 0x40
/* 8019CFD0 00199F30  90 C1 00 44 */	stw r6, 0x44(r1)
/* 8019CFD4 00199F34  81 84 00 00 */	lwz r12, 0(r4)
/* 8019CFD8 00199F38  81 8C 00 0C */	lwz r12, 0xc(r12)
/* 8019CFDC 00199F3C  7D 89 03 A6 */	mtctr r12
/* 8019CFE0 00199F40  4E 80 04 21 */	bctrl
/* 8019CFE4 00199F44  3B 01 00 6C */	addi r24, r1, 0x6c
/* 8019CFE8 00199F48  38 81 00 38 */	addi r4, r1, 0x38
/* 8019CFEC 00199F4C  7F 03 C3 78 */	mr r3, r24
/* 8019CFF0 00199F50  48 1A 3E B9 */	bl __ct__6CTokenFRC6CToken
/* 8019CFF4 00199F54  7F 03 C3 78 */	mr r3, r24
/* 8019CFF8 00199F58  48 1A 3E 15 */	bl GetObj__6CTokenFv
/* 8019CFFC 00199F5C  80 03 00 04 */	lwz r0, 4(r3)
/* 8019D000 00199F60  90 01 00 74 */	stw r0, 0x74(r1)
/* 8019D004 00199F64  88 1E 00 BC */	lbz r0, 0xbc(r30)
/* 8019D008 00199F68  28 00 00 00 */	cmplwi r0, 0
/* 8019D00C 00199F6C  40 82 00 34 */	bne lbl_8019D040
/* 8019D010 00199F70  37 BE 00 B0 */	addic. r29, r30, 0xb0
/* 8019D014 00199F74  41 82 00 20 */	beq lbl_8019D034
/* 8019D018 00199F78  7F A3 EB 78 */	mr r3, r29
/* 8019D01C 00199F7C  7F 04 C3 78 */	mr r4, r24
/* 8019D020 00199F80  48 1A 3E 89 */	bl __ct__6CTokenFRC6CToken
/* 8019D024 00199F84  80 01 00 74 */	lwz r0, 0x74(r1)
/* 8019D028 00199F88  7F A3 EB 78 */	mr r3, r29
/* 8019D02C 00199F8C  90 1D 00 08 */	stw r0, 8(r29)
/* 8019D030 00199F90  48 1A 3D 55 */	bl Lock__6CTokenFv
lbl_8019D034:
/* 8019D034 00199F94  38 00 00 01 */	li r0, 1
/* 8019D038 00199F98  98 1E 00 BC */	stb r0, 0xbc(r30)
/* 8019D03C 00199F9C  48 00 00 1C */	b lbl_8019D058
lbl_8019D040:
/* 8019D040 00199FA0  3B BE 00 B0 */	addi r29, r30, 0xb0
/* 8019D044 00199FA4  7F 04 C3 78 */	mr r4, r24
/* 8019D048 00199FA8  7F A3 EB 78 */	mr r3, r29
/* 8019D04C 00199FAC  48 1A 3C 79 */	bl __as__6CTokenFRC6CToken
/* 8019D050 00199FB0  80 01 00 74 */	lwz r0, 0x74(r1)
/* 8019D054 00199FB4  90 1D 00 08 */	stw r0, 8(r29)
lbl_8019D058:
/* 8019D058 00199FB8  38 61 00 6C */	addi r3, r1, 0x6c
/* 8019D05C 00199FBC  38 80 00 00 */	li r4, 0
/* 8019D060 00199FC0  48 1A 3D E1 */	bl __dt__6CTokenFv
/* 8019D064 00199FC4  38 61 00 38 */	addi r3, r1, 0x38
/* 8019D068 00199FC8  38 80 FF FF */	li r4, -1
/* 8019D06C 00199FCC  48 1A 3D D5 */	bl __dt__6CTokenFv
lbl_8019D070:
/* 8019D070 00199FD0  80 6D A0 60 */	lwz r3, gpResourceFactory@sda21(r13)
/* 8019D074 00199FD4  80 9E 00 A4 */	lwz r4, 0xa4(r30)
/* 8019D078 00199FD8  38 63 00 04 */	addi r3, r3, 4
/* 8019D07C 00199FDC  48 19 EC 51 */	bl GetResourceTypeById__10CResLoaderCFUi
/* 8019D080 00199FE0  3C 03 AB A8 */	addis r0, r3, 0xaba8
/* 8019D084 00199FE4  28 00 54 52 */	cmplwi r0, 0x5452
/* 8019D088 00199FE8  40 82 00 C8 */	bne lbl_8019D150
/* 8019D08C 00199FEC  2C 1F 00 00 */	cmpwi r31, 0
/* 8019D090 00199FF0  40 82 00 C0 */	bne lbl_8019D150
/* 8019D094 00199FF4  80 DE 00 A4 */	lwz r6, 0xa4(r30)
/* 8019D098 00199FF8  3C 60 54 58 */	lis r3, 0x54585452@ha
/* 8019D09C 00199FFC  38 03 54 52 */	addi r0, r3, 0x54585452@l
/* 8019D0A0 0019A000  80 8D A0 64 */	lwz r4, gpSimplePool@sda21(r13)
/* 8019D0A4 0019A004  90 01 00 30 */	stw r0, 0x30(r1)
/* 8019D0A8 0019A008  38 61 00 28 */	addi r3, r1, 0x28
/* 8019D0AC 0019A00C  38 A1 00 30 */	addi r5, r1, 0x30
/* 8019D0B0 0019A010  90 C1 00 34 */	stw r6, 0x34(r1)
/* 8019D0B4 0019A014  81 84 00 00 */	lwz r12, 0(r4)
/* 8019D0B8 0019A018  81 8C 00 0C */	lwz r12, 0xc(r12)
/* 8019D0BC 0019A01C  7D 89 03 A6 */	mtctr r12
/* 8019D0C0 0019A020  4E 80 04 21 */	bctrl
/* 8019D0C4 0019A024  3B 01 00 60 */	addi r24, r1, 0x60
/* 8019D0C8 0019A028  38 81 00 28 */	addi r4, r1, 0x28
/* 8019D0CC 0019A02C  7F 03 C3 78 */	mr r3, r24
/* 8019D0D0 0019A030  48 1A 3D D9 */	bl __ct__6CTokenFRC6CToken
/* 8019D0D4 0019A034  7F 03 C3 78 */	mr r3, r24
/* 8019D0D8 0019A038  48 1A 3D 35 */	bl GetObj__6CTokenFv
/* 8019D0DC 0019A03C  80 03 00 04 */	lwz r0, 4(r3)
/* 8019D0E0 0019A040  90 01 00 68 */	stw r0, 0x68(r1)
/* 8019D0E4 0019A044  88 1E 00 CC */	lbz r0, 0xcc(r30)
/* 8019D0E8 0019A048  28 00 00 00 */	cmplwi r0, 0
/* 8019D0EC 0019A04C  40 82 00 34 */	bne lbl_8019D120
/* 8019D0F0 0019A050  37 BE 00 C0 */	addic. r29, r30, 0xc0
/* 8019D0F4 0019A054  41 82 00 20 */	beq lbl_8019D114
/* 8019D0F8 0019A058  7F A3 EB 78 */	mr r3, r29
/* 8019D0FC 0019A05C  7F 04 C3 78 */	mr r4, r24
/* 8019D100 0019A060  48 1A 3D A9 */	bl __ct__6CTokenFRC6CToken
/* 8019D104 0019A064  80 01 00 68 */	lwz r0, 0x68(r1)
/* 8019D108 0019A068  7F A3 EB 78 */	mr r3, r29
/* 8019D10C 0019A06C  90 1D 00 08 */	stw r0, 8(r29)
/* 8019D110 0019A070  48 1A 3C 75 */	bl Lock__6CTokenFv
lbl_8019D114:
/* 8019D114 0019A074  38 00 00 01 */	li r0, 1
/* 8019D118 0019A078  98 1E 00 CC */	stb r0, 0xcc(r30)
/* 8019D11C 0019A07C  48 00 00 1C */	b lbl_8019D138
lbl_8019D120:
/* 8019D120 0019A080  3B BE 00 C0 */	addi r29, r30, 0xc0
/* 8019D124 0019A084  7F 04 C3 78 */	mr r4, r24
/* 8019D128 0019A088  7F A3 EB 78 */	mr r3, r29
/* 8019D12C 0019A08C  48 1A 3B 99 */	bl __as__6CTokenFRC6CToken
/* 8019D130 0019A090  80 01 00 68 */	lwz r0, 0x68(r1)
/* 8019D134 0019A094  90 1D 00 08 */	stw r0, 8(r29)
lbl_8019D138:
/* 8019D138 0019A098  38 61 00 60 */	addi r3, r1, 0x60
/* 8019D13C 0019A09C  38 80 00 00 */	li r4, 0
/* 8019D140 0019A0A0  48 1A 3D 01 */	bl __dt__6CTokenFv
/* 8019D144 0019A0A4  38 61 00 28 */	addi r3, r1, 0x28
/* 8019D148 0019A0A8  38 80 FF FF */	li r4, -1
/* 8019D14C 0019A0AC  48 1A 3C F5 */	bl __dt__6CTokenFv
lbl_8019D150:
/* 8019D150 0019A0B0  80 6D A0 60 */	lwz r3, gpResourceFactory@sda21(r13)
/* 8019D154 0019A0B4  80 9E 00 A8 */	lwz r4, 0xa8(r30)
/* 8019D158 0019A0B8  38 63 00 04 */	addi r3, r3, 4
/* 8019D15C 0019A0BC  48 19 EB 71 */	bl GetResourceTypeById__10CResLoaderCFUi
/* 8019D160 0019A0C0  3C 03 AB A8 */	addis r0, r3, 0xaba8
/* 8019D164 0019A0C4  28 00 54 52 */	cmplwi r0, 0x5452
/* 8019D168 0019A0C8  40 82 00 C0 */	bne lbl_8019D228
/* 8019D16C 0019A0CC  80 DE 00 A8 */	lwz r6, 0xa8(r30)
/* 8019D170 0019A0D0  3C 60 54 58 */	lis r3, 0x54585452@ha
/* 8019D174 0019A0D4  38 03 54 52 */	addi r0, r3, 0x54585452@l
/* 8019D178 0019A0D8  80 8D A0 64 */	lwz r4, gpSimplePool@sda21(r13)
/* 8019D17C 0019A0DC  90 01 00 20 */	stw r0, 0x20(r1)
/* 8019D180 0019A0E0  38 61 00 18 */	addi r3, r1, 0x18
/* 8019D184 0019A0E4  38 A1 00 20 */	addi r5, r1, 0x20
/* 8019D188 0019A0E8  90 C1 00 24 */	stw r6, 0x24(r1)
/* 8019D18C 0019A0EC  81 84 00 00 */	lwz r12, 0(r4)
/* 8019D190 0019A0F0  81 8C 00 0C */	lwz r12, 0xc(r12)
/* 8019D194 0019A0F4  7D 89 03 A6 */	mtctr r12
/* 8019D198 0019A0F8  4E 80 04 21 */	bctrl
/* 8019D19C 0019A0FC  3B 01 00 54 */	addi r24, r1, 0x54
/* 8019D1A0 0019A100  38 81 00 18 */	addi r4, r1, 0x18
/* 8019D1A4 0019A104  7F 03 C3 78 */	mr r3, r24
/* 8019D1A8 0019A108  48 1A 3D 01 */	bl __ct__6CTokenFRC6CToken
/* 8019D1AC 0019A10C  7F 03 C3 78 */	mr r3, r24
/* 8019D1B0 0019A110  48 1A 3C 5D */	bl GetObj__6CTokenFv
/* 8019D1B4 0019A114  80 03 00 04 */	lwz r0, 4(r3)
/* 8019D1B8 0019A118  90 01 00 5C */	stw r0, 0x5c(r1)
/* 8019D1BC 0019A11C  88 1E 00 DC */	lbz r0, 0xdc(r30)
/* 8019D1C0 0019A120  28 00 00 00 */	cmplwi r0, 0
/* 8019D1C4 0019A124  40 82 00 34 */	bne lbl_8019D1F8
/* 8019D1C8 0019A128  37 BE 00 D0 */	addic. r29, r30, 0xd0
/* 8019D1CC 0019A12C  41 82 00 20 */	beq lbl_8019D1EC
/* 8019D1D0 0019A130  7F A3 EB 78 */	mr r3, r29
/* 8019D1D4 0019A134  7F 04 C3 78 */	mr r4, r24
/* 8019D1D8 0019A138  48 1A 3C D1 */	bl __ct__6CTokenFRC6CToken
/* 8019D1DC 0019A13C  80 01 00 5C */	lwz r0, 0x5c(r1)
/* 8019D1E0 0019A140  7F A3 EB 78 */	mr r3, r29
/* 8019D1E4 0019A144  90 1D 00 08 */	stw r0, 8(r29)
/* 8019D1E8 0019A148  48 1A 3B 9D */	bl Lock__6CTokenFv
lbl_8019D1EC:
/* 8019D1EC 0019A14C  38 00 00 01 */	li r0, 1
/* 8019D1F0 0019A150  98 1E 00 DC */	stb r0, 0xdc(r30)
/* 8019D1F4 0019A154  48 00 00 1C */	b lbl_8019D210
lbl_8019D1F8:
/* 8019D1F8 0019A158  3B BE 00 D0 */	addi r29, r30, 0xd0
/* 8019D1FC 0019A15C  7F 04 C3 78 */	mr r4, r24
/* 8019D200 0019A160  7F A3 EB 78 */	mr r3, r29
/* 8019D204 0019A164  48 1A 3A C1 */	bl __as__6CTokenFRC6CToken
/* 8019D208 0019A168  80 01 00 5C */	lwz r0, 0x5c(r1)
/* 8019D20C 0019A16C  90 1D 00 08 */	stw r0, 8(r29)
lbl_8019D210:
/* 8019D210 0019A170  38 61 00 54 */	addi r3, r1, 0x54
/* 8019D214 0019A174  38 80 00 00 */	li r4, 0
/* 8019D218 0019A178  48 1A 3C 29 */	bl __dt__6CTokenFv
/* 8019D21C 0019A17C  38 61 00 18 */	addi r3, r1, 0x18
/* 8019D220 0019A180  38 80 FF FF */	li r4, -1
/* 8019D224 0019A184  48 1A 3C 1D */	bl __dt__6CTokenFv
lbl_8019D228:
/* 8019D228 0019A188  80 6D A0 60 */	lwz r3, gpResourceFactory@sda21(r13)
/* 8019D22C 0019A18C  80 9E 00 AC */	lwz r4, 0xac(r30)
/* 8019D230 0019A190  38 63 00 04 */	addi r3, r3, 4
/* 8019D234 0019A194  48 19 EA 99 */	bl GetResourceTypeById__10CResLoaderCFUi
/* 8019D238 0019A198  3C 03 AB A8 */	addis r0, r3, 0xaba8
/* 8019D23C 0019A19C  28 00 54 52 */	cmplwi r0, 0x5452
/* 8019D240 0019A1A0  40 82 00 D0 */	bne lbl_8019D310
/* 8019D244 0019A1A4  2C 1F 00 02 */	cmpwi r31, 2
/* 8019D248 0019A1A8  41 82 00 C8 */	beq lbl_8019D310
/* 8019D24C 0019A1AC  2C 1F 00 05 */	cmpwi r31, 5
/* 8019D250 0019A1B0  41 82 00 C0 */	beq lbl_8019D310
/* 8019D254 0019A1B4  80 DE 00 AC */	lwz r6, 0xac(r30)
/* 8019D258 0019A1B8  3C 60 54 58 */	lis r3, 0x54585452@ha
/* 8019D25C 0019A1BC  38 03 54 52 */	addi r0, r3, 0x54585452@l
/* 8019D260 0019A1C0  80 8D A0 64 */	lwz r4, gpSimplePool@sda21(r13)
/* 8019D264 0019A1C4  90 01 00 10 */	stw r0, 0x10(r1)
/* 8019D268 0019A1C8  38 61 00 08 */	addi r3, r1, 8
/* 8019D26C 0019A1CC  38 A1 00 10 */	addi r5, r1, 0x10
/* 8019D270 0019A1D0  90 C1 00 14 */	stw r6, 0x14(r1)
/* 8019D274 0019A1D4  81 84 00 00 */	lwz r12, 0(r4)
/* 8019D278 0019A1D8  81 8C 00 0C */	lwz r12, 0xc(r12)
/* 8019D27C 0019A1DC  7D 89 03 A6 */	mtctr r12
/* 8019D280 0019A1E0  4E 80 04 21 */	bctrl
/* 8019D284 0019A1E4  3B 01 00 48 */	addi r24, r1, 0x48
/* 8019D288 0019A1E8  38 81 00 08 */	addi r4, r1, 8
/* 8019D28C 0019A1EC  7F 03 C3 78 */	mr r3, r24
/* 8019D290 0019A1F0  48 1A 3C 19 */	bl __ct__6CTokenFRC6CToken
/* 8019D294 0019A1F4  7F 03 C3 78 */	mr r3, r24
/* 8019D298 0019A1F8  48 1A 3B 75 */	bl GetObj__6CTokenFv
/* 8019D29C 0019A1FC  80 03 00 04 */	lwz r0, 4(r3)
/* 8019D2A0 0019A200  90 01 00 50 */	stw r0, 0x50(r1)
/* 8019D2A4 0019A204  88 1E 00 EC */	lbz r0, 0xec(r30)
/* 8019D2A8 0019A208  28 00 00 00 */	cmplwi r0, 0
/* 8019D2AC 0019A20C  40 82 00 34 */	bne lbl_8019D2E0
/* 8019D2B0 0019A210  37 BE 00 E0 */	addic. r29, r30, 0xe0
/* 8019D2B4 0019A214  41 82 00 20 */	beq lbl_8019D2D4
/* 8019D2B8 0019A218  7F A3 EB 78 */	mr r3, r29
/* 8019D2BC 0019A21C  7F 04 C3 78 */	mr r4, r24
/* 8019D2C0 0019A220  48 1A 3B E9 */	bl __ct__6CTokenFRC6CToken
/* 8019D2C4 0019A224  80 01 00 50 */	lwz r0, 0x50(r1)
/* 8019D2C8 0019A228  7F A3 EB 78 */	mr r3, r29
/* 8019D2CC 0019A22C  90 1D 00 08 */	stw r0, 8(r29)
/* 8019D2D0 0019A230  48 1A 3A B5 */	bl Lock__6CTokenFv
lbl_8019D2D4:
/* 8019D2D4 0019A234  38 00 00 01 */	li r0, 1
/* 8019D2D8 0019A238  98 1E 00 EC */	stb r0, 0xec(r30)
/* 8019D2DC 0019A23C  48 00 00 1C */	b lbl_8019D2F8
lbl_8019D2E0:
/* 8019D2E0 0019A240  3B BE 00 E0 */	addi r29, r30, 0xe0
/* 8019D2E4 0019A244  7F 04 C3 78 */	mr r4, r24
/* 8019D2E8 0019A248  7F A3 EB 78 */	mr r3, r29
/* 8019D2EC 0019A24C  48 1A 39 D9 */	bl __as__6CTokenFRC6CToken
/* 8019D2F0 0019A250  80 01 00 50 */	lwz r0, 0x50(r1)
/* 8019D2F4 0019A254  90 1D 00 08 */	stw r0, 8(r29)
lbl_8019D2F8:
/* 8019D2F8 0019A258  38 61 00 48 */	addi r3, r1, 0x48
/* 8019D2FC 0019A25C  38 80 00 00 */	li r4, 0
/* 8019D300 0019A260  48 1A 3B 41 */	bl __dt__6CTokenFv
/* 8019D304 0019A264  38 61 00 08 */	addi r3, r1, 8
/* 8019D308 0019A268  38 80 FF FF */	li r4, -1
/* 8019D30C 0019A26C  48 1A 3B 35 */	bl __dt__6CTokenFv
lbl_8019D310:
/* 8019D310 0019A270  7F C3 F3 78 */	mr r3, r30
/* 8019D314 0019A274  E3 E1 01 98 */	psq_l f31, 408(r1), 0, qr0
/* 8019D318 0019A278  CB E1 01 90 */	lfd f31, 0x190(r1)
/* 8019D31C 0019A27C  E3 C1 01 88 */	psq_l f30, 392(r1), 0, qr0
/* 8019D320 0019A280  CB C1 01 80 */	lfd f30, 0x180(r1)
/* 8019D324 0019A284  E3 A1 01 78 */	psq_l f29, 376(r1), 0, qr0
/* 8019D328 0019A288  CB A1 01 70 */	lfd f29, 0x170(r1)
/* 8019D32C 0019A28C  E3 81 01 68 */	psq_l f28, 360(r1), 0, qr0
/* 8019D330 0019A290  CB 81 01 60 */	lfd f28, 0x160(r1)
/* 8019D334 0019A294  E3 61 01 58 */	psq_l f27, 344(r1), 0, qr0
/* 8019D338 0019A298  CB 61 01 50 */	lfd f27, 0x150(r1)
/* 8019D33C 0019A29C  E3 41 01 48 */	psq_l f26, 328(r1), 0, qr0
/* 8019D340 0019A2A0  CB 41 01 40 */	lfd f26, 0x140(r1)
/* 8019D344 0019A2A4  E3 21 01 38 */	psq_l f25, 312(r1), 0, qr0
/* 8019D348 0019A2A8  CB 21 01 30 */	lfd f25, 0x130(r1)
/* 8019D34C 0019A2AC  E3 01 01 28 */	psq_l f24, 296(r1), 0, qr0
/* 8019D350 0019A2B0  CB 01 01 20 */	lfd f24, 0x120(r1)
/* 8019D354 0019A2B4  E2 E1 01 18 */	psq_l f23, 280(r1), 0, qr0
/* 8019D358 0019A2B8  CA E1 01 10 */	lfd f23, 0x110(r1)
/* 8019D35C 0019A2BC  E2 C1 01 08 */	psq_l f22, 264(r1), 0, qr0
/* 8019D360 0019A2C0  CA C1 01 00 */	lfd f22, 0x100(r1)
/* 8019D364 0019A2C4  E2 A1 00 F8 */	psq_l f21, 248(r1), 0, qr0
/* 8019D368 0019A2C8  CA A1 00 F0 */	lfd f21, 0xf0(r1)
/* 8019D36C 0019A2CC  E2 81 00 E8 */	psq_l f20, 232(r1), 0, qr0
/* 8019D370 0019A2D0  CA 81 00 E0 */	lfd f20, 0xe0(r1)
/* 8019D374 0019A2D4  E2 61 00 D8 */	psq_l f19, 216(r1), 0, qr0
/* 8019D378 0019A2D8  CA 61 00 D0 */	lfd f19, 0xd0(r1)
/* 8019D37C 0019A2DC  E2 41 00 C8 */	psq_l f18, 200(r1), 0, qr0
/* 8019D380 0019A2E0  CA 41 00 C0 */	lfd f18, 0xc0(r1)
/* 8019D384 0019A2E4  E2 21 00 B8 */	psq_l f17, 184(r1), 0, qr0
/* 8019D388 0019A2E8  CA 21 00 B0 */	lfd f17, 0xb0(r1)
/* 8019D38C 0019A2EC  BB 01 00 90 */	lmw r24, 0x90(r1)
/* 8019D390 0019A2F0  80 01 01 A4 */	lwz r0, 0x1a4(r1)
/* 8019D394 0019A2F4  7C 08 03 A6 */	mtlr r0
/* 8019D398 0019A2F8  38 21 01 A0 */	addi r1, r1, 0x1a0
/* 8019D39C 0019A2FC  4E 80 00 20 */	blr

.section .sdata2, "a"
.balign 8
.global lbl_805AC3F8
lbl_805AC3F8:
	# ROM: 0x3F8C98
	.4byte 0xFFFFFFFF

.global lbl_805AC3FC
lbl_805AC3FC:
	# ROM: 0x3F8C9C
	.float 1.0

.global lbl_805AC400
lbl_805AC400:
	# ROM: 0x3F8CA0
	.4byte 0

.global lbl_805AC404
lbl_805AC404:
	# ROM: 0x3F8CA4
	.float 2.0

.global lbl_805AC408
lbl_805AC408:
	# ROM: 0x3F8CA8
	.float 0.5
	.4byte 0

.global lbl_805AC410
lbl_805AC410:
	# ROM: 0x3F8CB0
	.double 4.503601774854144E15

.global lbl_805AC418
lbl_805AC418:
	# ROM: 0x3F8CB8
	.float 1.1920929E-7

.global lbl_805AC41C
lbl_805AC41C:
	# ROM: 0x3F8CBC
	.float 0.25

.global lbl_805AC420
lbl_805AC420:
	# ROM: 0x3F8CC0
	.4byte 0x3727C5AC
	.4byte 0

.global lbl_805AC428
lbl_805AC428:
	# ROM: 0x3F8CC8
	.double 1.0

.global lbl_805AC430
lbl_805AC430:
	# ROM: 0x3F8CD0
	.float 2.0
	.4byte 0

.global lbl_805AC438
lbl_805AC438:
	# ROM: 0x3F8CD8
	.4byte 0x427C0000

.global lbl_805AC43C
lbl_805AC43C:
	# ROM: 0x3F8CDC
	.float 6.2831855


.section .rodata
.balign 8
.global lbl_803D1230
lbl_803D1230:
	# ROM: 0x3CE230
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0
	.4byte 0

.global lbl_803D12F8
lbl_803D12F8:
	# ROM: 0x3CE2F8
	.asciz "??(??)"
	.balign 4