.include "macros.inc" .section .data .global lbl_803DFE70 lbl_803DFE70: # ROM: 0x3DCE70 .4byte 0 .4byte 0 .4byte __dt__12CScriptWaterFv .4byte Accept__12CScriptWaterFR8IVisitor .4byte PreThink__7CEntityFfR13CStateManager .4byte Think__12CScriptWaterFfR13CStateManager .4byte AcceptScriptMsg__12CScriptWaterF20EScriptObjectMessage9TUniqueIdR13CStateManager .4byte SetActive__6CActorFb .4byte PreRender__12CScriptWaterFR13CStateManagerRC14CFrustumPlanes .4byte AddToRenderer__12CScriptWaterCFRC14CFrustumPlanesRC13CStateManager .4byte Render__12CScriptWaterCFRC13CStateManager .4byte CanRenderUnsorted__6CActorCFRC13CStateManager .4byte CalculateRenderBounds__12CScriptWaterFv .4byte HealthInfo__6CActorFR13CStateManager .4byte GetDamageVulnerability__6CActorCFv .4byte GetDamageVulnerability__6CActorCFRC9CVector3fRC9CVector3fRC11CDamageInfo .4byte GetTouchBounds__14CScriptTriggerCFv .4byte Touch__12CScriptWaterFR6CActorR13CStateManager .4byte GetOrbitPosition__6CActorCFRC13CStateManager .4byte GetAimPosition__6CActorCFRC13CStateManagerf .4byte GetHomingPosition__6CActorCFRC13CStateManagerf .4byte GetScanObjectIndicatorPosition__6CActorCFRC13CStateManager .4byte GetCollisionResponseType__12CScriptWaterCFRC9CVector3fRC9CVector3fRC11CWeaponModei .4byte FluidFXThink__6CActorFQ26CActor11EFluidStateR12CScriptWaterR13CStateManager .4byte OnScanStateChange__6CActorFQ26CActor10EScanStateR13CStateManager .4byte GetRenderBounds__12CScriptWaterCFRC12CTransform4f .4byte DoUserAnimEvent__6CActorFR13CStateManagerRC13CInt32POINode14EUserEventType .4byte InhabitantAdded__14CScriptTriggerFR6CActorR13CStateManager .4byte InhabitantIdle__14CScriptTriggerFR6CActorR13CStateManager .4byte InhabitantExited__14CScriptTriggerFR6CActorR13CStateManager .4byte InhabitantRejected__14CScriptTriggerFR6CActorR13CStateManager .4byte 0 .section .sdata .global lbl_805A7548 lbl_805A7548: # ROM: 0x3F4EE8 .4byte 0x01000000 .global lbl_805A754C lbl_805A754C: # ROM: 0x3F4EEC .4byte 0x00000013 .global lbl_805A7550 lbl_805A7550: # ROM: 0x3F4EF0 .4byte 0x42F00000 .global lbl_805A7554 lbl_805A7554: # ROM: 0x3F4EF4 .4byte 0x00000007 .section .bss .global lbl_8046C520 lbl_8046C520: .skip 0x18 .section .sbss # CScriptWater .global lbl_805A8F08 lbl_805A8F08: .skip 0x8 .section .sdata2, "a" .global lbl_805AB0D8 lbl_805AB0D8: # ROM: 0x3F7978 .float 0.01 .global lbl_805AB0DC lbl_805AB0DC: # ROM: 0x3F797C .4byte 0 .global lbl_805AB0E0 lbl_805AB0E0: # ROM: 0x3F7980 .float -1.0 .global lbl_805AB0E4 lbl_805AB0E4: # ROM: 0x3F7984 .float 2.0 .global lbl_805AB0E8 lbl_805AB0E8: # ROM: 0x3F7988 .double 4.503601774854144E15 .global lbl_805AB0F0 lbl_805AB0F0: # ROM: 0x3F7990 .float 1.0 .global lbl_805AB0F4 lbl_805AB0F4: # ROM: 0x3F7994 .4byte 0x3727C5AC .global lbl_805AB0F8 lbl_805AB0F8: # ROM: 0x3F7998 .4byte 0x40400000 .global lbl_805AB0FC lbl_805AB0FC: # ROM: 0x3F799C .float 0.5 .global lbl_805AB100 lbl_805AB100: # ROM: 0x3F79A0 .4byte 0xBF000000 .4byte 0 .section .text, "ax" .global GetPatchRenderFlags__12CScriptWaterCFii GetPatchRenderFlags__12CScriptWaterCFii: /* 800FEC94 000FBBF4 80 03 02 D0 */ lwz r0, 0x2d0(r3) /* 800FEC98 000FBBF8 80 63 02 E0 */ lwz r3, 0x2e0(r3) /* 800FEC9C 000FBBFC 7C 05 01 D6 */ mullw r0, r5, r0 /* 800FECA0 000FBC00 7C 00 1A 14 */ add r0, r0, r3 /* 800FECA4 000FBC04 7C 64 00 AE */ lbzx r3, r4, r0 /* 800FECA8 000FBC08 7C 63 07 74 */ extsb r3, r3 /* 800FECAC 000FBC0C 4E 80 00 20 */ blr .global CanRippleAtPoint__12CScriptWaterCFRC9CVector3f CanRippleAtPoint__12CScriptWaterCFRC9CVector3f: /* 800FECB0 000FBC10 94 21 FF B0 */ stwu r1, -0x50(r1) /* 800FECB4 000FBC14 7C 08 02 A6 */ mflr r0 /* 800FECB8 000FBC18 90 01 00 54 */ stw r0, 0x54(r1) /* 800FECBC 000FBC1C 93 E1 00 4C */ stw r31, 0x4c(r1) /* 800FECC0 000FBC20 93 C1 00 48 */ stw r30, 0x48(r1) /* 800FECC4 000FBC24 7C 9E 23 78 */ mr r30, r4 /* 800FECC8 000FBC28 93 A1 00 44 */ stw r29, 0x44(r1) /* 800FECCC 000FBC2C 7C 7D 1B 78 */ mr r29, r3 /* 800FECD0 000FBC30 80 03 02 D8 */ lwz r0, 0x2d8(r3) /* 800FECD4 000FBC34 28 00 00 00 */ cmplwi r0, 0 /* 800FECD8 000FBC38 40 82 00 0C */ bne lbl_800FECE4 /* 800FECDC 000FBC3C 38 60 00 01 */ li r3, 1 /* 800FECE0 000FBC40 48 00 00 B8 */ b lbl_800FED98 lbl_800FECE4: /* 800FECE4 000FBC44 7F A4 EB 78 */ mr r4, r29 /* 800FECE8 000FBC48 38 61 00 20 */ addi r3, r1, 0x20 /* 800FECEC 000FBC4C 4B F7 79 E1 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FECF0 000FBC50 C0 5E 00 00 */ lfs f2, 0(r30) /* 800FECF4 000FBC54 C0 21 00 20 */ lfs f1, 0x20(r1) /* 800FECF8 000FBC58 C0 1D 02 C0 */ lfs f0, 0x2c0(r29) /* 800FECFC 000FBC5C EC 22 08 28 */ fsubs f1, f2, f1 /* 800FED00 000FBC60 EC 01 00 24 */ fdivs f0, f1, f0 /* 800FED04 000FBC64 FC 00 00 1E */ fctiwz f0, f0 /* 800FED08 000FBC68 D8 01 00 38 */ stfd f0, 0x38(r1) /* 800FED0C 000FBC6C 83 E1 00 3C */ lwz r31, 0x3c(r1) /* 800FED10 000FBC70 2C 1F 00 00 */ cmpwi r31, 0 /* 800FED14 000FBC74 41 80 00 10 */ blt lbl_800FED24 /* 800FED18 000FBC78 80 1D 02 C4 */ lwz r0, 0x2c4(r29) /* 800FED1C 000FBC7C 7C 1F 00 00 */ cmpw r31, r0 /* 800FED20 000FBC80 41 80 00 0C */ blt lbl_800FED2C lbl_800FED24: /* 800FED24 000FBC84 38 60 00 00 */ li r3, 0 /* 800FED28 000FBC88 48 00 00 70 */ b lbl_800FED98 lbl_800FED2C: /* 800FED2C 000FBC8C 7F A4 EB 78 */ mr r4, r29 /* 800FED30 000FBC90 38 61 00 08 */ addi r3, r1, 8 /* 800FED34 000FBC94 4B F7 79 99 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FED38 000FBC98 C0 5E 00 04 */ lfs f2, 4(r30) /* 800FED3C 000FBC9C C0 21 00 0C */ lfs f1, 0xc(r1) /* 800FED40 000FBCA0 C0 1D 02 C0 */ lfs f0, 0x2c0(r29) /* 800FED44 000FBCA4 EC 22 08 28 */ fsubs f1, f2, f1 /* 800FED48 000FBCA8 EC 01 00 24 */ fdivs f0, f1, f0 /* 800FED4C 000FBCAC FC 00 00 1E */ fctiwz f0, f0 /* 800FED50 000FBCB0 D8 01 00 38 */ stfd f0, 0x38(r1) /* 800FED54 000FBCB4 80 81 00 3C */ lwz r4, 0x3c(r1) /* 800FED58 000FBCB8 2C 04 00 00 */ cmpwi r4, 0 /* 800FED5C 000FBCBC 41 80 00 10 */ blt lbl_800FED6C /* 800FED60 000FBCC0 80 1D 02 C8 */ lwz r0, 0x2c8(r29) /* 800FED64 000FBCC4 7C 04 00 00 */ cmpw r4, r0 /* 800FED68 000FBCC8 41 80 00 0C */ blt lbl_800FED74 lbl_800FED6C: /* 800FED6C 000FBCCC 38 60 00 00 */ li r3, 0 /* 800FED70 000FBCD0 48 00 00 28 */ b lbl_800FED98 lbl_800FED74: /* 800FED74 000FBCD4 80 1D 02 C4 */ lwz r0, 0x2c4(r29) /* 800FED78 000FBCD8 80 7D 02 D8 */ lwz r3, 0x2d8(r29) /* 800FED7C 000FBCDC 7C 04 01 D6 */ mullw r0, r4, r0 /* 800FED80 000FBCE0 7C 1F 02 14 */ add r0, r31, r0 /* 800FED84 000FBCE4 7C 03 00 AE */ lbzx r0, r3, r0 /* 800FED88 000FBCE8 7C 03 07 74 */ extsb r3, r0 /* 800FED8C 000FBCEC 7C 03 00 D0 */ neg r0, r3 /* 800FED90 000FBCF0 7C 00 1B 78 */ or r0, r0, r3 /* 800FED94 000FBCF4 54 03 0F FE */ srwi r3, r0, 0x1f lbl_800FED98: /* 800FED98 000FBCF8 80 01 00 54 */ lwz r0, 0x54(r1) /* 800FED9C 000FBCFC 83 E1 00 4C */ lwz r31, 0x4c(r1) /* 800FEDA0 000FBD00 83 C1 00 48 */ lwz r30, 0x48(r1) /* 800FEDA4 000FBD04 83 A1 00 44 */ lwz r29, 0x44(r1) /* 800FEDA8 000FBD08 7C 08 03 A6 */ mtlr r0 /* 800FEDAC 000FBD0C 38 21 00 50 */ addi r1, r1, 0x50 /* 800FEDB0 000FBD10 4E 80 00 20 */ blr .global SetupGrid__12CScriptWaterFb SetupGrid__12CScriptWaterFb: /* 800FEDB4 000FBD14 94 21 FF A0 */ stwu r1, -0x60(r1) /* 800FEDB8 000FBD18 7C 08 02 A6 */ mflr r0 /* 800FEDBC 000FBD1C 90 01 00 64 */ stw r0, 0x64(r1) /* 800FEDC0 000FBD20 BF 61 00 4C */ stmw r27, 0x4c(r1) /* 800FEDC4 000FBD24 7C 7E 1B 78 */ mr r30, r3 /* 800FEDC8 000FBD28 7C 9F 23 78 */ mr r31, r4 /* 800FEDCC 000FBD2C 38 61 00 20 */ addi r3, r1, 0x20 /* 800FEDD0 000FBD30 7F C4 F3 78 */ mr r4, r30 /* 800FEDD4 000FBD34 4B F7 78 F9 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FEDD8 000FBD38 C0 21 00 2C */ lfs f1, 0x2c(r1) /* 800FEDDC 000FBD3C C0 01 00 20 */ lfs f0, 0x20(r1) /* 800FEDE0 000FBD40 C0 5E 02 C0 */ lfs f2, 0x2c0(r30) /* 800FEDE4 000FBD44 EC 21 00 28 */ fsubs f1, f1, f0 /* 800FEDE8 000FBD48 C0 02 93 B8 */ lfs f0, lbl_805AB0D8@sda21(r2) /* 800FEDEC 000FBD4C EC 22 08 2A */ fadds f1, f2, f1 /* 800FEDF0 000FBD50 EC 01 00 28 */ fsubs f0, f1, f0 /* 800FEDF4 000FBD54 EC 20 10 24 */ fdivs f1, f0, f2 /* 800FEDF8 000FBD58 48 21 64 A5 */ bl FloorF__5CMathFf /* 800FEDFC 000FBD5C FC 00 08 1E */ fctiwz f0, f1 /* 800FEE00 000FBD60 7F C4 F3 78 */ mr r4, r30 /* 800FEE04 000FBD64 38 61 00 08 */ addi r3, r1, 8 /* 800FEE08 000FBD68 D8 01 00 38 */ stfd f0, 0x38(r1) /* 800FEE0C 000FBD6C 83 81 00 3C */ lwz r28, 0x3c(r1) /* 800FEE10 000FBD70 4B F7 78 BD */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FEE14 000FBD74 C0 21 00 18 */ lfs f1, 0x18(r1) /* 800FEE18 000FBD78 C0 01 00 0C */ lfs f0, 0xc(r1) /* 800FEE1C 000FBD7C C0 5E 02 C0 */ lfs f2, 0x2c0(r30) /* 800FEE20 000FBD80 EC 21 00 28 */ fsubs f1, f1, f0 /* 800FEE24 000FBD84 C0 02 93 B8 */ lfs f0, lbl_805AB0D8@sda21(r2) /* 800FEE28 000FBD88 EC 22 08 2A */ fadds f1, f2, f1 /* 800FEE2C 000FBD8C EC 01 00 28 */ fsubs f0, f1, f0 /* 800FEE30 000FBD90 EC 20 10 24 */ fdivs f1, f0, f2 /* 800FEE34 000FBD94 48 21 64 69 */ bl FloorF__5CMathFf /* 800FEE38 000FBD98 FC 00 08 1E */ fctiwz f0, f1 /* 800FEE3C 000FBD9C 38 7C 00 01 */ addi r3, r28, 1 /* 800FEE40 000FBDA0 D8 01 00 40 */ stfd f0, 0x40(r1) /* 800FEE44 000FBDA4 83 61 00 44 */ lwz r27, 0x44(r1) /* 800FEE48 000FBDA8 38 1B 00 01 */ addi r0, r27, 1 /* 800FEE4C 000FBDAC 7C 03 01 D6 */ mullw r0, r3, r0 /* 800FEE50 000FBDB0 90 1E 02 CC */ stw r0, 0x2cc(r30) /* 800FEE54 000FBDB4 80 1E 02 CC */ lwz r0, 0x2cc(r30) /* 800FEE58 000FBDB8 90 1E 02 E4 */ stw r0, 0x2e4(r30) /* 800FEE5C 000FBDBC 80 7E 02 DC */ lwz r3, 0x2dc(r30) /* 800FEE60 000FBDC0 48 21 6A D1 */ bl Free__7CMemoryFPCv /* 800FEE64 000FBDC4 38 00 00 00 */ li r0, 0 /* 800FEE68 000FBDC8 90 1E 02 DC */ stw r0, 0x2dc(r30) /* 800FEE6C 000FBDCC 80 1E 02 D8 */ lwz r0, 0x2d8(r30) /* 800FEE70 000FBDD0 28 00 00 00 */ cmplwi r0, 0 /* 800FEE74 000FBDD4 41 82 00 1C */ beq lbl_800FEE90 /* 800FEE78 000FBDD8 80 1E 02 C4 */ lwz r0, 0x2c4(r30) /* 800FEE7C 000FBDDC 7C 1C 00 00 */ cmpw r28, r0 /* 800FEE80 000FBDE0 40 82 00 10 */ bne lbl_800FEE90 /* 800FEE84 000FBDE4 80 1E 02 C8 */ lwz r0, 0x2c8(r30) /* 800FEE88 000FBDE8 7C 1B 00 00 */ cmpw r27, r0 /* 800FEE8C 000FBDEC 41 82 00 28 */ beq lbl_800FEEB4 lbl_800FEE90: /* 800FEE90 000FBDF0 7C 7C D9 D6 */ mullw r3, r28, r27 /* 800FEE94 000FBDF4 3C 80 80 3D */ lis r4, lbl_803CEE38@ha /* 800FEE98 000FBDF8 38 A0 00 00 */ li r5, 0 /* 800FEE9C 000FBDFC 38 84 EE 38 */ addi r4, r4, lbl_803CEE38@l /* 800FEEA0 000FBE00 48 21 69 79 */ bl __nwa__FUlPCcPCc /* 800FEEA4 000FBE04 7C 7D 1B 78 */ mr r29, r3 /* 800FEEA8 000FBE08 80 7E 02 D8 */ lwz r3, 0x2d8(r30) /* 800FEEAC 000FBE0C 48 21 6A 85 */ bl Free__7CMemoryFPCv /* 800FEEB0 000FBE10 93 BE 02 D8 */ stw r29, 0x2d8(r30) lbl_800FEEB4: /* 800FEEB4 000FBE14 93 9E 02 C4 */ stw r28, 0x2c4(r30) /* 800FEEB8 000FBE18 38 A0 00 00 */ li r5, 0 /* 800FEEBC 000FBE1C 38 60 00 01 */ li r3, 1 /* 800FEEC0 000FBE20 93 7E 02 C8 */ stw r27, 0x2c8(r30) /* 800FEEC4 000FBE24 48 00 00 38 */ b lbl_800FEEFC lbl_800FEEC8: /* 800FEEC8 000FBE28 80 1E 02 C4 */ lwz r0, 0x2c4(r30) /* 800FEECC 000FBE2C 38 C0 00 00 */ li r6, 0 /* 800FEED0 000FBE30 80 9E 02 D8 */ lwz r4, 0x2d8(r30) /* 800FEED4 000FBE34 7C 05 01 D6 */ mullw r0, r5, r0 /* 800FEED8 000FBE38 7C 84 02 14 */ add r4, r4, r0 /* 800FEEDC 000FBE3C 48 00 00 10 */ b lbl_800FEEEC lbl_800FEEE0: /* 800FEEE0 000FBE40 98 64 00 00 */ stb r3, 0(r4) /* 800FEEE4 000FBE44 38 C6 00 01 */ addi r6, r6, 1 /* 800FEEE8 000FBE48 38 84 00 01 */ addi r4, r4, 1 lbl_800FEEEC: /* 800FEEEC 000FBE4C 80 1E 02 C4 */ lwz r0, 0x2c4(r30) /* 800FEEF0 000FBE50 7C 06 00 00 */ cmpw r6, r0 /* 800FEEF4 000FBE54 41 80 FF EC */ blt lbl_800FEEE0 /* 800FEEF8 000FBE58 38 A5 00 01 */ addi r5, r5, 1 lbl_800FEEFC: /* 800FEEFC 000FBE5C 80 1E 02 C8 */ lwz r0, 0x2c8(r30) /* 800FEF00 000FBE60 7C 05 00 00 */ cmpw r5, r0 /* 800FEF04 000FBE64 41 80 FF C4 */ blt lbl_800FEEC8 /* 800FEF08 000FBE68 80 1E 02 E0 */ lwz r0, 0x2e0(r30) /* 800FEF0C 000FBE6C 28 00 00 00 */ cmplwi r0, 0 /* 800FEF10 000FBE70 41 82 00 1C */ beq lbl_800FEF2C /* 800FEF14 000FBE74 80 1E 02 D0 */ lwz r0, 0x2d0(r30) /* 800FEF18 000FBE78 2C 00 00 00 */ cmpwi r0, 0 /* 800FEF1C 000FBE7C 40 82 00 10 */ bne lbl_800FEF2C /* 800FEF20 000FBE80 80 1E 02 D4 */ lwz r0, 0x2d4(r30) /* 800FEF24 000FBE84 2C 00 00 00 */ cmpwi r0, 0 /* 800FEF28 000FBE88 41 82 00 28 */ beq lbl_800FEF50 lbl_800FEF2C: /* 800FEF2C 000FBE8C 3C 80 80 3D */ lis r4, lbl_803CEE38@ha /* 800FEF30 000FBE90 38 60 00 20 */ li r3, 0x20 /* 800FEF34 000FBE94 38 84 EE 38 */ addi r4, r4, lbl_803CEE38@l /* 800FEF38 000FBE98 38 A0 00 00 */ li r5, 0 /* 800FEF3C 000FBE9C 48 21 68 DD */ bl __nwa__FUlPCcPCc /* 800FEF40 000FBEA0 7C 7D 1B 78 */ mr r29, r3 /* 800FEF44 000FBEA4 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEF48 000FBEA8 48 21 69 E9 */ bl Free__7CMemoryFPCv /* 800FEF4C 000FBEAC 93 BE 02 E0 */ stw r29, 0x2e0(r30) lbl_800FEF50: /* 800FEF50 000FBEB0 38 00 00 02 */ li r0, 2 /* 800FEF54 000FBEB4 39 60 00 00 */ li r11, 0 /* 800FEF58 000FBEB8 7C 09 03 A6 */ mtctr r0 lbl_800FEF5C: /* 800FEF5C 000FBEBC 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEF60 000FBEC0 39 40 00 01 */ li r10, 1 /* 800FEF64 000FBEC4 39 2B 00 01 */ addi r9, r11, 1 /* 800FEF68 000FBEC8 39 0B 00 02 */ addi r8, r11, 2 /* 800FEF6C 000FBECC 7D 43 59 AE */ stbx r10, r3, r11 /* 800FEF70 000FBED0 38 EB 00 03 */ addi r7, r11, 3 /* 800FEF74 000FBED4 38 CB 00 04 */ addi r6, r11, 4 /* 800FEF78 000FBED8 38 AB 00 05 */ addi r5, r11, 5 /* 800FEF7C 000FBEDC 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEF80 000FBEE0 38 8B 00 06 */ addi r4, r11, 6 /* 800FEF84 000FBEE4 38 0B 00 07 */ addi r0, r11, 7 /* 800FEF88 000FBEE8 7D 43 49 AE */ stbx r10, r3, r9 /* 800FEF8C 000FBEEC 39 2B 00 09 */ addi r9, r11, 9 /* 800FEF90 000FBEF0 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEF94 000FBEF4 7D 43 41 AE */ stbx r10, r3, r8 /* 800FEF98 000FBEF8 39 0B 00 0A */ addi r8, r11, 0xa /* 800FEF9C 000FBEFC 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFA0 000FBF00 7D 43 39 AE */ stbx r10, r3, r7 /* 800FEFA4 000FBF04 38 EB 00 0B */ addi r7, r11, 0xb /* 800FEFA8 000FBF08 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFAC 000FBF0C 7D 43 31 AE */ stbx r10, r3, r6 /* 800FEFB0 000FBF10 38 CB 00 0C */ addi r6, r11, 0xc /* 800FEFB4 000FBF14 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFB8 000FBF18 7D 43 29 AE */ stbx r10, r3, r5 /* 800FEFBC 000FBF1C 38 AB 00 0D */ addi r5, r11, 0xd /* 800FEFC0 000FBF20 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFC4 000FBF24 7D 43 21 AE */ stbx r10, r3, r4 /* 800FEFC8 000FBF28 38 8B 00 0E */ addi r4, r11, 0xe /* 800FEFCC 000FBF2C 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFD0 000FBF30 7D 43 01 AE */ stbx r10, r3, r0 /* 800FEFD4 000FBF34 38 0B 00 0F */ addi r0, r11, 0xf /* 800FEFD8 000FBF38 39 6B 00 08 */ addi r11, r11, 8 /* 800FEFDC 000FBF3C 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFE0 000FBF40 7D 43 59 AE */ stbx r10, r3, r11 /* 800FEFE4 000FBF44 39 6B 00 08 */ addi r11, r11, 8 /* 800FEFE8 000FBF48 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFEC 000FBF4C 7D 43 49 AE */ stbx r10, r3, r9 /* 800FEFF0 000FBF50 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFF4 000FBF54 7D 43 41 AE */ stbx r10, r3, r8 /* 800FEFF8 000FBF58 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FEFFC 000FBF5C 7D 43 39 AE */ stbx r10, r3, r7 /* 800FF000 000FBF60 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FF004 000FBF64 7D 43 31 AE */ stbx r10, r3, r6 /* 800FF008 000FBF68 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FF00C 000FBF6C 7D 43 29 AE */ stbx r10, r3, r5 /* 800FF010 000FBF70 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FF014 000FBF74 7D 43 21 AE */ stbx r10, r3, r4 /* 800FF018 000FBF78 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 800FF01C 000FBF7C 7D 43 01 AE */ stbx r10, r3, r0 /* 800FF020 000FBF80 42 00 FF 3C */ bdnz lbl_800FEF5C /* 800FF024 000FBF84 38 00 00 00 */ li r0, 0 /* 800FF028 000FBF88 90 1E 02 D4 */ stw r0, 0x2d4(r30) /* 800FF02C 000FBF8C 90 1E 02 D0 */ stw r0, 0x2d0(r30) /* 800FF030 000FBF90 88 1E 02 E8 */ lbz r0, 0x2e8(r30) /* 800FF034 000FBF94 53 E0 1F 38 */ rlwimi r0, r31, 3, 0x1c, 0x1c /* 800FF038 000FBF98 98 1E 02 E8 */ stb r0, 0x2e8(r30) /* 800FF03C 000FBF9C BB 61 00 4C */ lmw r27, 0x4c(r1) /* 800FF040 000FBFA0 80 01 00 64 */ lwz r0, 0x64(r1) /* 800FF044 000FBFA4 7C 08 03 A6 */ mtlr r0 /* 800FF048 000FBFA8 38 21 00 60 */ addi r1, r1, 0x60 /* 800FF04C 000FBFAC 4E 80 00 20 */ blr .global SetupGridClipping__12CScriptWaterFR13CStateManageri SetupGridClipping__12CScriptWaterFR13CStateManageri: /* 800FF050 000FBFB0 94 21 FE C0 */ stwu r1, -0x140(r1) /* 800FF054 000FBFB4 7C 08 02 A6 */ mflr r0 /* 800FF058 000FBFB8 90 01 01 44 */ stw r0, 0x144(r1) /* 800FF05C 000FBFBC DB E1 01 30 */ stfd f31, 0x130(r1) /* 800FF060 000FBFC0 F3 E1 01 38 */ psq_st f31, 312(r1), 0, qr0 /* 800FF064 000FBFC4 DB C1 01 20 */ stfd f30, 0x120(r1) /* 800FF068 000FBFC8 F3 C1 01 28 */ psq_st f30, 296(r1), 0, qr0 /* 800FF06C 000FBFCC DB A1 01 10 */ stfd f29, 0x110(r1) /* 800FF070 000FBFD0 F3 A1 01 18 */ psq_st f29, 280(r1), 0, qr0 /* 800FF074 000FBFD4 DB 81 01 00 */ stfd f28, 0x100(r1) /* 800FF078 000FBFD8 F3 81 01 08 */ psq_st f28, 264(r1), 0, qr0 /* 800FF07C 000FBFDC DB 61 00 F0 */ stfd f27, 0xf0(r1) /* 800FF080 000FBFE0 F3 61 00 F8 */ psq_st f27, 248(r1), 0, qr0 /* 800FF084 000FBFE4 DB 41 00 E0 */ stfd f26, 0xe0(r1) /* 800FF088 000FBFE8 F3 41 00 E8 */ psq_st f26, 232(r1), 0, qr0 /* 800FF08C 000FBFEC BF 21 00 C4 */ stmw r25, 0xc4(r1) /* 800FF090 000FBFF0 88 03 02 E8 */ lbz r0, 0x2e8(r3) /* 800FF094 000FBFF4 7C 7F 1B 78 */ mr r31, r3 /* 800FF098 000FBFF8 7C 9C 23 78 */ mr r28, r4 /* 800FF09C 000FBFFC 7C BD 2B 78 */ mr r29, r5 /* 800FF0A0 000FC000 54 00 EF FF */ rlwinm. r0, r0, 0x1d, 0x1f, 0x1f /* 800FF0A4 000FC004 41 82 00 28 */ beq lbl_800FF0CC /* 800FF0A8 000FC008 38 00 00 00 */ li r0, 0 /* 800FF0AC 000FC00C 90 1F 02 E4 */ stw r0, 0x2e4(r31) /* 800FF0B0 000FC010 80 7F 02 DC */ lwz r3, 0x2dc(r31) /* 800FF0B4 000FC014 48 21 68 7D */ bl Free__7CMemoryFPCv /* 800FF0B8 000FC018 38 60 00 00 */ li r3, 0 /* 800FF0BC 000FC01C 90 7F 02 DC */ stw r3, 0x2dc(r31) /* 800FF0C0 000FC020 88 1F 02 E8 */ lbz r0, 0x2e8(r31) /* 800FF0C4 000FC024 50 60 1F 38 */ rlwimi r0, r3, 3, 0x1c, 0x1c /* 800FF0C8 000FC028 98 1F 02 E8 */ stb r0, 0x2e8(r31) lbl_800FF0CC: /* 800FF0CC 000FC02C 80 7F 02 E4 */ lwz r3, 0x2e4(r31) /* 800FF0D0 000FC030 80 1F 02 CC */ lwz r0, 0x2cc(r31) /* 800FF0D4 000FC034 7C 03 00 00 */ cmpw r3, r0 /* 800FF0D8 000FC038 40 80 04 B8 */ bge lbl_800FF590 /* 800FF0DC 000FC03C 88 0D A3 48 */ lbz r0, lbl_805A8F08@sda21(r13) /* 800FF0E0 000FC040 7C 00 07 75 */ extsb. r0, r0 /* 800FF0E4 000FC044 40 82 00 40 */ bne lbl_800FF124 /* 800FF0E8 000FC048 80 AD 89 8C */ lwz r5, lbl_805A754C@sda21(r13) /* 800FF0EC 000FC04C 38 60 00 00 */ li r3, 0 /* 800FF0F0 000FC050 38 80 00 01 */ li r4, 1 /* 800FF0F4 000FC054 48 28 AE 01 */ bl __shl2i /* 800FF0F8 000FC058 3C A0 80 47 */ lis r5, lbl_8046C520@ha /* 800FF0FC 000FC05C 38 C0 00 01 */ li r6, 1 /* 800FF100 000FC060 38 A5 C5 20 */ addi r5, r5, lbl_8046C520@l /* 800FF104 000FC064 38 00 00 00 */ li r0, 0 /* 800FF108 000FC068 90 C1 00 78 */ stw r6, 0x78(r1) /* 800FF10C 000FC06C 90 85 00 04 */ stw r4, 4(r5) /* 800FF110 000FC070 90 65 00 00 */ stw r3, 0(r5) /* 800FF114 000FC074 90 05 00 0C */ stw r0, 0xc(r5) /* 800FF118 000FC078 90 05 00 08 */ stw r0, 8(r5) /* 800FF11C 000FC07C 90 C5 00 10 */ stw r6, 0x10(r5) /* 800FF120 000FC080 98 CD A3 48 */ stb r6, lbl_805A8F08@sda21(r13) lbl_800FF124: /* 800FF124 000FC084 80 1F 02 DC */ lwz r0, 0x2dc(r31) /* 800FF128 000FC088 28 00 00 00 */ cmplwi r0, 0 /* 800FF12C 000FC08C 40 82 00 38 */ bne lbl_800FF164 /* 800FF130 000FC090 80 DF 02 C8 */ lwz r6, 0x2c8(r31) /* 800FF134 000FC094 3C 60 80 3D */ lis r3, lbl_803CEE38@ha /* 800FF138 000FC098 80 BF 02 C4 */ lwz r5, 0x2c4(r31) /* 800FF13C 000FC09C 38 83 EE 38 */ addi r4, r3, lbl_803CEE38@l /* 800FF140 000FC0A0 38 06 00 01 */ addi r0, r6, 1 /* 800FF144 000FC0A4 38 65 00 01 */ addi r3, r5, 1 /* 800FF148 000FC0A8 38 A0 00 00 */ li r5, 0 /* 800FF14C 000FC0AC 7C 63 01 D6 */ mullw r3, r3, r0 /* 800FF150 000FC0B0 48 21 66 C9 */ bl __nwa__FUlPCcPCc /* 800FF154 000FC0B4 7C 7B 1B 78 */ mr r27, r3 /* 800FF158 000FC0B8 80 7F 02 DC */ lwz r3, 0x2dc(r31) /* 800FF15C 000FC0BC 48 21 67 D5 */ bl Free__7CMemoryFPCv /* 800FF160 000FC0C0 93 7F 02 DC */ stw r27, 0x2dc(r31) lbl_800FF164: /* 800FF164 000FC0C4 C0 22 93 BC */ lfs f1, lbl_805AB0DC@sda21(r2) /* 800FF168 000FC0C8 7F E4 FB 78 */ mr r4, r31 /* 800FF16C 000FC0CC C0 02 93 C0 */ lfs f0, lbl_805AB0E0@sda21(r2) /* 800FF170 000FC0D0 38 61 00 4C */ addi r3, r1, 0x4c /* 800FF174 000FC0D4 D0 21 00 28 */ stfs f1, 0x28(r1) /* 800FF178 000FC0D8 D0 21 00 2C */ stfs f1, 0x2c(r1) /* 800FF17C 000FC0DC D0 01 00 30 */ stfs f0, 0x30(r1) /* 800FF180 000FC0E0 4B F7 75 4D */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FF184 000FC0E4 C0 22 98 C8 */ lfs f1, lbl_805AB5E8@sda21(r2) /* 800FF188 000FC0E8 7F E4 FB 78 */ mr r4, r31 /* 800FF18C 000FC0EC C0 01 00 60 */ lfs f0, 0x60(r1) /* 800FF190 000FC0F0 38 61 00 34 */ addi r3, r1, 0x34 /* 800FF194 000FC0F4 EF E1 00 2A */ fadds f31, f1, f0 /* 800FF198 000FC0F8 4B F7 75 35 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FF19C 000FC0FC 80 9F 02 C4 */ lwz r4, 0x2c4(r31) /* 800FF1A0 000FC100 3C 60 43 30 */ lis r3, 0x4330 /* 800FF1A4 000FC104 80 DF 02 E4 */ lwz r6, 0x2e4(r31) /* 800FF1A8 000FC108 38 A4 00 01 */ addi r5, r4, 1 /* 800FF1AC 000FC10C 80 1F 02 DC */ lwz r0, 0x2dc(r31) /* 800FF1B0 000FC110 7C 86 2B D6 */ divw r4, r6, r5 /* 800FF1B4 000FC114 C0 3F 01 44 */ lfs f1, 0x144(r31) /* 800FF1B8 000FC118 C0 1F 01 38 */ lfs f0, 0x138(r31) /* 800FF1BC 000FC11C 7F C0 32 14 */ add r30, r0, r6 /* 800FF1C0 000FC120 90 61 00 B0 */ stw r3, 0xb0(r1) /* 800FF1C4 000FC124 EC 21 00 28 */ fsubs f1, f1, f0 /* 800FF1C8 000FC128 7C 04 29 D6 */ mullw r0, r4, r5 /* 800FF1CC 000FC12C 6C 84 80 00 */ xoris r4, r4, 0x8000 /* 800FF1D0 000FC130 90 81 00 B4 */ stw r4, 0xb4(r1) /* 800FF1D4 000FC134 C8 82 93 C8 */ lfd f4, lbl_805AB0E8@sda21(r2) /* 800FF1D8 000FC138 C8 61 00 B0 */ lfd f3, 0xb0(r1) /* 800FF1DC 000FC13C 90 61 00 B8 */ stw r3, 0xb8(r1) /* 800FF1E0 000FC140 7C 60 30 50 */ subf r3, r0, r6 /* 800FF1E4 000FC144 C0 42 93 C4 */ lfs f2, lbl_805AB0E4@sda21(r2) /* 800FF1E8 000FC148 6C 60 80 00 */ xoris r0, r3, 0x8000 /* 800FF1EC 000FC14C C0 02 98 C8 */ lfs f0, lbl_805AB5E8@sda21(r2) /* 800FF1F0 000FC150 90 01 00 BC */ stw r0, 0xbc(r1) /* 800FF1F4 000FC154 EC 63 20 28 */ fsubs f3, f3, f4 /* 800FF1F8 000FC158 C0 BF 02 C0 */ lfs f5, 0x2c0(r31) /* 800FF1FC 000FC15C EC 22 00 7A */ fmadds f1, f2, f1, f0 /* 800FF200 000FC160 C8 41 00 B8 */ lfd f2, 0xb8(r1) /* 800FF204 000FC164 7C 7A 1B 78 */ mr r26, r3 /* 800FF208 000FC168 C0 0D 89 90 */ lfs f0, lbl_805A7550@sda21(r13) /* 800FF20C 000FC16C EC 42 20 28 */ fsubs f2, f2, f4 /* 800FF210 000FC170 D0 21 00 18 */ stfs f1, 0x18(r1) /* 800FF214 000FC174 FC 00 08 40 */ fcmpo cr0, f0, f1 /* 800FF218 000FC178 C3 C1 00 34 */ lfs f30, 0x34(r1) /* 800FF21C 000FC17C EF 85 00 F2 */ fmuls f28, f5, f3 /* 800FF220 000FC180 C3 A1 00 38 */ lfs f29, 0x38(r1) /* 800FF224 000FC184 EF 65 00 B2 */ fmuls f27, f5, f2 /* 800FF228 000FC188 40 80 00 0C */ bge lbl_800FF234 /* 800FF22C 000FC18C 38 8D 89 90 */ addi r4, r13, lbl_805A7550@sda21 /* 800FF230 000FC190 48 00 00 08 */ b lbl_800FF238 lbl_800FF234: /* 800FF234 000FC194 38 81 00 18 */ addi r4, r1, 0x18 lbl_800FF238: /* 800FF238 000FC198 3C 60 80 47 */ lis r3, lbl_8046C520@ha /* 800FF23C 000FC19C C3 44 00 00 */ lfs f26, 0(r4) /* 800FF240 000FC1A0 83 3F 02 E4 */ lwz r25, 0x2e4(r31) /* 800FF244 000FC1A4 3B 63 C5 20 */ addi r27, r3, lbl_8046C520@l /* 800FF248 000FC1A8 48 00 00 68 */ b lbl_800FF2B0 lbl_800FF24C: /* 800FF24C 000FC1AC EC 5B F0 2A */ fadds f2, f27, f30 /* 800FF250 000FC1B0 D3 E1 00 24 */ stfs f31, 0x24(r1) /* 800FF254 000FC1B4 EC 1C E8 2A */ fadds f0, f28, f29 /* 800FF258 000FC1B8 7F 84 E3 78 */ mr r4, r28 /* 800FF25C 000FC1BC FC 20 D0 90 */ fmr f1, f26 /* 800FF260 000FC1C0 7F 67 DB 78 */ mr r7, r27 /* 800FF264 000FC1C4 D0 41 00 1C */ stfs f2, 0x1c(r1) /* 800FF268 000FC1C8 38 61 00 80 */ addi r3, r1, 0x80 /* 800FF26C 000FC1CC 38 A1 00 1C */ addi r5, r1, 0x1c /* 800FF270 000FC1D0 38 C1 00 28 */ addi r6, r1, 0x28 /* 800FF274 000FC1D4 D0 01 00 20 */ stfs f0, 0x20(r1) /* 800FF278 000FC1D8 4B F4 DD 21 */ bl RayStaticIntersection__13CStateManagerCFRC9CVector3fRC9CVector3ffRC15CMaterialFilter /* 800FF27C 000FC1DC 88 01 00 A0 */ lbz r0, 0xa0(r1) /* 800FF280 000FC1E0 3B 5A 00 01 */ addi r26, r26, 1 /* 800FF284 000FC1E4 98 1E 00 00 */ stb r0, 0(r30) /* 800FF288 000FC1E8 C0 1F 02 C0 */ lfs f0, 0x2c0(r31) /* 800FF28C 000FC1EC 80 1F 02 C4 */ lwz r0, 0x2c4(r31) /* 800FF290 000FC1F0 EF 7B 00 2A */ fadds f27, f27, f0 /* 800FF294 000FC1F4 7C 1A 00 00 */ cmpw r26, r0 /* 800FF298 000FC1F8 40 81 00 10 */ ble lbl_800FF2A8 /* 800FF29C 000FC1FC EF 9C 00 2A */ fadds f28, f28, f0 /* 800FF2A0 000FC200 C3 62 93 BC */ lfs f27, lbl_805AB0DC@sda21(r2) /* 800FF2A4 000FC204 3B 40 00 00 */ li r26, 0 lbl_800FF2A8: /* 800FF2A8 000FC208 3B 39 00 01 */ addi r25, r25, 1 /* 800FF2AC 000FC20C 3B DE 00 01 */ addi r30, r30, 1 lbl_800FF2B0: /* 800FF2B0 000FC210 80 1F 02 E4 */ lwz r0, 0x2e4(r31) /* 800FF2B4 000FC214 7C 60 EA 14 */ add r3, r0, r29 /* 800FF2B8 000FC218 90 61 00 14 */ stw r3, 0x14(r1) /* 800FF2BC 000FC21C 80 1F 02 CC */ lwz r0, 0x2cc(r31) /* 800FF2C0 000FC220 7C 03 00 00 */ cmpw r3, r0 /* 800FF2C4 000FC224 40 80 00 0C */ bge lbl_800FF2D0 /* 800FF2C8 000FC228 38 61 00 14 */ addi r3, r1, 0x14 /* 800FF2CC 000FC22C 48 00 00 08 */ b lbl_800FF2D4 lbl_800FF2D0: /* 800FF2D0 000FC230 38 7F 02 CC */ addi r3, r31, 0x2cc lbl_800FF2D4: /* 800FF2D4 000FC234 80 03 00 00 */ lwz r0, 0(r3) /* 800FF2D8 000FC238 7C 19 00 00 */ cmpw r25, r0 /* 800FF2DC 000FC23C 41 80 FF 70 */ blt lbl_800FF24C /* 800FF2E0 000FC240 80 1F 02 E4 */ lwz r0, 0x2e4(r31) /* 800FF2E4 000FC244 7C 00 EA 14 */ add r0, r0, r29 /* 800FF2E8 000FC248 90 1F 02 E4 */ stw r0, 0x2e4(r31) /* 800FF2EC 000FC24C 80 1F 02 E4 */ lwz r0, 0x2e4(r31) /* 800FF2F0 000FC250 80 7F 02 CC */ lwz r3, 0x2cc(r31) /* 800FF2F4 000FC254 7C 00 18 00 */ cmpw r0, r3 /* 800FF2F8 000FC258 41 80 02 98 */ blt lbl_800FF590 /* 800FF2FC 000FC25C 90 7F 02 E4 */ stw r3, 0x2e4(r31) /* 800FF300 000FC260 3C 60 80 3D */ lis r3, lbl_803CEE38@ha /* 800FF304 000FC264 38 83 EE 38 */ addi r4, r3, lbl_803CEE38@l /* 800FF308 000FC268 38 A0 00 00 */ li r5, 0 /* 800FF30C 000FC26C 80 7F 02 C4 */ lwz r3, 0x2c4(r31) /* 800FF310 000FC270 80 1F 02 C8 */ lwz r0, 0x2c8(r31) /* 800FF314 000FC274 7C 63 01 D6 */ mullw r3, r3, r0 /* 800FF318 000FC278 48 21 65 01 */ bl __nwa__FUlPCcPCc /* 800FF31C 000FC27C 7C 7C 1B 78 */ mr r28, r3 /* 800FF320 000FC280 80 7F 02 D8 */ lwz r3, 0x2d8(r31) /* 800FF324 000FC284 48 21 66 0D */ bl Free__7CMemoryFPCv /* 800FF328 000FC288 93 9F 02 D8 */ stw r28, 0x2d8(r31) /* 800FF32C 000FC28C 39 00 00 00 */ li r8, 0 /* 800FF330 000FC290 48 00 00 90 */ b lbl_800FF3C0 lbl_800FF334: /* 800FF334 000FC294 80 DF 02 C4 */ lwz r6, 0x2c4(r31) /* 800FF338 000FC298 39 20 00 00 */ li r9, 0 /* 800FF33C 000FC29C 80 FF 02 D8 */ lwz r7, 0x2d8(r31) /* 800FF340 000FC2A0 38 60 00 01 */ li r3, 1 /* 800FF344 000FC2A4 38 86 00 01 */ addi r4, r6, 1 /* 800FF348 000FC2A8 80 BF 02 DC */ lwz r5, 0x2dc(r31) /* 800FF34C 000FC2AC 7C C8 31 D6 */ mullw r6, r8, r6 /* 800FF350 000FC2B0 38 00 00 00 */ li r0, 0 /* 800FF354 000FC2B4 7C 88 21 D6 */ mullw r4, r8, r4 /* 800FF358 000FC2B8 7C C7 32 14 */ add r6, r7, r6 /* 800FF35C 000FC2BC 7C E5 22 14 */ add r7, r5, r4 /* 800FF360 000FC2C0 48 00 00 50 */ b lbl_800FF3B0 lbl_800FF364: /* 800FF364 000FC2C4 88 87 00 00 */ lbz r4, 0(r7) /* 800FF368 000FC2C8 7C 84 07 75 */ extsb. r4, r4 /* 800FF36C 000FC2CC 40 82 00 2C */ bne lbl_800FF398 /* 800FF370 000FC2D0 88 87 00 01 */ lbz r4, 1(r7) /* 800FF374 000FC2D4 7C 84 07 75 */ extsb. r4, r4 /* 800FF378 000FC2D8 40 82 00 20 */ bne lbl_800FF398 /* 800FF37C 000FC2DC 7C A7 2A 14 */ add r5, r7, r5 /* 800FF380 000FC2E0 88 85 00 01 */ lbz r4, 1(r5) /* 800FF384 000FC2E4 7C 84 07 75 */ extsb. r4, r4 /* 800FF388 000FC2E8 40 82 00 10 */ bne lbl_800FF398 /* 800FF38C 000FC2EC 88 85 00 02 */ lbz r4, 2(r5) /* 800FF390 000FC2F0 7C 84 07 75 */ extsb. r4, r4 /* 800FF394 000FC2F4 41 82 00 0C */ beq lbl_800FF3A0 lbl_800FF398: /* 800FF398 000FC2F8 98 66 00 00 */ stb r3, 0(r6) /* 800FF39C 000FC2FC 48 00 00 08 */ b lbl_800FF3A4 lbl_800FF3A0: /* 800FF3A0 000FC300 98 06 00 00 */ stb r0, 0(r6) lbl_800FF3A4: /* 800FF3A4 000FC304 39 29 00 01 */ addi r9, r9, 1 /* 800FF3A8 000FC308 38 C6 00 01 */ addi r6, r6, 1 /* 800FF3AC 000FC30C 38 E7 00 01 */ addi r7, r7, 1 lbl_800FF3B0: /* 800FF3B0 000FC310 80 BF 02 C4 */ lwz r5, 0x2c4(r31) /* 800FF3B4 000FC314 7C 09 28 00 */ cmpw r9, r5 /* 800FF3B8 000FC318 41 80 FF AC */ blt lbl_800FF364 /* 800FF3BC 000FC31C 39 08 00 01 */ addi r8, r8, 1 lbl_800FF3C0: /* 800FF3C0 000FC320 80 1F 02 C8 */ lwz r0, 0x2c8(r31) /* 800FF3C4 000FC324 7C 08 00 00 */ cmpw r8, r0 /* 800FF3C8 000FC328 41 80 FF 6C */ blt lbl_800FF334 /* 800FF3CC 000FC32C 80 9F 01 B4 */ lwz r4, 0x1b4(r31) /* 800FF3D0 000FC330 38 A0 00 2A */ li r5, 0x2a /* 800FF3D4 000FC334 80 0D 89 94 */ lwz r0, lbl_805A7554@sda21(r13) /* 800FF3D8 000FC338 38 6D 89 94 */ addi r3, r13, lbl_805A7554@sda21 /* 800FF3DC 000FC33C 80 84 01 04 */ lwz r4, 0x104(r4) /* 800FF3E0 000FC340 7C 85 23 96 */ divwu r4, r5, r4 /* 800FF3E4 000FC344 7C 04 00 00 */ cmpw r4, r0 /* 800FF3E8 000FC348 90 81 00 10 */ stw r4, 0x10(r1) /* 800FF3EC 000FC34C 40 80 00 08 */ bge lbl_800FF3F4 /* 800FF3F0 000FC350 38 61 00 10 */ addi r3, r1, 0x10 lbl_800FF3F4: /* 800FF3F4 000FC354 83 C3 00 00 */ lwz r30, 0(r3) /* 800FF3F8 000FC358 3C 60 80 3D */ lis r3, lbl_803CEE38@ha /* 800FF3FC 000FC35C 80 1F 02 C4 */ lwz r0, 0x2c4(r31) /* 800FF400 000FC360 38 83 EE 38 */ addi r4, r3, lbl_803CEE38@l /* 800FF404 000FC364 38 A0 00 00 */ li r5, 0 /* 800FF408 000FC368 7C 7E 02 14 */ add r3, r30, r0 /* 800FF40C 000FC36C 38 03 FF FF */ addi r0, r3, -1 /* 800FF410 000FC370 7C 00 F3 D6 */ divw r0, r0, r30 /* 800FF414 000FC374 90 1F 02 D0 */ stw r0, 0x2d0(r31) /* 800FF418 000FC378 80 1F 02 C8 */ lwz r0, 0x2c8(r31) /* 800FF41C 000FC37C 7C 7E 02 14 */ add r3, r30, r0 /* 800FF420 000FC380 38 03 FF FF */ addi r0, r3, -1 /* 800FF424 000FC384 7C 00 F3 D6 */ divw r0, r0, r30 /* 800FF428 000FC388 90 1F 02 D4 */ stw r0, 0x2d4(r31) /* 800FF42C 000FC38C 80 7F 02 D0 */ lwz r3, 0x2d0(r31) /* 800FF430 000FC390 80 1F 02 D4 */ lwz r0, 0x2d4(r31) /* 800FF434 000FC394 7C 63 01 D6 */ mullw r3, r3, r0 /* 800FF438 000FC398 48 21 63 E1 */ bl __nwa__FUlPCcPCc /* 800FF43C 000FC39C 7C 7C 1B 78 */ mr r28, r3 /* 800FF440 000FC3A0 80 7F 02 E0 */ lwz r3, 0x2e0(r31) /* 800FF444 000FC3A4 48 21 64 ED */ bl Free__7CMemoryFPCv /* 800FF448 000FC3A8 93 9F 02 E0 */ stw r28, 0x2e0(r31) /* 800FF44C 000FC3AC 38 80 00 00 */ li r4, 0 /* 800FF450 000FC3B0 38 60 00 00 */ li r3, 0 /* 800FF454 000FC3B4 48 00 01 20 */ b lbl_800FF574 lbl_800FF458: /* 800FF458 000FC3B8 80 BF 02 D0 */ lwz r5, 0x2d0(r31) /* 800FF45C 000FC3BC 7C 03 F2 14 */ add r0, r3, r30 /* 800FF460 000FC3C0 81 1F 02 E0 */ lwz r8, 0x2e0(r31) /* 800FF464 000FC3C4 38 C0 00 00 */ li r6, 0 /* 800FF468 000FC3C8 7C A4 29 D6 */ mullw r5, r4, r5 /* 800FF46C 000FC3CC 38 E0 00 00 */ li r7, 0 /* 800FF470 000FC3D0 7C A8 2A 14 */ add r5, r8, r5 /* 800FF474 000FC3D4 48 00 00 EC */ b lbl_800FF560 lbl_800FF478: /* 800FF478 000FC3D8 7C 68 1B 78 */ mr r8, r3 /* 800FF47C 000FC3DC 7D 66 F2 14 */ add r11, r6, r30 /* 800FF480 000FC3E0 39 80 00 01 */ li r12, 1 /* 800FF484 000FC3E4 3B 20 00 01 */ li r25, 1 /* 800FF488 000FC3E8 48 00 00 80 */ b lbl_800FF508 lbl_800FF48C: /* 800FF48C 000FC3EC 55 89 06 3F */ clrlwi. r9, r12, 0x18 /* 800FF490 000FC3F0 40 82 00 0C */ bne lbl_800FF49C /* 800FF494 000FC3F4 57 29 06 3F */ clrlwi. r9, r25, 0x18 /* 800FF498 000FC3F8 41 82 00 98 */ beq lbl_800FF530 lbl_800FF49C: /* 800FF49C 000FC3FC 7C DA 33 78 */ mr r26, r6 /* 800FF4A0 000FC400 48 00 00 3C */ b lbl_800FF4DC lbl_800FF4A4: /* 800FF4A4 000FC404 7D 28 51 D6 */ mullw r9, r8, r10 /* 800FF4A8 000FC408 81 5F 02 D8 */ lwz r10, 0x2d8(r31) /* 800FF4AC 000FC40C 7D 3A 4A 14 */ add r9, r26, r9 /* 800FF4B0 000FC410 7D 2A 48 AE */ lbzx r9, r10, r9 /* 800FF4B4 000FC414 7D 29 07 75 */ extsb. r9, r9 /* 800FF4B8 000FC418 41 82 00 14 */ beq lbl_800FF4CC /* 800FF4BC 000FC41C 57 29 06 3F */ clrlwi. r9, r25, 0x18 /* 800FF4C0 000FC420 39 80 00 00 */ li r12, 0 /* 800FF4C4 000FC424 41 82 00 40 */ beq lbl_800FF504 /* 800FF4C8 000FC428 48 00 00 10 */ b lbl_800FF4D8 lbl_800FF4CC: /* 800FF4CC 000FC42C 55 89 06 3F */ clrlwi. r9, r12, 0x18 /* 800FF4D0 000FC430 3B 20 00 00 */ li r25, 0 /* 800FF4D4 000FC434 41 82 00 30 */ beq lbl_800FF504 lbl_800FF4D8: /* 800FF4D8 000FC438 3B 5A 00 01 */ addi r26, r26, 1 lbl_800FF4DC: /* 800FF4DC 000FC43C 91 61 00 0C */ stw r11, 0xc(r1) /* 800FF4E0 000FC440 81 5F 02 C4 */ lwz r10, 0x2c4(r31) /* 800FF4E4 000FC444 7C 0B 50 00 */ cmpw r11, r10 /* 800FF4E8 000FC448 40 80 00 0C */ bge lbl_800FF4F4 /* 800FF4EC 000FC44C 39 21 00 0C */ addi r9, r1, 0xc /* 800FF4F0 000FC450 48 00 00 08 */ b lbl_800FF4F8 lbl_800FF4F4: /* 800FF4F4 000FC454 39 3F 02 C4 */ addi r9, r31, 0x2c4 lbl_800FF4F8: /* 800FF4F8 000FC458 81 29 00 00 */ lwz r9, 0(r9) /* 800FF4FC 000FC45C 7C 1A 48 00 */ cmpw r26, r9 /* 800FF500 000FC460 41 80 FF A4 */ blt lbl_800FF4A4 lbl_800FF504: /* 800FF504 000FC464 39 08 00 01 */ addi r8, r8, 1 lbl_800FF508: /* 800FF508 000FC468 90 01 00 08 */ stw r0, 8(r1) /* 800FF50C 000FC46C 81 3F 02 C8 */ lwz r9, 0x2c8(r31) /* 800FF510 000FC470 7C 00 48 00 */ cmpw r0, r9 /* 800FF514 000FC474 40 80 00 0C */ bge lbl_800FF520 /* 800FF518 000FC478 39 21 00 08 */ addi r9, r1, 8 /* 800FF51C 000FC47C 48 00 00 08 */ b lbl_800FF524 lbl_800FF520: /* 800FF520 000FC480 39 3F 02 C8 */ addi r9, r31, 0x2c8 lbl_800FF524: /* 800FF524 000FC484 81 29 00 00 */ lwz r9, 0(r9) /* 800FF528 000FC488 7C 08 48 00 */ cmpw r8, r9 /* 800FF52C 000FC48C 41 80 FF 60 */ blt lbl_800FF48C lbl_800FF530: /* 800FF530 000FC490 57 28 06 3F */ clrlwi. r8, r25, 0x18 /* 800FF534 000FC494 41 82 00 0C */ beq lbl_800FF540 /* 800FF538 000FC498 39 20 00 01 */ li r9, 1 /* 800FF53C 000FC49C 48 00 00 14 */ b lbl_800FF550 lbl_800FF540: /* 800FF540 000FC4A0 55 88 06 3F */ clrlwi. r8, r12, 0x18 /* 800FF544 000FC4A4 39 20 00 02 */ li r9, 2 /* 800FF548 000FC4A8 41 82 00 08 */ beq lbl_800FF550 /* 800FF54C 000FC4AC 39 20 00 00 */ li r9, 0 lbl_800FF550: /* 800FF550 000FC4B0 99 25 00 00 */ stb r9, 0(r5) /* 800FF554 000FC4B4 7C C6 F2 14 */ add r6, r6, r30 /* 800FF558 000FC4B8 38 E7 00 01 */ addi r7, r7, 1 /* 800FF55C 000FC4BC 38 A5 00 01 */ addi r5, r5, 1 lbl_800FF560: /* 800FF560 000FC4C0 81 1F 02 D0 */ lwz r8, 0x2d0(r31) /* 800FF564 000FC4C4 7C 07 40 00 */ cmpw r7, r8 /* 800FF568 000FC4C8 41 80 FF 10 */ blt lbl_800FF478 /* 800FF56C 000FC4CC 7C 63 F2 14 */ add r3, r3, r30 /* 800FF570 000FC4D0 38 84 00 01 */ addi r4, r4, 1 lbl_800FF574: /* 800FF574 000FC4D4 80 1F 02 D4 */ lwz r0, 0x2d4(r31) /* 800FF578 000FC4D8 7C 04 00 00 */ cmpw r4, r0 /* 800FF57C 000FC4DC 41 80 FE DC */ blt lbl_800FF458 /* 800FF580 000FC4E0 80 7F 02 DC */ lwz r3, 0x2dc(r31) /* 800FF584 000FC4E4 48 21 63 AD */ bl Free__7CMemoryFPCv /* 800FF588 000FC4E8 38 00 00 00 */ li r0, 0 /* 800FF58C 000FC4EC 90 1F 02 DC */ stw r0, 0x2dc(r31) lbl_800FF590: /* 800FF590 000FC4F0 E3 E1 01 38 */ psq_l f31, 312(r1), 0, qr0 /* 800FF594 000FC4F4 CB E1 01 30 */ lfd f31, 0x130(r1) /* 800FF598 000FC4F8 E3 C1 01 28 */ psq_l f30, 296(r1), 0, qr0 /* 800FF59C 000FC4FC CB C1 01 20 */ lfd f30, 0x120(r1) /* 800FF5A0 000FC500 E3 A1 01 18 */ psq_l f29, 280(r1), 0, qr0 /* 800FF5A4 000FC504 CB A1 01 10 */ lfd f29, 0x110(r1) /* 800FF5A8 000FC508 E3 81 01 08 */ psq_l f28, 264(r1), 0, qr0 /* 800FF5AC 000FC50C CB 81 01 00 */ lfd f28, 0x100(r1) /* 800FF5B0 000FC510 E3 61 00 F8 */ psq_l f27, 248(r1), 0, qr0 /* 800FF5B4 000FC514 CB 61 00 F0 */ lfd f27, 0xf0(r1) /* 800FF5B8 000FC518 E3 41 00 E8 */ psq_l f26, 232(r1), 0, qr0 /* 800FF5BC 000FC51C CB 41 00 E0 */ lfd f26, 0xe0(r1) /* 800FF5C0 000FC520 BB 21 00 C4 */ lmw r25, 0xc4(r1) /* 800FF5C4 000FC524 80 01 01 44 */ lwz r0, 0x144(r1) /* 800FF5C8 000FC528 7C 08 03 A6 */ mtlr r0 /* 800FF5CC 000FC52C 38 21 01 40 */ addi r1, r1, 0x140 /* 800FF5D0 000FC530 4E 80 00 20 */ blr .global SetMorphing__12CScriptWaterFb SetMorphing__12CScriptWaterFb: /* 800FF5D4 000FC534 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FF5D8 000FC538 7C 08 02 A6 */ mflr r0 /* 800FF5DC 000FC53C 54 84 06 3E */ clrlwi r4, r4, 0x18 /* 800FF5E0 000FC540 90 01 00 14 */ stw r0, 0x14(r1) /* 800FF5E4 000FC544 88 A3 02 E8 */ lbz r5, 0x2e8(r3) /* 800FF5E8 000FC548 54 A0 DF FE */ rlwinm r0, r5, 0x1b, 0x1f, 0x1f /* 800FF5EC 000FC54C 7C 04 00 40 */ cmplw r4, r0 /* 800FF5F0 000FC550 41 82 00 18 */ beq lbl_800FF608 /* 800FF5F4 000FC554 50 85 2E B4 */ rlwimi r5, r4, 5, 0x1a, 0x1a /* 800FF5F8 000FC558 7C 80 00 34 */ cntlzw r0, r4 /* 800FF5FC 000FC55C 98 A3 02 E8 */ stb r5, 0x2e8(r3) /* 800FF600 000FC560 54 04 D9 7E */ srwi r4, r0, 5 /* 800FF604 000FC564 4B FF F7 B1 */ bl SetupGrid__12CScriptWaterFb lbl_800FF608: /* 800FF608 000FC568 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FF60C 000FC56C 7C 08 03 A6 */ mtlr r0 /* 800FF610 000FC570 38 21 00 10 */ addi r1, r1, 0x10 /* 800FF614 000FC574 4E 80 00 20 */ blr .global GetCollisionResponseType__12CScriptWaterCFRC9CVector3fRC9CVector3fRC11CWeaponModei GetCollisionResponseType__12CScriptWaterCFRC9CVector3fRC9CVector3fRC11CWeaponModei: /* 800FF618 000FC578 38 60 00 08 */ li r3, 8 /* 800FF61C 000FC57C 4E 80 00 20 */ blr .global GetSplashEffectScale__12CScriptWaterCFf GetSplashEffectScale__12CScriptWaterCFf: /* 800FF620 000FC580 94 21 FF E0 */ stwu r1, -0x20(r1) /* 800FF624 000FC584 7C 08 02 A6 */ mflr r0 /* 800FF628 000FC588 90 01 00 24 */ stw r0, 0x24(r1) /* 800FF62C 000FC58C DB E1 00 10 */ stfd f31, 0x10(r1) /* 800FF630 000FC590 F3 E1 00 18 */ psq_st f31, 24(r1), 0, qr0 /* 800FF634 000FC594 93 E1 00 0C */ stw r31, 0xc(r1) /* 800FF638 000FC598 FF E0 08 90 */ fmr f31, f1 /* 800FF63C 000FC59C C0 42 93 D0 */ lfs f2, lbl_805AB0F0@sda21(r2) /* 800FF640 000FC5A0 C0 02 93 D4 */ lfs f0, lbl_805AB0F4@sda21(r2) /* 800FF644 000FC5A4 EC 5F 10 28 */ fsubs f2, f31, f2 /* 800FF648 000FC5A8 FC 40 12 10 */ fabs f2, f2 /* 800FF64C 000FC5AC FC 02 00 40 */ fcmpo cr0, f2, f0 /* 800FF650 000FC5B0 40 80 00 14 */ bge lbl_800FF664 /* 800FF654 000FC5B4 3C 60 80 3D */ lis r3, lbl_803CEE20@ha /* 800FF658 000FC5B8 38 63 EE 20 */ addi r3, r3, lbl_803CEE20@l /* 800FF65C 000FC5BC C0 23 00 14 */ lfs f1, 0x14(r3) /* 800FF660 000FC5C0 48 00 00 48 */ b lbl_800FF6A8 lbl_800FF664: /* 800FF664 000FC5C4 48 00 00 D1 */ bl GetSplashIndex__12CScriptWaterCFf /* 800FF668 000FC5C8 C0 02 93 D8 */ lfs f0, lbl_805AB0F8@sda21(r2) /* 800FF66C 000FC5CC 7C 7F 1B 78 */ mr r31, r3 /* 800FF670 000FC5D0 EF FF 00 32 */ fmuls f31, f31, f0 /* 800FF674 000FC5D4 FC 20 F8 90 */ fmr f1, f31 /* 800FF678 000FC5D8 48 21 5C 25 */ bl FloorF__5CMathFf /* 800FF67C 000FC5DC 3C 60 80 3D */ lis r3, lbl_803CEE20@ha /* 800FF680 000FC5E0 57 E0 18 38 */ slwi r0, r31, 3 /* 800FF684 000FC5E4 38 83 EE 20 */ addi r4, r3, lbl_803CEE20@l /* 800FF688 000FC5E8 EF FF 08 28 */ fsubs f31, f31, f1 /* 800FF68C 000FC5EC 7C 64 02 14 */ add r3, r4, r0 /* 800FF690 000FC5F0 C0 22 93 D0 */ lfs f1, lbl_805AB0F0@sda21(r2) /* 800FF694 000FC5F4 C0 03 00 04 */ lfs f0, 4(r3) /* 800FF698 000FC5F8 EC 41 F8 28 */ fsubs f2, f1, f31 /* 800FF69C 000FC5FC 7C 24 04 2E */ lfsx f1, r4, r0 /* 800FF6A0 000FC600 EC 1F 00 32 */ fmuls f0, f31, f0 /* 800FF6A4 000FC604 EC 22 00 7A */ fmadds f1, f2, f1, f0 lbl_800FF6A8: /* 800FF6A8 000FC608 E3 E1 00 18 */ psq_l f31, 24(r1), 0, qr0 /* 800FF6AC 000FC60C 80 01 00 24 */ lwz r0, 0x24(r1) /* 800FF6B0 000FC610 CB E1 00 10 */ lfd f31, 0x10(r1) /* 800FF6B4 000FC614 83 E1 00 0C */ lwz r31, 0xc(r1) /* 800FF6B8 000FC618 7C 08 03 A6 */ mtlr r0 /* 800FF6BC 000FC61C 38 21 00 20 */ addi r1, r1, 0x20 /* 800FF6C0 000FC620 4E 80 00 20 */ blr .global GetSplashSound__12CScriptWaterCFf GetSplashSound__12CScriptWaterCFf: /* 800FF6C4 000FC624 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FF6C8 000FC628 7C 08 02 A6 */ mflr r0 /* 800FF6CC 000FC62C 90 01 00 14 */ stw r0, 0x14(r1) /* 800FF6D0 000FC630 93 E1 00 0C */ stw r31, 0xc(r1) /* 800FF6D4 000FC634 7C 7F 1B 78 */ mr r31, r3 /* 800FF6D8 000FC638 48 00 00 5D */ bl GetSplashIndex__12CScriptWaterCFf /* 800FF6DC 000FC63C 54 60 08 3C */ slwi r0, r3, 1 /* 800FF6E0 000FC640 7C 7F 02 14 */ add r3, r31, r0 /* 800FF6E4 000FC644 A0 63 02 9C */ lhz r3, 0x29c(r3) /* 800FF6E8 000FC648 83 E1 00 0C */ lwz r31, 0xc(r1) /* 800FF6EC 000FC64C 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FF6F0 000FC650 7C 08 03 A6 */ mtlr r0 /* 800FF6F4 000FC654 38 21 00 10 */ addi r1, r1, 0x10 /* 800FF6F8 000FC658 4E 80 00 20 */ blr .global GetSplashEffect__12CScriptWaterCFf GetSplashEffect__12CScriptWaterCFf: /* 800FF6FC 000FC65C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FF700 000FC660 7C 08 02 A6 */ mflr r0 /* 800FF704 000FC664 90 01 00 14 */ stw r0, 0x14(r1) /* 800FF708 000FC668 93 E1 00 0C */ stw r31, 0xc(r1) /* 800FF70C 000FC66C 7C 7F 1B 78 */ mr r31, r3 /* 800FF710 000FC670 48 00 00 25 */ bl GetSplashIndex__12CScriptWaterCFf /* 800FF714 000FC674 54 60 20 36 */ slwi r0, r3, 4 /* 800FF718 000FC678 7C 7F 02 14 */ add r3, r31, r0 /* 800FF71C 000FC67C 38 63 02 68 */ addi r3, r3, 0x268 /* 800FF720 000FC680 83 E1 00 0C */ lwz r31, 0xc(r1) /* 800FF724 000FC684 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FF728 000FC688 7C 08 03 A6 */ mtlr r0 /* 800FF72C 000FC68C 38 21 00 10 */ addi r1, r1, 0x10 /* 800FF730 000FC690 4E 80 00 20 */ blr .global GetSplashIndex__12CScriptWaterCFf GetSplashIndex__12CScriptWaterCFf: /* 800FF734 000FC694 C0 02 93 D8 */ lfs f0, lbl_805AB0F8@sda21(r2) /* 800FF738 000FC698 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FF73C 000FC69C EC 01 00 32 */ fmuls f0, f1, f0 /* 800FF740 000FC6A0 FC 00 00 1E */ fctiwz f0, f0 /* 800FF744 000FC6A4 D8 01 00 08 */ stfd f0, 8(r1) /* 800FF748 000FC6A8 80 61 00 0C */ lwz r3, 0xc(r1) /* 800FF74C 000FC6AC 2C 03 00 03 */ cmpwi r3, 3 /* 800FF750 000FC6B0 41 80 00 08 */ blt lbl_800FF758 /* 800FF754 000FC6B4 38 63 FF FF */ addi r3, r3, -1 lbl_800FF758: /* 800FF758 000FC6B8 38 21 00 10 */ addi r1, r1, 0x10 /* 800FF75C 000FC6BC 4E 80 00 20 */ blr .global Render__12CScriptWaterCFRC13CStateManager Render__12CScriptWaterCFRC13CStateManager: /* 800FF760 000FC6C0 94 21 FD 60 */ stwu r1, -0x2a0(r1) /* 800FF764 000FC6C4 7C 08 02 A6 */ mflr r0 /* 800FF768 000FC6C8 90 01 02 A4 */ stw r0, 0x2a4(r1) /* 800FF76C 000FC6CC DB E1 02 90 */ stfd f31, 0x290(r1) /* 800FF770 000FC6D0 F3 E1 02 98 */ psq_st f31, 664(r1), 0, qr0 /* 800FF774 000FC6D4 93 E1 02 8C */ stw r31, 0x28c(r1) /* 800FF778 000FC6D8 93 C1 02 88 */ stw r30, 0x288(r1) /* 800FF77C 000FC6DC 93 A1 02 84 */ stw r29, 0x284(r1) /* 800FF780 000FC6E0 88 03 00 30 */ lbz r0, 0x30(r3) /* 800FF784 000FC6E4 7C 7E 1B 78 */ mr r30, r3 /* 800FF788 000FC6E8 7C 9F 23 78 */ mr r31, r4 /* 800FF78C 000FC6EC 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 800FF790 000FC6F0 41 82 03 74 */ beq lbl_800FFB04 /* 800FF794 000FC6F4 88 1E 00 E4 */ lbz r0, 0xe4(r30) /* 800FF798 000FC6F8 54 00 FF FF */ rlwinm. r0, r0, 0x1f, 0x1f, 0x1f /* 800FF79C 000FC6FC 40 82 03 68 */ bne lbl_800FFB04 /* 800FF7A0 000FC700 80 7E 00 90 */ lwz r3, 0x90(r30) /* 800FF7A4 000FC704 48 00 55 E5 */ bl ActivateLights__12CActorLightsCFv /* 800FF7A8 000FC708 C0 3E 00 B0 */ lfs f1, 0xb0(r30) /* 800FF7AC 000FC70C 38 61 01 EC */ addi r3, r1, 0x1ec /* 800FF7B0 000FC710 C0 1E 00 A4 */ lfs f0, 0xa4(r30) /* 800FF7B4 000FC714 C0 BE 00 60 */ lfs f5, 0x60(r30) /* 800FF7B8 000FC718 EC 61 00 2A */ fadds f3, f1, f0 /* 800FF7BC 000FC71C C0 82 93 DC */ lfs f4, lbl_805AB0FC@sda21(r2) /* 800FF7C0 000FC720 C0 3E 00 40 */ lfs f1, 0x40(r30) /* 800FF7C4 000FC724 FC 00 28 50 */ fneg f0, f5 /* 800FF7C8 000FC728 C0 5E 00 50 */ lfs f2, 0x50(r30) /* 800FF7CC 000FC72C EF E4 28 F8 */ fmsubs f31, f4, f3, f5 /* 800FF7D0 000FC730 FC 20 08 50 */ fneg f1, f1 /* 800FF7D4 000FC734 FC 40 10 50 */ fneg f2, f2 /* 800FF7D8 000FC738 EC 60 F8 28 */ fsubs f3, f0, f31 /* 800FF7DC 000FC73C 48 21 39 AD */ bl Translate__12CTransform4fFfff /* 800FF7E0 000FC740 38 61 00 E4 */ addi r3, r1, 0xe4 /* 800FF7E4 000FC744 38 9E 00 9C */ addi r4, r30, 0x9c /* 800FF7E8 000FC748 38 A1 01 EC */ addi r5, r1, 0x1ec /* 800FF7EC 000FC74C 48 23 81 11 */ bl GetTransformedAABox__6CAABoxCFRC12CTransform4f /* 800FF7F0 000FC750 C0 A1 00 E4 */ lfs f5, 0xe4(r1) /* 800FF7F4 000FC754 38 61 02 4C */ addi r3, r1, 0x24c /* 800FF7F8 000FC758 C0 81 00 E8 */ lfs f4, 0xe8(r1) /* 800FF7FC 000FC75C 38 9E 00 34 */ addi r4, r30, 0x34 /* 800FF800 000FC760 C0 61 00 EC */ lfs f3, 0xec(r1) /* 800FF804 000FC764 C0 41 00 F0 */ lfs f2, 0xf0(r1) /* 800FF808 000FC768 C0 21 00 F4 */ lfs f1, 0xf4(r1) /* 800FF80C 000FC76C C0 01 00 F8 */ lfs f0, 0xf8(r1) /* 800FF810 000FC770 D0 A1 01 44 */ stfs f5, 0x144(r1) /* 800FF814 000FC774 D0 81 01 48 */ stfs f4, 0x148(r1) /* 800FF818 000FC778 D0 61 01 4C */ stfs f3, 0x14c(r1) /* 800FF81C 000FC77C D0 41 01 50 */ stfs f2, 0x150(r1) /* 800FF820 000FC780 D0 21 01 54 */ stfs f1, 0x154(r1) /* 800FF824 000FC784 D0 01 01 58 */ stfs f0, 0x158(r1) /* 800FF828 000FC788 48 21 33 4D */ bl __ct__12CTransform4fFRC12CTransform4f /* 800FF82C 000FC78C C0 01 02 78 */ lfs f0, 0x278(r1) /* 800FF830 000FC790 38 61 00 8C */ addi r3, r1, 0x8c /* 800FF834 000FC794 80 DF 08 CC */ lwz r6, 0x8cc(r31) /* 800FF838 000FC798 EC 00 F8 2A */ fadds f0, f0, f31 /* 800FF83C 000FC79C 80 BF 08 50 */ lwz r5, 0x850(r31) /* 800FF840 000FC7A0 54 C4 18 38 */ slwi r4, r6, 3 /* 800FF844 000FC7A4 90 C1 00 30 */ stw r6, 0x30(r1) /* 800FF848 000FC7A8 38 04 00 04 */ addi r0, r4, 4 /* 800FF84C 000FC7AC D0 01 02 78 */ stfs f0, 0x278(r1) /* 800FF850 000FC7B0 80 85 00 20 */ lwz r4, 0x20(r5) /* 800FF854 000FC7B4 90 C1 00 34 */ stw r6, 0x34(r1) /* 800FF858 000FC7B8 7C 84 00 2E */ lwzx r4, r4, r0 /* 800FF85C 000FC7BC 38 84 00 6C */ addi r4, r4, 0x6c /* 800FF860 000FC7C0 48 23 7D AD */ bl GetCenterPoint__6CAABoxCFv /* 800FF864 000FC7C4 80 9F 08 7C */ lwz r4, 0x87c(r31) /* 800FF868 000FC7C8 3B A1 00 8C */ addi r29, r1, 0x8c /* 800FF86C 000FC7CC 38 61 00 C8 */ addi r3, r1, 0xc8 /* 800FF870 000FC7D0 48 00 02 C5 */ bl "__ct__Q24rstl33optional_object<14CRippleManager>FRC14CRippleManager" /* 800FF874 000FC7D4 A0 DE 00 08 */ lhz r6, 8(r30) /* 800FF878 000FC7D8 38 E1 00 24 */ addi r7, r1, 0x24 /* 800FF87C 000FC7DC 81 7E 00 04 */ lwz r11, 4(r30) /* 800FF880 000FC7E0 7F E4 FB 78 */ mr r4, r31 /* 800FF884 000FC7E4 B0 C1 00 24 */ sth r6, 0x24(r1) /* 800FF888 000FC7E8 38 A1 01 44 */ addi r5, r1, 0x144 /* 800FF88C 000FC7EC 81 9E 02 D8 */ lwz r12, 0x2d8(r30) /* 800FF890 000FC7F0 55 63 18 38 */ slwi r3, r11, 3 /* 800FF894 000FC7F4 38 03 00 04 */ addi r0, r3, 4 /* 800FF898 000FC7F8 B0 C1 00 20 */ sth r6, 0x20(r1) /* 800FF89C 000FC7FC 38 C1 02 4C */ addi r6, r1, 0x24c /* 800FF8A0 000FC800 39 3E 01 50 */ addi r9, r30, 0x150 /* 800FF8A4 000FC804 90 E1 00 08 */ stw r7, 8(r1) /* 800FF8A8 000FC808 39 41 00 C8 */ addi r10, r1, 0xc8 /* 800FF8AC 000FC80C 39 00 00 00 */ li r8, 0 /* 800FF8B0 000FC810 91 81 00 0C */ stw r12, 0xc(r1) /* 800FF8B4 000FC814 80 7E 02 C4 */ lwz r3, 0x2c4(r30) /* 800FF8B8 000FC818 91 61 00 28 */ stw r11, 0x28(r1) /* 800FF8BC 000FC81C 90 61 00 10 */ stw r3, 0x10(r1) /* 800FF8C0 000FC820 80 7E 02 C8 */ lwz r3, 0x2c8(r30) /* 800FF8C4 000FC824 91 61 00 2C */ stw r11, 0x2c(r1) /* 800FF8C8 000FC828 90 61 00 14 */ stw r3, 0x14(r1) /* 800FF8CC 000FC82C 93 A1 00 18 */ stw r29, 0x18(r1) /* 800FF8D0 000FC830 80 7E 01 B4 */ lwz r3, 0x1b4(r30) /* 800FF8D4 000FC834 80 FF 08 50 */ lwz r7, 0x850(r31) /* 800FF8D8 000FC838 81 83 00 00 */ lwz r12, 0(r3) /* 800FF8DC 000FC83C 80 E7 00 20 */ lwz r7, 0x20(r7) /* 800FF8E0 000FC840 81 8C 00 1C */ lwz r12, 0x1c(r12) /* 800FF8E4 000FC844 7C E7 00 2E */ lwzx r7, r7, r0 /* 800FF8E8 000FC848 C0 3E 02 BC */ lfs f1, 0x2bc(r30) /* 800FF8EC 000FC84C 38 E7 00 0C */ addi r7, r7, 0xc /* 800FF8F0 000FC850 7D 89 03 A6 */ mtctr r12 /* 800FF8F4 000FC854 4E 80 04 21 */ bctrl /* 800FF8F8 000FC858 38 61 00 C8 */ addi r3, r1, 0xc8 /* 800FF8FC 000FC85C 38 80 FF FF */ li r4, -1 /* 800FF900 000FC860 4B FF AF 41 */ bl sub_800fa840 /* 800FF904 000FC864 C0 3E 02 14 */ lfs f1, 0x214(r30) /* 800FF908 000FC868 C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 800FF90C 000FC86C FC 01 00 00 */ fcmpu cr0, f1, f0 /* 800FF910 000FC870 41 82 01 F0 */ beq lbl_800FFB00 /* 800FF914 000FC874 80 7F 08 B8 */ lwz r3, 0x8b8(r31) /* 800FF918 000FC878 7F E4 FB 78 */ mr r4, r31 /* 800FF91C 000FC87C 80 63 00 00 */ lwz r3, 0(r3) /* 800FF920 000FC880 4B F9 1B FD */ bl CanVisorSeeFog__12CPlayerStateCFRC13CStateManager /* 800FF924 000FC884 54 60 06 3F */ clrlwi. r0, r3, 0x18 /* 800FF928 000FC888 41 82 01 D8 */ beq lbl_800FFB00 /* 800FF92C 000FC88C 88 02 98 F0 */ lbz r0, lbl_805AB610@sda21(r2) /* 800FF930 000FC890 28 00 00 00 */ cmplwi r0, 0 /* 800FF934 000FC894 41 82 01 CC */ beq lbl_800FFB00 /* 800FF938 000FC898 48 20 A5 A9 */ bl GetSecondsMod900__9CGraphicsFv /* 800FF93C 000FC89C C0 1E 02 24 */ lfs f0, 0x224(r30) /* 800FF940 000FC8A0 EC 20 00 72 */ fmuls f1, f0, f1 /* 800FF944 000FC8A4 48 21 54 AD */ bl FastSinR__5CMathFf /* 800FF948 000FC8A8 C0 5E 02 18 */ lfs f2, 0x218(r30) /* 800FF94C 000FC8AC 7F E3 FB 78 */ mr r3, r31 /* 800FF950 000FC8B0 C0 1E 02 14 */ lfs f0, 0x214(r30) /* 800FF954 000FC8B4 EC 22 00 7A */ fmadds f1, f2, f1, f0 /* 800FF958 000FC8B8 4B F4 44 89 */ bl IntegrateVisorFog__13CStateManagerFf /* 800FF95C 000FC8BC FF E0 08 90 */ fmr f31, f1 /* 800FF960 000FC8C0 C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 800FF964 000FC8C4 FC 1F 00 40 */ fcmpo cr0, f31, f0 /* 800FF968 000FC8C8 40 81 01 98 */ ble lbl_800FFB00 /* 800FF96C 000FC8CC 7F C4 F3 78 */ mr r4, r30 /* 800FF970 000FC8D0 38 61 00 B0 */ addi r3, r1, 0xb0 /* 800FF974 000FC8D4 4B F7 6D 59 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FF978 000FC8D8 C0 01 00 C4 */ lfs f0, 0xc4(r1) /* 800FF97C 000FC8DC 38 61 00 98 */ addi r3, r1, 0x98 /* 800FF980 000FC8E0 C0 A1 00 B0 */ lfs f5, 0xb0(r1) /* 800FF984 000FC8E4 38 81 00 80 */ addi r4, r1, 0x80 /* 800FF988 000FC8E8 EC DF 00 2A */ fadds f6, f31, f0 /* 800FF98C 000FC8EC C0 81 00 B4 */ lfs f4, 0xb4(r1) /* 800FF990 000FC8F0 C0 41 00 BC */ lfs f2, 0xbc(r1) /* 800FF994 000FC8F4 38 A1 00 74 */ addi r5, r1, 0x74 /* 800FF998 000FC8F8 C0 21 00 C0 */ lfs f1, 0xc0(r1) /* 800FF99C 000FC8FC C0 61 00 B8 */ lfs f3, 0xb8(r1) /* 800FF9A0 000FC900 D0 A1 01 2C */ stfs f5, 0x12c(r1) /* 800FF9A4 000FC904 D0 81 01 30 */ stfs f4, 0x130(r1) /* 800FF9A8 000FC908 D0 61 01 34 */ stfs f3, 0x134(r1) /* 800FF9AC 000FC90C D0 41 01 38 */ stfs f2, 0x138(r1) /* 800FF9B0 000FC910 D0 21 01 3C */ stfs f1, 0x13c(r1) /* 800FF9B4 000FC914 D0 01 01 40 */ stfs f0, 0x140(r1) /* 800FF9B8 000FC918 D0 41 00 74 */ stfs f2, 0x74(r1) /* 800FF9BC 000FC91C D0 21 00 78 */ stfs f1, 0x78(r1) /* 800FF9C0 000FC920 D0 C1 00 7C */ stfs f6, 0x7c(r1) /* 800FF9C4 000FC924 D0 A1 00 80 */ stfs f5, 0x80(r1) /* 800FF9C8 000FC928 D0 81 00 84 */ stfs f4, 0x84(r1) /* 800FF9CC 000FC92C D0 01 00 88 */ stfs f0, 0x88(r1) /* 800FF9D0 000FC930 48 23 8B 39 */ bl __ct__6CAABoxFRC9CVector3fRC9CVector3f /* 800FF9D4 000FC934 C0 01 00 98 */ lfs f0, 0x98(r1) /* 800FF9D8 000FC938 38 61 01 5C */ addi r3, r1, 0x15c /* 800FF9DC 000FC93C C0 A1 00 A4 */ lfs f5, 0xa4(r1) /* 800FF9E0 000FC940 38 81 00 5C */ addi r4, r1, 0x5c /* 800FF9E4 000FC944 C0 E1 00 9C */ lfs f7, 0x9c(r1) /* 800FF9E8 000FC948 C0 81 00 A8 */ lfs f4, 0xa8(r1) /* 800FF9EC 000FC94C EC 45 00 28 */ fsubs f2, f5, f0 /* 800FF9F0 000FC950 C0 C1 00 A0 */ lfs f6, 0xa0(r1) /* 800FF9F4 000FC954 C0 61 00 AC */ lfs f3, 0xac(r1) /* 800FF9F8 000FC958 ED 24 38 28 */ fsubs f9, f4, f7 /* 800FF9FC 000FC95C C0 22 93 DC */ lfs f1, lbl_805AB0FC@sda21(r2) /* 800FFA00 000FC960 ED 03 30 28 */ fsubs f8, f3, f6 /* 800FFA04 000FC964 D0 01 01 14 */ stfs f0, 0x114(r1) /* 800FFA08 000FC968 ED 41 02 72 */ fmuls f10, f1, f9 /* 800FFA0C 000FC96C EC 01 00 B2 */ fmuls f0, f1, f2 /* 800FFA10 000FC970 D0 E1 01 18 */ stfs f7, 0x118(r1) /* 800FFA14 000FC974 EC 21 02 32 */ fmuls f1, f1, f8 /* 800FFA18 000FC978 D0 C1 01 1C */ stfs f6, 0x11c(r1) /* 800FFA1C 000FC97C D0 A1 01 20 */ stfs f5, 0x120(r1) /* 800FFA20 000FC980 D0 81 01 24 */ stfs f4, 0x124(r1) /* 800FFA24 000FC984 D0 61 01 28 */ stfs f3, 0x128(r1) /* 800FFA28 000FC988 D0 41 00 50 */ stfs f2, 0x50(r1) /* 800FFA2C 000FC98C D1 21 00 54 */ stfs f9, 0x54(r1) /* 800FFA30 000FC990 D1 01 00 58 */ stfs f8, 0x58(r1) /* 800FFA34 000FC994 D0 01 00 5C */ stfs f0, 0x5c(r1) /* 800FFA38 000FC998 D1 41 00 60 */ stfs f10, 0x60(r1) /* 800FFA3C 000FC99C D0 21 00 64 */ stfs f1, 0x64(r1) /* 800FFA40 000FC9A0 48 21 37 85 */ bl Scale__12CTransform4fFRC9CVector3f /* 800FFA44 000FC9A4 38 61 00 68 */ addi r3, r1, 0x68 /* 800FFA48 000FC9A8 38 81 01 14 */ addi r4, r1, 0x114 /* 800FFA4C 000FC9AC 48 23 7B C1 */ bl GetCenterPoint__6CAABoxCFv /* 800FFA50 000FC9B0 38 61 01 8C */ addi r3, r1, 0x18c /* 800FFA54 000FC9B4 38 81 00 68 */ addi r4, r1, 0x68 /* 800FFA58 000FC9B8 48 21 36 E9 */ bl Translate__12CTransform4fFRC9CVector3f /* 800FFA5C 000FC9BC 38 61 01 BC */ addi r3, r1, 0x1bc /* 800FFA60 000FC9C0 38 81 01 8C */ addi r4, r1, 0x18c /* 800FFA64 000FC9C4 38 A1 01 5C */ addi r5, r1, 0x15c /* 800FFA68 000FC9C8 48 21 2E E9 */ bl __ml__12CTransform4fCFRC12CTransform4f /* 800FFA6C 000FC9CC 38 61 02 1C */ addi r3, r1, 0x21c /* 800FFA70 000FC9D0 38 81 01 BC */ addi r4, r1, 0x1bc /* 800FFA74 000FC9D4 48 21 31 01 */ bl __ct__12CTransform4fFRC12CTransform4f /* 800FFA78 000FC9D8 C0 22 93 D0 */ lfs f1, lbl_805AB0F0@sda21(r2) /* 800FFA7C 000FC9DC 38 61 00 FC */ addi r3, r1, 0xfc /* 800FFA80 000FC9E0 C0 02 93 C0 */ lfs f0, lbl_805AB0E0@sda21(r2) /* 800FFA84 000FC9E4 38 81 00 44 */ addi r4, r1, 0x44 /* 800FFA88 000FC9E8 D0 21 00 38 */ stfs f1, 0x38(r1) /* 800FFA8C 000FC9EC 38 A1 00 38 */ addi r5, r1, 0x38 /* 800FFA90 000FC9F0 D0 21 00 3C */ stfs f1, 0x3c(r1) /* 800FFA94 000FC9F4 D0 21 00 40 */ stfs f1, 0x40(r1) /* 800FFA98 000FC9F8 D0 01 00 44 */ stfs f0, 0x44(r1) /* 800FFA9C 000FC9FC D0 01 00 48 */ stfs f0, 0x48(r1) /* 800FFAA0 000FCA00 D0 01 00 4C */ stfs f0, 0x4c(r1) /* 800FFAA4 000FCA04 48 23 8A 65 */ bl __ct__6CAABoxFRC9CVector3fRC9CVector3f /* 800FFAA8 000FCA08 80 6D A0 68 */ lwz r3, gpRender@sda21(r13) /* 800FFAAC 000FCA0C 38 81 02 1C */ addi r4, r1, 0x21c /* 800FFAB0 000FCA10 81 83 00 00 */ lwz r12, 0(r3) /* 800FFAB4 000FCA14 81 8C 00 30 */ lwz r12, 0x30(r12) /* 800FFAB8 000FCA18 7D 89 03 A6 */ mtctr r12 /* 800FFABC 000FCA1C 4E 80 04 21 */ bctrl /* 800FFAC0 000FCA20 48 24 A4 ED */ bl White__6CColorFv /* 800FFAC4 000FCA24 7C 64 1B 78 */ mr r4, r3 /* 800FFAC8 000FCA28 80 6D A0 68 */ lwz r3, gpRender@sda21(r13) /* 800FFACC 000FCA2C 81 83 00 00 */ lwz r12, 0(r3) /* 800FFAD0 000FCA30 81 8C 00 BC */ lwz r12, 0xbc(r12) /* 800FFAD4 000FCA34 7D 89 03 A6 */ mtctr r12 /* 800FFAD8 000FCA38 4E 80 04 21 */ bctrl /* 800FFADC 000FCA3C 80 6D A0 68 */ lwz r3, gpRender@sda21(r13) /* 800FFAE0 000FCA40 38 9E 02 28 */ addi r4, r30, 0x228 /* 800FFAE4 000FCA44 38 A1 00 FC */ addi r5, r1, 0xfc /* 800FFAE8 000FCA48 38 C0 00 00 */ li r6, 0 /* 800FFAEC 000FCA4C 81 83 00 00 */ lwz r12, 0(r3) /* 800FFAF0 000FCA50 38 E0 00 00 */ li r7, 0 /* 800FFAF4 000FCA54 81 8C 00 E4 */ lwz r12, 0xe4(r12) /* 800FFAF8 000FCA58 7D 89 03 A6 */ mtctr r12 /* 800FFAFC 000FCA5C 4E 80 04 21 */ bctrl lbl_800FFB00: /* 800FFB00 000FCA60 48 20 CE 7D */ bl DisableAllLights__9CGraphicsFv lbl_800FFB04: /* 800FFB04 000FCA64 7F C3 F3 78 */ mr r3, r30 /* 800FFB08 000FCA68 7F E4 FB 78 */ mr r4, r31 /* 800FFB0C 000FCA6C 4B F5 4C 99 */ bl Render__6CActorCFRC13CStateManager /* 800FFB10 000FCA70 E3 E1 02 98 */ psq_l f31, 664(r1), 0, qr0 /* 800FFB14 000FCA74 80 01 02 A4 */ lwz r0, 0x2a4(r1) /* 800FFB18 000FCA78 CB E1 02 90 */ lfd f31, 0x290(r1) /* 800FFB1C 000FCA7C 83 E1 02 8C */ lwz r31, 0x28c(r1) /* 800FFB20 000FCA80 83 C1 02 88 */ lwz r30, 0x288(r1) /* 800FFB24 000FCA84 83 A1 02 84 */ lwz r29, 0x284(r1) /* 800FFB28 000FCA88 7C 08 03 A6 */ mtlr r0 /* 800FFB2C 000FCA8C 38 21 02 A0 */ addi r1, r1, 0x2a0 /* 800FFB30 000FCA90 4E 80 00 20 */ blr .global "__ct__Q24rstl33optional_object<14CRippleManager>FRC14CRippleManager" "__ct__Q24rstl33optional_object<14CRippleManager>FRC14CRippleManager": /* 800FFB34 000FCA94 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FFB38 000FCA98 7C 08 02 A6 */ mflr r0 /* 800FFB3C 000FCA9C 90 01 00 14 */ stw r0, 0x14(r1) /* 800FFB40 000FCAA0 38 00 00 01 */ li r0, 1 /* 800FFB44 000FCAA4 93 E1 00 0C */ stw r31, 0xc(r1) /* 800FFB48 000FCAA8 7C 7F 1B 78 */ mr r31, r3 /* 800FFB4C 000FCAAC 98 03 00 18 */ stb r0, 0x18(r3) /* 800FFB50 000FCAB0 48 00 00 1D */ bl sub_800ffb6c /* 800FFB54 000FCAB4 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FFB58 000FCAB8 7F E3 FB 78 */ mr r3, r31 /* 800FFB5C 000FCABC 83 E1 00 0C */ lwz r31, 0xc(r1) /* 800FFB60 000FCAC0 7C 08 03 A6 */ mtlr r0 /* 800FFB64 000FCAC4 38 21 00 10 */ addi r1, r1, 0x10 /* 800FFB68 000FCAC8 4E 80 00 20 */ blr .global sub_800ffb6c sub_800ffb6c: /* 800FFB6C 000FCACC 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FFB70 000FCAD0 7C 08 02 A6 */ mflr r0 /* 800FFB74 000FCAD4 28 03 00 00 */ cmplwi r3, 0 /* 800FFB78 000FCAD8 90 01 00 14 */ stw r0, 0x14(r1) /* 800FFB7C 000FCADC 41 82 00 08 */ beq lbl_800FFB84 /* 800FFB80 000FCAE0 48 00 00 15 */ bl __ct__14CRippleManagerFRC14CRippleManager lbl_800FFB84: /* 800FFB84 000FCAE4 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FFB88 000FCAE8 7C 08 03 A6 */ mtlr r0 /* 800FFB8C 000FCAEC 38 21 00 10 */ addi r1, r1, 0x10 /* 800FFB90 000FCAF0 4E 80 00 20 */ blr .global __ct__14CRippleManagerFRC14CRippleManager __ct__14CRippleManagerFRC14CRippleManager: /* 800FFB94 000FCAF4 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FFB98 000FCAF8 7C 08 02 A6 */ mflr r0 /* 800FFB9C 000FCAFC 90 01 00 14 */ stw r0, 0x14(r1) /* 800FFBA0 000FCB00 93 E1 00 0C */ stw r31, 0xc(r1) /* 800FFBA4 000FCB04 7C 9F 23 78 */ mr r31, r4 /* 800FFBA8 000FCB08 93 C1 00 08 */ stw r30, 8(r1) /* 800FFBAC 000FCB0C 7C 7E 1B 78 */ mr r30, r3 /* 800FFBB0 000FCB10 38 7E 00 04 */ addi r3, r30, 4 /* 800FFBB4 000FCB14 C0 04 00 00 */ lfs f0, 0(r4) /* 800FFBB8 000FCB18 38 9F 00 04 */ addi r4, r31, 4 /* 800FFBBC 000FCB1C D0 1E 00 00 */ stfs f0, 0(r30) /* 800FFBC0 000FCB20 48 00 00 29 */ bl sub_800ffbe8 /* 800FFBC4 000FCB24 C0 1F 00 14 */ lfs f0, 0x14(r31) /* 800FFBC8 000FCB28 7F C3 F3 78 */ mr r3, r30 /* 800FFBCC 000FCB2C D0 1E 00 14 */ stfs f0, 0x14(r30) /* 800FFBD0 000FCB30 83 E1 00 0C */ lwz r31, 0xc(r1) /* 800FFBD4 000FCB34 83 C1 00 08 */ lwz r30, 8(r1) /* 800FFBD8 000FCB38 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FFBDC 000FCB3C 7C 08 03 A6 */ mtlr r0 /* 800FFBE0 000FCB40 38 21 00 10 */ addi r1, r1, 0x10 /* 800FFBE4 000FCB44 4E 80 00 20 */ blr .global sub_800ffbe8 sub_800ffbe8: /* 800FFBE8 000FCB48 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800FFBEC 000FCB4C 7C 08 02 A6 */ mflr r0 /* 800FFBF0 000FCB50 90 01 00 14 */ stw r0, 0x14(r1) /* 800FFBF4 000FCB54 93 E1 00 0C */ stw r31, 0xc(r1) /* 800FFBF8 000FCB58 7C 9F 23 78 */ mr r31, r4 /* 800FFBFC 000FCB5C 93 C1 00 08 */ stw r30, 8(r1) /* 800FFC00 000FCB60 7C 7E 1B 78 */ mr r30, r3 /* 800FFC04 000FCB64 80 04 00 04 */ lwz r0, 4(r4) /* 800FFC08 000FCB68 90 03 00 04 */ stw r0, 4(r3) /* 800FFC0C 000FCB6C 80 04 00 08 */ lwz r0, 8(r4) /* 800FFC10 000FCB70 90 03 00 08 */ stw r0, 8(r3) /* 800FFC14 000FCB74 80 04 00 04 */ lwz r0, 4(r4) /* 800FFC18 000FCB78 2C 00 00 00 */ cmpwi r0, 0 /* 800FFC1C 000FCB7C 40 82 00 1C */ bne lbl_800FFC38 /* 800FFC20 000FCB80 80 1F 00 08 */ lwz r0, 8(r31) /* 800FFC24 000FCB84 2C 00 00 00 */ cmpwi r0, 0 /* 800FFC28 000FCB88 40 82 00 10 */ bne lbl_800FFC38 /* 800FFC2C 000FCB8C 38 00 00 00 */ li r0, 0 /* 800FFC30 000FCB90 90 1E 00 0C */ stw r0, 0xc(r30) /* 800FFC34 000FCB94 48 00 00 40 */ b lbl_800FFC74 lbl_800FFC38: /* 800FFC38 000FCB98 80 1E 00 08 */ lwz r0, 8(r30) /* 800FFC3C 000FCB9C 54 03 30 33 */ rlwinm. r3, r0, 6, 0, 0x19 /* 800FFC40 000FCBA0 40 82 00 10 */ bne lbl_800FFC50 /* 800FFC44 000FCBA4 38 00 00 00 */ li r0, 0 /* 800FFC48 000FCBA8 90 1E 00 0C */ stw r0, 0xc(r30) /* 800FFC4C 000FCBAC 48 00 00 18 */ b lbl_800FFC64 lbl_800FFC50: /* 800FFC50 000FCBB0 3C 80 80 3D */ lis r4, lbl_803CEE38@ha /* 800FFC54 000FCBB4 38 A0 00 00 */ li r5, 0 /* 800FFC58 000FCBB8 38 84 EE 38 */ addi r4, r4, lbl_803CEE38@l /* 800FFC5C 000FCBBC 48 21 5B BD */ bl __nwa__FUlPCcPCc /* 800FFC60 000FCBC0 90 7E 00 0C */ stw r3, 0xc(r30) lbl_800FFC64: /* 800FFC64 000FCBC4 80 7F 00 0C */ lwz r3, 0xc(r31) /* 800FFC68 000FCBC8 80 9E 00 04 */ lwz r4, 4(r30) /* 800FFC6C 000FCBCC 80 BE 00 0C */ lwz r5, 0xc(r30) /* 800FFC70 000FCBD0 48 00 00 21 */ bl sub_800ffc90 lbl_800FFC74: /* 800FFC74 000FCBD4 80 01 00 14 */ lwz r0, 0x14(r1) /* 800FFC78 000FCBD8 7F C3 F3 78 */ mr r3, r30 /* 800FFC7C 000FCBDC 83 E1 00 0C */ lwz r31, 0xc(r1) /* 800FFC80 000FCBE0 83 C1 00 08 */ lwz r30, 8(r1) /* 800FFC84 000FCBE4 7C 08 03 A6 */ mtlr r0 /* 800FFC88 000FCBE8 38 21 00 10 */ addi r1, r1, 0x10 /* 800FFC8C 000FCBEC 4E 80 00 20 */ blr .global sub_800ffc90 sub_800ffc90: /* 800FFC90 000FCBF0 7C 89 03 A6 */ mtctr r4 /* 800FFC94 000FCBF4 2C 04 00 00 */ cmpwi r4, 0 /* 800FFC98 000FCBF8 40 81 00 98 */ ble lbl_800FFD30 lbl_800FFC9C: /* 800FFC9C 000FCBFC 28 05 00 00 */ cmplwi r5, 0 /* 800FFCA0 000FCC00 41 82 00 84 */ beq lbl_800FFD24 /* 800FFCA4 000FCC04 A0 03 00 00 */ lhz r0, 0(r3) /* 800FFCA8 000FCC08 B0 05 00 00 */ sth r0, 0(r5) /* 800FFCAC 000FCC0C C0 03 00 04 */ lfs f0, 4(r3) /* 800FFCB0 000FCC10 D0 05 00 04 */ stfs f0, 4(r5) /* 800FFCB4 000FCC14 C0 03 00 08 */ lfs f0, 8(r3) /* 800FFCB8 000FCC18 D0 05 00 08 */ stfs f0, 8(r5) /* 800FFCBC 000FCC1C C0 03 00 0C */ lfs f0, 0xc(r3) /* 800FFCC0 000FCC20 D0 05 00 0C */ stfs f0, 0xc(r5) /* 800FFCC4 000FCC24 C0 03 00 10 */ lfs f0, 0x10(r3) /* 800FFCC8 000FCC28 D0 05 00 10 */ stfs f0, 0x10(r5) /* 800FFCCC 000FCC2C C0 03 00 14 */ lfs f0, 0x14(r3) /* 800FFCD0 000FCC30 D0 05 00 14 */ stfs f0, 0x14(r5) /* 800FFCD4 000FCC34 C0 03 00 18 */ lfs f0, 0x18(r3) /* 800FFCD8 000FCC38 D0 05 00 18 */ stfs f0, 0x18(r5) /* 800FFCDC 000FCC3C C0 03 00 1C */ lfs f0, 0x1c(r3) /* 800FFCE0 000FCC40 D0 05 00 1C */ stfs f0, 0x1c(r5) /* 800FFCE4 000FCC44 C0 03 00 20 */ lfs f0, 0x20(r3) /* 800FFCE8 000FCC48 D0 05 00 20 */ stfs f0, 0x20(r5) /* 800FFCEC 000FCC4C C0 03 00 24 */ lfs f0, 0x24(r3) /* 800FFCF0 000FCC50 D0 05 00 24 */ stfs f0, 0x24(r5) /* 800FFCF4 000FCC54 C0 03 00 28 */ lfs f0, 0x28(r3) /* 800FFCF8 000FCC58 D0 05 00 28 */ stfs f0, 0x28(r5) /* 800FFCFC 000FCC5C C0 03 00 2C */ lfs f0, 0x2c(r3) /* 800FFD00 000FCC60 D0 05 00 2C */ stfs f0, 0x2c(r5) /* 800FFD04 000FCC64 C0 03 00 30 */ lfs f0, 0x30(r3) /* 800FFD08 000FCC68 D0 05 00 30 */ stfs f0, 0x30(r5) /* 800FFD0C 000FCC6C C0 03 00 34 */ lfs f0, 0x34(r3) /* 800FFD10 000FCC70 D0 05 00 34 */ stfs f0, 0x34(r5) /* 800FFD14 000FCC74 C0 03 00 38 */ lfs f0, 0x38(r3) /* 800FFD18 000FCC78 D0 05 00 38 */ stfs f0, 0x38(r5) /* 800FFD1C 000FCC7C 80 03 00 3C */ lwz r0, 0x3c(r3) /* 800FFD20 000FCC80 90 05 00 3C */ stw r0, 0x3c(r5) lbl_800FFD24: /* 800FFD24 000FCC84 38 A5 00 40 */ addi r5, r5, 0x40 /* 800FFD28 000FCC88 38 63 00 40 */ addi r3, r3, 0x40 /* 800FFD2C 000FCC8C 42 00 FF 70 */ bdnz lbl_800FFC9C lbl_800FFD30: /* 800FFD30 000FCC90 7C A3 2B 78 */ mr r3, r5 /* 800FFD34 000FCC94 4E 80 00 20 */ blr .global PreRender__12CScriptWaterFR13CStateManagerRC14CFrustumPlanes PreRender__12CScriptWaterFR13CStateManagerRC14CFrustumPlanes: /* 800FFD38 000FCC98 94 21 FF 80 */ stwu r1, -0x80(r1) /* 800FFD3C 000FCC9C 7C 08 02 A6 */ mflr r0 /* 800FFD40 000FCCA0 90 01 00 84 */ stw r0, 0x84(r1) /* 800FFD44 000FCCA4 BF 61 00 6C */ stmw r27, 0x6c(r1) /* 800FFD48 000FCCA8 7C 7D 1B 78 */ mr r29, r3 /* 800FFD4C 000FCCAC 7C 9E 23 78 */ mr r30, r4 /* 800FFD50 000FCCB0 7C BF 2B 78 */ mr r31, r5 /* 800FFD54 000FCCB4 88 03 02 E8 */ lbz r0, 0x2e8(r3) /* 800FFD58 000FCCB8 54 00 E7 FF */ rlwinm. r0, r0, 0x1c, 0x1f, 0x1f /* 800FFD5C 000FCCBC 41 82 01 C0 */ beq lbl_800FFF1C /* 800FFD60 000FCCC0 7F A4 EB 78 */ mr r4, r29 /* 800FFD64 000FCCC4 7F C5 F3 78 */ mr r5, r30 /* 800FFD68 000FCCC8 81 9D 00 00 */ lwz r12, 0(r29) /* 800FFD6C 000FCCCC 38 61 00 48 */ addi r3, r1, 0x48 /* 800FFD70 000FCCD0 81 8C 00 64 */ lwz r12, 0x64(r12) /* 800FFD74 000FCCD4 7D 89 03 A6 */ mtctr r12 /* 800FFD78 000FCCD8 4E 80 04 21 */ bctrl /* 800FFD7C 000FCCDC 7F E3 FB 78 */ mr r3, r31 /* 800FFD80 000FCCE0 38 81 00 48 */ addi r4, r1, 0x48 /* 800FFD84 000FCCE4 48 24 54 4D */ bl BoxInFrustumPlanes__14CFrustumPlanesCFRC6CAABox /* 800FFD88 000FCCE8 54 63 06 3E */ clrlwi r3, r3, 0x18 /* 800FFD8C 000FCCEC 88 1D 00 E4 */ lbz r0, 0xe4(r29) /* 800FFD90 000FCCF0 7C 63 00 34 */ cntlzw r3, r3 /* 800FFD94 000FCCF4 50 60 E7 BC */ rlwimi r0, r3, 0x1c, 0x1e, 0x1e /* 800FFD98 000FCCF8 98 1D 00 E4 */ stb r0, 0xe4(r29) /* 800FFD9C 000FCCFC 88 7D 00 E4 */ lbz r3, 0xe4(r29) /* 800FFDA0 000FCD00 54 60 FF FF */ rlwinm. r0, r3, 0x1f, 0x1f, 0x1f /* 800FFDA4 000FCD04 40 82 01 88 */ bne lbl_800FFF2C /* 800FFDA8 000FCD08 80 BD 00 04 */ lwz r5, 4(r29) /* 800FFDAC 000FCD0C 80 0D A3 90 */ lwz r0, kInvalidAreaId@sda21(r13) /* 800FFDB0 000FCD10 7C 05 00 00 */ cmpw r5, r0 /* 800FFDB4 000FCD14 41 82 00 A8 */ beq lbl_800FFE5C /* 800FFDB8 000FCD18 83 7D 00 90 */ lwz r27, 0x90(r29) /* 800FFDBC 000FCD1C 80 1B 02 B8 */ lwz r0, 0x2b8(r27) /* 800FFDC0 000FCD20 28 00 00 00 */ cmplwi r0, 0 /* 800FFDC4 000FCD24 41 82 00 78 */ beq lbl_800FFE3C /* 800FFDC8 000FCD28 54 60 F7 FF */ rlwinm. r0, r3, 0x1e, 0x1f, 0x1f /* 800FFDCC 000FCD2C 40 82 00 10 */ bne lbl_800FFDDC /* 800FFDD0 000FCD30 88 1B 02 98 */ lbz r0, 0x298(r27) /* 800FFDD4 000FCD34 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 800FFDD8 000FCD38 41 82 00 64 */ beq lbl_800FFE3C lbl_800FFDDC: /* 800FFDDC 000FCD3C 80 9E 08 50 */ lwz r4, 0x850(r30) /* 800FFDE0 000FCD40 54 A3 18 38 */ slwi r3, r5, 3 /* 800FFDE4 000FCD44 38 03 00 04 */ addi r0, r3, 4 /* 800FFDE8 000FCD48 90 A1 00 10 */ stw r5, 0x10(r1) /* 800FFDEC 000FCD4C 80 64 00 20 */ lwz r3, 0x20(r4) /* 800FFDF0 000FCD50 90 A1 00 14 */ stw r5, 0x14(r1) /* 800FFDF4 000FCD54 7F 83 00 2E */ lwzx r28, r3, r0 /* 800FFDF8 000FCD58 88 1C 00 F0 */ lbz r0, 0xf0(r28) /* 800FFDFC 000FCD5C 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 800FFE00 000FCD60 41 82 00 3C */ beq lbl_800FFE3C /* 800FFE04 000FCD64 90 A1 00 08 */ stw r5, 8(r1) /* 800FFE08 000FCD68 7F A4 EB 78 */ mr r4, r29 /* 800FFE0C 000FCD6C 38 61 00 30 */ addi r3, r1, 0x30 /* 800FFE10 000FCD70 90 A1 00 0C */ stw r5, 0xc(r1) /* 800FFE14 000FCD74 4B F7 68 B9 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FFE18 000FCD78 7F 63 DB 78 */ mr r3, r27 /* 800FFE1C 000FCD7C 7F C4 F3 78 */ mr r4, r30 /* 800FFE20 000FCD80 7F 85 E3 78 */ mr r5, r28 /* 800FFE24 000FCD84 38 C1 00 30 */ addi r6, r1, 0x30 /* 800FFE28 000FCD88 48 00 3F 99 */ bl BuildAreaLightList__12CActorLightsFRC13CStateManagerRC9CGameAreaRC6CAABox /* 800FFE2C 000FCD8C 88 1D 00 E4 */ lbz r0, 0xe4(r29) /* 800FFE30 000FCD90 38 60 00 00 */ li r3, 0 /* 800FFE34 000FCD94 50 60 17 7A */ rlwimi r0, r3, 2, 0x1d, 0x1d /* 800FFE38 000FCD98 98 1D 00 E4 */ stb r0, 0xe4(r29) lbl_800FFE3C: /* 800FFE3C 000FCD9C 83 9D 00 90 */ lwz r28, 0x90(r29) /* 800FFE40 000FCDA0 7F A4 EB 78 */ mr r4, r29 /* 800FFE44 000FCDA4 38 61 00 18 */ addi r3, r1, 0x18 /* 800FFE48 000FCDA8 4B F7 68 85 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 800FFE4C 000FCDAC 7F 83 E3 78 */ mr r3, r28 /* 800FFE50 000FCDB0 7F C4 F3 78 */ mr r4, r30 /* 800FFE54 000FCDB4 38 A1 00 18 */ addi r5, r1, 0x18 /* 800FFE58 000FCDB8 48 00 38 B9 */ bl BuildDynamicLightList__12CActorLightsFRC13CStateManagerRC6CAABox lbl_800FFE5C: /* 800FFE5C 000FCDBC 38 1D 01 50 */ addi r0, r29, 0x150 /* 800FFE60 000FCDC0 7C 00 F8 40 */ cmplw r0, r31 /* 800FFE64 000FCDC4 41 82 00 C8 */ beq lbl_800FFF2C /* 800FFE68 000FCDC8 80 BD 01 50 */ lwz r5, 0x150(r29) /* 800FFE6C 000FCDCC 38 DD 01 54 */ addi r6, r29, 0x154 /* 800FFE70 000FCDD0 38 60 00 00 */ li r3, 0 /* 800FFE74 000FCDD4 2C 05 00 00 */ cmpwi r5, 0 /* 800FFE78 000FCDD8 40 81 00 40 */ ble lbl_800FFEB8 /* 800FFE7C 000FCDDC 2C 05 00 08 */ cmpwi r5, 8 /* 800FFE80 000FCDE0 38 85 FF F8 */ addi r4, r5, -8 /* 800FFE84 000FCDE4 40 81 00 20 */ ble lbl_800FFEA4 /* 800FFE88 000FCDE8 38 04 00 07 */ addi r0, r4, 7 /* 800FFE8C 000FCDEC 54 00 E8 FE */ srwi r0, r0, 3 /* 800FFE90 000FCDF0 7C 09 03 A6 */ mtctr r0 /* 800FFE94 000FCDF4 2C 04 00 00 */ cmpwi r4, 0 /* 800FFE98 000FCDF8 40 81 00 0C */ ble lbl_800FFEA4 lbl_800FFE9C: /* 800FFE9C 000FCDFC 38 63 00 08 */ addi r3, r3, 8 /* 800FFEA0 000FCE00 42 00 FF FC */ bdnz lbl_800FFE9C lbl_800FFEA4: /* 800FFEA4 000FCE04 7C 03 28 50 */ subf r0, r3, r5 /* 800FFEA8 000FCE08 7C 09 03 A6 */ mtctr r0 /* 800FFEAC 000FCE0C 7C 03 28 00 */ cmpw r3, r5 /* 800FFEB0 000FCE10 40 80 00 08 */ bge lbl_800FFEB8 lbl_800FFEB4: /* 800FFEB4 000FCE14 42 00 00 00 */ bdnz lbl_800FFEB4 lbl_800FFEB8: /* 800FFEB8 000FCE18 38 00 00 00 */ li r0, 0 /* 800FFEBC 000FCE1C 38 7F 00 04 */ addi r3, r31, 4 /* 800FFEC0 000FCE20 90 1D 01 50 */ stw r0, 0x150(r29) /* 800FFEC4 000FCE24 80 1F 00 00 */ lwz r0, 0(r31) /* 800FFEC8 000FCE28 54 00 20 36 */ slwi r0, r0, 4 /* 800FFECC 000FCE2C 7C 9F 02 14 */ add r4, r31, r0 /* 800FFED0 000FCE30 38 84 00 04 */ addi r4, r4, 4 /* 800FFED4 000FCE34 48 00 00 34 */ b lbl_800FFF08 lbl_800FFED8: /* 800FFED8 000FCE38 28 06 00 00 */ cmplwi r6, 0 /* 800FFEDC 000FCE3C 41 82 00 24 */ beq lbl_800FFF00 /* 800FFEE0 000FCE40 C0 03 00 00 */ lfs f0, 0(r3) /* 800FFEE4 000FCE44 D0 06 00 00 */ stfs f0, 0(r6) /* 800FFEE8 000FCE48 C0 03 00 04 */ lfs f0, 4(r3) /* 800FFEEC 000FCE4C D0 06 00 04 */ stfs f0, 4(r6) /* 800FFEF0 000FCE50 C0 03 00 08 */ lfs f0, 8(r3) /* 800FFEF4 000FCE54 D0 06 00 08 */ stfs f0, 8(r6) /* 800FFEF8 000FCE58 C0 03 00 0C */ lfs f0, 0xc(r3) /* 800FFEFC 000FCE5C D0 06 00 0C */ stfs f0, 0xc(r6) lbl_800FFF00: /* 800FFF00 000FCE60 38 C6 00 10 */ addi r6, r6, 0x10 /* 800FFF04 000FCE64 38 63 00 10 */ addi r3, r3, 0x10 lbl_800FFF08: /* 800FFF08 000FCE68 7C 03 20 40 */ cmplw r3, r4 /* 800FFF0C 000FCE6C 40 82 FF CC */ bne lbl_800FFED8 /* 800FFF10 000FCE70 80 1F 00 00 */ lwz r0, 0(r31) /* 800FFF14 000FCE74 90 1D 01 50 */ stw r0, 0x150(r29) /* 800FFF18 000FCE78 48 00 00 14 */ b lbl_800FFF2C lbl_800FFF1C: /* 800FFF1C 000FCE7C 88 1D 00 E4 */ lbz r0, 0xe4(r29) /* 800FFF20 000FCE80 38 60 00 01 */ li r3, 1 /* 800FFF24 000FCE84 50 60 0F BC */ rlwimi r0, r3, 1, 0x1e, 0x1e /* 800FFF28 000FCE88 98 1D 00 E4 */ stb r0, 0xe4(r29) lbl_800FFF2C: /* 800FFF2C 000FCE8C BB 61 00 6C */ lmw r27, 0x6c(r1) /* 800FFF30 000FCE90 80 01 00 84 */ lwz r0, 0x84(r1) /* 800FFF34 000FCE94 7C 08 03 A6 */ mtlr r0 /* 800FFF38 000FCE98 38 21 00 80 */ addi r1, r1, 0x80 /* 800FFF3C 000FCE9C 4E 80 00 20 */ blr .global AddToRenderer__12CScriptWaterCFRC14CFrustumPlanesRC13CStateManager AddToRenderer__12CScriptWaterCFRC14CFrustumPlanesRC13CStateManager: /* 800FFF40 000FCEA0 94 21 FF 90 */ stwu r1, -0x70(r1) /* 800FFF44 000FCEA4 7C 08 02 A6 */ mflr r0 /* 800FFF48 000FCEA8 90 01 00 74 */ stw r0, 0x74(r1) /* 800FFF4C 000FCEAC DB E1 00 60 */ stfd f31, 0x60(r1) /* 800FFF50 000FCEB0 F3 E1 00 68 */ psq_st f31, 104(r1), 0, qr0 /* 800FFF54 000FCEB4 DB C1 00 50 */ stfd f30, 0x50(r1) /* 800FFF58 000FCEB8 F3 C1 00 58 */ psq_st f30, 88(r1), 0, qr0 /* 800FFF5C 000FCEBC 93 E1 00 4C */ stw r31, 0x4c(r1) /* 800FFF60 000FCEC0 93 C1 00 48 */ stw r30, 0x48(r1) /* 800FFF64 000FCEC4 88 03 00 E4 */ lbz r0, 0xe4(r3) /* 800FFF68 000FCEC8 7C 7E 1B 78 */ mr r30, r3 /* 800FFF6C 000FCECC 7C BF 2B 78 */ mr r31, r5 /* 800FFF70 000FCED0 54 00 FF FF */ rlwinm. r0, r0, 0x1f, 0x1f, 0x1f /* 800FFF74 000FCED4 40 82 00 8C */ bne lbl_80100000 /* 800FFF78 000FCED8 C0 22 93 BC */ lfs f1, lbl_805AB0DC@sda21(r2) /* 800FFF7C 000FCEDC 38 61 00 08 */ addi r3, r1, 8 /* 800FFF80 000FCEE0 C3 FE 00 60 */ lfs f31, 0x60(r30) /* 800FFF84 000FCEE4 C0 7E 00 50 */ lfs f3, 0x50(r30) /* 800FFF88 000FCEE8 C0 5E 00 40 */ lfs f2, 0x40(r30) /* 800FFF8C 000FCEEC C0 02 93 D0 */ lfs f0, lbl_805AB0F0@sda21(r2) /* 800FFF90 000FCEF0 D0 41 00 24 */ stfs f2, 0x24(r1) /* 800FFF94 000FCEF4 C3 DE 01 44 */ lfs f30, 0x144(r30) /* 800FFF98 000FCEF8 D0 61 00 28 */ stfs f3, 0x28(r1) /* 800FFF9C 000FCEFC D3 E1 00 2C */ stfs f31, 0x2c(r1) /* 800FFFA0 000FCF00 D0 21 00 08 */ stfs f1, 8(r1) /* 800FFFA4 000FCF04 D0 21 00 0C */ stfs f1, 0xc(r1) /* 800FFFA8 000FCF08 D0 01 00 10 */ stfs f0, 0x10(r1) /* 800FFFAC 000FCF0C 48 21 49 4D */ bl Normalize__9CVector3fFv /* 800FFFB0 000FCF10 EC 1E F8 2A */ fadds f0, f30, f31 /* 800FFFB4 000FCF14 C0 61 00 08 */ lfs f3, 8(r1) /* 800FFFB8 000FCF18 C0 41 00 0C */ lfs f2, 0xc(r1) /* 800FFFBC 000FCF1C 7F C4 F3 78 */ mr r4, r30 /* 800FFFC0 000FCF20 C0 21 00 10 */ lfs f1, 0x10(r1) /* 800FFFC4 000FCF24 7F E5 FB 78 */ mr r5, r31 /* 800FFFC8 000FCF28 D0 61 00 14 */ stfs f3, 0x14(r1) /* 800FFFCC 000FCF2C 38 61 00 30 */ addi r3, r1, 0x30 /* 800FFFD0 000FCF30 D0 41 00 18 */ stfs f2, 0x18(r1) /* 800FFFD4 000FCF34 D0 21 00 1C */ stfs f1, 0x1c(r1) /* 800FFFD8 000FCF38 D0 01 00 20 */ stfs f0, 0x20(r1) /* 800FFFDC 000FCF3C 81 9E 00 00 */ lwz r12, 0(r30) /* 800FFFE0 000FCF40 81 8C 00 64 */ lwz r12, 0x64(r12) /* 800FFFE4 000FCF44 7D 89 03 A6 */ mtctr r12 /* 800FFFE8 000FCF48 4E 80 04 21 */ bctrl /* 800FFFEC 000FCF4C 7F E3 FB 78 */ mr r3, r31 /* 800FFFF0 000FCF50 7F C4 F3 78 */ mr r4, r30 /* 800FFFF4 000FCF54 38 A1 00 14 */ addi r5, r1, 0x14 /* 800FFFF8 000FCF58 38 C1 00 30 */ addi r6, r1, 0x30 /* 800FFFFC 000FCF5C 4B F4 49 29 */ bl AddDrawableActorPlane__13CStateManagerCFRC6CActorRC6CPlaneRC6CAABox lbl_80100000: /* 80100000 000FCF60 E3 E1 00 68 */ psq_l f31, 104(r1), 0, qr0 /* 80100004 000FCF64 CB E1 00 60 */ lfd f31, 0x60(r1) /* 80100008 000FCF68 E3 C1 00 58 */ psq_l f30, 88(r1), 0, qr0 /* 8010000C 000FCF6C CB C1 00 50 */ lfd f30, 0x50(r1) /* 80100010 000FCF70 83 E1 00 4C */ lwz r31, 0x4c(r1) /* 80100014 000FCF74 80 01 00 74 */ lwz r0, 0x74(r1) /* 80100018 000FCF78 83 C1 00 48 */ lwz r30, 0x48(r1) /* 8010001C 000FCF7C 7C 08 03 A6 */ mtlr r0 /* 80100020 000FCF80 38 21 00 70 */ addi r1, r1, 0x70 /* 80100024 000FCF84 4E 80 00 20 */ blr .global GetRenderBounds__12CScriptWaterCFRC12CTransform4f GetRenderBounds__12CScriptWaterCFRC12CTransform4f: /* 80100028 000FCF88 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8010002C 000FCF8C 7C 08 02 A6 */ mflr r0 /* 80100030 000FCF90 C0 02 93 D0 */ lfs f0, lbl_805AB0F0@sda21(r2) /* 80100034 000FCF94 38 A4 00 9C */ addi r5, r4, 0x9c /* 80100038 000FCF98 90 01 00 24 */ stw r0, 0x24(r1) /* 8010003C 000FCF9C C0 64 00 B0 */ lfs f3, 0xb0(r4) /* 80100040 000FCFA0 C0 A4 00 A8 */ lfs f5, 0xa8(r4) /* 80100044 000FCFA4 EC 03 00 28 */ fsubs f0, f3, f0 /* 80100048 000FCFA8 C0 24 02 14 */ lfs f1, 0x214(r4) /* 8010004C 000FCFAC C0 84 00 AC */ lfs f4, 0xac(r4) /* 80100050 000FCFB0 C0 44 02 18 */ lfs f2, 0x218(r4) /* 80100054 000FCFB4 EC 01 00 2A */ fadds f0, f1, f0 /* 80100058 000FCFB8 D0 A1 00 08 */ stfs f5, 8(r1) /* 8010005C 000FCFBC D0 81 00 0C */ stfs f4, 0xc(r1) /* 80100060 000FCFC0 EC 02 00 2A */ fadds f0, f2, f0 /* 80100064 000FCFC4 D0 61 00 10 */ stfs f3, 0x10(r1) /* 80100068 000FCFC8 FC 00 18 40 */ fcmpo cr0, f0, f3 /* 8010006C 000FCFCC 40 81 00 08 */ ble lbl_80100074 /* 80100070 000FCFD0 D0 01 00 10 */ stfs f0, 0x10(r1) lbl_80100074: /* 80100074 000FCFD4 7C A4 2B 78 */ mr r4, r5 /* 80100078 000FCFD8 38 A1 00 08 */ addi r5, r1, 8 /* 8010007C 000FCFDC 48 23 84 8D */ bl __ct__6CAABoxFRC9CVector3fRC9CVector3f /* 80100080 000FCFE0 80 01 00 24 */ lwz r0, 0x24(r1) /* 80100084 000FCFE4 7C 08 03 A6 */ mtlr r0 /* 80100088 000FCFE8 38 21 00 20 */ addi r1, r1, 0x20 /* 8010008C 000FCFEC 4E 80 00 20 */ blr .global CalculateRenderBounds__12CScriptWaterFv CalculateRenderBounds__12CScriptWaterFv: /* 80100090 000FCFF0 94 21 FF A0 */ stwu r1, -0x60(r1) /* 80100094 000FCFF4 7C 08 02 A6 */ mflr r0 /* 80100098 000FCFF8 C0 02 93 D0 */ lfs f0, lbl_805AB0F0@sda21(r2) /* 8010009C 000FCFFC 90 01 00 64 */ stw r0, 0x64(r1) /* 801000A0 000FD000 38 81 00 2C */ addi r4, r1, 0x2c /* 801000A4 000FD004 38 A1 00 14 */ addi r5, r1, 0x14 /* 801000A8 000FD008 93 E1 00 5C */ stw r31, 0x5c(r1) /* 801000AC 000FD00C 7C 7F 1B 78 */ mr r31, r3 /* 801000B0 000FD010 C0 23 01 44 */ lfs f1, 0x144(r3) /* 801000B4 000FD014 38 61 00 38 */ addi r3, r1, 0x38 /* 801000B8 000FD018 C1 1F 01 40 */ lfs f8, 0x140(r31) /* 801000BC 000FD01C EC 60 08 2A */ fadds f3, f0, f1 /* 801000C0 000FD020 C0 FF 00 60 */ lfs f7, 0x60(r31) /* 801000C4 000FD024 EC 21 00 28 */ fsubs f1, f1, f0 /* 801000C8 000FD028 C0 BF 00 50 */ lfs f5, 0x50(r31) /* 801000CC 000FD02C C0 1F 01 3C */ lfs f0, 0x13c(r31) /* 801000D0 000FD030 C0 DF 00 40 */ lfs f6, 0x40(r31) /* 801000D4 000FD034 EC 88 28 2A */ fadds f4, f8, f5 /* 801000D8 000FD038 D0 01 00 08 */ stfs f0, 8(r1) /* 801000DC 000FD03C EC 43 38 2A */ fadds f2, f3, f7 /* 801000E0 000FD040 EC 00 30 2A */ fadds f0, f0, f6 /* 801000E4 000FD044 D1 01 00 0C */ stfs f8, 0xc(r1) /* 801000E8 000FD048 D0 81 00 18 */ stfs f4, 0x18(r1) /* 801000EC 000FD04C EC 81 38 2A */ fadds f4, f1, f7 /* 801000F0 000FD050 D0 01 00 14 */ stfs f0, 0x14(r1) /* 801000F4 000FD054 D0 41 00 1C */ stfs f2, 0x1c(r1) /* 801000F8 000FD058 C0 FF 01 34 */ lfs f7, 0x134(r31) /* 801000FC 000FD05C C0 5F 01 30 */ lfs f2, 0x130(r31) /* 80100100 000FD060 EC A7 28 2A */ fadds f5, f7, f5 /* 80100104 000FD064 D0 61 00 10 */ stfs f3, 0x10(r1) /* 80100108 000FD068 EC 02 30 2A */ fadds f0, f2, f6 /* 8010010C 000FD06C D0 41 00 20 */ stfs f2, 0x20(r1) /* 80100110 000FD070 D0 E1 00 24 */ stfs f7, 0x24(r1) /* 80100114 000FD074 D0 21 00 28 */ stfs f1, 0x28(r1) /* 80100118 000FD078 D0 01 00 2C */ stfs f0, 0x2c(r1) /* 8010011C 000FD07C D0 A1 00 30 */ stfs f5, 0x30(r1) /* 80100120 000FD080 D0 81 00 34 */ stfs f4, 0x34(r1) /* 80100124 000FD084 48 23 83 E5 */ bl __ct__6CAABoxFRC9CVector3fRC9CVector3f /* 80100128 000FD088 80 61 00 38 */ lwz r3, 0x38(r1) /* 8010012C 000FD08C 80 01 00 3C */ lwz r0, 0x3c(r1) /* 80100130 000FD090 90 7F 00 9C */ stw r3, 0x9c(r31) /* 80100134 000FD094 90 1F 00 A0 */ stw r0, 0xa0(r31) /* 80100138 000FD098 80 01 00 40 */ lwz r0, 0x40(r1) /* 8010013C 000FD09C 90 1F 00 A4 */ stw r0, 0xa4(r31) /* 80100140 000FD0A0 80 61 00 44 */ lwz r3, 0x44(r1) /* 80100144 000FD0A4 80 01 00 48 */ lwz r0, 0x48(r1) /* 80100148 000FD0A8 90 7F 00 A8 */ stw r3, 0xa8(r31) /* 8010014C 000FD0AC 90 1F 00 AC */ stw r0, 0xac(r31) /* 80100150 000FD0B0 80 01 00 4C */ lwz r0, 0x4c(r1) /* 80100154 000FD0B4 90 1F 00 B0 */ stw r0, 0xb0(r31) /* 80100158 000FD0B8 83 E1 00 5C */ lwz r31, 0x5c(r1) /* 8010015C 000FD0BC 80 01 00 64 */ lwz r0, 0x64(r1) /* 80100160 000FD0C0 7C 08 03 A6 */ mtlr r0 /* 80100164 000FD0C4 38 21 00 60 */ addi r1, r1, 0x60 /* 80100168 000FD0C8 4E 80 00 20 */ blr .global Accept__12CScriptWaterFR8IVisitor Accept__12CScriptWaterFR8IVisitor: /* 8010016C 000FD0CC 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80100170 000FD0D0 7C 08 02 A6 */ mflr r0 /* 80100174 000FD0D4 90 01 00 14 */ stw r0, 0x14(r1) /* 80100178 000FD0D8 7C 60 1B 78 */ mr r0, r3 /* 8010017C 000FD0DC 7C 83 23 78 */ mr r3, r4 /* 80100180 000FD0E0 81 84 00 00 */ lwz r12, 0(r4) /* 80100184 000FD0E4 7C 04 03 78 */ mr r4, r0 /* 80100188 000FD0E8 81 8C 00 D4 */ lwz r12, 0xd4(r12) /* 8010018C 000FD0EC 7D 89 03 A6 */ mtctr r12 /* 80100190 000FD0F0 4E 80 04 21 */ bctrl /* 80100194 000FD0F4 80 01 00 14 */ lwz r0, 0x14(r1) /* 80100198 000FD0F8 7C 08 03 A6 */ mtlr r0 /* 8010019C 000FD0FC 38 21 00 10 */ addi r1, r1, 0x10 /* 801001A0 000FD100 4E 80 00 20 */ blr .global Think__12CScriptWaterFfR13CStateManager Think__12CScriptWaterFfR13CStateManager: /* 801001A4 000FD104 94 21 FF 70 */ stwu r1, -0x90(r1) /* 801001A8 000FD108 7C 08 02 A6 */ mflr r0 /* 801001AC 000FD10C 90 01 00 94 */ stw r0, 0x94(r1) /* 801001B0 000FD110 DB E1 00 80 */ stfd f31, 0x80(r1) /* 801001B4 000FD114 F3 E1 00 88 */ psq_st f31, 136(r1), 0, qr0 /* 801001B8 000FD118 93 E1 00 7C */ stw r31, 0x7c(r1) /* 801001BC 000FD11C 93 C1 00 78 */ stw r30, 0x78(r1) /* 801001C0 000FD120 93 A1 00 74 */ stw r29, 0x74(r1) /* 801001C4 000FD124 88 03 00 30 */ lbz r0, 0x30(r3) /* 801001C8 000FD128 FF E0 08 90 */ fmr f31, f1 /* 801001CC 000FD12C 7C 7E 1B 78 */ mr r30, r3 /* 801001D0 000FD130 7C 9F 23 78 */ mr r31, r4 /* 801001D4 000FD134 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 801001D8 000FD138 41 82 03 D0 */ beq lbl_801005A8 /* 801001DC 000FD13C 88 1E 01 48 */ lbz r0, 0x148(r30) /* 801001E0 000FD140 54 1D D7 FE */ rlwinm r29, r0, 0x1a, 0x1f, 0x1f /* 801001E4 000FD144 4B F7 62 E9 */ bl Think__14CScriptTriggerFfR13CStateManager /* 801001E8 000FD148 80 7F 08 70 */ lwz r3, 0x870(r31) /* 801001EC 000FD14C 7F E4 FB 78 */ mr r4, r31 /* 801001F0 000FD150 4B F0 B9 71 */ bl GetCurrentCamera__14CCameraManagerFR13CStateManager /* 801001F4 000FD154 88 1E 01 48 */ lbz r0, 0x148(r30) /* 801001F8 000FD158 7C 64 1B 78 */ mr r4, r3 /* 801001FC 000FD15C 54 00 D7 FF */ rlwinm. r0, r0, 0x1a, 0x1f, 0x1f /* 80100200 000FD160 41 82 00 2C */ beq lbl_8010022C /* 80100204 000FD164 28 1D 00 00 */ cmplwi r29, 0 /* 80100208 000FD168 40 82 00 24 */ bne lbl_8010022C /* 8010020C 000FD16C A0 1E 00 08 */ lhz r0, 8(r30) /* 80100210 000FD170 7F E3 FB 78 */ mr r3, r31 /* 80100214 000FD174 38 A1 00 14 */ addi r5, r1, 0x14 /* 80100218 000FD178 38 C0 00 25 */ li r6, 0x25 /* 8010021C 000FD17C B0 01 00 10 */ sth r0, 0x10(r1) /* 80100220 000FD180 B0 01 00 14 */ sth r0, 0x14(r1) /* 80100224 000FD184 4B F4 3C AD */ bl SendScriptMsg__13CStateManagerFP7CEntity9TEditorId20EScriptObjectMessage /* 80100228 000FD188 48 00 00 30 */ b lbl_80100258 lbl_8010022C: /* 8010022C 000FD18C 28 00 00 00 */ cmplwi r0, 0 /* 80100230 000FD190 40 82 00 28 */ bne lbl_80100258 /* 80100234 000FD194 28 1D 00 00 */ cmplwi r29, 0 /* 80100238 000FD198 41 82 00 20 */ beq lbl_80100258 /* 8010023C 000FD19C A0 1E 00 08 */ lhz r0, 8(r30) /* 80100240 000FD1A0 7F E3 FB 78 */ mr r3, r31 /* 80100244 000FD1A4 38 A1 00 0C */ addi r5, r1, 0xc /* 80100248 000FD1A8 38 C0 00 27 */ li r6, 0x27 /* 8010024C 000FD1AC B0 01 00 08 */ sth r0, 8(r1) /* 80100250 000FD1B0 B0 01 00 0C */ sth r0, 0xc(r1) /* 80100254 000FD1B4 4B F4 3C 7D */ bl SendScriptMsg__13CStateManagerFP7CEntity9TEditorId20EScriptObjectMessage lbl_80100258: /* 80100258 000FD1B8 7F C3 F3 78 */ mr r3, r30 /* 8010025C 000FD1BC 7F E4 FB 78 */ mr r4, r31 /* 80100260 000FD1C0 48 00 03 6D */ bl UpdateSplashInhabitants__12CScriptWaterFR13CStateManager /* 80100264 000FD1C4 88 7E 02 E8 */ lbz r3, 0x2e8(r30) /* 80100268 000FD1C8 54 60 FF FF */ rlwinm. r0, r3, 0x1f, 0x1f, 0x1f /* 8010026C 000FD1CC 41 82 00 84 */ beq lbl_801002F0 /* 80100270 000FD1D0 80 7E 01 B4 */ lwz r3, 0x1b4(r30) /* 80100274 000FD1D4 C0 7E 02 B8 */ lfs f3, 0x2b8(r30) /* 80100278 000FD1D8 C0 03 00 40 */ lfs f0, 0x40(r3) /* 8010027C 000FD1DC C0 3E 02 BC */ lfs f1, 0x2bc(r30) /* 80100280 000FD1E0 EC 5F 00 32 */ fmuls f2, f31, f0 /* 80100284 000FD1E4 C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 80100288 000FD1E8 EC 23 08 BC */ fnmsubs f1, f3, f2, f1 /* 8010028C 000FD1EC D0 3E 02 BC */ stfs f1, 0x2bc(r30) /* 80100290 000FD1F0 C0 3E 02 1C */ lfs f1, 0x21c(r30) /* 80100294 000FD1F4 C0 7E 02 B8 */ lfs f3, 0x2b8(r30) /* 80100298 000FD1F8 EC 5F 00 72 */ fmuls f2, f31, f1 /* 8010029C 000FD1FC C0 3E 02 14 */ lfs f1, 0x214(r30) /* 801002A0 000FD200 EC 23 08 BC */ fnmsubs f1, f3, f2, f1 /* 801002A4 000FD204 D0 3E 02 14 */ stfs f1, 0x214(r30) /* 801002A8 000FD208 C0 3E 02 20 */ lfs f1, 0x220(r30) /* 801002AC 000FD20C C0 7E 02 B8 */ lfs f3, 0x2b8(r30) /* 801002B0 000FD210 EC 5F 00 72 */ fmuls f2, f31, f1 /* 801002B4 000FD214 C0 3E 02 18 */ lfs f1, 0x218(r30) /* 801002B8 000FD218 EC 23 08 BC */ fnmsubs f1, f3, f2, f1 /* 801002BC 000FD21C D0 3E 02 18 */ stfs f1, 0x218(r30) /* 801002C0 000FD220 C0 3E 02 BC */ lfs f1, 0x2bc(r30) /* 801002C4 000FD224 FC 01 00 40 */ fcmpo cr0, f1, f0 /* 801002C8 000FD228 4C 40 13 82 */ cror 2, 0, 2 /* 801002CC 000FD22C 40 82 00 B0 */ bne lbl_8010037C /* 801002D0 000FD230 D0 1E 02 18 */ stfs f0, 0x218(r30) /* 801002D4 000FD234 38 60 00 00 */ li r3, 0 /* 801002D8 000FD238 D0 1E 02 14 */ stfs f0, 0x214(r30) /* 801002DC 000FD23C D0 1E 02 BC */ stfs f0, 0x2bc(r30) /* 801002E0 000FD240 88 1E 02 E8 */ lbz r0, 0x2e8(r30) /* 801002E4 000FD244 50 60 0F BC */ rlwimi r0, r3, 1, 0x1e, 0x1e /* 801002E8 000FD248 98 1E 02 E8 */ stb r0, 0x2e8(r30) /* 801002EC 000FD24C 48 00 00 90 */ b lbl_8010037C lbl_801002F0: /* 801002F0 000FD250 54 60 F7 FF */ rlwinm. r0, r3, 0x1e, 0x1f, 0x1f /* 801002F4 000FD254 41 82 00 88 */ beq lbl_8010037C /* 801002F8 000FD258 80 7E 01 B4 */ lwz r3, 0x1b4(r30) /* 801002FC 000FD25C C0 5E 02 B4 */ lfs f2, 0x2b4(r30) /* 80100300 000FD260 C0 23 00 40 */ lfs f1, 0x40(r3) /* 80100304 000FD264 C0 1E 02 BC */ lfs f0, 0x2bc(r30) /* 80100308 000FD268 EC 3F 00 72 */ fmuls f1, f31, f1 /* 8010030C 000FD26C EC 02 00 7A */ fmadds f0, f2, f1, f0 /* 80100310 000FD270 D0 1E 02 BC */ stfs f0, 0x2bc(r30) /* 80100314 000FD274 C0 1E 02 1C */ lfs f0, 0x21c(r30) /* 80100318 000FD278 C0 5E 02 B4 */ lfs f2, 0x2b4(r30) /* 8010031C 000FD27C EC 3F 00 32 */ fmuls f1, f31, f0 /* 80100320 000FD280 C0 1E 02 14 */ lfs f0, 0x214(r30) /* 80100324 000FD284 EC 02 00 7C */ fnmsubs f0, f2, f1, f0 /* 80100328 000FD288 D0 1E 02 14 */ stfs f0, 0x214(r30) /* 8010032C 000FD28C C0 1E 02 20 */ lfs f0, 0x220(r30) /* 80100330 000FD290 C0 5E 02 B4 */ lfs f2, 0x2b4(r30) /* 80100334 000FD294 EC 3F 00 32 */ fmuls f1, f31, f0 /* 80100338 000FD298 C0 1E 02 18 */ lfs f0, 0x218(r30) /* 8010033C 000FD29C EC 02 00 7C */ fnmsubs f0, f2, f1, f0 /* 80100340 000FD2A0 D0 1E 02 18 */ stfs f0, 0x218(r30) /* 80100344 000FD2A4 80 7E 01 B4 */ lwz r3, 0x1b4(r30) /* 80100348 000FD2A8 C0 3E 02 BC */ lfs f1, 0x2bc(r30) /* 8010034C 000FD2AC C0 03 00 40 */ lfs f0, 0x40(r3) /* 80100350 000FD2B0 FC 01 00 40 */ fcmpo cr0, f1, f0 /* 80100354 000FD2B4 40 81 00 28 */ ble lbl_8010037C /* 80100358 000FD2B8 D0 1E 02 BC */ stfs f0, 0x2bc(r30) /* 8010035C 000FD2BC 38 60 00 00 */ li r3, 0 /* 80100360 000FD2C0 C0 1E 02 1C */ lfs f0, 0x21c(r30) /* 80100364 000FD2C4 D0 1E 02 14 */ stfs f0, 0x214(r30) /* 80100368 000FD2C8 C0 1E 02 20 */ lfs f0, 0x220(r30) /* 8010036C 000FD2CC D0 1E 02 18 */ stfs f0, 0x218(r30) /* 80100370 000FD2D0 88 1E 02 E8 */ lbz r0, 0x2e8(r30) /* 80100374 000FD2D4 50 60 17 7A */ rlwimi r0, r3, 2, 0x1d, 0x1d /* 80100378 000FD2D8 98 1E 02 E8 */ stb r0, 0x2e8(r30) lbl_8010037C: /* 8010037C 000FD2DC 88 1E 02 E8 */ lbz r0, 0x2e8(r30) /* 80100380 000FD2E0 54 00 DF FF */ rlwinm. r0, r0, 0x1b, 0x1f, 0x1f /* 80100384 000FD2E4 41 82 02 14 */ beq lbl_80100598 /* 80100388 000FD2E8 88 1E 02 E8 */ lbz r0, 0x2e8(r30) /* 8010038C 000FD2EC 3B A0 00 01 */ li r29, 1 /* 80100390 000FD2F0 54 00 D7 FF */ rlwinm. r0, r0, 0x1a, 0x1f, 0x1f /* 80100394 000FD2F4 41 82 00 34 */ beq lbl_801003C8 /* 80100398 000FD2F8 C0 1E 01 D0 */ lfs f0, 0x1d0(r30) /* 8010039C 000FD2FC C0 5E 01 F8 */ lfs f2, 0x1f8(r30) /* 801003A0 000FD300 EC 3F 00 24 */ fdivs f1, f31, f0 /* 801003A4 000FD304 C0 02 93 D0 */ lfs f0, lbl_805AB0F0@sda21(r2) /* 801003A8 000FD308 EC 22 08 2A */ fadds f1, f2, f1 /* 801003AC 000FD30C D0 3E 01 F8 */ stfs f1, 0x1f8(r30) /* 801003B0 000FD310 C0 3E 01 F8 */ lfs f1, 0x1f8(r30) /* 801003B4 000FD314 FC 01 00 40 */ fcmpo cr0, f1, f0 /* 801003B8 000FD318 40 81 00 3C */ ble lbl_801003F4 /* 801003BC 000FD31C D0 1E 01 F8 */ stfs f0, 0x1f8(r30) /* 801003C0 000FD320 3B A0 00 00 */ li r29, 0 /* 801003C4 000FD324 48 00 00 30 */ b lbl_801003F4 lbl_801003C8: /* 801003C8 000FD328 C0 1E 01 F4 */ lfs f0, 0x1f4(r30) /* 801003CC 000FD32C C0 5E 01 F8 */ lfs f2, 0x1f8(r30) /* 801003D0 000FD330 EC 3F 00 24 */ fdivs f1, f31, f0 /* 801003D4 000FD334 C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 801003D8 000FD338 EC 22 08 28 */ fsubs f1, f2, f1 /* 801003DC 000FD33C D0 3E 01 F8 */ stfs f1, 0x1f8(r30) /* 801003E0 000FD340 C0 3E 01 F8 */ lfs f1, 0x1f8(r30) /* 801003E4 000FD344 FC 01 00 40 */ fcmpo cr0, f1, f0 /* 801003E8 000FD348 40 80 00 0C */ bge lbl_801003F4 /* 801003EC 000FD34C D0 1E 01 F8 */ stfs f0, 0x1f8(r30) /* 801003F0 000FD350 3B A0 00 00 */ li r29, 0 lbl_801003F4: /* 801003F4 000FD354 C0 FE 01 F8 */ lfs f7, 0x1f8(r30) /* 801003F8 000FD358 7F C3 F3 78 */ mr r3, r30 /* 801003FC 000FD35C C0 42 93 D0 */ lfs f2, lbl_805AB0F0@sda21(r2) /* 80100400 000FD360 38 81 00 30 */ addi r4, r1, 0x30 /* 80100404 000FD364 C0 3E 01 BC */ lfs f1, 0x1bc(r30) /* 80100408 000FD368 C0 1E 01 C0 */ lfs f0, 0x1c0(r30) /* 8010040C 000FD36C EC C2 38 28 */ fsubs f6, f2, f7 /* 80100410 000FD370 C0 BE 01 D8 */ lfs f5, 0x1d8(r30) /* 80100414 000FD374 EC 87 00 72 */ fmuls f4, f7, f1 /* 80100418 000FD378 C0 7E 01 DC */ lfs f3, 0x1dc(r30) /* 8010041C 000FD37C EC 47 00 32 */ fmuls f2, f7, f0 /* 80100420 000FD380 C0 3E 01 D4 */ lfs f1, 0x1d4(r30) /* 80100424 000FD384 C0 1E 01 B8 */ lfs f0, 0x1b8(r30) /* 80100428 000FD388 EC A6 01 72 */ fmuls f5, f6, f5 /* 8010042C 000FD38C EC 66 00 F2 */ fmuls f3, f6, f3 /* 80100430 000FD390 EC 26 00 72 */ fmuls f1, f6, f1 /* 80100434 000FD394 EC 07 00 32 */ fmuls f0, f7, f0 /* 80100438 000FD398 EC 85 20 2A */ fadds f4, f5, f4 /* 8010043C 000FD39C EC 43 10 2A */ fadds f2, f3, f2 /* 80100440 000FD3A0 EC 01 00 2A */ fadds f0, f1, f0 /* 80100444 000FD3A4 D0 81 00 34 */ stfs f4, 0x34(r1) /* 80100448 000FD3A8 D0 01 00 30 */ stfs f0, 0x30(r1) /* 8010044C 000FD3AC D0 41 00 38 */ stfs f2, 0x38(r1) /* 80100450 000FD3B0 4B F5 2A 3D */ bl SetTranslation__6CActorFRC9CVector3f /* 80100454 000FD3B4 C0 3E 01 F8 */ lfs f1, 0x1f8(r30) /* 80100458 000FD3B8 38 61 00 3C */ addi r3, r1, 0x3c /* 8010045C 000FD3BC C0 82 93 D0 */ lfs f4, lbl_805AB0F0@sda21(r2) /* 80100460 000FD3C0 38 81 00 24 */ addi r4, r1, 0x24 /* 80100464 000FD3C4 C0 1E 01 F0 */ lfs f0, 0x1f0(r30) /* 80100468 000FD3C8 38 A1 00 18 */ addi r5, r1, 0x18 /* 8010046C 000FD3CC EC 44 08 28 */ fsubs f2, f4, f1 /* 80100470 000FD3D0 C0 BE 01 EC */ lfs f5, 0x1ec(r30) /* 80100474 000FD3D4 EC 20 00 72 */ fmuls f1, f0, f1 /* 80100478 000FD3D8 C0 62 93 DC */ lfs f3, lbl_805AB0FC@sda21(r2) /* 8010047C 000FD3DC C0 02 93 E0 */ lfs f0, lbl_805AB100@sda21(r2) /* 80100480 000FD3E0 EC 25 08 BA */ fmadds f1, f5, f2, f1 /* 80100484 000FD3E4 D0 3E 01 08 */ stfs f1, 0x108(r30) /* 80100488 000FD3E8 C1 5E 01 F8 */ lfs f10, 0x1f8(r30) /* 8010048C 000FD3EC C0 5E 01 C4 */ lfs f2, 0x1c4(r30) /* 80100490 000FD3F0 C0 3E 01 C8 */ lfs f1, 0x1c8(r30) /* 80100494 000FD3F4 ED 24 50 28 */ fsubs f9, f4, f10 /* 80100498 000FD3F8 C0 DE 01 E0 */ lfs f6, 0x1e0(r30) /* 8010049C 000FD3FC EC EA 00 B2 */ fmuls f7, f10, f2 /* 801004A0 000FD400 C0 BE 01 E4 */ lfs f5, 0x1e4(r30) /* 801004A4 000FD404 EC 8A 00 72 */ fmuls f4, f10, f1 /* 801004A8 000FD408 C0 5E 01 E8 */ lfs f2, 0x1e8(r30) /* 801004AC 000FD40C C0 3E 01 CC */ lfs f1, 0x1cc(r30) /* 801004B0 000FD410 ED 09 01 B2 */ fmuls f8, f9, f6 /* 801004B4 000FD414 EC C9 01 72 */ fmuls f6, f9, f5 /* 801004B8 000FD418 EC A9 00 B2 */ fmuls f5, f9, f2 /* 801004BC 000FD41C EC E8 38 2A */ fadds f7, f8, f7 /* 801004C0 000FD420 EC C6 20 2A */ fadds f6, f6, f4 /* 801004C4 000FD424 EC 4A 00 72 */ fmuls f2, f10, f1 /* 801004C8 000FD428 EC 23 01 F2 */ fmuls f1, f3, f7 /* 801004CC 000FD42C EC 83 01 B2 */ fmuls f4, f3, f6 /* 801004D0 000FD430 EC A5 10 2A */ fadds f5, f5, f2 /* 801004D4 000FD434 EC 40 01 F2 */ fmuls f2, f0, f7 /* 801004D8 000FD438 D0 21 00 18 */ stfs f1, 0x18(r1) /* 801004DC 000FD43C EC 20 01 B2 */ fmuls f1, f0, f6 /* 801004E0 000FD440 EC 63 01 72 */ fmuls f3, f3, f5 /* 801004E4 000FD444 D0 81 00 1C */ stfs f4, 0x1c(r1) /* 801004E8 000FD448 EC 00 01 72 */ fmuls f0, f0, f5 /* 801004EC 000FD44C D0 41 00 24 */ stfs f2, 0x24(r1) /* 801004F0 000FD450 D0 61 00 20 */ stfs f3, 0x20(r1) /* 801004F4 000FD454 D0 21 00 28 */ stfs f1, 0x28(r1) /* 801004F8 000FD458 D0 01 00 2C */ stfs f0, 0x2c(r1) /* 801004FC 000FD45C 48 23 80 0D */ bl __ct__6CAABoxFRC9CVector3fRC9CVector3f /* 80100500 000FD460 C0 21 00 3C */ lfs f1, 0x3c(r1) /* 80100504 000FD464 7F C3 F3 78 */ mr r3, r30 /* 80100508 000FD468 C0 01 00 40 */ lfs f0, 0x40(r1) /* 8010050C 000FD46C D0 21 00 54 */ stfs f1, 0x54(r1) /* 80100510 000FD470 C0 61 00 44 */ lfs f3, 0x44(r1) /* 80100514 000FD474 D0 01 00 58 */ stfs f0, 0x58(r1) /* 80100518 000FD478 C0 41 00 48 */ lfs f2, 0x48(r1) /* 8010051C 000FD47C C0 21 00 4C */ lfs f1, 0x4c(r1) /* 80100520 000FD480 C0 01 00 50 */ lfs f0, 0x50(r1) /* 80100524 000FD484 80 81 00 54 */ lwz r4, 0x54(r1) /* 80100528 000FD488 D0 61 00 5C */ stfs f3, 0x5c(r1) /* 8010052C 000FD48C 80 01 00 58 */ lwz r0, 0x58(r1) /* 80100530 000FD490 90 9E 01 30 */ stw r4, 0x130(r30) /* 80100534 000FD494 80 81 00 5C */ lwz r4, 0x5c(r1) /* 80100538 000FD498 D0 41 00 60 */ stfs f2, 0x60(r1) /* 8010053C 000FD49C 90 1E 01 34 */ stw r0, 0x134(r30) /* 80100540 000FD4A0 80 01 00 60 */ lwz r0, 0x60(r1) /* 80100544 000FD4A4 D0 21 00 64 */ stfs f1, 0x64(r1) /* 80100548 000FD4A8 90 9E 01 38 */ stw r4, 0x138(r30) /* 8010054C 000FD4AC 80 81 00 64 */ lwz r4, 0x64(r1) /* 80100550 000FD4B0 D0 01 00 68 */ stfs f0, 0x68(r1) /* 80100554 000FD4B4 90 1E 01 3C */ stw r0, 0x13c(r30) /* 80100558 000FD4B8 80 01 00 68 */ lwz r0, 0x68(r1) /* 8010055C 000FD4BC 90 9E 01 40 */ stw r4, 0x140(r30) /* 80100560 000FD4C0 90 1E 01 44 */ stw r0, 0x144(r30) /* 80100564 000FD4C4 81 9E 00 00 */ lwz r12, 0(r30) /* 80100568 000FD4C8 81 8C 00 30 */ lwz r12, 0x30(r12) /* 8010056C 000FD4CC 7D 89 03 A6 */ mtctr r12 /* 80100570 000FD4D0 4E 80 04 21 */ bctrl /* 80100574 000FD4D4 57 A0 06 3F */ clrlwi. r0, r29, 0x18 /* 80100578 000FD4D8 40 82 00 14 */ bne lbl_8010058C /* 8010057C 000FD4DC 7F C3 F3 78 */ mr r3, r30 /* 80100580 000FD4E0 38 80 00 00 */ li r4, 0 /* 80100584 000FD4E4 4B FF F0 51 */ bl SetMorphing__12CScriptWaterFb /* 80100588 000FD4E8 48 00 00 10 */ b lbl_80100598 lbl_8010058C: /* 8010058C 000FD4EC 7F C3 F3 78 */ mr r3, r30 /* 80100590 000FD4F0 38 80 00 00 */ li r4, 0 /* 80100594 000FD4F4 4B FF E8 21 */ bl SetupGrid__12CScriptWaterFb lbl_80100598: /* 80100598 000FD4F8 7F C3 F3 78 */ mr r3, r30 /* 8010059C 000FD4FC 7F E4 FB 78 */ mr r4, r31 /* 801005A0 000FD500 38 A0 00 04 */ li r5, 4 /* 801005A4 000FD504 4B FF EA AD */ bl SetupGridClipping__12CScriptWaterFR13CStateManageri lbl_801005A8: /* 801005A8 000FD508 E3 E1 00 88 */ psq_l f31, 136(r1), 0, qr0 /* 801005AC 000FD50C 80 01 00 94 */ lwz r0, 0x94(r1) /* 801005B0 000FD510 CB E1 00 80 */ lfd f31, 0x80(r1) /* 801005B4 000FD514 83 E1 00 7C */ lwz r31, 0x7c(r1) /* 801005B8 000FD518 83 C1 00 78 */ lwz r30, 0x78(r1) /* 801005BC 000FD51C 83 A1 00 74 */ lwz r29, 0x74(r1) /* 801005C0 000FD520 7C 08 03 A6 */ mtlr r0 /* 801005C4 000FD524 38 21 00 90 */ addi r1, r1, 0x90 /* 801005C8 000FD528 4E 80 00 20 */ blr .global UpdateSplashInhabitants__12CScriptWaterFR13CStateManager UpdateSplashInhabitants__12CScriptWaterFR13CStateManager: /* 801005CC 000FD52C 94 21 FF 70 */ stwu r1, -0x90(r1) /* 801005D0 000FD530 7C 08 02 A6 */ mflr r0 /* 801005D4 000FD534 90 01 00 94 */ stw r0, 0x94(r1) /* 801005D8 000FD538 BF 41 00 78 */ stmw r26, 0x78(r1) /* 801005DC 000FD53C 7C 7E 1B 78 */ mr r30, r3 /* 801005E0 000FD540 7C 9F 23 78 */ mr r31, r4 /* 801005E4 000FD544 83 A3 02 00 */ lwz r29, 0x200(r3) /* 801005E8 000FD548 48 00 01 B0 */ b lbl_80100798 lbl_801005EC: /* 801005EC 000FD54C 83 9D 00 04 */ lwz r28, 4(r29) /* 801005F0 000FD550 7F E3 FB 78 */ mr r3, r31 /* 801005F4 000FD554 A0 1D 00 08 */ lhz r0, 8(r29) /* 801005F8 000FD558 38 81 00 18 */ addi r4, r1, 0x18 /* 801005FC 000FD55C B0 01 00 18 */ sth r0, 0x18(r1) /* 80100600 000FD560 4B F4 BF 75 */ bl ObjectById__13CStateManagerF9TUniqueId /* 80100604 000FD564 7C 64 1B 78 */ mr r4, r3 /* 80100608 000FD568 38 61 00 1C */ addi r3, r1, 0x1c /* 8010060C 000FD56C 4B FA F6 85 */ bl "__ct__19TCastToPtr<6CActor>FP7CEntity" /* 80100610 000FD570 83 63 00 04 */ lwz r27, 4(r3) /* 80100614 000FD574 3B 40 00 00 */ li r26, 0 /* 80100618 000FD578 28 1B 00 00 */ cmplwi r27, 0 /* 8010061C 000FD57C 41 82 00 B4 */ beq lbl_801006D0 /* 80100620 000FD580 7F 64 DB 78 */ mr r4, r27 /* 80100624 000FD584 38 61 00 3C */ addi r3, r1, 0x3c /* 80100628 000FD588 81 9B 00 00 */ lwz r12, 0(r27) /* 8010062C 000FD58C 81 8C 00 40 */ lwz r12, 0x40(r12) /* 80100630 000FD590 7D 89 03 A6 */ mtctr r12 /* 80100634 000FD594 4E 80 04 21 */ bctrl /* 80100638 000FD598 88 01 00 54 */ lbz r0, 0x54(r1) /* 8010063C 000FD59C 28 00 00 00 */ cmplwi r0, 0 /* 80100640 000FD5A0 98 01 00 70 */ stb r0, 0x70(r1) /* 80100644 000FD5A4 41 82 00 3C */ beq lbl_80100680 /* 80100648 000FD5A8 34 61 00 58 */ addic. r3, r1, 0x58 /* 8010064C 000FD5AC 41 82 00 34 */ beq lbl_80100680 /* 80100650 000FD5B0 C0 01 00 3C */ lfs f0, 0x3c(r1) /* 80100654 000FD5B4 D0 03 00 00 */ stfs f0, 0(r3) /* 80100658 000FD5B8 C0 01 00 40 */ lfs f0, 0x40(r1) /* 8010065C 000FD5BC D0 03 00 04 */ stfs f0, 4(r3) /* 80100660 000FD5C0 C0 01 00 44 */ lfs f0, 0x44(r1) /* 80100664 000FD5C4 D0 03 00 08 */ stfs f0, 8(r3) /* 80100668 000FD5C8 C0 01 00 48 */ lfs f0, 0x48(r1) /* 8010066C 000FD5CC D0 03 00 0C */ stfs f0, 0xc(r3) /* 80100670 000FD5D0 C0 01 00 4C */ lfs f0, 0x4c(r1) /* 80100674 000FD5D4 D0 03 00 10 */ stfs f0, 0x10(r3) /* 80100678 000FD5D8 C0 01 00 50 */ lfs f0, 0x50(r1) /* 8010067C 000FD5DC D0 03 00 14 */ stfs f0, 0x14(r3) lbl_80100680: /* 80100680 000FD5E0 88 01 00 70 */ lbz r0, 0x70(r1) /* 80100684 000FD5E4 38 60 00 00 */ li r3, 0 /* 80100688 000FD5E8 98 61 00 54 */ stb r3, 0x54(r1) /* 8010068C 000FD5EC 28 00 00 00 */ cmplwi r0, 0 /* 80100690 000FD5F0 41 82 00 38 */ beq lbl_801006C8 /* 80100694 000FD5F4 7F C4 F3 78 */ mr r4, r30 /* 80100698 000FD5F8 38 61 00 24 */ addi r3, r1, 0x24 /* 8010069C 000FD5FC 4B F7 60 31 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 801006A0 000FD600 C0 21 00 38 */ lfs f1, 0x38(r1) /* 801006A4 000FD604 C0 01 00 60 */ lfs f0, 0x60(r1) /* 801006A8 000FD608 FC 00 08 40 */ fcmpo cr0, f0, f1 /* 801006AC 000FD60C 4C 40 13 82 */ cror 2, 0, 2 /* 801006B0 000FD610 40 82 00 18 */ bne lbl_801006C8 /* 801006B4 000FD614 C0 01 00 6C */ lfs f0, 0x6c(r1) /* 801006B8 000FD618 FC 00 08 40 */ fcmpo cr0, f0, f1 /* 801006BC 000FD61C 4C 41 13 82 */ cror 2, 1, 2 /* 801006C0 000FD620 40 82 00 08 */ bne lbl_801006C8 /* 801006C4 000FD624 3B 40 00 01 */ li r26, 1 lbl_801006C8: /* 801006C8 000FD628 38 00 00 00 */ li r0, 0 /* 801006CC 000FD62C 98 01 00 70 */ stb r0, 0x70(r1) lbl_801006D0: /* 801006D0 000FD630 28 1B 00 00 */ cmplwi r27, 0 /* 801006D4 000FD634 41 82 00 64 */ beq lbl_80100738 /* 801006D8 000FD638 88 1D 00 0A */ lbz r0, 0xa(r29) /* 801006DC 000FD63C 28 00 00 00 */ cmplwi r0, 0 /* 801006E0 000FD640 41 82 00 58 */ beq lbl_80100738 /* 801006E4 000FD644 57 40 06 3F */ clrlwi. r0, r26, 0x18 /* 801006E8 000FD648 41 82 00 24 */ beq lbl_8010070C /* 801006EC 000FD64C 7F 63 DB 78 */ mr r3, r27 /* 801006F0 000FD650 7F C5 F3 78 */ mr r5, r30 /* 801006F4 000FD654 81 9B 00 00 */ lwz r12, 0(r27) /* 801006F8 000FD658 7F E6 FB 78 */ mr r6, r31 /* 801006FC 000FD65C 38 80 00 01 */ li r4, 1 /* 80100700 000FD660 81 8C 00 5C */ lwz r12, 0x5c(r12) /* 80100704 000FD664 7D 89 03 A6 */ mtctr r12 /* 80100708 000FD668 4E 80 04 21 */ bctrl lbl_8010070C: /* 8010070C 000FD66C A0 1E 00 08 */ lhz r0, 8(r30) /* 80100710 000FD670 7F E3 FB 78 */ mr r3, r31 /* 80100714 000FD674 7F 64 DB 78 */ mr r4, r27 /* 80100718 000FD678 38 A1 00 14 */ addi r5, r1, 0x14 /* 8010071C 000FD67C B0 01 00 10 */ sth r0, 0x10(r1) /* 80100720 000FD680 38 C0 00 26 */ li r6, 0x26 /* 80100724 000FD684 B0 01 00 14 */ sth r0, 0x14(r1) /* 80100728 000FD688 4B F4 37 A9 */ bl SendScriptMsg__13CStateManagerFP7CEntity9TEditorId20EScriptObjectMessage /* 8010072C 000FD68C 38 00 00 00 */ li r0, 0 /* 80100730 000FD690 98 1D 00 0A */ stb r0, 0xa(r29) /* 80100734 000FD694 48 00 00 60 */ b lbl_80100794 lbl_80100738: /* 80100738 000FD698 7F A4 EB 78 */ mr r4, r29 /* 8010073C 000FD69C 38 7E 01 FC */ addi r3, r30, 0x1fc /* 80100740 000FD6A0 48 00 16 CD */ bl sub_80101e0c /* 80100744 000FD6A4 28 1B 00 00 */ cmplwi r27, 0 /* 80100748 000FD6A8 41 82 00 4C */ beq lbl_80100794 /* 8010074C 000FD6AC 57 40 06 3F */ clrlwi. r0, r26, 0x18 /* 80100750 000FD6B0 41 82 00 24 */ beq lbl_80100774 /* 80100754 000FD6B4 7F 63 DB 78 */ mr r3, r27 /* 80100758 000FD6B8 7F C5 F3 78 */ mr r5, r30 /* 8010075C 000FD6BC 81 9B 00 00 */ lwz r12, 0(r27) /* 80100760 000FD6C0 7F E6 FB 78 */ mr r6, r31 /* 80100764 000FD6C4 38 80 00 02 */ li r4, 2 /* 80100768 000FD6C8 81 8C 00 5C */ lwz r12, 0x5c(r12) /* 8010076C 000FD6CC 7D 89 03 A6 */ mtctr r12 /* 80100770 000FD6D0 4E 80 04 21 */ bctrl lbl_80100774: /* 80100774 000FD6D4 A0 1E 00 08 */ lhz r0, 8(r30) /* 80100778 000FD6D8 7F E3 FB 78 */ mr r3, r31 /* 8010077C 000FD6DC 7F 64 DB 78 */ mr r4, r27 /* 80100780 000FD6E0 38 A1 00 0C */ addi r5, r1, 0xc /* 80100784 000FD6E4 B0 01 00 08 */ sth r0, 8(r1) /* 80100788 000FD6E8 38 C0 00 27 */ li r6, 0x27 /* 8010078C 000FD6EC B0 01 00 0C */ sth r0, 0xc(r1) /* 80100790 000FD6F0 4B F4 37 41 */ bl SendScriptMsg__13CStateManagerFP7CEntity9TEditorId20EScriptObjectMessage lbl_80100794: /* 80100794 000FD6F4 7F 9D E3 78 */ mr r29, r28 lbl_80100798: /* 80100798 000FD6F8 80 1E 02 04 */ lwz r0, 0x204(r30) /* 8010079C 000FD6FC 7C 1D 00 40 */ cmplw r29, r0 /* 801007A0 000FD700 40 82 FE 4C */ bne lbl_801005EC /* 801007A4 000FD704 BB 41 00 78 */ lmw r26, 0x78(r1) /* 801007A8 000FD708 80 01 00 94 */ lwz r0, 0x94(r1) /* 801007AC 000FD70C 7C 08 03 A6 */ mtlr r0 /* 801007B0 000FD710 38 21 00 90 */ addi r1, r1, 0x90 /* 801007B4 000FD714 4E 80 00 20 */ blr .global Touch__12CScriptWaterFR6CActorR13CStateManager Touch__12CScriptWaterFR6CActorR13CStateManager: /* 801007B8 000FD718 94 21 FF 90 */ stwu r1, -0x70(r1) /* 801007BC 000FD71C 7C 08 02 A6 */ mflr r0 /* 801007C0 000FD720 90 01 00 74 */ stw r0, 0x74(r1) /* 801007C4 000FD724 BF 21 00 54 */ stmw r25, 0x54(r1) /* 801007C8 000FD728 7C 7D 1B 78 */ mr r29, r3 /* 801007CC 000FD72C 7C 9E 23 78 */ mr r30, r4 /* 801007D0 000FD730 7C BF 2B 78 */ mr r31, r5 /* 801007D4 000FD734 88 03 00 30 */ lbz r0, 0x30(r3) /* 801007D8 000FD738 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 801007DC 000FD73C 41 82 01 7C */ beq lbl_80100958 /* 801007E0 000FD740 4B F7 5F 69 */ bl Touch__14CScriptTriggerFR6CActorR13CStateManager /* 801007E4 000FD744 80 7E 00 68 */ lwz r3, 0x68(r30) /* 801007E8 000FD748 38 00 00 04 */ li r0, 4 /* 801007EC 000FD74C 80 BE 00 6C */ lwz r5, 0x6c(r30) /* 801007F0 000FD750 38 80 00 00 */ li r4, 0 /* 801007F4 000FD754 7C 60 00 38 */ and r0, r3, r0 /* 801007F8 000FD758 7C A3 20 38 */ and r3, r5, r4 /* 801007FC 000FD75C 7C 63 22 78 */ xor r3, r3, r4 /* 80100800 000FD760 7C 00 22 78 */ xor r0, r0, r4 /* 80100804 000FD764 7C 60 03 79 */ or. r0, r3, r0 /* 80100808 000FD768 40 82 01 50 */ bne lbl_80100958 /* 8010080C 000FD76C 80 9D 02 00 */ lwz r4, 0x200(r29) /* 80100810 000FD770 80 BD 02 04 */ lwz r5, 0x204(r29) /* 80100814 000FD774 48 00 00 24 */ b lbl_80100838 lbl_80100818: /* 80100818 000FD778 A0 64 00 08 */ lhz r3, 8(r4) /* 8010081C 000FD77C A0 1E 00 08 */ lhz r0, 8(r30) /* 80100820 000FD780 7C 03 00 40 */ cmplw r3, r0 /* 80100824 000FD784 40 82 00 10 */ bne lbl_80100834 /* 80100828 000FD788 38 00 00 01 */ li r0, 1 /* 8010082C 000FD78C 98 04 00 0A */ stb r0, 0xa(r4) /* 80100830 000FD790 48 00 01 28 */ b lbl_80100958 lbl_80100834: /* 80100834 000FD794 80 84 00 04 */ lwz r4, 4(r4) lbl_80100838: /* 80100838 000FD798 7C 04 28 40 */ cmplw r4, r5 /* 8010083C 000FD79C 40 82 FF DC */ bne lbl_80100818 /* 80100840 000FD7A0 7F C4 F3 78 */ mr r4, r30 /* 80100844 000FD7A4 38 61 00 28 */ addi r3, r1, 0x28 /* 80100848 000FD7A8 81 9E 00 00 */ lwz r12, 0(r30) /* 8010084C 000FD7AC 81 8C 00 40 */ lwz r12, 0x40(r12) /* 80100850 000FD7B0 7D 89 03 A6 */ mtctr r12 /* 80100854 000FD7B4 4E 80 04 21 */ bctrl /* 80100858 000FD7B8 88 01 00 40 */ lbz r0, 0x40(r1) /* 8010085C 000FD7BC 28 00 00 00 */ cmplwi r0, 0 /* 80100860 000FD7C0 40 82 00 10 */ bne lbl_80100870 /* 80100864 000FD7C4 38 00 00 00 */ li r0, 0 /* 80100868 000FD7C8 98 01 00 40 */ stb r0, 0x40(r1) /* 8010086C 000FD7CC 48 00 00 EC */ b lbl_80100958 lbl_80100870: /* 80100870 000FD7D0 83 7D 02 04 */ lwz r27, 0x204(r29) /* 80100874 000FD7D4 3C 60 80 3D */ lis r3, lbl_803CEE38@ha /* 80100878 000FD7D8 38 83 EE 38 */ addi r4, r3, lbl_803CEE38@l /* 8010087C 000FD7DC A3 3E 00 08 */ lhz r25, 8(r30) /* 80100880 000FD7E0 8B 8D 89 88 */ lbz r28, lbl_805A7548@sda21(r13) /* 80100884 000FD7E4 38 60 00 0C */ li r3, 0xc /* 80100888 000FD7E8 83 5B 00 00 */ lwz r26, 0(r27) /* 8010088C 000FD7EC 38 A0 00 00 */ li r5, 0 /* 80100890 000FD7F0 48 21 4F 89 */ bl __nwa__FUlPCcPCc /* 80100894 000FD7F4 28 03 00 00 */ cmplwi r3, 0 /* 80100898 000FD7F8 41 82 00 0C */ beq lbl_801008A4 /* 8010089C 000FD7FC 93 43 00 00 */ stw r26, 0(r3) /* 801008A0 000FD800 93 63 00 04 */ stw r27, 4(r3) lbl_801008A4: /* 801008A4 000FD804 34 83 00 08 */ addic. r4, r3, 8 /* 801008A8 000FD808 41 82 00 0C */ beq lbl_801008B4 /* 801008AC 000FD80C B3 24 00 00 */ sth r25, 0(r4) /* 801008B0 000FD810 9B 84 00 02 */ stb r28, 2(r4) lbl_801008B4: /* 801008B4 000FD814 80 1D 02 00 */ lwz r0, 0x200(r29) /* 801008B8 000FD818 7C 1B 00 40 */ cmplw r27, r0 /* 801008BC 000FD81C 40 82 00 08 */ bne lbl_801008C4 /* 801008C0 000FD820 90 7D 02 00 */ stw r3, 0x200(r29) lbl_801008C4: /* 801008C4 000FD824 80 A3 00 00 */ lwz r5, 0(r3) /* 801008C8 000FD828 7F A4 EB 78 */ mr r4, r29 /* 801008CC 000FD82C 90 65 00 04 */ stw r3, 4(r5) /* 801008D0 000FD830 80 A3 00 04 */ lwz r5, 4(r3) /* 801008D4 000FD834 90 65 00 00 */ stw r3, 0(r5) /* 801008D8 000FD838 38 61 00 10 */ addi r3, r1, 0x10 /* 801008DC 000FD83C 80 BD 02 10 */ lwz r5, 0x210(r29) /* 801008E0 000FD840 38 05 00 01 */ addi r0, r5, 1 /* 801008E4 000FD844 90 1D 02 10 */ stw r0, 0x210(r29) /* 801008E8 000FD848 4B F7 5D E5 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 801008EC 000FD84C C0 21 00 24 */ lfs f1, 0x24(r1) /* 801008F0 000FD850 C0 01 00 30 */ lfs f0, 0x30(r1) /* 801008F4 000FD854 FC 00 08 40 */ fcmpo cr0, f0, f1 /* 801008F8 000FD858 4C 40 13 82 */ cror 2, 0, 2 /* 801008FC 000FD85C 40 82 00 34 */ bne lbl_80100930 /* 80100900 000FD860 C0 01 00 3C */ lfs f0, 0x3c(r1) /* 80100904 000FD864 FC 00 08 40 */ fcmpo cr0, f0, f1 /* 80100908 000FD868 4C 41 13 82 */ cror 2, 1, 2 /* 8010090C 000FD86C 40 82 00 24 */ bne lbl_80100930 /* 80100910 000FD870 7F C3 F3 78 */ mr r3, r30 /* 80100914 000FD874 7F A5 EB 78 */ mr r5, r29 /* 80100918 000FD878 81 9E 00 00 */ lwz r12, 0(r30) /* 8010091C 000FD87C 7F E6 FB 78 */ mr r6, r31 /* 80100920 000FD880 38 80 00 00 */ li r4, 0 /* 80100924 000FD884 81 8C 00 5C */ lwz r12, 0x5c(r12) /* 80100928 000FD888 7D 89 03 A6 */ mtctr r12 /* 8010092C 000FD88C 4E 80 04 21 */ bctrl lbl_80100930: /* 80100930 000FD890 A0 1D 00 08 */ lhz r0, 8(r29) /* 80100934 000FD894 7F E3 FB 78 */ mr r3, r31 /* 80100938 000FD898 7F C4 F3 78 */ mr r4, r30 /* 8010093C 000FD89C 38 A1 00 0C */ addi r5, r1, 0xc /* 80100940 000FD8A0 B0 01 00 08 */ sth r0, 8(r1) /* 80100944 000FD8A4 38 C0 00 25 */ li r6, 0x25 /* 80100948 000FD8A8 B0 01 00 0C */ sth r0, 0xc(r1) /* 8010094C 000FD8AC 4B F4 35 85 */ bl SendScriptMsg__13CStateManagerFP7CEntity9TEditorId20EScriptObjectMessage /* 80100950 000FD8B0 38 00 00 00 */ li r0, 0 /* 80100954 000FD8B4 98 01 00 40 */ stb r0, 0x40(r1) lbl_80100958: /* 80100958 000FD8B8 BB 21 00 54 */ lmw r25, 0x54(r1) /* 8010095C 000FD8BC 80 01 00 74 */ lwz r0, 0x74(r1) /* 80100960 000FD8C0 7C 08 03 A6 */ mtlr r0 /* 80100964 000FD8C4 38 21 00 70 */ addi r1, r1, 0x70 /* 80100968 000FD8C8 4E 80 00 20 */ blr .global GetNextConnectedWater__12CScriptWaterFR13CStateManager GetNextConnectedWater__12CScriptWaterFR13CStateManager: /* 8010096C 000FD8CC 94 21 FF C0 */ stwu r1, -0x40(r1) /* 80100970 000FD8D0 7C 08 02 A6 */ mflr r0 /* 80100974 000FD8D4 90 01 00 44 */ stw r0, 0x44(r1) /* 80100978 000FD8D8 93 E1 00 3C */ stw r31, 0x3c(r1) /* 8010097C 000FD8DC 7C 9F 23 78 */ mr r31, r4 /* 80100980 000FD8E0 93 C1 00 38 */ stw r30, 0x38(r1) /* 80100984 000FD8E4 7C 7E 1B 78 */ mr r30, r3 /* 80100988 000FD8E8 93 A1 00 34 */ stw r29, 0x34(r1) /* 8010098C 000FD8EC 83 A3 00 2C */ lwz r29, 0x2c(r3) /* 80100990 000FD8F0 48 00 00 98 */ b lbl_80100A28 lbl_80100994: /* 80100994 000FD8F4 80 1D 00 00 */ lwz r0, 0(r29) /* 80100998 000FD8F8 2C 00 00 12 */ cmpwi r0, 0x12 /* 8010099C 000FD8FC 40 82 00 88 */ bne lbl_80100A24 /* 801009A0 000FD900 80 1D 00 04 */ lwz r0, 4(r29) /* 801009A4 000FD904 2C 00 00 01 */ cmpwi r0, 1 /* 801009A8 000FD908 40 82 00 7C */ bne lbl_80100A24 /* 801009AC 000FD90C 80 1D 00 08 */ lwz r0, 8(r29) /* 801009B0 000FD910 7F E4 FB 78 */ mr r4, r31 /* 801009B4 000FD914 38 61 00 18 */ addi r3, r1, 0x18 /* 801009B8 000FD918 38 A1 00 0C */ addi r5, r1, 0xc /* 801009BC 000FD91C 90 01 00 0C */ stw r0, 0xc(r1) /* 801009C0 000FD920 4B F4 76 09 */ bl GetIdListForScript__13CStateManagerCF9TEditorId /* 801009C4 000FD924 80 A1 00 18 */ lwz r5, 0x18(r1) /* 801009C8 000FD928 38 60 00 00 */ li r3, 0 /* 801009CC 000FD92C 80 01 00 20 */ lwz r0, 0x20(r1) /* 801009D0 000FD930 80 81 00 1C */ lwz r4, 0x1c(r1) /* 801009D4 000FD934 7C 05 00 40 */ cmplw r5, r0 /* 801009D8 000FD938 80 01 00 24 */ lwz r0, 0x24(r1) /* 801009DC 000FD93C 40 82 00 0C */ bne lbl_801009E8 /* 801009E0 000FD940 7C 04 00 40 */ cmplw r4, r0 /* 801009E4 000FD944 41 82 00 08 */ beq lbl_801009EC lbl_801009E8: /* 801009E8 000FD948 38 60 00 01 */ li r3, 1 lbl_801009EC: /* 801009EC 000FD94C 54 60 06 3F */ clrlwi. r0, r3, 0x18 /* 801009F0 000FD950 41 82 00 34 */ beq lbl_80100A24 /* 801009F4 000FD954 A0 05 00 14 */ lhz r0, 0x14(r5) /* 801009F8 000FD958 7F E3 FB 78 */ mr r3, r31 /* 801009FC 000FD95C 38 81 00 08 */ addi r4, r1, 8 /* 80100A00 000FD960 B0 01 00 08 */ sth r0, 8(r1) /* 80100A04 000FD964 4B F4 BB A1 */ bl GetObjectById__13CStateManagerCF9TUniqueId /* 80100A08 000FD968 7C 64 1B 78 */ mr r4, r3 /* 80100A0C 000FD96C 38 61 00 10 */ addi r3, r1, 0x10 /* 80100A10 000FD970 4B FA 5E 51 */ bl "__ct__26TCastToPtr<12CScriptWater>FP7CEntity" /* 80100A14 000FD974 80 63 00 04 */ lwz r3, 4(r3) /* 80100A18 000FD978 28 03 00 00 */ cmplwi r3, 0 /* 80100A1C 000FD97C 41 82 00 08 */ beq lbl_80100A24 /* 80100A20 000FD980 48 00 00 24 */ b lbl_80100A44 lbl_80100A24: /* 80100A24 000FD984 3B BD 00 0C */ addi r29, r29, 0xc lbl_80100A28: /* 80100A28 000FD988 80 1E 00 24 */ lwz r0, 0x24(r30) /* 80100A2C 000FD98C 80 7E 00 2C */ lwz r3, 0x2c(r30) /* 80100A30 000FD990 1C 00 00 0C */ mulli r0, r0, 0xc /* 80100A34 000FD994 7C 03 02 14 */ add r0, r3, r0 /* 80100A38 000FD998 7C 1D 00 40 */ cmplw r29, r0 /* 80100A3C 000FD99C 40 82 FF 58 */ bne lbl_80100994 /* 80100A40 000FD9A0 38 60 00 00 */ li r3, 0 lbl_80100A44: /* 80100A44 000FD9A4 80 01 00 44 */ lwz r0, 0x44(r1) /* 80100A48 000FD9A8 83 E1 00 3C */ lwz r31, 0x3c(r1) /* 80100A4C 000FD9AC 83 C1 00 38 */ lwz r30, 0x38(r1) /* 80100A50 000FD9B0 83 A1 00 34 */ lwz r29, 0x34(r1) /* 80100A54 000FD9B4 7C 08 03 A6 */ mtlr r0 /* 80100A58 000FD9B8 38 21 00 40 */ addi r1, r1, 0x40 /* 80100A5C 000FD9BC 4E 80 00 20 */ blr .global AcceptScriptMsg__12CScriptWaterF20EScriptObjectMessage9TUniqueIdR13CStateManager AcceptScriptMsg__12CScriptWaterF20EScriptObjectMessage9TUniqueIdR13CStateManager: /* 80100A60 000FD9C0 94 21 FF B0 */ stwu r1, -0x50(r1) /* 80100A64 000FD9C4 7C 08 02 A6 */ mflr r0 /* 80100A68 000FD9C8 90 01 00 54 */ stw r0, 0x54(r1) /* 80100A6C 000FD9CC BF 61 00 3C */ stmw r27, 0x3c(r1) /* 80100A70 000FD9D0 7C 9C 23 78 */ mr r28, r4 /* 80100A74 000FD9D4 2C 1C 00 08 */ cmpwi r28, 8 /* 80100A78 000FD9D8 7C 7B 1B 78 */ mr r27, r3 /* 80100A7C 000FD9DC 7C BD 2B 78 */ mr r29, r5 /* 80100A80 000FD9E0 7C DE 33 78 */ mr r30, r6 /* 80100A84 000FD9E4 41 82 00 20 */ beq lbl_80100AA4 /* 80100A88 000FD9E8 40 80 00 10 */ bge lbl_80100A98 /* 80100A8C 000FD9EC 2C 1C 00 01 */ cmpwi r28, 1 /* 80100A90 000FD9F0 41 82 01 A4 */ beq lbl_80100C34 /* 80100A94 000FD9F4 48 00 02 4C */ b lbl_80100CE0 lbl_80100A98: /* 80100A98 000FD9F8 2C 1C 00 13 */ cmpwi r28, 0x13 /* 80100A9C 000FD9FC 41 82 01 F8 */ beq lbl_80100C94 /* 80100AA0 000FDA00 48 00 02 40 */ b lbl_80100CE0 lbl_80100AA4: /* 80100AA4 000FDA04 88 1B 00 30 */ lbz r0, 0x30(r27) /* 80100AA8 000FDA08 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 80100AAC 000FDA0C 41 82 02 34 */ beq lbl_80100CE0 /* 80100AB0 000FDA10 88 7B 02 E8 */ lbz r3, 0x2e8(r27) /* 80100AB4 000FDA14 54 60 D7 FE */ rlwinm r0, r3, 0x1a, 0x1f, 0x1f /* 80100AB8 000FDA18 7C 00 00 34 */ cntlzw r0, r0 /* 80100ABC 000FDA1C 50 03 0E 72 */ rlwimi r3, r0, 1, 0x19, 0x19 /* 80100AC0 000FDA20 98 7B 02 E8 */ stb r3, 0x2e8(r27) /* 80100AC4 000FDA24 88 1B 02 E8 */ lbz r0, 0x2e8(r27) /* 80100AC8 000FDA28 54 00 D7 FF */ rlwinm. r0, r0, 0x1a, 0x1f, 0x1f /* 80100ACC 000FDA2C 41 82 01 58 */ beq lbl_80100C24 /* 80100AD0 000FDA30 83 FB 00 2C */ lwz r31, 0x2c(r27) /* 80100AD4 000FDA34 48 00 01 38 */ b lbl_80100C0C lbl_80100AD8: /* 80100AD8 000FDA38 80 1F 00 00 */ lwz r0, 0(r31) /* 80100ADC 000FDA3C 2C 00 00 12 */ cmpwi r0, 0x12 /* 80100AE0 000FDA40 40 82 01 28 */ bne lbl_80100C08 /* 80100AE4 000FDA44 80 1F 00 04 */ lwz r0, 4(r31) /* 80100AE8 000FDA48 2C 00 00 01 */ cmpwi r0, 1 /* 80100AEC 000FDA4C 40 82 01 1C */ bne lbl_80100C08 /* 80100AF0 000FDA50 80 1F 00 08 */ lwz r0, 8(r31) /* 80100AF4 000FDA54 7F C4 F3 78 */ mr r4, r30 /* 80100AF8 000FDA58 38 61 00 1C */ addi r3, r1, 0x1c /* 80100AFC 000FDA5C 38 A1 00 10 */ addi r5, r1, 0x10 /* 80100B00 000FDA60 90 01 00 10 */ stw r0, 0x10(r1) /* 80100B04 000FDA64 4B F4 74 C5 */ bl GetIdListForScript__13CStateManagerCF9TEditorId /* 80100B08 000FDA68 80 A1 00 1C */ lwz r5, 0x1c(r1) /* 80100B0C 000FDA6C 38 60 00 00 */ li r3, 0 /* 80100B10 000FDA70 80 01 00 24 */ lwz r0, 0x24(r1) /* 80100B14 000FDA74 80 81 00 20 */ lwz r4, 0x20(r1) /* 80100B18 000FDA78 7C 05 00 40 */ cmplw r5, r0 /* 80100B1C 000FDA7C 80 01 00 28 */ lwz r0, 0x28(r1) /* 80100B20 000FDA80 40 82 00 0C */ bne lbl_80100B2C /* 80100B24 000FDA84 7C 04 00 40 */ cmplw r4, r0 /* 80100B28 000FDA88 41 82 00 08 */ beq lbl_80100B30 lbl_80100B2C: /* 80100B2C 000FDA8C 38 60 00 01 */ li r3, 1 lbl_80100B30: /* 80100B30 000FDA90 54 60 06 3F */ clrlwi. r0, r3, 0x18 /* 80100B34 000FDA94 41 82 00 D4 */ beq lbl_80100C08 /* 80100B38 000FDA98 A0 05 00 14 */ lhz r0, 0x14(r5) /* 80100B3C 000FDA9C 7F C3 F3 78 */ mr r3, r30 /* 80100B40 000FDAA0 38 81 00 0C */ addi r4, r1, 0xc /* 80100B44 000FDAA4 B0 01 00 0C */ sth r0, 0xc(r1) /* 80100B48 000FDAA8 4B F4 BA 5D */ bl GetObjectById__13CStateManagerCF9TUniqueId /* 80100B4C 000FDAAC 7C 64 1B 78 */ mr r4, r3 /* 80100B50 000FDAB0 38 61 00 14 */ addi r3, r1, 0x14 /* 80100B54 000FDAB4 4B FA 63 95 */ bl "__ct__28TCastToPtr<14CScriptTrigger>FP7CEntity" /* 80100B58 000FDAB8 80 63 00 04 */ lwz r3, 4(r3) /* 80100B5C 000FDABC 28 03 00 00 */ cmplwi r3, 0 /* 80100B60 000FDAC0 41 82 00 A8 */ beq lbl_80100C08 /* 80100B64 000FDAC4 C0 43 00 60 */ lfs f2, 0x60(r3) /* 80100B68 000FDAC8 C0 23 00 50 */ lfs f1, 0x50(r3) /* 80100B6C 000FDACC C0 03 00 40 */ lfs f0, 0x40(r3) /* 80100B70 000FDAD0 D0 1B 01 B8 */ stfs f0, 0x1b8(r27) /* 80100B74 000FDAD4 D0 3B 01 BC */ stfs f1, 0x1bc(r27) /* 80100B78 000FDAD8 D0 5B 01 C0 */ stfs f2, 0x1c0(r27) /* 80100B7C 000FDADC C0 23 01 3C */ lfs f1, 0x13c(r3) /* 80100B80 000FDAE0 C0 03 01 30 */ lfs f0, 0x130(r3) /* 80100B84 000FDAE4 C0 63 01 40 */ lfs f3, 0x140(r3) /* 80100B88 000FDAE8 C0 43 01 34 */ lfs f2, 0x134(r3) /* 80100B8C 000FDAEC EC 01 00 28 */ fsubs f0, f1, f0 /* 80100B90 000FDAF0 C0 83 01 44 */ lfs f4, 0x144(r3) /* 80100B94 000FDAF4 C0 23 01 38 */ lfs f1, 0x138(r3) /* 80100B98 000FDAF8 EC 43 10 28 */ fsubs f2, f3, f2 /* 80100B9C 000FDAFC D0 1B 01 C4 */ stfs f0, 0x1c4(r27) /* 80100BA0 000FDB00 EC 04 08 28 */ fsubs f0, f4, f1 /* 80100BA4 000FDB04 D0 5B 01 C8 */ stfs f2, 0x1c8(r27) /* 80100BA8 000FDB08 D0 1B 01 CC */ stfs f0, 0x1cc(r27) /* 80100BAC 000FDB0C C0 03 01 08 */ lfs f0, 0x108(r3) /* 80100BB0 000FDB10 D0 1B 01 F0 */ stfs f0, 0x1f0(r27) /* 80100BB4 000FDB14 C0 5B 00 60 */ lfs f2, 0x60(r27) /* 80100BB8 000FDB18 C0 3B 00 50 */ lfs f1, 0x50(r27) /* 80100BBC 000FDB1C C0 1B 00 40 */ lfs f0, 0x40(r27) /* 80100BC0 000FDB20 D0 1B 01 D4 */ stfs f0, 0x1d4(r27) /* 80100BC4 000FDB24 D0 3B 01 D8 */ stfs f1, 0x1d8(r27) /* 80100BC8 000FDB28 D0 5B 01 DC */ stfs f2, 0x1dc(r27) /* 80100BCC 000FDB2C C0 3B 01 3C */ lfs f1, 0x13c(r27) /* 80100BD0 000FDB30 C0 1B 01 30 */ lfs f0, 0x130(r27) /* 80100BD4 000FDB34 C0 7B 01 40 */ lfs f3, 0x140(r27) /* 80100BD8 000FDB38 C0 5B 01 34 */ lfs f2, 0x134(r27) /* 80100BDC 000FDB3C EC 01 00 28 */ fsubs f0, f1, f0 /* 80100BE0 000FDB40 C0 9B 01 44 */ lfs f4, 0x144(r27) /* 80100BE4 000FDB44 C0 3B 01 38 */ lfs f1, 0x138(r27) /* 80100BE8 000FDB48 EC 43 10 28 */ fsubs f2, f3, f2 /* 80100BEC 000FDB4C D0 1B 01 E0 */ stfs f0, 0x1e0(r27) /* 80100BF0 000FDB50 EC 04 08 28 */ fsubs f0, f4, f1 /* 80100BF4 000FDB54 D0 5B 01 E4 */ stfs f2, 0x1e4(r27) /* 80100BF8 000FDB58 D0 1B 01 E8 */ stfs f0, 0x1e8(r27) /* 80100BFC 000FDB5C C0 1B 01 08 */ lfs f0, 0x108(r27) /* 80100C00 000FDB60 D0 1B 01 EC */ stfs f0, 0x1ec(r27) /* 80100C04 000FDB64 48 00 00 20 */ b lbl_80100C24 lbl_80100C08: /* 80100C08 000FDB68 3B FF 00 0C */ addi r31, r31, 0xc lbl_80100C0C: /* 80100C0C 000FDB6C 80 1B 00 24 */ lwz r0, 0x24(r27) /* 80100C10 000FDB70 80 7B 00 2C */ lwz r3, 0x2c(r27) /* 80100C14 000FDB74 1C 00 00 0C */ mulli r0, r0, 0xc /* 80100C18 000FDB78 7C 03 02 14 */ add r0, r3, r0 /* 80100C1C 000FDB7C 7C 1F 00 40 */ cmplw r31, r0 /* 80100C20 000FDB80 40 82 FE B8 */ bne lbl_80100AD8 lbl_80100C24: /* 80100C24 000FDB84 7F 63 DB 78 */ mr r3, r27 /* 80100C28 000FDB88 38 80 00 01 */ li r4, 1 /* 80100C2C 000FDB8C 4B FF E9 A9 */ bl SetMorphing__12CScriptWaterFb /* 80100C30 000FDB90 48 00 00 B0 */ b lbl_80100CE0 lbl_80100C34: /* 80100C34 000FDB94 88 1B 02 E8 */ lbz r0, 0x2e8(r27) /* 80100C38 000FDB98 38 60 00 00 */ li r3, 0 /* 80100C3C 000FDB9C 50 60 0F BC */ rlwimi r0, r3, 1, 0x1e, 0x1e /* 80100C40 000FDBA0 C0 22 93 BC */ lfs f1, lbl_805AB0DC@sda21(r2) /* 80100C44 000FDBA4 98 1B 02 E8 */ stb r0, 0x2e8(r27) /* 80100C48 000FDBA8 C0 02 93 D4 */ lfs f0, lbl_805AB0F4@sda21(r2) /* 80100C4C 000FDBAC C0 5B 02 AC */ lfs f2, 0x2ac(r27) /* 80100C50 000FDBB0 EC 22 08 28 */ fsubs f1, f2, f1 /* 80100C54 000FDBB4 FC 20 0A 10 */ fabs f1, f1 /* 80100C58 000FDBB8 FC 01 00 40 */ fcmpo cr0, f1, f0 /* 80100C5C 000FDBBC 40 80 00 24 */ bge lbl_80100C80 /* 80100C60 000FDBC0 80 7B 01 B4 */ lwz r3, 0x1b4(r27) /* 80100C64 000FDBC4 C0 03 00 40 */ lfs f0, 0x40(r3) /* 80100C68 000FDBC8 D0 1B 02 BC */ stfs f0, 0x2bc(r27) /* 80100C6C 000FDBCC C0 1B 02 1C */ lfs f0, 0x21c(r27) /* 80100C70 000FDBD0 D0 1B 02 14 */ stfs f0, 0x214(r27) /* 80100C74 000FDBD4 C0 1B 02 20 */ lfs f0, 0x220(r27) /* 80100C78 000FDBD8 D0 1B 02 18 */ stfs f0, 0x218(r27) /* 80100C7C 000FDBDC 48 00 00 64 */ b lbl_80100CE0 lbl_80100C80: /* 80100C80 000FDBE0 88 1B 02 E8 */ lbz r0, 0x2e8(r27) /* 80100C84 000FDBE4 38 60 00 01 */ li r3, 1 /* 80100C88 000FDBE8 50 60 17 7A */ rlwimi r0, r3, 2, 0x1d, 0x1d /* 80100C8C 000FDBEC 98 1B 02 E8 */ stb r0, 0x2e8(r27) /* 80100C90 000FDBF0 48 00 00 50 */ b lbl_80100CE0 lbl_80100C94: /* 80100C94 000FDBF4 88 1B 02 E8 */ lbz r0, 0x2e8(r27) /* 80100C98 000FDBF8 38 60 00 00 */ li r3, 0 /* 80100C9C 000FDBFC 50 60 17 7A */ rlwimi r0, r3, 2, 0x1d, 0x1d /* 80100CA0 000FDC00 C0 42 93 BC */ lfs f2, lbl_805AB0DC@sda21(r2) /* 80100CA4 000FDC04 98 1B 02 E8 */ stb r0, 0x2e8(r27) /* 80100CA8 000FDC08 C0 02 93 D4 */ lfs f0, lbl_805AB0F4@sda21(r2) /* 80100CAC 000FDC0C C0 3B 02 B0 */ lfs f1, 0x2b0(r27) /* 80100CB0 000FDC10 EC 21 10 28 */ fsubs f1, f1, f2 /* 80100CB4 000FDC14 FC 20 0A 10 */ fabs f1, f1 /* 80100CB8 000FDC18 FC 01 00 40 */ fcmpo cr0, f1, f0 /* 80100CBC 000FDC1C 40 80 00 14 */ bge lbl_80100CD0 /* 80100CC0 000FDC20 D0 5B 02 BC */ stfs f2, 0x2bc(r27) /* 80100CC4 000FDC24 D0 5B 02 14 */ stfs f2, 0x214(r27) /* 80100CC8 000FDC28 D0 5B 02 18 */ stfs f2, 0x218(r27) /* 80100CCC 000FDC2C 48 00 00 14 */ b lbl_80100CE0 lbl_80100CD0: /* 80100CD0 000FDC30 88 1B 02 E8 */ lbz r0, 0x2e8(r27) /* 80100CD4 000FDC34 38 60 00 01 */ li r3, 1 /* 80100CD8 000FDC38 50 60 0F BC */ rlwimi r0, r3, 1, 0x1e, 0x1e /* 80100CDC 000FDC3C 98 1B 02 E8 */ stb r0, 0x2e8(r27) lbl_80100CE0: /* 80100CE0 000FDC40 A0 1D 00 00 */ lhz r0, 0(r29) /* 80100CE4 000FDC44 7F 63 DB 78 */ mr r3, r27 /* 80100CE8 000FDC48 7F 84 E3 78 */ mr r4, r28 /* 80100CEC 000FDC4C 7F C6 F3 78 */ mr r6, r30 /* 80100CF0 000FDC50 B0 01 00 08 */ sth r0, 8(r1) /* 80100CF4 000FDC54 38 A1 00 08 */ addi r5, r1, 8 /* 80100CF8 000FDC58 4B F7 58 01 */ bl AcceptScriptMsg__14CScriptTriggerF20EScriptObjectMessage9TUniqueIdR13CStateManager /* 80100CFC 000FDC5C BB 61 00 3C */ lmw r27, 0x3c(r1) /* 80100D00 000FDC60 80 01 00 54 */ lwz r0, 0x54(r1) /* 80100D04 000FDC64 7C 08 03 A6 */ mtlr r0 /* 80100D08 000FDC68 38 21 00 50 */ addi r1, r1, 0x50 /* 80100D0C 000FDC6C 4E 80 00 20 */ blr .global __dt__12CScriptWaterFv __dt__12CScriptWaterFv: /* 80100D10 000FDC70 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80100D14 000FDC74 7C 08 02 A6 */ mflr r0 /* 80100D18 000FDC78 90 01 00 14 */ stw r0, 0x14(r1) /* 80100D1C 000FDC7C 93 E1 00 0C */ stw r31, 0xc(r1) /* 80100D20 000FDC80 7C 9F 23 78 */ mr r31, r4 /* 80100D24 000FDC84 93 C1 00 08 */ stw r30, 8(r1) /* 80100D28 000FDC88 7C 7E 1B 79 */ or. r30, r3, r3 /* 80100D2C 000FDC8C 41 82 01 C4 */ beq lbl_80100EF0 /* 80100D30 000FDC90 3C 60 80 3E */ lis r3, lbl_803DFE70@ha /* 80100D34 000FDC94 34 1E 02 E0 */ addic. r0, r30, 0x2e0 /* 80100D38 000FDC98 38 03 FE 70 */ addi r0, r3, lbl_803DFE70@l /* 80100D3C 000FDC9C 90 1E 00 00 */ stw r0, 0(r30) /* 80100D40 000FDCA0 41 82 00 0C */ beq lbl_80100D4C /* 80100D44 000FDCA4 80 7E 02 E0 */ lwz r3, 0x2e0(r30) /* 80100D48 000FDCA8 48 21 4B E9 */ bl Free__7CMemoryFPCv lbl_80100D4C: /* 80100D4C 000FDCAC 34 1E 02 DC */ addic. r0, r30, 0x2dc /* 80100D50 000FDCB0 41 82 00 0C */ beq lbl_80100D5C /* 80100D54 000FDCB4 80 7E 02 DC */ lwz r3, 0x2dc(r30) /* 80100D58 000FDCB8 48 21 4B D9 */ bl Free__7CMemoryFPCv lbl_80100D5C: /* 80100D5C 000FDCBC 34 1E 02 D8 */ addic. r0, r30, 0x2d8 /* 80100D60 000FDCC0 41 82 00 0C */ beq lbl_80100D6C /* 80100D64 000FDCC4 80 7E 02 D8 */ lwz r3, 0x2d8(r30) /* 80100D68 000FDCC8 48 21 4B C9 */ bl Free__7CMemoryFPCv lbl_80100D6C: /* 80100D6C 000FDCCC 34 1E 02 98 */ addic. r0, r30, 0x298 /* 80100D70 000FDCD0 41 82 00 58 */ beq lbl_80100DC8 /* 80100D74 000FDCD4 80 BE 02 98 */ lwz r5, 0x298(r30) /* 80100D78 000FDCD8 38 60 00 00 */ li r3, 0 /* 80100D7C 000FDCDC 2C 05 00 00 */ cmpwi r5, 0 /* 80100D80 000FDCE0 40 81 00 40 */ ble lbl_80100DC0 /* 80100D84 000FDCE4 2C 05 00 08 */ cmpwi r5, 8 /* 80100D88 000FDCE8 38 85 FF F8 */ addi r4, r5, -8 /* 80100D8C 000FDCEC 40 81 00 20 */ ble lbl_80100DAC /* 80100D90 000FDCF0 38 04 00 07 */ addi r0, r4, 7 /* 80100D94 000FDCF4 54 00 E8 FE */ srwi r0, r0, 3 /* 80100D98 000FDCF8 7C 09 03 A6 */ mtctr r0 /* 80100D9C 000FDCFC 2C 04 00 00 */ cmpwi r4, 0 /* 80100DA0 000FDD00 40 81 00 0C */ ble lbl_80100DAC lbl_80100DA4: /* 80100DA4 000FDD04 38 63 00 08 */ addi r3, r3, 8 /* 80100DA8 000FDD08 42 00 FF FC */ bdnz lbl_80100DA4 lbl_80100DAC: /* 80100DAC 000FDD0C 7C 03 28 50 */ subf r0, r3, r5 /* 80100DB0 000FDD10 7C 09 03 A6 */ mtctr r0 /* 80100DB4 000FDD14 7C 03 28 00 */ cmpw r3, r5 /* 80100DB8 000FDD18 40 80 00 08 */ bge lbl_80100DC0 lbl_80100DBC: /* 80100DBC 000FDD1C 42 00 00 00 */ bdnz lbl_80100DBC lbl_80100DC0: /* 80100DC0 000FDD20 38 00 00 00 */ li r0, 0 /* 80100DC4 000FDD24 90 1E 02 98 */ stw r0, 0x298(r30) lbl_80100DC8: /* 80100DC8 000FDD28 38 7E 02 64 */ addi r3, r30, 0x264 /* 80100DCC 000FDD2C 38 80 FF FF */ li r4, -1 /* 80100DD0 000FDD30 48 00 02 7D */ bl "clear__Q24rstl78reserved_vector>,3>Fv" /* 80100DD4 000FDD34 34 1E 02 50 */ addic. r0, r30, 0x250 /* 80100DD8 000FDD38 41 82 00 30 */ beq lbl_80100E08 /* 80100DDC 000FDD3C 88 1E 02 5C */ lbz r0, 0x25c(r30) /* 80100DE0 000FDD40 28 00 00 00 */ cmplwi r0, 0 /* 80100DE4 000FDD44 41 82 00 1C */ beq lbl_80100E00 /* 80100DE8 000FDD48 34 7E 02 50 */ addic. r3, r30, 0x250 /* 80100DEC 000FDD4C 41 82 00 14 */ beq lbl_80100E00 /* 80100DF0 000FDD50 28 03 00 00 */ cmplwi r3, 0 /* 80100DF4 000FDD54 41 82 00 0C */ beq lbl_80100E00 /* 80100DF8 000FDD58 38 80 00 00 */ li r4, 0 /* 80100DFC 000FDD5C 48 24 00 45 */ bl __dt__6CTokenFv lbl_80100E00: /* 80100E00 000FDD60 38 00 00 00 */ li r0, 0 /* 80100E04 000FDD64 98 1E 02 5C */ stb r0, 0x25c(r30) lbl_80100E08: /* 80100E08 000FDD68 34 1E 02 3C */ addic. r0, r30, 0x23c /* 80100E0C 000FDD6C 41 82 00 30 */ beq lbl_80100E3C /* 80100E10 000FDD70 88 1E 02 48 */ lbz r0, 0x248(r30) /* 80100E14 000FDD74 28 00 00 00 */ cmplwi r0, 0 /* 80100E18 000FDD78 41 82 00 1C */ beq lbl_80100E34 /* 80100E1C 000FDD7C 34 7E 02 3C */ addic. r3, r30, 0x23c /* 80100E20 000FDD80 41 82 00 14 */ beq lbl_80100E34 /* 80100E24 000FDD84 28 03 00 00 */ cmplwi r3, 0 /* 80100E28 000FDD88 41 82 00 0C */ beq lbl_80100E34 /* 80100E2C 000FDD8C 38 80 00 00 */ li r4, 0 /* 80100E30 000FDD90 48 24 00 11 */ bl __dt__6CTokenFv lbl_80100E34: /* 80100E34 000FDD94 38 00 00 00 */ li r0, 0 /* 80100E38 000FDD98 98 1E 02 48 */ stb r0, 0x248(r30) lbl_80100E3C: /* 80100E3C 000FDD9C 38 7E 01 FC */ addi r3, r30, 0x1fc /* 80100E40 000FDDA0 38 80 FF FF */ li r4, -1 /* 80100E44 000FDDA4 48 00 10 45 */ bl sub_80101e88 /* 80100E48 000FDDA8 34 1E 01 B4 */ addic. r0, r30, 0x1b4 /* 80100E4C 000FDDAC 41 82 00 24 */ beq lbl_80100E70 /* 80100E50 000FDDB0 80 7E 01 B4 */ lwz r3, 0x1b4(r30) /* 80100E54 000FDDB4 28 03 00 00 */ cmplwi r3, 0 /* 80100E58 000FDDB8 41 82 00 18 */ beq lbl_80100E70 /* 80100E5C 000FDDBC 81 83 00 00 */ lwz r12, 0(r3) /* 80100E60 000FDDC0 38 80 00 01 */ li r4, 1 /* 80100E64 000FDDC4 81 8C 00 08 */ lwz r12, 8(r12) /* 80100E68 000FDDC8 7D 89 03 A6 */ mtctr r12 /* 80100E6C 000FDDCC 4E 80 04 21 */ bctrl lbl_80100E70: /* 80100E70 000FDDD0 34 1E 01 50 */ addic. r0, r30, 0x150 /* 80100E74 000FDDD4 41 82 00 60 */ beq lbl_80100ED4 /* 80100E78 000FDDD8 34 1E 01 50 */ addic. r0, r30, 0x150 /* 80100E7C 000FDDDC 41 82 00 58 */ beq lbl_80100ED4 /* 80100E80 000FDDE0 80 BE 01 50 */ lwz r5, 0x150(r30) /* 80100E84 000FDDE4 38 60 00 00 */ li r3, 0 /* 80100E88 000FDDE8 2C 05 00 00 */ cmpwi r5, 0 /* 80100E8C 000FDDEC 40 81 00 40 */ ble lbl_80100ECC /* 80100E90 000FDDF0 2C 05 00 08 */ cmpwi r5, 8 /* 80100E94 000FDDF4 38 85 FF F8 */ addi r4, r5, -8 /* 80100E98 000FDDF8 40 81 00 20 */ ble lbl_80100EB8 /* 80100E9C 000FDDFC 38 04 00 07 */ addi r0, r4, 7 /* 80100EA0 000FDE00 54 00 E8 FE */ srwi r0, r0, 3 /* 80100EA4 000FDE04 7C 09 03 A6 */ mtctr r0 /* 80100EA8 000FDE08 2C 04 00 00 */ cmpwi r4, 0 /* 80100EAC 000FDE0C 40 81 00 0C */ ble lbl_80100EB8 lbl_80100EB0: /* 80100EB0 000FDE10 38 63 00 08 */ addi r3, r3, 8 /* 80100EB4 000FDE14 42 00 FF FC */ bdnz lbl_80100EB0 lbl_80100EB8: /* 80100EB8 000FDE18 7C 03 28 50 */ subf r0, r3, r5 /* 80100EBC 000FDE1C 7C 09 03 A6 */ mtctr r0 /* 80100EC0 000FDE20 7C 03 28 00 */ cmpw r3, r5 /* 80100EC4 000FDE24 40 80 00 08 */ bge lbl_80100ECC lbl_80100EC8: /* 80100EC8 000FDE28 42 00 00 00 */ bdnz lbl_80100EC8 lbl_80100ECC: /* 80100ECC 000FDE2C 38 00 00 00 */ li r0, 0 /* 80100ED0 000FDE30 90 1E 01 50 */ stw r0, 0x150(r30) lbl_80100ED4: /* 80100ED4 000FDE34 7F C3 F3 78 */ mr r3, r30 /* 80100ED8 000FDE38 38 80 00 00 */ li r4, 0 /* 80100EDC 000FDE3C 4B F7 5D A5 */ bl __dt__14CScriptTriggerFv /* 80100EE0 000FDE40 7F E0 07 35 */ extsh. r0, r31 /* 80100EE4 000FDE44 40 81 00 0C */ ble lbl_80100EF0 /* 80100EE8 000FDE48 7F C3 F3 78 */ mr r3, r30 /* 80100EEC 000FDE4C 48 21 4A 45 */ bl Free__7CMemoryFPCv lbl_80100EF0: /* 80100EF0 000FDE50 80 01 00 14 */ lwz r0, 0x14(r1) /* 80100EF4 000FDE54 7F C3 F3 78 */ mr r3, r30 /* 80100EF8 000FDE58 83 E1 00 0C */ lwz r31, 0xc(r1) /* 80100EFC 000FDE5C 83 C1 00 08 */ lwz r30, 8(r1) /* 80100F00 000FDE60 7C 08 03 A6 */ mtlr r0 /* 80100F04 000FDE64 38 21 00 10 */ addi r1, r1, 0x10 /* 80100F08 000FDE68 4E 80 00 20 */ blr .global __dt__14CFluidPlaneCPUFv __dt__14CFluidPlaneCPUFv: /* 80100F0C 000FDE6C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80100F10 000FDE70 7C 08 02 A6 */ mflr r0 /* 80100F14 000FDE74 90 01 00 14 */ stw r0, 0x14(r1) /* 80100F18 000FDE78 93 E1 00 0C */ stw r31, 0xc(r1) /* 80100F1C 000FDE7C 7C 9F 23 78 */ mr r31, r4 /* 80100F20 000FDE80 93 C1 00 08 */ stw r30, 8(r1) /* 80100F24 000FDE84 7C 7E 1B 79 */ or. r30, r3, r3 /* 80100F28 000FDE88 41 82 01 08 */ beq lbl_80101030 /* 80100F2C 000FDE8C 3C 80 80 3E */ lis r4, lbl_803E46C8@ha /* 80100F30 000FDE90 38 7E 01 20 */ addi r3, r30, 0x120 /* 80100F34 000FDE94 38 04 46 C8 */ addi r0, r4, lbl_803E46C8@l /* 80100F38 000FDE98 38 80 FF FF */ li r4, -1 /* 80100F3C 000FDE9C 90 1E 00 00 */ stw r0, 0(r30) /* 80100F40 000FDEA0 48 09 BB F5 */ bl __dt__11CTurbulenceFv /* 80100F44 000FDEA4 34 1E 00 E0 */ addic. r0, r30, 0xe0 /* 80100F48 000FDEA8 41 82 00 30 */ beq lbl_80100F78 /* 80100F4C 000FDEAC 88 1E 00 EC */ lbz r0, 0xec(r30) /* 80100F50 000FDEB0 28 00 00 00 */ cmplwi r0, 0 /* 80100F54 000FDEB4 41 82 00 1C */ beq lbl_80100F70 /* 80100F58 000FDEB8 34 7E 00 E0 */ addic. r3, r30, 0xe0 /* 80100F5C 000FDEBC 41 82 00 14 */ beq lbl_80100F70 /* 80100F60 000FDEC0 28 03 00 00 */ cmplwi r3, 0 /* 80100F64 000FDEC4 41 82 00 0C */ beq lbl_80100F70 /* 80100F68 000FDEC8 38 80 00 00 */ li r4, 0 /* 80100F6C 000FDECC 48 23 FE D5 */ bl __dt__6CTokenFv lbl_80100F70: /* 80100F70 000FDED0 38 00 00 00 */ li r0, 0 /* 80100F74 000FDED4 98 1E 00 EC */ stb r0, 0xec(r30) lbl_80100F78: /* 80100F78 000FDED8 34 1E 00 D0 */ addic. r0, r30, 0xd0 /* 80100F7C 000FDEDC 41 82 00 30 */ beq lbl_80100FAC /* 80100F80 000FDEE0 88 1E 00 DC */ lbz r0, 0xdc(r30) /* 80100F84 000FDEE4 28 00 00 00 */ cmplwi r0, 0 /* 80100F88 000FDEE8 41 82 00 1C */ beq lbl_80100FA4 /* 80100F8C 000FDEEC 34 7E 00 D0 */ addic. r3, r30, 0xd0 /* 80100F90 000FDEF0 41 82 00 14 */ beq lbl_80100FA4 /* 80100F94 000FDEF4 28 03 00 00 */ cmplwi r3, 0 /* 80100F98 000FDEF8 41 82 00 0C */ beq lbl_80100FA4 /* 80100F9C 000FDEFC 38 80 00 00 */ li r4, 0 /* 80100FA0 000FDF00 48 23 FE A1 */ bl __dt__6CTokenFv lbl_80100FA4: /* 80100FA4 000FDF04 38 00 00 00 */ li r0, 0 /* 80100FA8 000FDF08 98 1E 00 DC */ stb r0, 0xdc(r30) lbl_80100FAC: /* 80100FAC 000FDF0C 34 1E 00 C0 */ addic. r0, r30, 0xc0 /* 80100FB0 000FDF10 41 82 00 30 */ beq lbl_80100FE0 /* 80100FB4 000FDF14 88 1E 00 CC */ lbz r0, 0xcc(r30) /* 80100FB8 000FDF18 28 00 00 00 */ cmplwi r0, 0 /* 80100FBC 000FDF1C 41 82 00 1C */ beq lbl_80100FD8 /* 80100FC0 000FDF20 34 7E 00 C0 */ addic. r3, r30, 0xc0 /* 80100FC4 000FDF24 41 82 00 14 */ beq lbl_80100FD8 /* 80100FC8 000FDF28 28 03 00 00 */ cmplwi r3, 0 /* 80100FCC 000FDF2C 41 82 00 0C */ beq lbl_80100FD8 /* 80100FD0 000FDF30 38 80 00 00 */ li r4, 0 /* 80100FD4 000FDF34 48 23 FE 6D */ bl __dt__6CTokenFv lbl_80100FD8: /* 80100FD8 000FDF38 38 00 00 00 */ li r0, 0 /* 80100FDC 000FDF3C 98 1E 00 CC */ stb r0, 0xcc(r30) lbl_80100FE0: /* 80100FE0 000FDF40 34 1E 00 B0 */ addic. r0, r30, 0xb0 /* 80100FE4 000FDF44 41 82 00 30 */ beq lbl_80101014 /* 80100FE8 000FDF48 88 1E 00 BC */ lbz r0, 0xbc(r30) /* 80100FEC 000FDF4C 28 00 00 00 */ cmplwi r0, 0 /* 80100FF0 000FDF50 41 82 00 1C */ beq lbl_8010100C /* 80100FF4 000FDF54 34 7E 00 B0 */ addic. r3, r30, 0xb0 /* 80100FF8 000FDF58 41 82 00 14 */ beq lbl_8010100C /* 80100FFC 000FDF5C 28 03 00 00 */ cmplwi r3, 0 /* 80101000 000FDF60 41 82 00 0C */ beq lbl_8010100C /* 80101004 000FDF64 38 80 00 00 */ li r4, 0 /* 80101008 000FDF68 48 23 FE 39 */ bl __dt__6CTokenFv lbl_8010100C: /* 8010100C 000FDF6C 38 00 00 00 */ li r0, 0 /* 80101010 000FDF70 98 1E 00 BC */ stb r0, 0xbc(r30) lbl_80101014: /* 80101014 000FDF74 7F C3 F3 78 */ mr r3, r30 /* 80101018 000FDF78 38 80 00 00 */ li r4, 0 /* 8010101C 000FDF7C 48 02 DB C1 */ bl __dt__11CFluidPlaneFv /* 80101020 000FDF80 7F E0 07 35 */ extsh. r0, r31 /* 80101024 000FDF84 40 81 00 0C */ ble lbl_80101030 /* 80101028 000FDF88 7F C3 F3 78 */ mr r3, r30 /* 8010102C 000FDF8C 48 21 49 05 */ bl Free__7CMemoryFPCv lbl_80101030: /* 80101030 000FDF90 80 01 00 14 */ lwz r0, 0x14(r1) /* 80101034 000FDF94 7F C3 F3 78 */ mr r3, r30 /* 80101038 000FDF98 83 E1 00 0C */ lwz r31, 0xc(r1) /* 8010103C 000FDF9C 83 C1 00 08 */ lwz r30, 8(r1) /* 80101040 000FDFA0 7C 08 03 A6 */ mtlr r0 /* 80101044 000FDFA4 38 21 00 10 */ addi r1, r1, 0x10 /* 80101048 000FDFA8 4E 80 00 20 */ blr .global "clear__Q24rstl78reserved_vector>,3>Fv" "clear__Q24rstl78reserved_vector>,3>Fv": /* 8010104C 000FDFAC 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80101050 000FDFB0 7C 08 02 A6 */ mflr r0 /* 80101054 000FDFB4 90 01 00 24 */ stw r0, 0x24(r1) /* 80101058 000FDFB8 BF 61 00 0C */ stmw r27, 0xc(r1) /* 8010105C 000FDFBC 7C 7B 1B 79 */ or. r27, r3, r3 /* 80101060 000FDFC0 7C 9C 23 78 */ mr r28, r4 /* 80101064 000FDFC4 41 82 00 70 */ beq lbl_801010D4 /* 80101068 000FDFC8 3B C0 00 00 */ li r30, 0 /* 8010106C 000FDFCC 3B BB 00 04 */ addi r29, r27, 4 /* 80101070 000FDFD0 7F DF F3 78 */ mr r31, r30 /* 80101074 000FDFD4 48 00 00 3C */ b lbl_801010B0 lbl_80101078: /* 80101078 000FDFD8 28 1D 00 00 */ cmplwi r29, 0 /* 8010107C 000FDFDC 41 82 00 2C */ beq lbl_801010A8 /* 80101080 000FDFE0 88 1D 00 0C */ lbz r0, 0xc(r29) /* 80101084 000FDFE4 28 00 00 00 */ cmplwi r0, 0 /* 80101088 000FDFE8 41 82 00 1C */ beq lbl_801010A4 /* 8010108C 000FDFEC 28 1D 00 00 */ cmplwi r29, 0 /* 80101090 000FDFF0 41 82 00 14 */ beq lbl_801010A4 /* 80101094 000FDFF4 41 82 00 10 */ beq lbl_801010A4 /* 80101098 000FDFF8 7F A3 EB 78 */ mr r3, r29 /* 8010109C 000FDFFC 38 80 00 00 */ li r4, 0 /* 801010A0 000FE000 48 23 FD A1 */ bl __dt__6CTokenFv lbl_801010A4: /* 801010A4 000FE004 9B FD 00 0C */ stb r31, 0xc(r29) lbl_801010A8: /* 801010A8 000FE008 3B BD 00 10 */ addi r29, r29, 0x10 /* 801010AC 000FE00C 3B DE 00 01 */ addi r30, r30, 1 lbl_801010B0: /* 801010B0 000FE010 80 1B 00 00 */ lwz r0, 0(r27) /* 801010B4 000FE014 7C 1E 00 00 */ cmpw r30, r0 /* 801010B8 000FE018 41 80 FF C0 */ blt lbl_80101078 /* 801010BC 000FE01C 38 60 00 00 */ li r3, 0 /* 801010C0 000FE020 7F 80 07 35 */ extsh. r0, r28 /* 801010C4 000FE024 90 7B 00 00 */ stw r3, 0(r27) /* 801010C8 000FE028 40 81 00 0C */ ble lbl_801010D4 /* 801010CC 000FE02C 7F 63 DB 78 */ mr r3, r27 /* 801010D0 000FE030 48 21 48 61 */ bl Free__7CMemoryFPCv lbl_801010D4: /* 801010D4 000FE034 7F 63 DB 78 */ mr r3, r27 /* 801010D8 000FE038 BB 61 00 0C */ lmw r27, 0xc(r1) /* 801010DC 000FE03C 80 01 00 24 */ lwz r0, 0x24(r1) /* 801010E0 000FE040 7C 08 03 A6 */ mtlr r0 /* 801010E4 000FE044 38 21 00 20 */ addi r1, r1, 0x20 /* 801010E8 000FE048 4E 80 00 20 */ blr .global "__ct__12CScriptWaterFR13CStateManager9TUniqueIdRCQ24rstl66basic_string,Q24rstl17rmemory_allocator>RC11CEntityInfoRC9CVector3fRC6CAABoxRC11CDamageInfoRC9CVector3fUibbUiUiUiUiUiUiUiRC9CVector3fffbQ211CFluidPlane10EFluidTypebfRC14CFluidUVMotionffffffffRC6CColorRC6CColorUiUiUiUiUiiiiifUiffffffffRC6CColorUifffUiUibiiPCUi" "__ct__12CScriptWaterFR13CStateManager9TUniqueIdRCQ24rstl66basic_string,Q24rstl17rmemory_allocator>RC11CEntityInfoRC9CVector3fRC6CAABoxRC11CDamageInfoRC9CVector3fUibbUiUiUiUiUiUiUiRC9CVector3fffbQ211CFluidPlane10EFluidTypebfRC14CFluidUVMotionffffffffRC6CColorRC6CColorUiUiUiUiUiiiiifUiffffffffRC6CColorUifffUiUibiiPCUi": /* 801010EC 000FE04C 94 21 FD 30 */ stwu r1, -0x2d0(r1) /* 801010F0 000FE050 7C 08 02 A6 */ mflr r0 /* 801010F4 000FE054 90 01 02 D4 */ stw r0, 0x2d4(r1) /* 801010F8 000FE058 DB E1 02 C0 */ stfd f31, 0x2c0(r1) /* 801010FC 000FE05C F3 E1 02 C8 */ psq_st f31, 712(r1), 0, qr0 /* 80101100 000FE060 DB C1 02 B0 */ stfd f30, 0x2b0(r1) /* 80101104 000FE064 F3 C1 02 B8 */ psq_st f30, 696(r1), 0, qr0 /* 80101108 000FE068 DB A1 02 A0 */ stfd f29, 0x2a0(r1) /* 8010110C 000FE06C F3 A1 02 A8 */ psq_st f29, 680(r1), 0, qr0 /* 80101110 000FE070 DB 81 02 90 */ stfd f28, 0x290(r1) /* 80101114 000FE074 F3 81 02 98 */ psq_st f28, 664(r1), 0, qr0 /* 80101118 000FE078 DB 61 02 80 */ stfd f27, 0x280(r1) /* 8010111C 000FE07C F3 61 02 88 */ psq_st f27, 648(r1), 0, qr0 /* 80101120 000FE080 DB 41 02 70 */ stfd f26, 0x270(r1) /* 80101124 000FE084 F3 41 02 78 */ psq_st f26, 632(r1), 0, qr0 /* 80101128 000FE088 DB 21 02 60 */ stfd f25, 0x260(r1) /* 8010112C 000FE08C F3 21 02 68 */ psq_st f25, 616(r1), 0, qr0 /* 80101130 000FE090 DB 01 02 50 */ stfd f24, 0x250(r1) /* 80101134 000FE094 F3 01 02 58 */ psq_st f24, 600(r1), 0, qr0 /* 80101138 000FE098 DA E1 02 40 */ stfd f23, 0x240(r1) /* 8010113C 000FE09C F2 E1 02 48 */ psq_st f23, 584(r1), 0, qr0 /* 80101140 000FE0A0 DA C1 02 30 */ stfd f22, 0x230(r1) /* 80101144 000FE0A4 F2 C1 02 38 */ psq_st f22, 568(r1), 0, qr0 /* 80101148 000FE0A8 DA A1 02 20 */ stfd f21, 0x220(r1) /* 8010114C 000FE0AC F2 A1 02 28 */ psq_st f21, 552(r1), 0, qr0 /* 80101150 000FE0B0 DA 81 02 10 */ stfd f20, 0x210(r1) /* 80101154 000FE0B4 F2 81 02 18 */ psq_st f20, 536(r1), 0, qr0 /* 80101158 000FE0B8 DA 61 02 00 */ stfd f19, 0x200(r1) /* 8010115C 000FE0BC F2 61 02 08 */ psq_st f19, 520(r1), 0, qr0 /* 80101160 000FE0C0 DA 41 01 F0 */ stfd f18, 0x1f0(r1) /* 80101164 000FE0C4 F2 41 01 F8 */ psq_st f18, 504(r1), 0, qr0 /* 80101168 000FE0C8 DA 21 01 E0 */ stfd f17, 0x1e0(r1) /* 8010116C 000FE0CC F2 21 01 E8 */ psq_st f17, 488(r1), 0, qr0 /* 80101170 000FE0D0 DA 01 01 D0 */ stfd f16, 0x1d0(r1) /* 80101174 000FE0D4 F2 01 01 D8 */ psq_st f16, 472(r1), 0, qr0 /* 80101178 000FE0D8 D9 E1 01 C0 */ stfd f15, 0x1c0(r1) /* 8010117C 000FE0DC F1 E1 01 C8 */ psq_st f15, 456(r1), 0, qr0 /* 80101180 000FE0E0 D9 C1 01 B0 */ stfd f14, 0x1b0(r1) /* 80101184 000FE0E4 F1 C1 01 B8 */ psq_st f14, 440(r1), 0, qr0 /* 80101188 000FE0E8 BD C1 01 68 */ stmw r14, 0x168(r1) /* 8010118C 000FE0EC A0 05 00 00 */ lhz r0, 0(r5) /* 80101190 000FE0F0 7D 52 53 78 */ mr r18, r10 /* 80101194 000FE0F4 7D 31 4B 78 */ mr r17, r9 /* 80101198 000FE0F8 7D 10 43 78 */ mr r16, r8 /* 8010119C 000FE0FC B0 01 00 40 */ sth r0, 0x40(r1) /* 801011A0 000FE100 38 80 00 00 */ li r4, 0 /* 801011A4 000FE104 80 A1 02 DC */ lwz r5, 0x2dc(r1) /* 801011A8 000FE108 FD C0 08 90 */ fmr f14, f1 /* 801011AC 000FE10C 88 01 03 0B */ lbz r0, 0x30b(r1) /* 801011B0 000FE110 FD E0 10 90 */ fmr f15, f2 /* 801011B4 000FE114 90 A1 00 08 */ stw r5, 8(r1) /* 801011B8 000FE118 7C C5 33 78 */ mr r5, r6 /* 801011BC 000FE11C 7C E6 3B 78 */ mr r6, r7 /* 801011C0 000FE120 90 01 00 0C */ stw r0, 0xc(r1) /* 801011C4 000FE124 FE 00 18 90 */ fmr f16, f3 /* 801011C8 000FE128 FE 20 20 90 */ fmr f17, f4 /* 801011CC 000FE12C 81 41 02 D8 */ lwz r10, 0x2d8(r1) /* 801011D0 000FE130 90 81 00 10 */ stw r4, 0x10(r1) /* 801011D4 000FE134 FE 40 28 90 */ fmr f18, f5 /* 801011D8 000FE138 FE 60 30 90 */ fmr f19, f6 /* 801011DC 000FE13C 90 81 00 14 */ stw r4, 0x14(r1) /* 801011E0 000FE140 FE 80 38 90 */ fmr f20, f7 /* 801011E4 000FE144 8A 61 03 13 */ lbz r19, 0x313(r1) /* 801011E8 000FE148 FE A0 40 90 */ fmr f21, f8 /* 801011EC 000FE14C 82 81 03 14 */ lwz r20, 0x314(r1) /* 801011F0 000FE150 C2 C1 03 18 */ lfs f22, 0x318(r1) /* 801011F4 000FE154 7C 6F 1B 78 */ mr r15, r3 /* 801011F8 000FE158 C2 E1 03 1C */ lfs f23, 0x31c(r1) /* 801011FC 000FE15C 7E 07 83 78 */ mr r7, r16 /* 80101200 000FE160 C3 01 03 20 */ lfs f24, 0x320(r1) /* 80101204 000FE164 7E 28 8B 78 */ mr r8, r17 /* 80101208 000FE168 C3 21 03 24 */ lfs f25, 0x324(r1) /* 8010120C 000FE16C 7E 49 93 78 */ mr r9, r18 /* 80101210 000FE170 82 A1 03 28 */ lwz r21, 0x328(r1) /* 80101214 000FE174 38 81 00 40 */ addi r4, r1, 0x40 /* 80101218 000FE178 82 C1 03 2C */ lwz r22, 0x32c(r1) /* 8010121C 000FE17C 82 E1 03 30 */ lwz r23, 0x330(r1) /* 80101220 000FE180 83 01 03 34 */ lwz r24, 0x334(r1) /* 80101224 000FE184 83 21 03 38 */ lwz r25, 0x338(r1) /* 80101228 000FE188 83 41 03 3C */ lwz r26, 0x33c(r1) /* 8010122C 000FE18C 83 61 03 40 */ lwz r27, 0x340(r1) /* 80101230 000FE190 83 81 03 44 */ lwz r28, 0x344(r1) /* 80101234 000FE194 83 A1 03 48 */ lwz r29, 0x348(r1) /* 80101238 000FE198 C3 41 03 58 */ lfs f26, 0x358(r1) /* 8010123C 000FE19C 83 C1 03 5C */ lwz r30, 0x35c(r1) /* 80101240 000FE1A0 C3 61 03 74 */ lfs f27, 0x374(r1) /* 80101244 000FE1A4 C3 81 03 78 */ lfs f28, 0x378(r1) /* 80101248 000FE1A8 C3 A1 03 7C */ lfs f29, 0x37c(r1) /* 8010124C 000FE1AC 81 C1 03 80 */ lwz r14, 0x380(r1) /* 80101250 000FE1B0 83 E1 03 84 */ lwz r31, 0x384(r1) /* 80101254 000FE1B4 C3 C1 03 8C */ lfs f30, 0x38c(r1) /* 80101258 000FE1B8 C3 E1 03 90 */ lfs f31, 0x390(r1) /* 8010125C 000FE1BC 4B F7 5A FD */ bl "__ct__14CScriptTriggerF9TUniqueIdRCQ24rstl66basic_string,Q24rstl17rmemory_allocator>RC11CEntityInfoRC9CVector3fRC6CAABoxRC11CDamageInfoRC9CVector3fUibbb" /* 80101260 000FE1C0 3C 60 80 3E */ lis r3, lbl_803DFE70@ha /* 80101264 000FE1C4 38 80 00 00 */ li r4, 0 /* 80101268 000FE1C8 38 03 FE 70 */ addi r0, r3, lbl_803DFE70@l /* 8010126C 000FE1CC C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 80101270 000FE1D0 90 0F 00 00 */ stw r0, 0(r15) /* 80101274 000FE1D4 38 0F 02 08 */ addi r0, r15, 0x208 /* 80101278 000FE1D8 57 83 04 3E */ clrlwi r3, r28, 0x10 /* 8010127C 000FE1DC 90 8F 01 50 */ stw r4, 0x150(r15) /* 80101280 000FE1E0 90 8F 01 B4 */ stw r4, 0x1b4(r15) /* 80101284 000FE1E4 C0 30 00 00 */ lfs f1, 0(r16) /* 80101288 000FE1E8 D0 2F 01 B8 */ stfs f1, 0x1b8(r15) /* 8010128C 000FE1EC C0 30 00 04 */ lfs f1, 4(r16) /* 80101290 000FE1F0 D0 2F 01 BC */ stfs f1, 0x1bc(r15) /* 80101294 000FE1F4 C0 30 00 08 */ lfs f1, 8(r16) /* 80101298 000FE1F8 D0 2F 01 C0 */ stfs f1, 0x1c0(r15) /* 8010129C 000FE1FC C0 51 00 0C */ lfs f2, 0xc(r17) /* 801012A0 000FE200 C0 31 00 00 */ lfs f1, 0(r17) /* 801012A4 000FE204 C0 91 00 10 */ lfs f4, 0x10(r17) /* 801012A8 000FE208 C0 71 00 04 */ lfs f3, 4(r17) /* 801012AC 000FE20C EC 22 08 28 */ fsubs f1, f2, f1 /* 801012B0 000FE210 C0 B1 00 14 */ lfs f5, 0x14(r17) /* 801012B4 000FE214 C0 51 00 08 */ lfs f2, 8(r17) /* 801012B8 000FE218 EC 64 18 28 */ fsubs f3, f4, f3 /* 801012BC 000FE21C D0 2F 01 C4 */ stfs f1, 0x1c4(r15) /* 801012C0 000FE220 EC 25 10 28 */ fsubs f1, f5, f2 /* 801012C4 000FE224 D0 6F 01 C8 */ stfs f3, 0x1c8(r15) /* 801012C8 000FE228 D0 2F 01 CC */ stfs f1, 0x1cc(r15) /* 801012CC 000FE22C D1 EF 01 D0 */ stfs f15, 0x1d0(r15) /* 801012D0 000FE230 C0 30 00 00 */ lfs f1, 0(r16) /* 801012D4 000FE234 D0 2F 01 D4 */ stfs f1, 0x1d4(r15) /* 801012D8 000FE238 C0 30 00 04 */ lfs f1, 4(r16) /* 801012DC 000FE23C D0 2F 01 D8 */ stfs f1, 0x1d8(r15) /* 801012E0 000FE240 C0 30 00 08 */ lfs f1, 8(r16) /* 801012E4 000FE244 D0 2F 01 DC */ stfs f1, 0x1dc(r15) /* 801012E8 000FE248 C0 51 00 0C */ lfs f2, 0xc(r17) /* 801012EC 000FE24C C0 31 00 00 */ lfs f1, 0(r17) /* 801012F0 000FE250 C0 91 00 10 */ lfs f4, 0x10(r17) /* 801012F4 000FE254 C0 71 00 04 */ lfs f3, 4(r17) /* 801012F8 000FE258 EC 22 08 28 */ fsubs f1, f2, f1 /* 801012FC 000FE25C C0 B1 00 14 */ lfs f5, 0x14(r17) /* 80101300 000FE260 C0 51 00 08 */ lfs f2, 8(r17) /* 80101304 000FE264 EC 64 18 28 */ fsubs f3, f4, f3 /* 80101308 000FE268 D0 2F 01 E0 */ stfs f1, 0x1e0(r15) /* 8010130C 000FE26C EC 25 10 28 */ fsubs f1, f5, f2 /* 80101310 000FE270 D0 6F 01 E4 */ stfs f3, 0x1e4(r15) /* 80101314 000FE274 D0 2F 01 E8 */ stfs f1, 0x1e8(r15) /* 80101318 000FE278 C0 32 00 08 */ lfs f1, 8(r18) /* 8010131C 000FE27C D0 2F 01 EC */ stfs f1, 0x1ec(r15) /* 80101320 000FE280 C0 32 00 08 */ lfs f1, 8(r18) /* 80101324 000FE284 D0 2F 01 F0 */ stfs f1, 0x1f0(r15) /* 80101328 000FE288 D2 0F 01 F4 */ stfs f16, 0x1f4(r15) /* 8010132C 000FE28C D0 0F 01 F8 */ stfs f0, 0x1f8(r15) /* 80101330 000FE290 90 0F 02 00 */ stw r0, 0x200(r15) /* 80101334 000FE294 90 0F 02 04 */ stw r0, 0x204(r15) /* 80101338 000FE298 90 0F 02 08 */ stw r0, 0x208(r15) /* 8010133C 000FE29C 90 0F 02 0C */ stw r0, 0x20c(r15) /* 80101340 000FE2A0 90 8F 02 10 */ stw r4, 0x210(r15) /* 80101344 000FE2A4 D3 6F 02 14 */ stfs f27, 0x214(r15) /* 80101348 000FE2A8 D3 8F 02 18 */ stfs f28, 0x218(r15) /* 8010134C 000FE2AC D3 6F 02 1C */ stfs f27, 0x21c(r15) /* 80101350 000FE2B0 D3 8F 02 20 */ stfs f28, 0x220(r15) /* 80101354 000FE2B4 D3 AF 02 24 */ stfs f29, 0x224(r15) /* 80101358 000FE2B8 80 0E 00 00 */ lwz r0, 0(r14) /* 8010135C 000FE2BC 90 0F 02 28 */ stw r0, 0x228(r15) /* 80101360 000FE2C0 92 EF 02 2C */ stw r23, 0x22c(r15) /* 80101364 000FE2C4 93 0F 02 30 */ stw r24, 0x230(r15) /* 80101368 000FE2C8 93 2F 02 34 */ stw r25, 0x234(r15) /* 8010136C 000FE2CC 93 4F 02 38 */ stw r26, 0x238(r15) /* 80101370 000FE2D0 98 8F 02 48 */ stb r4, 0x248(r15) /* 80101374 000FE2D4 93 6F 02 4C */ stw r27, 0x24c(r15) /* 80101378 000FE2D8 98 8F 02 5C */ stb r4, 0x25c(r15) /* 8010137C 000FE2DC 48 1E 76 35 */ bl TranslateSFXID__11CSfxManagerFUs /* 80101380 000FE2E0 B0 6F 02 60 */ sth r3, 0x260(r15) /* 80101384 000FE2E4 57 A3 04 3E */ clrlwi r3, r29, 0x10 /* 80101388 000FE2E8 48 1E 76 29 */ bl TranslateSFXID__11CSfxManagerFUs /* 8010138C 000FE2EC B0 6F 02 62 */ sth r3, 0x262(r15) /* 80101390 000FE2F0 38 00 00 00 */ li r0, 0 /* 80101394 000FE2F4 C0 22 93 BC */ lfs f1, lbl_805AB0DC@sda21(r2) /* 80101398 000FE2F8 90 0F 02 64 */ stw r0, 0x264(r15) /* 8010139C 000FE2FC FC 1E 08 00 */ fcmpu cr0, f30, f1 /* 801013A0 000FE300 90 0F 02 98 */ stw r0, 0x298(r15) /* 801013A4 000FE304 80 15 00 00 */ lwz r0, 0(r21) /* 801013A8 000FE308 90 0F 02 A4 */ stw r0, 0x2a4(r15) /* 801013AC 000FE30C 80 16 00 00 */ lwz r0, 0(r22) /* 801013B0 000FE310 90 0F 02 A8 */ stw r0, 0x2a8(r15) /* 801013B4 000FE314 D3 CF 02 AC */ stfs f30, 0x2ac(r15) /* 801013B8 000FE318 D3 EF 02 B0 */ stfs f31, 0x2b0(r15) /* 801013BC 000FE31C 41 82 00 0C */ beq lbl_801013C8 /* 801013C0 000FE320 C0 02 93 D0 */ lfs f0, lbl_805AB0F0@sda21(r2) /* 801013C4 000FE324 EC 20 F0 24 */ fdivs f1, f0, f30 lbl_801013C8: /* 801013C8 000FE328 C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 801013CC 000FE32C D0 2F 02 B4 */ stfs f1, 0x2b4(r15) /* 801013D0 000FE330 FC 1F 00 00 */ fcmpu cr0, f31, f0 /* 801013D4 000FE334 41 82 00 0C */ beq lbl_801013E0 /* 801013D8 000FE338 C0 02 93 D0 */ lfs f0, lbl_805AB0F0@sda21(r2) /* 801013DC 000FE33C EC 00 F8 24 */ fdivs f0, f0, f31 lbl_801013E0: /* 801013E0 000FE340 D0 0F 02 B8 */ stfs f0, 0x2b8(r15) /* 801013E4 000FE344 7D E4 7B 78 */ mr r4, r15 /* 801013E8 000FE348 38 61 01 40 */ addi r3, r1, 0x140 /* 801013EC 000FE34C D2 2F 02 BC */ stfs f17, 0x2bc(r15) /* 801013F0 000FE350 D3 4F 02 C0 */ stfs f26, 0x2c0(r15) /* 801013F4 000FE354 4B F7 52 D9 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 801013F8 000FE358 C0 21 01 4C */ lfs f1, 0x14c(r1) /* 801013FC 000FE35C C0 01 01 40 */ lfs f0, 0x140(r1) /* 80101400 000FE360 C0 4F 02 C0 */ lfs f2, 0x2c0(r15) /* 80101404 000FE364 EC 21 00 28 */ fsubs f1, f1, f0 /* 80101408 000FE368 C0 02 93 B8 */ lfs f0, lbl_805AB0D8@sda21(r2) /* 8010140C 000FE36C EC 22 08 2A */ fadds f1, f2, f1 /* 80101410 000FE370 EC 01 00 28 */ fsubs f0, f1, f0 /* 80101414 000FE374 EC 20 10 24 */ fdivs f1, f0, f2 /* 80101418 000FE378 48 21 3E 85 */ bl FloorF__5CMathFf /* 8010141C 000FE37C FC 00 08 1E */ fctiwz f0, f1 /* 80101420 000FE380 7D E4 7B 78 */ mr r4, r15 /* 80101424 000FE384 38 61 01 28 */ addi r3, r1, 0x128 /* 80101428 000FE388 D8 01 01 58 */ stfd f0, 0x158(r1) /* 8010142C 000FE38C 80 01 01 5C */ lwz r0, 0x15c(r1) /* 80101430 000FE390 90 0F 02 C4 */ stw r0, 0x2c4(r15) /* 80101434 000FE394 4B F7 52 99 */ bl GetTriggerBoundsWR__14CScriptTriggerCFv /* 80101438 000FE398 C0 21 01 38 */ lfs f1, 0x138(r1) /* 8010143C 000FE39C C0 01 01 2C */ lfs f0, 0x12c(r1) /* 80101440 000FE3A0 C0 4F 02 C0 */ lfs f2, 0x2c0(r15) /* 80101444 000FE3A4 EC 21 00 28 */ fsubs f1, f1, f0 /* 80101448 000FE3A8 C0 02 93 B8 */ lfs f0, lbl_805AB0D8@sda21(r2) /* 8010144C 000FE3AC EC 22 08 2A */ fadds f1, f2, f1 /* 80101450 000FE3B0 EC 01 00 28 */ fsubs f0, f1, f0 /* 80101454 000FE3B4 EC 20 10 24 */ fdivs f1, f0, f2 /* 80101458 000FE3B8 48 21 3E 45 */ bl FloorF__5CMathFf /* 8010145C 000FE3BC FC 00 08 1E */ fctiwz f0, f1 /* 80101460 000FE3C0 3C 60 80 3D */ lis r3, lbl_803CEE38@ha /* 80101464 000FE3C4 38 83 EE 38 */ addi r4, r3, lbl_803CEE38@l /* 80101468 000FE3C8 39 00 00 00 */ li r8, 0 /* 8010146C 000FE3CC 38 C0 00 01 */ li r6, 1 /* 80101470 000FE3D0 38 60 01 58 */ li r3, 0x158 /* 80101474 000FE3D4 D8 01 01 60 */ stfd f0, 0x160(r1) /* 80101478 000FE3D8 38 A0 00 00 */ li r5, 0 /* 8010147C 000FE3DC 80 01 01 64 */ lwz r0, 0x164(r1) /* 80101480 000FE3E0 90 0F 02 C8 */ stw r0, 0x2c8(r15) /* 80101484 000FE3E4 81 2F 02 C4 */ lwz r9, 0x2c4(r15) /* 80101488 000FE3E8 80 EF 02 C8 */ lwz r7, 0x2c8(r15) /* 8010148C 000FE3EC 39 29 00 01 */ addi r9, r9, 1 /* 80101490 000FE3F0 38 07 00 01 */ addi r0, r7, 1 /* 80101494 000FE3F4 7C 09 01 D6 */ mullw r0, r9, r0 /* 80101498 000FE3F8 90 0F 02 CC */ stw r0, 0x2cc(r15) /* 8010149C 000FE3FC 91 0F 02 D0 */ stw r8, 0x2d0(r15) /* 801014A0 000FE400 91 0F 02 D4 */ stw r8, 0x2d4(r15) /* 801014A4 000FE404 91 0F 02 D8 */ stw r8, 0x2d8(r15) /* 801014A8 000FE408 91 0F 02 DC */ stw r8, 0x2dc(r15) /* 801014AC 000FE40C 91 0F 02 E0 */ stw r8, 0x2e0(r15) /* 801014B0 000FE410 91 0F 02 E4 */ stw r8, 0x2e4(r15) /* 801014B4 000FE414 88 0F 02 E8 */ lbz r0, 0x2e8(r15) /* 801014B8 000FE418 52 60 3E 30 */ rlwimi r0, r19, 7, 0x18, 0x18 /* 801014BC 000FE41C 98 0F 02 E8 */ stb r0, 0x2e8(r15) /* 801014C0 000FE420 88 0F 02 E8 */ lbz r0, 0x2e8(r15) /* 801014C4 000FE424 51 00 36 72 */ rlwimi r0, r8, 6, 0x19, 0x19 /* 801014C8 000FE428 98 0F 02 E8 */ stb r0, 0x2e8(r15) /* 801014CC 000FE42C 88 0F 02 E8 */ lbz r0, 0x2e8(r15) /* 801014D0 000FE430 51 00 2E B4 */ rlwimi r0, r8, 5, 0x1a, 0x1a /* 801014D4 000FE434 98 0F 02 E8 */ stb r0, 0x2e8(r15) /* 801014D8 000FE438 88 01 02 E7 */ lbz r0, 0x2e7(r1) /* 801014DC 000FE43C 88 EF 02 E8 */ lbz r7, 0x2e8(r15) /* 801014E0 000FE440 50 07 26 F6 */ rlwimi r7, r0, 4, 0x1b, 0x1b /* 801014E4 000FE444 98 EF 02 E8 */ stb r7, 0x2e8(r15) /* 801014E8 000FE448 88 0F 02 E8 */ lbz r0, 0x2e8(r15) /* 801014EC 000FE44C 50 C0 1F 38 */ rlwimi r0, r6, 3, 0x1c, 0x1c /* 801014F0 000FE450 98 0F 02 E8 */ stb r0, 0x2e8(r15) /* 801014F4 000FE454 88 0F 02 E8 */ lbz r0, 0x2e8(r15) /* 801014F8 000FE458 51 00 17 7A */ rlwimi r0, r8, 2, 0x1d, 0x1d /* 801014FC 000FE45C 98 0F 02 E8 */ stb r0, 0x2e8(r15) /* 80101500 000FE460 88 0F 02 E8 */ lbz r0, 0x2e8(r15) /* 80101504 000FE464 51 00 0F BC */ rlwimi r0, r8, 1, 0x1e, 0x1e /* 80101508 000FE468 98 0F 02 E8 */ stb r0, 0x2e8(r15) /* 8010150C 000FE46C 48 21 43 61 */ bl __nw__FUlPCcPCc /* 80101510 000FE470 7C 6E 1B 79 */ or. r14, r3, r3 /* 80101514 000FE474 41 82 00 98 */ beq lbl_801015AC /* 80101518 000FE478 93 C1 00 08 */ stw r30, 8(r1) /* 8010151C 000FE47C FC 40 D0 90 */ fmr f2, f26 /* 80101520 000FE480 80 01 03 0C */ lwz r0, 0x30c(r1) /* 80101524 000FE484 FC 60 88 90 */ fmr f3, f17 /* 80101528 000FE488 C0 01 03 60 */ lfs f0, 0x360(r1) /* 8010152C 000FE48C FC 80 70 90 */ fmr f4, f14 /* 80101530 000FE490 90 01 00 0C */ stw r0, 0xc(r1) /* 80101534 000FE494 80 01 03 04 */ lwz r0, 0x304(r1) /* 80101538 000FE498 FC A0 90 90 */ fmr f5, f18 /* 8010153C 000FE49C FC C0 98 90 */ fmr f6, f19 /* 80101540 000FE4A0 C0 21 03 88 */ lfs f1, 0x388(r1) /* 80101544 000FE4A4 90 01 00 10 */ stw r0, 0x10(r1) /* 80101548 000FE4A8 FC E0 A0 90 */ fmr f7, f20 /* 8010154C 000FE4AC FD 00 A8 90 */ fmr f8, f21 /* 80101550 000FE4B0 92 81 00 14 */ stw r20, 0x14(r1) /* 80101554 000FE4B4 80 81 02 E8 */ lwz r4, 0x2e8(r1) /* 80101558 000FE4B8 7F EA FB 78 */ mr r10, r31 /* 8010155C 000FE4BC D2 C1 00 18 */ stfs f22, 0x18(r1) /* 80101560 000FE4C0 80 A1 02 EC */ lwz r5, 0x2ec(r1) /* 80101564 000FE4C4 D2 E1 00 1C */ stfs f23, 0x1c(r1) /* 80101568 000FE4C8 80 C1 02 F0 */ lwz r6, 0x2f0(r1) /* 8010156C 000FE4CC D3 01 00 20 */ stfs f24, 0x20(r1) /* 80101570 000FE4D0 80 E1 02 F4 */ lwz r7, 0x2f4(r1) /* 80101574 000FE4D4 D3 21 00 24 */ stfs f25, 0x24(r1) /* 80101578 000FE4D8 81 01 02 F8 */ lwz r8, 0x2f8(r1) /* 8010157C 000FE4DC D0 01 00 28 */ stfs f0, 0x28(r1) /* 80101580 000FE4E0 C0 01 03 64 */ lfs f0, 0x364(r1) /* 80101584 000FE4E4 81 21 02 FC */ lwz r9, 0x2fc(r1) /* 80101588 000FE4E8 D0 01 00 2C */ stfs f0, 0x2c(r1) /* 8010158C 000FE4EC C0 01 03 70 */ lfs f0, 0x370(r1) /* 80101590 000FE4F0 D0 01 00 30 */ stfs f0, 0x30(r1) /* 80101594 000FE4F4 C0 01 03 68 */ lfs f0, 0x368(r1) /* 80101598 000FE4F8 D0 01 00 34 */ stfs f0, 0x34(r1) /* 8010159C 000FE4FC C0 01 03 6C */ lfs f0, 0x36c(r1) /* 801015A0 000FE500 D0 01 00 38 */ stfs f0, 0x38(r1) /* 801015A4 000FE504 48 09 B8 1D */ bl __ct__14CFluidPlaneCPUFUiUiUiUiUiUifUiQ211CFluidPlane10EFluidTypefRC9CVector3ffRC14CFluidUVMotionfffffffffffff /* 801015A8 000FE508 7C 6E 1B 78 */ mr r14, r3 lbl_801015AC: /* 801015AC 000FE50C 80 6F 01 B4 */ lwz r3, 0x1b4(r15) /* 801015B0 000FE510 28 03 00 00 */ cmplwi r3, 0 /* 801015B4 000FE514 41 82 00 18 */ beq lbl_801015CC /* 801015B8 000FE518 81 83 00 00 */ lwz r12, 0(r3) /* 801015BC 000FE51C 38 80 00 01 */ li r4, 1 /* 801015C0 000FE520 81 8C 00 08 */ lwz r12, 8(r12) /* 801015C4 000FE524 7D 89 03 A6 */ mtctr r12 /* 801015C8 000FE528 4E 80 04 21 */ bctrl lbl_801015CC: /* 801015CC 000FE52C 91 CF 01 B4 */ stw r14, 0x1b4(r15) /* 801015D0 000FE530 80 61 03 A8 */ lwz r3, 0x3a8(r1) /* 801015D4 000FE534 48 21 43 5D */ bl Free__7CMemoryFPCv /* 801015D8 000FE538 38 60 00 00 */ li r3, 0 /* 801015DC 000FE53C 38 8F 02 64 */ addi r4, r15, 0x264 /* 801015E0 000FE540 98 61 01 24 */ stb r3, 0x124(r1) /* 801015E4 000FE544 80 0F 02 64 */ lwz r0, 0x264(r15) /* 801015E8 000FE548 54 00 20 36 */ slwi r0, r0, 4 /* 801015EC 000FE54C 7D C4 02 14 */ add r14, r4, r0 /* 801015F0 000FE550 35 CE 00 04 */ addic. r14, r14, 4 /* 801015F4 000FE554 41 82 00 38 */ beq lbl_8010162C /* 801015F8 000FE558 98 6E 00 0C */ stb r3, 0xc(r14) /* 801015FC 000FE55C 88 01 01 24 */ lbz r0, 0x124(r1) /* 80101600 000FE560 28 00 00 00 */ cmplwi r0, 0 /* 80101604 000FE564 41 82 00 28 */ beq lbl_8010162C /* 80101608 000FE568 28 0E 00 00 */ cmplwi r14, 0 /* 8010160C 000FE56C 38 81 01 18 */ addi r4, r1, 0x118 /* 80101610 000FE570 41 82 00 1C */ beq lbl_8010162C /* 80101614 000FE574 7D C3 73 78 */ mr r3, r14 /* 80101618 000FE578 48 23 F8 91 */ bl __ct__6CTokenFRC6CToken /* 8010161C 000FE57C 80 01 01 20 */ lwz r0, 0x120(r1) /* 80101620 000FE580 7D C3 73 78 */ mr r3, r14 /* 80101624 000FE584 90 0E 00 08 */ stw r0, 8(r14) /* 80101628 000FE588 48 23 F7 5D */ bl Lock__6CTokenFv lbl_8010162C: /* 8010162C 000FE58C 80 6F 02 64 */ lwz r3, 0x264(r15) /* 80101630 000FE590 38 03 00 01 */ addi r0, r3, 1 /* 80101634 000FE594 90 0F 02 64 */ stw r0, 0x264(r15) /* 80101638 000FE598 88 01 01 24 */ lbz r0, 0x124(r1) /* 8010163C 000FE59C 28 00 00 00 */ cmplwi r0, 0 /* 80101640 000FE5A0 41 82 00 1C */ beq lbl_8010165C /* 80101644 000FE5A4 34 61 01 18 */ addic. r3, r1, 0x118 /* 80101648 000FE5A8 41 82 00 14 */ beq lbl_8010165C /* 8010164C 000FE5AC 28 03 00 00 */ cmplwi r3, 0 /* 80101650 000FE5B0 41 82 00 0C */ beq lbl_8010165C /* 80101654 000FE5B4 38 80 00 00 */ li r4, 0 /* 80101658 000FE5B8 48 23 F7 E9 */ bl __dt__6CTokenFv lbl_8010165C: /* 8010165C 000FE5BC 38 60 00 00 */ li r3, 0 /* 80101660 000FE5C0 38 8F 02 64 */ addi r4, r15, 0x264 /* 80101664 000FE5C4 98 61 01 24 */ stb r3, 0x124(r1) /* 80101668 000FE5C8 98 61 01 14 */ stb r3, 0x114(r1) /* 8010166C 000FE5CC 80 0F 02 64 */ lwz r0, 0x264(r15) /* 80101670 000FE5D0 54 00 20 36 */ slwi r0, r0, 4 /* 80101674 000FE5D4 7D C4 02 14 */ add r14, r4, r0 /* 80101678 000FE5D8 35 CE 00 04 */ addic. r14, r14, 4 /* 8010167C 000FE5DC 41 82 00 38 */ beq lbl_801016B4 /* 80101680 000FE5E0 98 6E 00 0C */ stb r3, 0xc(r14) /* 80101684 000FE5E4 88 01 01 14 */ lbz r0, 0x114(r1) /* 80101688 000FE5E8 28 00 00 00 */ cmplwi r0, 0 /* 8010168C 000FE5EC 41 82 00 28 */ beq lbl_801016B4 /* 80101690 000FE5F0 28 0E 00 00 */ cmplwi r14, 0 /* 80101694 000FE5F4 38 81 01 08 */ addi r4, r1, 0x108 /* 80101698 000FE5F8 41 82 00 1C */ beq lbl_801016B4 /* 8010169C 000FE5FC 7D C3 73 78 */ mr r3, r14 /* 801016A0 000FE600 48 23 F8 09 */ bl __ct__6CTokenFRC6CToken /* 801016A4 000FE604 80 01 01 10 */ lwz r0, 0x110(r1) /* 801016A8 000FE608 7D C3 73 78 */ mr r3, r14 /* 801016AC 000FE60C 90 0E 00 08 */ stw r0, 8(r14) /* 801016B0 000FE610 48 23 F6 D5 */ bl Lock__6CTokenFv lbl_801016B4: /* 801016B4 000FE614 80 6F 02 64 */ lwz r3, 0x264(r15) /* 801016B8 000FE618 38 03 00 01 */ addi r0, r3, 1 /* 801016BC 000FE61C 90 0F 02 64 */ stw r0, 0x264(r15) /* 801016C0 000FE620 88 01 01 14 */ lbz r0, 0x114(r1) /* 801016C4 000FE624 28 00 00 00 */ cmplwi r0, 0 /* 801016C8 000FE628 41 82 00 1C */ beq lbl_801016E4 /* 801016CC 000FE62C 34 61 01 08 */ addic. r3, r1, 0x108 /* 801016D0 000FE630 41 82 00 14 */ beq lbl_801016E4 /* 801016D4 000FE634 28 03 00 00 */ cmplwi r3, 0 /* 801016D8 000FE638 41 82 00 0C */ beq lbl_801016E4 /* 801016DC 000FE63C 38 80 00 00 */ li r4, 0 /* 801016E0 000FE640 48 23 F7 61 */ bl __dt__6CTokenFv lbl_801016E4: /* 801016E4 000FE644 38 60 00 00 */ li r3, 0 /* 801016E8 000FE648 38 8F 02 64 */ addi r4, r15, 0x264 /* 801016EC 000FE64C 98 61 01 14 */ stb r3, 0x114(r1) /* 801016F0 000FE650 98 61 01 04 */ stb r3, 0x104(r1) /* 801016F4 000FE654 80 0F 02 64 */ lwz r0, 0x264(r15) /* 801016F8 000FE658 54 00 20 36 */ slwi r0, r0, 4 /* 801016FC 000FE65C 7D C4 02 14 */ add r14, r4, r0 /* 80101700 000FE660 35 CE 00 04 */ addic. r14, r14, 4 /* 80101704 000FE664 41 82 00 38 */ beq lbl_8010173C /* 80101708 000FE668 98 6E 00 0C */ stb r3, 0xc(r14) /* 8010170C 000FE66C 88 01 01 04 */ lbz r0, 0x104(r1) /* 80101710 000FE670 28 00 00 00 */ cmplwi r0, 0 /* 80101714 000FE674 41 82 00 28 */ beq lbl_8010173C /* 80101718 000FE678 28 0E 00 00 */ cmplwi r14, 0 /* 8010171C 000FE67C 38 81 00 F8 */ addi r4, r1, 0xf8 /* 80101720 000FE680 41 82 00 1C */ beq lbl_8010173C /* 80101724 000FE684 7D C3 73 78 */ mr r3, r14 /* 80101728 000FE688 48 23 F7 81 */ bl __ct__6CTokenFRC6CToken /* 8010172C 000FE68C 80 01 01 00 */ lwz r0, 0x100(r1) /* 80101730 000FE690 7D C3 73 78 */ mr r3, r14 /* 80101734 000FE694 90 0E 00 08 */ stw r0, 8(r14) /* 80101738 000FE698 48 23 F6 4D */ bl Lock__6CTokenFv lbl_8010173C: /* 8010173C 000FE69C 80 6F 02 64 */ lwz r3, 0x264(r15) /* 80101740 000FE6A0 38 03 00 01 */ addi r0, r3, 1 /* 80101744 000FE6A4 90 0F 02 64 */ stw r0, 0x264(r15) /* 80101748 000FE6A8 88 01 01 04 */ lbz r0, 0x104(r1) /* 8010174C 000FE6AC 28 00 00 00 */ cmplwi r0, 0 /* 80101750 000FE6B0 41 82 00 1C */ beq lbl_8010176C /* 80101754 000FE6B4 34 61 00 F8 */ addic. r3, r1, 0xf8 /* 80101758 000FE6B8 41 82 00 14 */ beq lbl_8010176C /* 8010175C 000FE6BC 28 03 00 00 */ cmplwi r3, 0 /* 80101760 000FE6C0 41 82 00 0C */ beq lbl_8010176C /* 80101764 000FE6C4 38 80 00 00 */ li r4, 0 /* 80101768 000FE6C8 48 23 F6 D9 */ bl __dt__6CTokenFv lbl_8010176C: /* 8010176C 000FE6CC 38 00 00 00 */ li r0, 0 /* 80101770 000FE6D0 98 01 01 04 */ stb r0, 0x104(r1) /* 80101774 000FE6D4 80 8F 02 2C */ lwz r4, 0x22c(r15) /* 80101778 000FE6D8 3C 04 00 01 */ addis r0, r4, 1 /* 8010177C 000FE6DC 28 00 FF FF */ cmplwi r0, 0xffff /* 80101780 000FE6E0 41 82 00 D4 */ beq lbl_80101854 /* 80101784 000FE6E4 3C 60 50 41 */ lis r3, 0x50415254@ha /* 80101788 000FE6E8 90 81 00 B8 */ stw r4, 0xb8(r1) /* 8010178C 000FE6EC 38 03 52 54 */ addi r0, r3, 0x50415254@l /* 80101790 000FE6F0 80 8D A0 64 */ lwz r4, gpSimplePool@sda21(r13) /* 80101794 000FE6F4 90 01 00 B4 */ stw r0, 0xb4(r1) /* 80101798 000FE6F8 38 61 00 AC */ addi r3, r1, 0xac /* 8010179C 000FE6FC 38 A1 00 B4 */ addi r5, r1, 0xb4 /* 801017A0 000FE700 81 84 00 00 */ lwz r12, 0(r4) /* 801017A4 000FE704 81 8C 00 0C */ lwz r12, 0xc(r12) /* 801017A8 000FE708 7D 89 03 A6 */ mtctr r12 /* 801017AC 000FE70C 4E 80 04 21 */ bctrl /* 801017B0 000FE710 38 61 00 A4 */ addi r3, r1, 0xa4 /* 801017B4 000FE714 38 81 00 AC */ addi r4, r1, 0xac /* 801017B8 000FE718 48 23 F6 F1 */ bl __ct__6CTokenFRC6CToken /* 801017BC 000FE71C 39 C1 00 EC */ addi r14, r1, 0xec /* 801017C0 000FE720 38 81 00 A4 */ addi r4, r1, 0xa4 /* 801017C4 000FE724 7D C3 73 78 */ mr r3, r14 /* 801017C8 000FE728 48 23 F6 E1 */ bl __ct__6CTokenFRC6CToken /* 801017CC 000FE72C 7D C3 73 78 */ mr r3, r14 /* 801017D0 000FE730 48 23 F6 3D */ bl GetObj__6CTokenFv /* 801017D4 000FE734 80 03 00 04 */ lwz r0, 4(r3) /* 801017D8 000FE738 39 CF 02 68 */ addi r14, r15, 0x268 /* 801017DC 000FE73C 90 01 00 F4 */ stw r0, 0xf4(r1) /* 801017E0 000FE740 88 0F 02 74 */ lbz r0, 0x274(r15) /* 801017E4 000FE744 28 00 00 00 */ cmplwi r0, 0 /* 801017E8 000FE748 40 82 00 34 */ bne lbl_8010181C /* 801017EC 000FE74C 28 0E 00 00 */ cmplwi r14, 0 /* 801017F0 000FE750 41 82 00 20 */ beq lbl_80101810 /* 801017F4 000FE754 7D C3 73 78 */ mr r3, r14 /* 801017F8 000FE758 38 81 00 EC */ addi r4, r1, 0xec /* 801017FC 000FE75C 48 23 F6 AD */ bl __ct__6CTokenFRC6CToken /* 80101800 000FE760 80 01 00 F4 */ lwz r0, 0xf4(r1) /* 80101804 000FE764 7D C3 73 78 */ mr r3, r14 /* 80101808 000FE768 90 0E 00 08 */ stw r0, 8(r14) /* 8010180C 000FE76C 48 23 F5 79 */ bl Lock__6CTokenFv lbl_80101810: /* 80101810 000FE770 38 00 00 01 */ li r0, 1 /* 80101814 000FE774 98 0E 00 0C */ stb r0, 0xc(r14) /* 80101818 000FE778 48 00 00 18 */ b lbl_80101830 lbl_8010181C: /* 8010181C 000FE77C 7D C3 73 78 */ mr r3, r14 /* 80101820 000FE780 38 81 00 EC */ addi r4, r1, 0xec /* 80101824 000FE784 48 23 F4 A1 */ bl __as__6CTokenFRC6CToken /* 80101828 000FE788 80 01 00 F4 */ lwz r0, 0xf4(r1) /* 8010182C 000FE78C 90 0E 00 08 */ stw r0, 8(r14) lbl_80101830: /* 80101830 000FE790 38 61 00 EC */ addi r3, r1, 0xec /* 80101834 000FE794 38 80 00 00 */ li r4, 0 /* 80101838 000FE798 48 23 F6 09 */ bl __dt__6CTokenFv /* 8010183C 000FE79C 38 61 00 A4 */ addi r3, r1, 0xa4 /* 80101840 000FE7A0 38 80 00 00 */ li r4, 0 /* 80101844 000FE7A4 48 23 F5 FD */ bl __dt__6CTokenFv /* 80101848 000FE7A8 38 61 00 AC */ addi r3, r1, 0xac /* 8010184C 000FE7AC 38 80 FF FF */ li r4, -1 /* 80101850 000FE7B0 48 23 F5 F1 */ bl __dt__6CTokenFv lbl_80101854: /* 80101854 000FE7B4 80 8F 02 30 */ lwz r4, 0x230(r15) /* 80101858 000FE7B8 3C 04 00 01 */ addis r0, r4, 1 /* 8010185C 000FE7BC 28 00 FF FF */ cmplwi r0, 0xffff /* 80101860 000FE7C0 41 82 00 D4 */ beq lbl_80101934 /* 80101864 000FE7C4 3C 60 50 41 */ lis r3, 0x50415254@ha /* 80101868 000FE7C8 90 81 00 A0 */ stw r4, 0xa0(r1) /* 8010186C 000FE7CC 38 03 52 54 */ addi r0, r3, 0x50415254@l /* 80101870 000FE7D0 80 8D A0 64 */ lwz r4, gpSimplePool@sda21(r13) /* 80101874 000FE7D4 90 01 00 9C */ stw r0, 0x9c(r1) /* 80101878 000FE7D8 38 61 00 94 */ addi r3, r1, 0x94 /* 8010187C 000FE7DC 38 A1 00 9C */ addi r5, r1, 0x9c /* 80101880 000FE7E0 81 84 00 00 */ lwz r12, 0(r4) /* 80101884 000FE7E4 81 8C 00 0C */ lwz r12, 0xc(r12) /* 80101888 000FE7E8 7D 89 03 A6 */ mtctr r12 /* 8010188C 000FE7EC 4E 80 04 21 */ bctrl /* 80101890 000FE7F0 38 61 00 8C */ addi r3, r1, 0x8c /* 80101894 000FE7F4 38 81 00 94 */ addi r4, r1, 0x94 /* 80101898 000FE7F8 48 23 F6 11 */ bl __ct__6CTokenFRC6CToken /* 8010189C 000FE7FC 39 C1 00 E0 */ addi r14, r1, 0xe0 /* 801018A0 000FE800 38 81 00 8C */ addi r4, r1, 0x8c /* 801018A4 000FE804 7D C3 73 78 */ mr r3, r14 /* 801018A8 000FE808 48 23 F6 01 */ bl __ct__6CTokenFRC6CToken /* 801018AC 000FE80C 7D C3 73 78 */ mr r3, r14 /* 801018B0 000FE810 48 23 F5 5D */ bl GetObj__6CTokenFv /* 801018B4 000FE814 80 03 00 04 */ lwz r0, 4(r3) /* 801018B8 000FE818 39 CF 02 78 */ addi r14, r15, 0x278 /* 801018BC 000FE81C 90 01 00 E8 */ stw r0, 0xe8(r1) /* 801018C0 000FE820 88 0F 02 84 */ lbz r0, 0x284(r15) /* 801018C4 000FE824 28 00 00 00 */ cmplwi r0, 0 /* 801018C8 000FE828 40 82 00 34 */ bne lbl_801018FC /* 801018CC 000FE82C 28 0E 00 00 */ cmplwi r14, 0 /* 801018D0 000FE830 41 82 00 20 */ beq lbl_801018F0 /* 801018D4 000FE834 7D C3 73 78 */ mr r3, r14 /* 801018D8 000FE838 38 81 00 E0 */ addi r4, r1, 0xe0 /* 801018DC 000FE83C 48 23 F5 CD */ bl __ct__6CTokenFRC6CToken /* 801018E0 000FE840 80 01 00 E8 */ lwz r0, 0xe8(r1) /* 801018E4 000FE844 7D C3 73 78 */ mr r3, r14 /* 801018E8 000FE848 90 0E 00 08 */ stw r0, 8(r14) /* 801018EC 000FE84C 48 23 F4 99 */ bl Lock__6CTokenFv lbl_801018F0: /* 801018F0 000FE850 38 00 00 01 */ li r0, 1 /* 801018F4 000FE854 98 0E 00 0C */ stb r0, 0xc(r14) /* 801018F8 000FE858 48 00 00 18 */ b lbl_80101910 lbl_801018FC: /* 801018FC 000FE85C 7D C3 73 78 */ mr r3, r14 /* 80101900 000FE860 38 81 00 E0 */ addi r4, r1, 0xe0 /* 80101904 000FE864 48 23 F3 C1 */ bl __as__6CTokenFRC6CToken /* 80101908 000FE868 80 01 00 E8 */ lwz r0, 0xe8(r1) /* 8010190C 000FE86C 90 0E 00 08 */ stw r0, 8(r14) lbl_80101910: /* 80101910 000FE870 38 61 00 E0 */ addi r3, r1, 0xe0 /* 80101914 000FE874 38 80 00 00 */ li r4, 0 /* 80101918 000FE878 48 23 F5 29 */ bl __dt__6CTokenFv /* 8010191C 000FE87C 38 61 00 8C */ addi r3, r1, 0x8c /* 80101920 000FE880 38 80 00 00 */ li r4, 0 /* 80101924 000FE884 48 23 F5 1D */ bl __dt__6CTokenFv /* 80101928 000FE888 38 61 00 94 */ addi r3, r1, 0x94 /* 8010192C 000FE88C 38 80 FF FF */ li r4, -1 /* 80101930 000FE890 48 23 F5 11 */ bl __dt__6CTokenFv lbl_80101934: /* 80101934 000FE894 80 8F 02 34 */ lwz r4, 0x234(r15) /* 80101938 000FE898 3C 04 00 01 */ addis r0, r4, 1 /* 8010193C 000FE89C 28 00 FF FF */ cmplwi r0, 0xffff /* 80101940 000FE8A0 41 82 00 D4 */ beq lbl_80101A14 /* 80101944 000FE8A4 3C 60 50 41 */ lis r3, 0x50415254@ha /* 80101948 000FE8A8 90 81 00 88 */ stw r4, 0x88(r1) /* 8010194C 000FE8AC 38 03 52 54 */ addi r0, r3, 0x50415254@l /* 80101950 000FE8B0 80 8D A0 64 */ lwz r4, gpSimplePool@sda21(r13) /* 80101954 000FE8B4 90 01 00 84 */ stw r0, 0x84(r1) /* 80101958 000FE8B8 38 61 00 7C */ addi r3, r1, 0x7c /* 8010195C 000FE8BC 38 A1 00 84 */ addi r5, r1, 0x84 /* 80101960 000FE8C0 81 84 00 00 */ lwz r12, 0(r4) /* 80101964 000FE8C4 81 8C 00 0C */ lwz r12, 0xc(r12) /* 80101968 000FE8C8 7D 89 03 A6 */ mtctr r12 /* 8010196C 000FE8CC 4E 80 04 21 */ bctrl /* 80101970 000FE8D0 38 61 00 74 */ addi r3, r1, 0x74 /* 80101974 000FE8D4 38 81 00 7C */ addi r4, r1, 0x7c /* 80101978 000FE8D8 48 23 F5 31 */ bl __ct__6CTokenFRC6CToken /* 8010197C 000FE8DC 39 C1 00 D4 */ addi r14, r1, 0xd4 /* 80101980 000FE8E0 38 81 00 74 */ addi r4, r1, 0x74 /* 80101984 000FE8E4 7D C3 73 78 */ mr r3, r14 /* 80101988 000FE8E8 48 23 F5 21 */ bl __ct__6CTokenFRC6CToken /* 8010198C 000FE8EC 7D C3 73 78 */ mr r3, r14 /* 80101990 000FE8F0 48 23 F4 7D */ bl GetObj__6CTokenFv /* 80101994 000FE8F4 80 03 00 04 */ lwz r0, 4(r3) /* 80101998 000FE8F8 39 CF 02 88 */ addi r14, r15, 0x288 /* 8010199C 000FE8FC 90 01 00 DC */ stw r0, 0xdc(r1) /* 801019A0 000FE900 88 0F 02 94 */ lbz r0, 0x294(r15) /* 801019A4 000FE904 28 00 00 00 */ cmplwi r0, 0 /* 801019A8 000FE908 40 82 00 34 */ bne lbl_801019DC /* 801019AC 000FE90C 28 0E 00 00 */ cmplwi r14, 0 /* 801019B0 000FE910 41 82 00 20 */ beq lbl_801019D0 /* 801019B4 000FE914 7D C3 73 78 */ mr r3, r14 /* 801019B8 000FE918 38 81 00 D4 */ addi r4, r1, 0xd4 /* 801019BC 000FE91C 48 23 F4 ED */ bl __ct__6CTokenFRC6CToken /* 801019C0 000FE920 80 01 00 DC */ lwz r0, 0xdc(r1) /* 801019C4 000FE924 7D C3 73 78 */ mr r3, r14 /* 801019C8 000FE928 90 0E 00 08 */ stw r0, 8(r14) /* 801019CC 000FE92C 48 23 F3 B9 */ bl Lock__6CTokenFv lbl_801019D0: /* 801019D0 000FE930 38 00 00 01 */ li r0, 1 /* 801019D4 000FE934 98 0E 00 0C */ stb r0, 0xc(r14) /* 801019D8 000FE938 48 00 00 18 */ b lbl_801019F0 lbl_801019DC: /* 801019DC 000FE93C 7D C3 73 78 */ mr r3, r14 /* 801019E0 000FE940 38 81 00 D4 */ addi r4, r1, 0xd4 /* 801019E4 000FE944 48 23 F2 E1 */ bl __as__6CTokenFRC6CToken /* 801019E8 000FE948 80 01 00 DC */ lwz r0, 0xdc(r1) /* 801019EC 000FE94C 90 0E 00 08 */ stw r0, 8(r14) lbl_801019F0: /* 801019F0 000FE950 38 61 00 D4 */ addi r3, r1, 0xd4 /* 801019F4 000FE954 38 80 00 00 */ li r4, 0 /* 801019F8 000FE958 48 23 F4 49 */ bl __dt__6CTokenFv /* 801019FC 000FE95C 38 61 00 74 */ addi r3, r1, 0x74 /* 80101A00 000FE960 38 80 00 00 */ li r4, 0 /* 80101A04 000FE964 48 23 F4 3D */ bl __dt__6CTokenFv /* 80101A08 000FE968 38 61 00 7C */ addi r3, r1, 0x7c /* 80101A0C 000FE96C 38 80 FF FF */ li r4, -1 /* 80101A10 000FE970 48 23 F4 31 */ bl __dt__6CTokenFv lbl_80101A14: /* 80101A14 000FE974 80 8F 02 38 */ lwz r4, 0x238(r15) /* 80101A18 000FE978 3C 04 00 01 */ addis r0, r4, 1 /* 80101A1C 000FE97C 28 00 FF FF */ cmplwi r0, 0xffff /* 80101A20 000FE980 41 82 00 D4 */ beq lbl_80101AF4 /* 80101A24 000FE984 3C 60 50 41 */ lis r3, 0x50415254@ha /* 80101A28 000FE988 90 81 00 70 */ stw r4, 0x70(r1) /* 80101A2C 000FE98C 38 03 52 54 */ addi r0, r3, 0x50415254@l /* 80101A30 000FE990 80 8D A0 64 */ lwz r4, gpSimplePool@sda21(r13) /* 80101A34 000FE994 90 01 00 6C */ stw r0, 0x6c(r1) /* 80101A38 000FE998 38 61 00 64 */ addi r3, r1, 0x64 /* 80101A3C 000FE99C 38 A1 00 6C */ addi r5, r1, 0x6c /* 80101A40 000FE9A0 81 84 00 00 */ lwz r12, 0(r4) /* 80101A44 000FE9A4 81 8C 00 0C */ lwz r12, 0xc(r12) /* 80101A48 000FE9A8 7D 89 03 A6 */ mtctr r12 /* 80101A4C 000FE9AC 4E 80 04 21 */ bctrl /* 80101A50 000FE9B0 38 61 00 5C */ addi r3, r1, 0x5c /* 80101A54 000FE9B4 38 81 00 64 */ addi r4, r1, 0x64 /* 80101A58 000FE9B8 48 23 F4 51 */ bl __ct__6CTokenFRC6CToken /* 80101A5C 000FE9BC 39 C1 00 C8 */ addi r14, r1, 0xc8 /* 80101A60 000FE9C0 38 81 00 5C */ addi r4, r1, 0x5c /* 80101A64 000FE9C4 7D C3 73 78 */ mr r3, r14 /* 80101A68 000FE9C8 48 23 F4 41 */ bl __ct__6CTokenFRC6CToken /* 80101A6C 000FE9CC 7D C3 73 78 */ mr r3, r14 /* 80101A70 000FE9D0 48 23 F3 9D */ bl GetObj__6CTokenFv /* 80101A74 000FE9D4 80 03 00 04 */ lwz r0, 4(r3) /* 80101A78 000FE9D8 90 01 00 D0 */ stw r0, 0xd0(r1) /* 80101A7C 000FE9DC 88 0F 02 48 */ lbz r0, 0x248(r15) /* 80101A80 000FE9E0 28 00 00 00 */ cmplwi r0, 0 /* 80101A84 000FE9E4 40 82 00 34 */ bne lbl_80101AB8 /* 80101A88 000FE9E8 35 CF 02 3C */ addic. r14, r15, 0x23c /* 80101A8C 000FE9EC 41 82 00 20 */ beq lbl_80101AAC /* 80101A90 000FE9F0 7D C3 73 78 */ mr r3, r14 /* 80101A94 000FE9F4 38 81 00 C8 */ addi r4, r1, 0xc8 /* 80101A98 000FE9F8 48 23 F4 11 */ bl __ct__6CTokenFRC6CToken /* 80101A9C 000FE9FC 80 01 00 D0 */ lwz r0, 0xd0(r1) /* 80101AA0 000FEA00 7D C3 73 78 */ mr r3, r14 /* 80101AA4 000FEA04 90 0E 00 08 */ stw r0, 8(r14) /* 80101AA8 000FEA08 48 23 F2 DD */ bl Lock__6CTokenFv lbl_80101AAC: /* 80101AAC 000FEA0C 38 00 00 01 */ li r0, 1 /* 80101AB0 000FEA10 98 0F 02 48 */ stb r0, 0x248(r15) /* 80101AB4 000FEA14 48 00 00 1C */ b lbl_80101AD0 lbl_80101AB8: /* 80101AB8 000FEA18 39 CF 02 3C */ addi r14, r15, 0x23c /* 80101ABC 000FEA1C 38 81 00 C8 */ addi r4, r1, 0xc8 /* 80101AC0 000FEA20 7D C3 73 78 */ mr r3, r14 /* 80101AC4 000FEA24 48 23 F2 01 */ bl __as__6CTokenFRC6CToken /* 80101AC8 000FEA28 80 01 00 D0 */ lwz r0, 0xd0(r1) /* 80101ACC 000FEA2C 90 0E 00 08 */ stw r0, 8(r14) lbl_80101AD0: /* 80101AD0 000FEA30 38 61 00 C8 */ addi r3, r1, 0xc8 /* 80101AD4 000FEA34 38 80 00 00 */ li r4, 0 /* 80101AD8 000FEA38 48 23 F3 69 */ bl __dt__6CTokenFv /* 80101ADC 000FEA3C 38 61 00 5C */ addi r3, r1, 0x5c /* 80101AE0 000FEA40 38 80 00 00 */ li r4, 0 /* 80101AE4 000FEA44 48 23 F3 5D */ bl __dt__6CTokenFv /* 80101AE8 000FEA48 38 61 00 64 */ addi r3, r1, 0x64 /* 80101AEC 000FEA4C 38 80 FF FF */ li r4, -1 /* 80101AF0 000FEA50 48 23 F3 51 */ bl __dt__6CTokenFv lbl_80101AF4: /* 80101AF4 000FEA54 80 8F 02 4C */ lwz r4, 0x24c(r15) /* 80101AF8 000FEA58 3C 04 00 01 */ addis r0, r4, 1 /* 80101AFC 000FEA5C 28 00 FF FF */ cmplwi r0, 0xffff /* 80101B00 000FEA60 41 82 00 D4 */ beq lbl_80101BD4 /* 80101B04 000FEA64 3C 60 50 41 */ lis r3, 0x50415254@ha /* 80101B08 000FEA68 90 81 00 58 */ stw r4, 0x58(r1) /* 80101B0C 000FEA6C 38 03 52 54 */ addi r0, r3, 0x50415254@l /* 80101B10 000FEA70 80 8D A0 64 */ lwz r4, gpSimplePool@sda21(r13) /* 80101B14 000FEA74 90 01 00 54 */ stw r0, 0x54(r1) /* 80101B18 000FEA78 38 61 00 4C */ addi r3, r1, 0x4c /* 80101B1C 000FEA7C 38 A1 00 54 */ addi r5, r1, 0x54 /* 80101B20 000FEA80 81 84 00 00 */ lwz r12, 0(r4) /* 80101B24 000FEA84 81 8C 00 0C */ lwz r12, 0xc(r12) /* 80101B28 000FEA88 7D 89 03 A6 */ mtctr r12 /* 80101B2C 000FEA8C 4E 80 04 21 */ bctrl /* 80101B30 000FEA90 38 61 00 44 */ addi r3, r1, 0x44 /* 80101B34 000FEA94 38 81 00 4C */ addi r4, r1, 0x4c /* 80101B38 000FEA98 48 23 F3 71 */ bl __ct__6CTokenFRC6CToken /* 80101B3C 000FEA9C 39 C1 00 BC */ addi r14, r1, 0xbc /* 80101B40 000FEAA0 38 81 00 44 */ addi r4, r1, 0x44 /* 80101B44 000FEAA4 7D C3 73 78 */ mr r3, r14 /* 80101B48 000FEAA8 48 23 F3 61 */ bl __ct__6CTokenFRC6CToken /* 80101B4C 000FEAAC 7D C3 73 78 */ mr r3, r14 /* 80101B50 000FEAB0 48 23 F2 BD */ bl GetObj__6CTokenFv /* 80101B54 000FEAB4 80 03 00 04 */ lwz r0, 4(r3) /* 80101B58 000FEAB8 90 01 00 C4 */ stw r0, 0xc4(r1) /* 80101B5C 000FEABC 88 0F 02 5C */ lbz r0, 0x25c(r15) /* 80101B60 000FEAC0 28 00 00 00 */ cmplwi r0, 0 /* 80101B64 000FEAC4 40 82 00 34 */ bne lbl_80101B98 /* 80101B68 000FEAC8 35 CF 02 50 */ addic. r14, r15, 0x250 /* 80101B6C 000FEACC 41 82 00 20 */ beq lbl_80101B8C /* 80101B70 000FEAD0 7D C3 73 78 */ mr r3, r14 /* 80101B74 000FEAD4 38 81 00 BC */ addi r4, r1, 0xbc /* 80101B78 000FEAD8 48 23 F3 31 */ bl __ct__6CTokenFRC6CToken /* 80101B7C 000FEADC 80 01 00 C4 */ lwz r0, 0xc4(r1) /* 80101B80 000FEAE0 7D C3 73 78 */ mr r3, r14 /* 80101B84 000FEAE4 90 0E 00 08 */ stw r0, 8(r14) /* 80101B88 000FEAE8 48 23 F1 FD */ bl Lock__6CTokenFv lbl_80101B8C: /* 80101B8C 000FEAEC 38 00 00 01 */ li r0, 1 /* 80101B90 000FEAF0 98 0F 02 5C */ stb r0, 0x25c(r15) /* 80101B94 000FEAF4 48 00 00 1C */ b lbl_80101BB0 lbl_80101B98: /* 80101B98 000FEAF8 39 CF 02 50 */ addi r14, r15, 0x250 /* 80101B9C 000FEAFC 38 81 00 BC */ addi r4, r1, 0xbc /* 80101BA0 000FEB00 7D C3 73 78 */ mr r3, r14 /* 80101BA4 000FEB04 48 23 F1 21 */ bl __as__6CTokenFRC6CToken /* 80101BA8 000FEB08 80 01 00 C4 */ lwz r0, 0xc4(r1) /* 80101BAC 000FEB0C 90 0E 00 08 */ stw r0, 8(r14) lbl_80101BB0: /* 80101BB0 000FEB10 38 61 00 BC */ addi r3, r1, 0xbc /* 80101BB4 000FEB14 38 80 00 00 */ li r4, 0 /* 80101BB8 000FEB18 48 23 F2 89 */ bl __dt__6CTokenFv /* 80101BBC 000FEB1C 38 61 00 44 */ addi r3, r1, 0x44 /* 80101BC0 000FEB20 38 80 00 00 */ li r4, 0 /* 80101BC4 000FEB24 48 23 F2 7D */ bl __dt__6CTokenFv /* 80101BC8 000FEB28 38 61 00 4C */ addi r3, r1, 0x4c /* 80101BCC 000FEB2C 38 80 FF FF */ li r4, -1 /* 80101BD0 000FEB30 48 23 F2 71 */ bl __dt__6CTokenFv lbl_80101BD4: /* 80101BD4 000FEB34 80 01 03 4C */ lwz r0, 0x34c(r1) /* 80101BD8 000FEB38 54 03 04 3E */ clrlwi r3, r0, 0x10 /* 80101BDC 000FEB3C 48 1E 6D D5 */ bl TranslateSFXID__11CSfxManagerFUs /* 80101BE0 000FEB40 38 8F 02 98 */ addi r4, r15, 0x298 /* 80101BE4 000FEB44 80 0F 02 98 */ lwz r0, 0x298(r15) /* 80101BE8 000FEB48 54 00 08 3C */ slwi r0, r0, 1 /* 80101BEC 000FEB4C 7C 84 02 14 */ add r4, r4, r0 /* 80101BF0 000FEB50 34 84 00 04 */ addic. r4, r4, 4 /* 80101BF4 000FEB54 41 82 00 08 */ beq lbl_80101BFC /* 80101BF8 000FEB58 B0 64 00 00 */ sth r3, 0(r4) lbl_80101BFC: /* 80101BFC 000FEB5C 80 01 03 50 */ lwz r0, 0x350(r1) /* 80101C00 000FEB60 80 8F 02 98 */ lwz r4, 0x298(r15) /* 80101C04 000FEB64 54 03 04 3E */ clrlwi r3, r0, 0x10 /* 80101C08 000FEB68 38 04 00 01 */ addi r0, r4, 1 /* 80101C0C 000FEB6C 90 0F 02 98 */ stw r0, 0x298(r15) /* 80101C10 000FEB70 48 1E 6D A1 */ bl TranslateSFXID__11CSfxManagerFUs /* 80101C14 000FEB74 38 8F 02 98 */ addi r4, r15, 0x298 /* 80101C18 000FEB78 80 0F 02 98 */ lwz r0, 0x298(r15) /* 80101C1C 000FEB7C 54 00 08 3C */ slwi r0, r0, 1 /* 80101C20 000FEB80 7C 84 02 14 */ add r4, r4, r0 /* 80101C24 000FEB84 34 84 00 04 */ addic. r4, r4, 4 /* 80101C28 000FEB88 41 82 00 08 */ beq lbl_80101C30 /* 80101C2C 000FEB8C B0 64 00 00 */ sth r3, 0(r4) lbl_80101C30: /* 80101C30 000FEB90 80 01 03 54 */ lwz r0, 0x354(r1) /* 80101C34 000FEB94 80 8F 02 98 */ lwz r4, 0x298(r15) /* 80101C38 000FEB98 54 03 04 3E */ clrlwi r3, r0, 0x10 /* 80101C3C 000FEB9C 38 04 00 01 */ addi r0, r4, 1 /* 80101C40 000FEBA0 90 0F 02 98 */ stw r0, 0x298(r15) /* 80101C44 000FEBA4 48 1E 6D 6D */ bl TranslateSFXID__11CSfxManagerFUs /* 80101C48 000FEBA8 38 8F 02 98 */ addi r4, r15, 0x298 /* 80101C4C 000FEBAC 80 0F 02 98 */ lwz r0, 0x298(r15) /* 80101C50 000FEBB0 54 00 08 3C */ slwi r0, r0, 1 /* 80101C54 000FEBB4 7C 84 02 14 */ add r4, r4, r0 /* 80101C58 000FEBB8 34 84 00 04 */ addic. r4, r4, 4 /* 80101C5C 000FEBBC 41 82 00 08 */ beq lbl_80101C64 /* 80101C60 000FEBC0 B0 64 00 00 */ sth r3, 0(r4) lbl_80101C64: /* 80101C64 000FEBC4 80 AF 02 98 */ lwz r5, 0x298(r15) /* 80101C68 000FEBC8 7D E3 7B 78 */ mr r3, r15 /* 80101C6C 000FEBCC 38 80 00 01 */ li r4, 1 /* 80101C70 000FEBD0 38 05 00 01 */ addi r0, r5, 1 /* 80101C74 000FEBD4 90 0F 02 98 */ stw r0, 0x298(r15) /* 80101C78 000FEBD8 4B F5 1C A9 */ bl SetCalculateLighting__6CActorFb /* 80101C7C 000FEBDC 3C 1F 00 01 */ addis r0, r31, 1 /* 80101C80 000FEBE0 28 00 FF FF */ cmplwi r0, 0xffff /* 80101C84 000FEBE4 41 82 00 38 */ beq lbl_80101CBC /* 80101C88 000FEBE8 80 CF 00 90 */ lwz r6, 0x90(r15) /* 80101C8C 000FEBEC 38 A0 00 00 */ li r5, 0 /* 80101C90 000FEBF0 90 A6 02 B8 */ stw r5, 0x2b8(r6) /* 80101C94 000FEBF4 80 86 02 B8 */ lwz r4, 0x2b8(r6) /* 80101C98 000FEBF8 88 06 02 98 */ lbz r0, 0x298(r6) /* 80101C9C 000FEBFC 7C 64 00 D0 */ neg r3, r4 /* 80101CA0 000FEC00 7C 63 20 78 */ andc r3, r3, r4 /* 80101CA4 000FEC04 50 60 36 B4 */ rlwimi r0, r3, 6, 0x1a, 0x1a /* 80101CA8 000FEC08 98 06 02 98 */ stb r0, 0x298(r6) /* 80101CAC 000FEC0C 80 6F 00 90 */ lwz r3, 0x90(r15) /* 80101CB0 000FEC10 88 03 02 98 */ lbz r0, 0x298(r3) /* 80101CB4 000FEC14 50 A0 1F 38 */ rlwimi r0, r5, 3, 0x1c, 0x1c /* 80101CB8 000FEC18 98 03 02 98 */ stb r0, 0x298(r3) lbl_80101CBC: /* 80101CBC 000FEC1C 80 6F 00 90 */ lwz r3, 0x90(r15) /* 80101CC0 000FEC20 38 00 00 04 */ li r0, 4 /* 80101CC4 000FEC24 38 C0 00 00 */ li r6, 0 /* 80101CC8 000FEC28 38 A0 00 01 */ li r5, 1 /* 80101CCC 000FEC2C 90 03 02 BC */ stw r0, 0x2bc(r3) /* 80101CD0 000FEC30 7D E3 7B 78 */ mr r3, r15 /* 80101CD4 000FEC34 80 8F 00 90 */ lwz r4, 0x90(r15) /* 80101CD8 000FEC38 88 04 02 98 */ lbz r0, 0x298(r4) /* 80101CDC 000FEC3C 50 C0 36 72 */ rlwimi r0, r6, 6, 0x19, 0x19 /* 80101CE0 000FEC40 98 04 02 98 */ stb r0, 0x298(r4) /* 80101CE4 000FEC44 80 8F 00 90 */ lwz r4, 0x90(r15) /* 80101CE8 000FEC48 88 04 02 98 */ lbz r0, 0x298(r4) /* 80101CEC 000FEC4C 50 C0 17 7A */ rlwimi r0, r6, 2, 0x1d, 0x1d /* 80101CF0 000FEC50 98 04 02 98 */ stb r0, 0x298(r4) /* 80101CF4 000FEC54 80 8F 00 90 */ lwz r4, 0x90(r15) /* 80101CF8 000FEC58 98 A4 02 9A */ stb r5, 0x29a(r4) /* 80101CFC 000FEC5C 88 0F 01 48 */ lbz r0, 0x148(r15) /* 80101D00 000FEC60 50 A0 3E 30 */ rlwimi r0, r5, 7, 0x18, 0x18 /* 80101D04 000FEC64 98 0F 01 48 */ stb r0, 0x148(r15) /* 80101D08 000FEC68 81 8F 00 00 */ lwz r12, 0(r15) /* 80101D0C 000FEC6C 81 8C 00 30 */ lwz r12, 0x30(r12) /* 80101D10 000FEC70 7D 89 03 A6 */ mtctr r12 /* 80101D14 000FEC74 4E 80 04 21 */ bctrl /* 80101D18 000FEC78 88 01 02 E3 */ lbz r0, 0x2e3(r1) /* 80101D1C 000FEC7C 28 00 00 00 */ cmplwi r0, 0 /* 80101D20 000FEC80 38 00 00 01 */ li r0, 1 /* 80101D24 000FEC84 41 82 00 08 */ beq lbl_80101D2C /* 80101D28 000FEC88 38 00 00 02 */ li r0, 2 lbl_80101D2C: /* 80101D2C 000FEC8C 54 03 06 3E */ clrlwi r3, r0, 0x18 /* 80101D30 000FEC90 88 0F 00 E6 */ lbz r0, 0xe6(r15) /* 80101D34 000FEC94 50 60 1E F8 */ rlwimi r0, r3, 3, 0x1b, 0x1c /* 80101D38 000FEC98 98 0F 00 E6 */ stb r0, 0xe6(r15) /* 80101D3C 000FEC9C 88 0F 00 30 */ lbz r0, 0x30(r15) /* 80101D40 000FECA0 54 00 CF FF */ rlwinm. r0, r0, 0x19, 0x1f, 0x1f /* 80101D44 000FECA4 40 82 00 14 */ bne lbl_80101D58 /* 80101D48 000FECA8 C0 02 93 BC */ lfs f0, lbl_805AB0DC@sda21(r2) /* 80101D4C 000FECAC D0 0F 02 BC */ stfs f0, 0x2bc(r15) /* 80101D50 000FECB0 D0 0F 02 14 */ stfs f0, 0x214(r15) /* 80101D54 000FECB4 D0 0F 02 18 */ stfs f0, 0x218(r15) lbl_80101D58: /* 80101D58 000FECB8 7D E3 7B 78 */ mr r3, r15 /* 80101D5C 000FECBC 38 80 00 01 */ li r4, 1 /* 80101D60 000FECC0 4B FF D0 55 */ bl SetupGrid__12CScriptWaterFb /* 80101D64 000FECC4 7D E3 7B 78 */ mr r3, r15 /* 80101D68 000FECC8 E3 E1 02 C8 */ psq_l f31, 712(r1), 0, qr0 /* 80101D6C 000FECCC CB E1 02 C0 */ lfd f31, 0x2c0(r1) /* 80101D70 000FECD0 E3 C1 02 B8 */ psq_l f30, 696(r1), 0, qr0 /* 80101D74 000FECD4 CB C1 02 B0 */ lfd f30, 0x2b0(r1) /* 80101D78 000FECD8 E3 A1 02 A8 */ psq_l f29, 680(r1), 0, qr0 /* 80101D7C 000FECDC CB A1 02 A0 */ lfd f29, 0x2a0(r1) /* 80101D80 000FECE0 E3 81 02 98 */ psq_l f28, 664(r1), 0, qr0 /* 80101D84 000FECE4 CB 81 02 90 */ lfd f28, 0x290(r1) /* 80101D88 000FECE8 E3 61 02 88 */ psq_l f27, 648(r1), 0, qr0 /* 80101D8C 000FECEC CB 61 02 80 */ lfd f27, 0x280(r1) /* 80101D90 000FECF0 E3 41 02 78 */ psq_l f26, 632(r1), 0, qr0 /* 80101D94 000FECF4 CB 41 02 70 */ lfd f26, 0x270(r1) /* 80101D98 000FECF8 E3 21 02 68 */ psq_l f25, 616(r1), 0, qr0 /* 80101D9C 000FECFC CB 21 02 60 */ lfd f25, 0x260(r1) /* 80101DA0 000FED00 E3 01 02 58 */ psq_l f24, 600(r1), 0, qr0 /* 80101DA4 000FED04 CB 01 02 50 */ lfd f24, 0x250(r1) /* 80101DA8 000FED08 E2 E1 02 48 */ psq_l f23, 584(r1), 0, qr0 /* 80101DAC 000FED0C CA E1 02 40 */ lfd f23, 0x240(r1) /* 80101DB0 000FED10 E2 C1 02 38 */ psq_l f22, 568(r1), 0, qr0 /* 80101DB4 000FED14 CA C1 02 30 */ lfd f22, 0x230(r1) /* 80101DB8 000FED18 E2 A1 02 28 */ psq_l f21, 552(r1), 0, qr0 /* 80101DBC 000FED1C CA A1 02 20 */ lfd f21, 0x220(r1) /* 80101DC0 000FED20 E2 81 02 18 */ psq_l f20, 536(r1), 0, qr0 /* 80101DC4 000FED24 CA 81 02 10 */ lfd f20, 0x210(r1) /* 80101DC8 000FED28 E2 61 02 08 */ psq_l f19, 520(r1), 0, qr0 /* 80101DCC 000FED2C CA 61 02 00 */ lfd f19, 0x200(r1) /* 80101DD0 000FED30 E2 41 01 F8 */ psq_l f18, 504(r1), 0, qr0 /* 80101DD4 000FED34 CA 41 01 F0 */ lfd f18, 0x1f0(r1) /* 80101DD8 000FED38 E2 21 01 E8 */ psq_l f17, 488(r1), 0, qr0 /* 80101DDC 000FED3C CA 21 01 E0 */ lfd f17, 0x1e0(r1) /* 80101DE0 000FED40 E2 01 01 D8 */ psq_l f16, 472(r1), 0, qr0 /* 80101DE4 000FED44 CA 01 01 D0 */ lfd f16, 0x1d0(r1) /* 80101DE8 000FED48 E1 E1 01 C8 */ psq_l f15, 456(r1), 0, qr0 /* 80101DEC 000FED4C C9 E1 01 C0 */ lfd f15, 0x1c0(r1) /* 80101DF0 000FED50 E1 C1 01 B8 */ psq_l f14, 440(r1), 0, qr0 /* 80101DF4 000FED54 C9 C1 01 B0 */ lfd f14, 0x1b0(r1) /* 80101DF8 000FED58 B9 C1 01 68 */ lmw r14, 0x168(r1) /* 80101DFC 000FED5C 80 01 02 D4 */ lwz r0, 0x2d4(r1) /* 80101E00 000FED60 7C 08 03 A6 */ mtlr r0 /* 80101E04 000FED64 38 21 02 D0 */ addi r1, r1, 0x2d0 /* 80101E08 000FED68 4E 80 00 20 */ blr .global sub_80101e0c sub_80101e0c: /* 80101E0C 000FED6C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80101E10 000FED70 7C 08 02 A6 */ mflr r0 /* 80101E14 000FED74 90 01 00 14 */ stw r0, 0x14(r1) /* 80101E18 000FED78 93 E1 00 0C */ stw r31, 0xc(r1) /* 80101E1C 000FED7C 93 C1 00 08 */ stw r30, 8(r1) /* 80101E20 000FED80 7C 7E 1B 78 */ mr r30, r3 /* 80101E24 000FED84 80 03 00 04 */ lwz r0, 4(r3) /* 80101E28 000FED88 83 E4 00 04 */ lwz r31, 4(r4) /* 80101E2C 000FED8C 7C 04 00 40 */ cmplw r4, r0 /* 80101E30 000FED90 40 82 00 08 */ bne lbl_80101E38 /* 80101E34 000FED94 93 FE 00 04 */ stw r31, 4(r30) lbl_80101E38: /* 80101E38 000FED98 80 04 00 04 */ lwz r0, 4(r4) /* 80101E3C 000FED9C 28 04 00 00 */ cmplwi r4, 0 /* 80101E40 000FEDA0 80 64 00 00 */ lwz r3, 0(r4) /* 80101E44 000FEDA4 90 03 00 04 */ stw r0, 4(r3) /* 80101E48 000FEDA8 80 04 00 00 */ lwz r0, 0(r4) /* 80101E4C 000FEDAC 80 64 00 04 */ lwz r3, 4(r4) /* 80101E50 000FEDB0 90 03 00 00 */ stw r0, 0(r3) /* 80101E54 000FEDB4 41 82 00 0C */ beq lbl_80101E60 /* 80101E58 000FEDB8 7C 83 23 78 */ mr r3, r4 /* 80101E5C 000FEDBC 48 21 3A D5 */ bl Free__7CMemoryFPCv lbl_80101E60: /* 80101E60 000FEDC0 80 9E 00 14 */ lwz r4, 0x14(r30) /* 80101E64 000FEDC4 7F E3 FB 78 */ mr r3, r31 /* 80101E68 000FEDC8 38 04 FF FF */ addi r0, r4, -1 /* 80101E6C 000FEDCC 90 1E 00 14 */ stw r0, 0x14(r30) /* 80101E70 000FEDD0 83 E1 00 0C */ lwz r31, 0xc(r1) /* 80101E74 000FEDD4 83 C1 00 08 */ lwz r30, 8(r1) /* 80101E78 000FEDD8 80 01 00 14 */ lwz r0, 0x14(r1) /* 80101E7C 000FEDDC 7C 08 03 A6 */ mtlr r0 /* 80101E80 000FEDE0 38 21 00 10 */ addi r1, r1, 0x10 /* 80101E84 000FEDE4 4E 80 00 20 */ blr .global sub_80101e88 sub_80101e88: /* 80101E88 000FEDE8 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80101E8C 000FEDEC 7C 08 02 A6 */ mflr r0 /* 80101E90 000FEDF0 90 01 00 24 */ stw r0, 0x24(r1) /* 80101E94 000FEDF4 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80101E98 000FEDF8 93 C1 00 18 */ stw r30, 0x18(r1) /* 80101E9C 000FEDFC 7C 9E 23 78 */ mr r30, r4 /* 80101EA0 000FEE00 93 A1 00 14 */ stw r29, 0x14(r1) /* 80101EA4 000FEE04 7C 7D 1B 79 */ or. r29, r3, r3 /* 80101EA8 000FEE08 41 82 00 38 */ beq lbl_80101EE0 /* 80101EAC 000FEE0C 83 FD 00 04 */ lwz r31, 4(r29) /* 80101EB0 000FEE10 48 00 00 14 */ b lbl_80101EC4 lbl_80101EB4: /* 80101EB4 000FEE14 7F E3 FB 79 */ or. r3, r31, r31 /* 80101EB8 000FEE18 83 FF 00 04 */ lwz r31, 4(r31) /* 80101EBC 000FEE1C 41 82 00 08 */ beq lbl_80101EC4 /* 80101EC0 000FEE20 48 21 3A 71 */ bl Free__7CMemoryFPCv lbl_80101EC4: /* 80101EC4 000FEE24 80 1D 00 08 */ lwz r0, 8(r29) /* 80101EC8 000FEE28 7C 1F 00 40 */ cmplw r31, r0 /* 80101ECC 000FEE2C 40 82 FF E8 */ bne lbl_80101EB4 /* 80101ED0 000FEE30 7F C0 07 35 */ extsh. r0, r30 /* 80101ED4 000FEE34 40 81 00 0C */ ble lbl_80101EE0 /* 80101ED8 000FEE38 7F A3 EB 78 */ mr r3, r29 /* 80101EDC 000FEE3C 48 21 3A 55 */ bl Free__7CMemoryFPCv lbl_80101EE0: /* 80101EE0 000FEE40 80 01 00 24 */ lwz r0, 0x24(r1) /* 80101EE4 000FEE44 7F A3 EB 78 */ mr r3, r29 /* 80101EE8 000FEE48 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 80101EEC 000FEE4C 83 C1 00 18 */ lwz r30, 0x18(r1) /* 80101EF0 000FEE50 83 A1 00 14 */ lwz r29, 0x14(r1) /* 80101EF4 000FEE54 7C 08 03 A6 */ mtlr r0 /* 80101EF8 000FEE58 38 21 00 20 */ addi r1, r1, 0x20 /* 80101EFC 000FEE5C 4E 80 00 20 */ blr .section .rodata .global lbl_803CEE20 lbl_803CEE20: # ROM: 0x3CBE20 .float 1.0 .4byte 0x40400000 .4byte 0x3F35C28F .4byte 0x3F9851EC .4byte 0x3F35C28F .float 1.0 .global lbl_803CEE38 lbl_803CEE38: # ROM: 0x3CBE38 .asciz "??(??)" .balign 4