donut-decomp/asm/libnw4r_g3d/g3d_anmscn.s

1630 lines
82 KiB
ArmAsm
Raw Normal View History

2022-07-21 14:39:58 +00:00
.include "macros.inc"
.section .text1, "ax" # 0x80006A00 - 0x80406260
.global MakeDiffuseLightObj__Q34nw4r3g3d24$$2unnamed$$2g3d_anmscn_cpp$$2FPQ34nw4r3g3d8LightObjPCQ34nw4r3g3d14LightAnmResult
MakeDiffuseLightObj__Q34nw4r3g3d24$$2unnamed$$2g3d_anmscn_cpp$$2FPQ34nw4r3g3d8LightObjPCQ34nw4r3g3d14LightAnmResult:
/* 800DA7F0 000D6630 94 21 FF B0 */ stwu r1, -0x50(r1)
/* 800DA7F4 000D6634 7C 08 02 A6 */ mflr r0
/* 800DA7F8 000D6638 90 01 00 54 */ stw r0, 0x54(r1)
/* 800DA7FC 000D663C 80 04 00 04 */ lwz r0, 4(r4)
/* 800DA800 000D6640 93 E1 00 4C */ stw r31, 0x4c(r1)
/* 800DA804 000D6644 7C 7F 1B 78 */ mr r31, r3
/* 800DA808 000D6648 93 C1 00 48 */ stw r30, 0x48(r1)
/* 800DA80C 000D664C 54 1E 07 BE */ clrlwi r30, r0, 0x1e
/* 800DA810 000D6650 93 A1 00 44 */ stw r29, 0x44(r1)
/* 800DA814 000D6654 7C 9D 23 78 */ mr r29, r4
/* 800DA818 000D6658 48 01 71 39 */ bl Clear__Q34nw4r3g3d8LightObjFv
/* 800DA81C 000D665C 2C 1E 00 00 */ cmpwi r30, 0
/* 800DA820 000D6660 41 82 00 18 */ beq lbl_800DA838
/* 800DA824 000D6664 2C 1E 00 01 */ cmpwi r30, 1
/* 800DA828 000D6668 41 82 00 74 */ beq lbl_800DA89C
/* 800DA82C 000D666C 2C 1E 00 02 */ cmpwi r30, 2
/* 800DA830 000D6670 41 82 01 14 */ beq lbl_800DA944
/* 800DA834 000D6674 48 00 01 9C */ b lbl_800DA9D0
lbl_800DA838:
/* 800DA838 000D6678 80 1D 00 20 */ lwz r0, 0x20(r29)
/* 800DA83C 000D667C 38 81 00 10 */ addi r4, r1, 0x10
/* 800DA840 000D6680 90 01 00 10 */ stw r0, 0x10(r1)
/* 800DA844 000D6684 7F E3 FB 78 */ mr r3, r31
/* 800DA848 000D6688 48 01 71 29 */ bl InitLightColor__Q34nw4r3g3d8LightObjF8_GXColor
/* 800DA84C 000D668C C0 3D 00 08 */ lfs f1, 8(r29)
/* 800DA850 000D6690 7F E3 FB 78 */ mr r3, r31
/* 800DA854 000D6694 C0 5D 00 0C */ lfs f2, 0xc(r29)
/* 800DA858 000D6698 C0 7D 00 10 */ lfs f3, 0x10(r29)
/* 800DA85C 000D669C 48 01 71 45 */ bl InitLightPos__Q34nw4r3g3d8LightObjFfff
/* 800DA860 000D66A0 C0 22 90 08 */ lfs f1, $$213876-_SDA2_BASE_(r2)
/* 800DA864 000D66A4 7F E3 FB 78 */ mr r3, r31
/* 800DA868 000D66A8 38 80 00 00 */ li r4, 0
/* 800DA86C 000D66AC 48 01 71 B5 */ bl InitLightSpot__Q34nw4r3g3d8LightObjFf9_GXSpotFn
/* 800DA870 000D66B0 C0 3D 00 28 */ lfs f1, 0x28(r29)
/* 800DA874 000D66B4 7F E3 FB 78 */ mr r3, r31
/* 800DA878 000D66B8 C0 5D 00 2C */ lfs f2, 0x2c(r29)
/* 800DA87C 000D66BC 80 9D 00 24 */ lwz r4, 0x24(r29)
/* 800DA880 000D66C0 48 01 72 21 */ bl InitLightDistAttn__Q34nw4r3g3d8LightObjFff13_GXDistAttnFn
/* 800DA884 000D66C4 C0 22 90 08 */ lfs f1, $$213876-_SDA2_BASE_(r2)
/* 800DA888 000D66C8 7F E3 FB 78 */ mr r3, r31
/* 800DA88C 000D66CC FC 40 08 90 */ fmr f2, f1
/* 800DA890 000D66D0 FC 60 08 90 */ fmr f3, f1
/* 800DA894 000D66D4 48 01 71 4D */ bl InitLightDir__Q34nw4r3g3d8LightObjFfff
/* 800DA898 000D66D8 48 00 01 38 */ b lbl_800DA9D0
lbl_800DA89C:
/* 800DA89C 000D66DC E0 1D 00 14 */ psq_l f0, 20(r29), 0, qr0
/* 800DA8A0 000D66E0 38 A1 00 2C */ addi r5, r1, 0x2c
/* 800DA8A4 000D66E4 E0 3D 00 08 */ psq_l f1, 8(r29), 0, qr0
/* 800DA8A8 000D66E8 38 C1 00 20 */ addi r6, r1, 0x20
/* 800DA8AC 000D66EC 80 1D 00 20 */ lwz r0, 0x20(r29)
/* 800DA8B0 000D66F0 38 81 00 0C */ addi r4, r1, 0xc
/* 800DA8B4 000D66F4 10 40 08 28 */ ps_sub f2, f0, f1
/* 800DA8B8 000D66F8 E0 1D 80 1C */ psq_l f0, 28(r29), 1, qr0
/* 800DA8BC 000D66FC E0 3D 80 10 */ psq_l f1, 16(r29), 1, qr0
/* 800DA8C0 000D6700 7F E3 FB 78 */ mr r3, r31
/* 800DA8C4 000D6704 F0 45 00 00 */ psq_st f2, 0(r5), 0, qr0
/* 800DA8C8 000D6708 10 40 08 28 */ ps_sub f2, f0, f1
/* 800DA8CC 000D670C C0 02 90 0C */ lfs f0, $$213877-_SDA2_BASE_(r2)
/* 800DA8D0 000D6710 E0 25 00 00 */ psq_l f1, 0(r5), 0, qr0
/* 800DA8D4 000D6714 F0 45 80 08 */ psq_st f2, 8(r5), 1, qr0
/* 800DA8D8 000D6718 10 21 00 18 */ ps_muls0 f1, f1, f0
/* 800DA8DC 000D671C 90 01 00 0C */ stw r0, 0xc(r1)
/* 800DA8E0 000D6720 F0 26 00 00 */ psq_st f1, 0(r6), 0, qr0
/* 800DA8E4 000D6724 10 22 00 18 */ ps_muls0 f1, f2, f0
/* 800DA8E8 000D6728 F0 26 80 08 */ psq_st f1, 8(r6), 1, qr0
/* 800DA8EC 000D672C 48 01 70 85 */ bl InitLightColor__Q34nw4r3g3d8LightObjF8_GXColor
/* 800DA8F0 000D6730 C0 21 00 20 */ lfs f1, 0x20(r1)
/* 800DA8F4 000D6734 7F E3 FB 78 */ mr r3, r31
/* 800DA8F8 000D6738 C0 41 00 24 */ lfs f2, 0x24(r1)
/* 800DA8FC 000D673C C0 61 00 28 */ lfs f3, 0x28(r1)
/* 800DA900 000D6740 48 01 70 A1 */ bl InitLightPos__Q34nw4r3g3d8LightObjFfff
/* 800DA904 000D6744 C0 42 90 08 */ lfs f2, $$213876-_SDA2_BASE_(r2)
/* 800DA908 000D6748 7F E3 FB 78 */ mr r3, r31
/* 800DA90C 000D674C C0 22 90 10 */ lfs f1, $$213878-_SDA2_BASE_(r2)
/* 800DA910 000D6750 FC 60 10 90 */ fmr f3, f2
/* 800DA914 000D6754 48 01 71 4D */ bl InitLightAttnA__Q34nw4r3g3d8LightObjFfff
/* 800DA918 000D6758 C0 42 90 08 */ lfs f2, $$213876-_SDA2_BASE_(r2)
/* 800DA91C 000D675C 7F E3 FB 78 */ mr r3, r31
/* 800DA920 000D6760 C0 22 90 10 */ lfs f1, $$213878-_SDA2_BASE_(r2)
/* 800DA924 000D6764 FC 60 10 90 */ fmr f3, f2
/* 800DA928 000D6768 48 01 71 B9 */ bl InitLightAttnK__Q34nw4r3g3d8LightObjFfff
/* 800DA92C 000D676C C0 22 90 08 */ lfs f1, $$213876-_SDA2_BASE_(r2)
/* 800DA930 000D6770 7F E3 FB 78 */ mr r3, r31
/* 800DA934 000D6774 FC 40 08 90 */ fmr f2, f1
/* 800DA938 000D6778 FC 60 08 90 */ fmr f3, f1
/* 800DA93C 000D677C 48 01 70 A5 */ bl InitLightDir__Q34nw4r3g3d8LightObjFfff
/* 800DA940 000D6780 48 00 00 90 */ b lbl_800DA9D0
lbl_800DA944:
/* 800DA944 000D6784 E0 1D 00 14 */ psq_l f0, 20(r29), 0, qr0
/* 800DA948 000D6788 38 61 00 14 */ addi r3, r1, 0x14
/* 800DA94C 000D678C E0 3D 00 08 */ psq_l f1, 8(r29), 0, qr0
/* 800DA950 000D6790 7C 64 1B 78 */ mr r4, r3
/* 800DA954 000D6794 10 40 08 28 */ ps_sub f2, f0, f1
/* 800DA958 000D6798 E0 1D 80 1C */ psq_l f0, 28(r29), 1, qr0
/* 800DA95C 000D679C E0 3D 80 10 */ psq_l f1, 16(r29), 1, qr0
/* 800DA960 000D67A0 F0 43 00 00 */ psq_st f2, 0(r3), 0, qr0
/* 800DA964 000D67A4 10 40 08 28 */ ps_sub f2, f0, f1
/* 800DA968 000D67A8 F0 43 80 08 */ psq_st f2, 8(r3), 1, qr0
/* 800DA96C 000D67AC 4B F5 6C 35 */ bl PSVECNormalize
/* 800DA970 000D67B0 80 1D 00 20 */ lwz r0, 0x20(r29)
/* 800DA974 000D67B4 38 81 00 08 */ addi r4, r1, 8
/* 800DA978 000D67B8 90 01 00 08 */ stw r0, 8(r1)
/* 800DA97C 000D67BC 7F E3 FB 78 */ mr r3, r31
/* 800DA980 000D67C0 48 01 6F F1 */ bl InitLightColor__Q34nw4r3g3d8LightObjF8_GXColor
/* 800DA984 000D67C4 C0 3D 00 08 */ lfs f1, 8(r29)
/* 800DA988 000D67C8 7F E3 FB 78 */ mr r3, r31
/* 800DA98C 000D67CC C0 5D 00 0C */ lfs f2, 0xc(r29)
/* 800DA990 000D67D0 C0 7D 00 10 */ lfs f3, 0x10(r29)
/* 800DA994 000D67D4 48 01 70 0D */ bl InitLightPos__Q34nw4r3g3d8LightObjFfff
/* 800DA998 000D67D8 C0 3D 00 34 */ lfs f1, 0x34(r29)
/* 800DA99C 000D67DC 7F E3 FB 78 */ mr r3, r31
/* 800DA9A0 000D67E0 80 9D 00 30 */ lwz r4, 0x30(r29)
/* 800DA9A4 000D67E4 48 01 70 7D */ bl InitLightSpot__Q34nw4r3g3d8LightObjFf9_GXSpotFn
/* 800DA9A8 000D67E8 C0 3D 00 28 */ lfs f1, 0x28(r29)
/* 800DA9AC 000D67EC 7F E3 FB 78 */ mr r3, r31
/* 800DA9B0 000D67F0 C0 5D 00 2C */ lfs f2, 0x2c(r29)
/* 800DA9B4 000D67F4 80 9D 00 24 */ lwz r4, 0x24(r29)
/* 800DA9B8 000D67F8 48 01 70 E9 */ bl InitLightDistAttn__Q34nw4r3g3d8LightObjFff13_GXDistAttnFn
/* 800DA9BC 000D67FC C0 21 00 14 */ lfs f1, 0x14(r1)
/* 800DA9C0 000D6800 7F E3 FB 78 */ mr r3, r31
/* 800DA9C4 000D6804 C0 41 00 18 */ lfs f2, 0x18(r1)
/* 800DA9C8 000D6808 C0 61 00 1C */ lfs f3, 0x1c(r1)
/* 800DA9CC 000D680C 48 01 70 15 */ bl InitLightDir__Q34nw4r3g3d8LightObjFfff
lbl_800DA9D0:
/* 800DA9D0 000D6810 80 1D 00 04 */ lwz r0, 4(r29)
/* 800DA9D4 000D6814 54 00 06 F7 */ rlwinm. r0, r0, 0, 0x1b, 0x1b
/* 800DA9D8 000D6818 40 82 00 10 */ bne lbl_800DA9E8
/* 800DA9DC 000D681C 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DA9E0 000D6820 60 00 00 10 */ ori r0, r0, 0x10
/* 800DA9E4 000D6824 90 1F 00 00 */ stw r0, 0(r31)
lbl_800DA9E8:
/* 800DA9E8 000D6828 80 1D 00 04 */ lwz r0, 4(r29)
/* 800DA9EC 000D682C 54 00 06 B5 */ rlwinm. r0, r0, 0, 0x1a, 0x1a
/* 800DA9F0 000D6830 40 82 00 10 */ bne lbl_800DAA00
/* 800DA9F4 000D6834 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DA9F8 000D6838 60 00 00 20 */ ori r0, r0, 0x20
/* 800DA9FC 000D683C 90 1F 00 00 */ stw r0, 0(r31)
lbl_800DAA00:
/* 800DAA00 000D6840 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DAA04 000D6844 60 00 00 04 */ ori r0, r0, 4
/* 800DAA08 000D6848 90 1F 00 00 */ stw r0, 0(r31)
/* 800DAA0C 000D684C 83 E1 00 4C */ lwz r31, 0x4c(r1)
/* 800DAA10 000D6850 83 C1 00 48 */ lwz r30, 0x48(r1)
/* 800DAA14 000D6854 83 A1 00 44 */ lwz r29, 0x44(r1)
/* 800DAA18 000D6858 80 01 00 54 */ lwz r0, 0x54(r1)
/* 800DAA1C 000D685C 7C 08 03 A6 */ mtlr r0
/* 800DAA20 000D6860 38 21 00 50 */ addi r1, r1, 0x50
/* 800DAA24 000D6864 4E 80 00 20 */ blr
/* 800DAA28 000D6868 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAA2C 000D686C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetLightSetting__Q34nw4r3g3d6AnmScnFPQ34nw4r3g3d12LightSetting
GetLightSetting__Q34nw4r3g3d6AnmScnFPQ34nw4r3g3d12LightSetting:
/* 800DAA30 000D6870 94 21 FF B0 */ stwu r1, -0x50(r1)
/* 800DAA34 000D6874 7C 08 02 A6 */ mflr r0
/* 800DAA38 000D6878 90 01 00 54 */ stw r0, 0x54(r1)
/* 800DAA3C 000D687C 39 61 00 50 */ addi r11, r1, 0x50
/* 800DAA40 000D6880 4B F2 C8 F5 */ bl func_80007334
/* 800DAA44 000D6884 81 83 00 00 */ lwz r12, 0(r3)
/* 800DAA48 000D6888 7C 7C 1B 78 */ mr r28, r3
/* 800DAA4C 000D688C 7C 9D 23 78 */ mr r29, r4
/* 800DAA50 000D6890 81 8C 00 50 */ lwz r12, 0x50(r12)
/* 800DAA54 000D6894 7D 89 03 A6 */ mtctr r12
/* 800DAA58 000D6898 4E 80 04 21 */ bctrl
/* 800DAA5C 000D689C 90 61 00 24 */ stw r3, 0x24(r1)
/* 800DAA60 000D68A0 7F 83 E3 78 */ mr r3, r28
/* 800DAA64 000D68A4 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DAA68 000D68A8 81 8C 00 54 */ lwz r12, 0x54(r12)
/* 800DAA6C 000D68AC 7D 89 03 A6 */ mtctr r12
/* 800DAA70 000D68B0 4E 80 04 21 */ bctrl
/* 800DAA74 000D68B4 90 61 00 20 */ stw r3, 0x20(r1)
/* 800DAA78 000D68B8 7F 83 E3 78 */ mr r3, r28
/* 800DAA7C 000D68BC 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DAA80 000D68C0 81 8C 00 58 */ lwz r12, 0x58(r12)
/* 800DAA84 000D68C4 7D 89 03 A6 */ mtctr r12
/* 800DAA88 000D68C8 4E 80 04 21 */ bctrl
/* 800DAA8C 000D68CC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DAA90 000D68D0 90 61 00 1C */ stw r3, 0x1c(r1)
/* 800DAA94 000D68D4 2C 00 00 00 */ cmpwi r0, 0
/* 800DAA98 000D68D8 41 82 00 84 */ beq lbl_800DAB1C
/* 800DAA9C 000D68DC A0 9D 00 02 */ lhz r4, 2(r29)
/* 800DAAA0 000D68E0 38 61 00 24 */ addi r3, r1, 0x24
/* 800DAAA4 000D68E4 90 81 00 18 */ stw r4, 0x18(r1)
/* 800DAAA8 000D68E8 7C 04 00 40 */ cmplw r4, r0
/* 800DAAAC 000D68EC 40 80 00 08 */ bge lbl_800DAAB4
/* 800DAAB0 000D68F0 38 61 00 18 */ addi r3, r1, 0x18
lbl_800DAAB4:
/* 800DAAB4 000D68F4 83 63 00 00 */ lwz r27, 0(r3)
/* 800DAAB8 000D68F8 3B E0 00 00 */ li r31, 0
/* 800DAABC 000D68FC 3B C0 00 00 */ li r30, 0
/* 800DAAC0 000D6900 48 00 00 54 */ b lbl_800DAB14
lbl_800DAAC4:
/* 800DAAC4 000D6904 A0 1D 00 02 */ lhz r0, 2(r29)
/* 800DAAC8 000D6908 7C 1F 00 00 */ cmpw r31, r0
/* 800DAACC 000D690C 40 80 00 18 */ bge lbl_800DAAE4
/* 800DAAD0 000D6910 2C 1F 00 00 */ cmpwi r31, 0
/* 800DAAD4 000D6914 41 80 00 10 */ blt lbl_800DAAE4
/* 800DAAD8 000D6918 80 1D 00 0C */ lwz r0, 0xc(r29)
/* 800DAADC 000D691C 7C 00 F2 14 */ add r0, r0, r30
/* 800DAAE0 000D6920 48 00 00 08 */ b lbl_800DAAE8
lbl_800DAAE4:
/* 800DAAE4 000D6924 38 00 00 00 */ li r0, 0
lbl_800DAAE8:
/* 800DAAE8 000D6928 93 A1 00 28 */ stw r29, 0x28(r1)
/* 800DAAEC 000D692C 7F 83 E3 78 */ mr r3, r28
/* 800DAAF0 000D6930 7F E5 FB 78 */ mr r5, r31
/* 800DAAF4 000D6934 38 81 00 28 */ addi r4, r1, 0x28
/* 800DAAF8 000D6938 90 01 00 2C */ stw r0, 0x2c(r1)
/* 800DAAFC 000D693C 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DAB00 000D6940 81 8C 00 64 */ lwz r12, 0x64(r12)
/* 800DAB04 000D6944 7D 89 03 A6 */ mtctr r12
/* 800DAB08 000D6948 4E 80 04 21 */ bctrl
/* 800DAB0C 000D694C 3B FF 00 01 */ addi r31, r31, 1
/* 800DAB10 000D6950 3B DE 00 0C */ addi r30, r30, 0xc
lbl_800DAB14:
/* 800DAB14 000D6954 7C 1F D8 40 */ cmplw r31, r27
/* 800DAB18 000D6958 41 80 FF AC */ blt lbl_800DAAC4
lbl_800DAB1C:
/* 800DAB1C 000D695C 80 01 00 20 */ lwz r0, 0x20(r1)
/* 800DAB20 000D6960 2C 00 00 00 */ cmpwi r0, 0
/* 800DAB24 000D6964 41 82 00 60 */ beq lbl_800DAB84
/* 800DAB28 000D6968 A0 9D 00 00 */ lhz r4, 0(r29)
/* 800DAB2C 000D696C 38 61 00 20 */ addi r3, r1, 0x20
/* 800DAB30 000D6970 83 7D 00 08 */ lwz r27, 8(r29)
/* 800DAB34 000D6974 7C 04 00 40 */ cmplw r4, r0
/* 800DAB38 000D6978 90 81 00 14 */ stw r4, 0x14(r1)
/* 800DAB3C 000D697C 40 80 00 08 */ bge lbl_800DAB44
/* 800DAB40 000D6980 38 61 00 14 */ addi r3, r1, 0x14
lbl_800DAB44:
/* 800DAB44 000D6984 83 C3 00 00 */ lwz r30, 0(r3)
/* 800DAB48 000D6988 3B E0 00 00 */ li r31, 0
/* 800DAB4C 000D698C 48 00 00 30 */ b lbl_800DAB7C
lbl_800DAB50:
/* 800DAB50 000D6990 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DAB54 000D6994 7F 84 E3 78 */ mr r4, r28
/* 800DAB58 000D6998 7F E5 FB 78 */ mr r5, r31
/* 800DAB5C 000D699C 38 61 00 08 */ addi r3, r1, 8
/* 800DAB60 000D69A0 81 8C 00 68 */ lwz r12, 0x68(r12)
/* 800DAB64 000D69A4 7D 89 03 A6 */ mtctr r12
/* 800DAB68 000D69A8 4E 80 04 21 */ bctrl
/* 800DAB6C 000D69AC 80 01 00 08 */ lwz r0, 8(r1)
/* 800DAB70 000D69B0 3B FF 00 01 */ addi r31, r31, 1
/* 800DAB74 000D69B4 90 1B 00 00 */ stw r0, 0(r27)
/* 800DAB78 000D69B8 3B 7B 00 04 */ addi r27, r27, 4
lbl_800DAB7C:
/* 800DAB7C 000D69BC 7C 1F F0 40 */ cmplw r31, r30
/* 800DAB80 000D69C0 41 80 FF D0 */ blt lbl_800DAB50
lbl_800DAB84:
/* 800DAB84 000D69C4 83 61 00 1C */ lwz r27, 0x1c(r1)
/* 800DAB88 000D69C8 2C 1B 00 00 */ cmpwi r27, 0
/* 800DAB8C 000D69CC 41 82 01 B4 */ beq lbl_800DAD40
/* 800DAB90 000D69D0 83 FD 00 04 */ lwz r31, 4(r29)
/* 800DAB94 000D69D4 7F 83 E3 78 */ mr r3, r28
/* 800DAB98 000D69D8 A3 BD 00 00 */ lhz r29, 0(r29)
/* 800DAB9C 000D69DC 93 A1 00 10 */ stw r29, 0x10(r1)
/* 800DABA0 000D69E0 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DABA4 000D69E4 81 8C 00 44 */ lwz r12, 0x44(r12)
/* 800DABA8 000D69E8 7D 89 03 A6 */ mtctr r12
/* 800DABAC 000D69EC 4E 80 04 21 */ bctrl
/* 800DABB0 000D69F0 80 81 00 1C */ lwz r4, 0x1c(r1)
/* 800DABB4 000D69F4 7C 1B 1A 14 */ add r0, r27, r3
/* 800DABB8 000D69F8 90 01 00 0C */ stw r0, 0xc(r1)
/* 800DABBC 000D69FC 38 61 00 1C */ addi r3, r1, 0x1c
/* 800DABC0 000D6A00 7C 1D 20 40 */ cmplw r29, r4
/* 800DABC4 000D6A04 40 80 00 08 */ bge lbl_800DABCC
/* 800DABC8 000D6A08 38 61 00 10 */ addi r3, r1, 0x10
lbl_800DABCC:
/* 800DABCC 000D6A0C 7C 1D 00 40 */ cmplw r29, r0
/* 800DABD0 000D6A10 83 C3 00 00 */ lwz r30, 0(r3)
/* 800DABD4 000D6A14 38 61 00 0C */ addi r3, r1, 0xc
/* 800DABD8 000D6A18 40 80 00 08 */ bge lbl_800DABE0
/* 800DABDC 000D6A1C 38 61 00 10 */ addi r3, r1, 0x10
lbl_800DABE0:
/* 800DABE0 000D6A20 2C 1E 00 00 */ cmpwi r30, 0
/* 800DABE4 000D6A24 83 A3 00 00 */ lwz r29, 0(r3)
/* 800DABE8 000D6A28 38 A0 00 00 */ li r5, 0
/* 800DABEC 000D6A2C 41 82 00 C0 */ beq lbl_800DACAC
/* 800DABF0 000D6A30 28 1E 00 08 */ cmplwi r30, 8
/* 800DABF4 000D6A34 38 7E FF F8 */ addi r3, r30, -8
/* 800DABF8 000D6A38 40 81 00 88 */ ble lbl_800DAC80
/* 800DABFC 000D6A3C 38 03 00 07 */ addi r0, r3, 7
/* 800DAC00 000D6A40 7F E4 FB 78 */ mr r4, r31
/* 800DAC04 000D6A44 54 00 E8 FE */ srwi r0, r0, 3
/* 800DAC08 000D6A48 7C 09 03 A6 */ mtctr r0
/* 800DAC0C 000D6A4C 28 03 00 00 */ cmplwi r3, 0
/* 800DAC10 000D6A50 40 81 00 70 */ ble lbl_800DAC80
lbl_800DAC14:
/* 800DAC14 000D6A54 80 04 00 00 */ lwz r0, 0(r4)
/* 800DAC18 000D6A58 38 A5 00 08 */ addi r5, r5, 8
/* 800DAC1C 000D6A5C 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC20 000D6A60 90 04 00 00 */ stw r0, 0(r4)
/* 800DAC24 000D6A64 80 04 00 44 */ lwz r0, 0x44(r4)
/* 800DAC28 000D6A68 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC2C 000D6A6C 90 04 00 44 */ stw r0, 0x44(r4)
/* 800DAC30 000D6A70 80 04 00 88 */ lwz r0, 0x88(r4)
/* 800DAC34 000D6A74 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC38 000D6A78 90 04 00 88 */ stw r0, 0x88(r4)
/* 800DAC3C 000D6A7C 80 04 00 CC */ lwz r0, 0xcc(r4)
/* 800DAC40 000D6A80 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC44 000D6A84 90 04 00 CC */ stw r0, 0xcc(r4)
/* 800DAC48 000D6A88 80 04 01 10 */ lwz r0, 0x110(r4)
/* 800DAC4C 000D6A8C 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC50 000D6A90 90 04 01 10 */ stw r0, 0x110(r4)
/* 800DAC54 000D6A94 80 04 01 54 */ lwz r0, 0x154(r4)
/* 800DAC58 000D6A98 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC5C 000D6A9C 90 04 01 54 */ stw r0, 0x154(r4)
/* 800DAC60 000D6AA0 80 04 01 98 */ lwz r0, 0x198(r4)
/* 800DAC64 000D6AA4 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC68 000D6AA8 90 04 01 98 */ stw r0, 0x198(r4)
/* 800DAC6C 000D6AAC 80 04 01 DC */ lwz r0, 0x1dc(r4)
/* 800DAC70 000D6AB0 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DAC74 000D6AB4 90 04 01 DC */ stw r0, 0x1dc(r4)
/* 800DAC78 000D6AB8 38 84 02 20 */ addi r4, r4, 0x220
/* 800DAC7C 000D6ABC 42 00 FF 98 */ bdnz lbl_800DAC14
lbl_800DAC80:
/* 800DAC80 000D6AC0 1C 65 00 44 */ mulli r3, r5, 0x44
/* 800DAC84 000D6AC4 7C 05 F0 50 */ subf r0, r5, r30
/* 800DAC88 000D6AC8 7C 7F 1A 14 */ add r3, r31, r3
/* 800DAC8C 000D6ACC 7C 09 03 A6 */ mtctr r0
/* 800DAC90 000D6AD0 7C 05 F0 40 */ cmplw r5, r30
/* 800DAC94 000D6AD4 40 80 00 18 */ bge lbl_800DACAC
lbl_800DAC98:
/* 800DAC98 000D6AD8 80 03 00 00 */ lwz r0, 0(r3)
/* 800DAC9C 000D6ADC 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DACA0 000D6AE0 90 03 00 00 */ stw r0, 0(r3)
/* 800DACA4 000D6AE4 38 63 00 44 */ addi r3, r3, 0x44
/* 800DACA8 000D6AE8 42 00 FF F0 */ bdnz lbl_800DAC98
lbl_800DACAC:
/* 800DACAC 000D6AEC 7F FB FB 78 */ mr r27, r31
/* 800DACB0 000D6AF0 3B 40 00 00 */ li r26, 0
/* 800DACB4 000D6AF4 48 00 00 84 */ b lbl_800DAD38
lbl_800DACB8:
/* 800DACB8 000D6AF8 80 1B 00 00 */ lwz r0, 0(r27)
/* 800DACBC 000D6AFC 3B 20 00 00 */ li r25, 0
/* 800DACC0 000D6B00 54 00 07 7B */ rlwinm. r0, r0, 0, 0x1d, 0x1d
/* 800DACC4 000D6B04 40 82 00 6C */ bne lbl_800DAD30
/* 800DACC8 000D6B08 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DACCC 000D6B0C 7F 83 E3 78 */ mr r3, r28
/* 800DACD0 000D6B10 7F 44 D3 78 */ mr r4, r26
/* 800DACD4 000D6B14 81 8C 00 7C */ lwz r12, 0x7c(r12)
/* 800DACD8 000D6B18 7D 89 03 A6 */ mtctr r12
/* 800DACDC 000D6B1C 4E 80 04 21 */ bctrl
/* 800DACE0 000D6B20 2C 03 00 00 */ cmpwi r3, 0
/* 800DACE4 000D6B24 41 82 00 2C */ beq lbl_800DAD10
/* 800DACE8 000D6B28 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DACEC 000D6B2C 7F 83 E3 78 */ mr r3, r28
/* 800DACF0 000D6B30 7F 44 D3 78 */ mr r4, r26
/* 800DACF4 000D6B34 81 8C 00 78 */ lwz r12, 0x78(r12)
/* 800DACF8 000D6B38 7D 89 03 A6 */ mtctr r12
/* 800DACFC 000D6B3C 4E 80 04 21 */ bctrl
/* 800DAD00 000D6B40 7C 03 E8 40 */ cmplw r3, r29
/* 800DAD04 000D6B44 40 80 00 0C */ bge lbl_800DAD10
/* 800DAD08 000D6B48 1C 03 00 44 */ mulli r0, r3, 0x44
/* 800DAD0C 000D6B4C 7F 3F 02 14 */ add r25, r31, r0
lbl_800DAD10:
/* 800DAD10 000D6B50 81 9C 00 00 */ lwz r12, 0(r28)
/* 800DAD14 000D6B54 7F 83 E3 78 */ mr r3, r28
/* 800DAD18 000D6B58 7F 64 DB 78 */ mr r4, r27
/* 800DAD1C 000D6B5C 7F 25 CB 78 */ mr r5, r25
/* 800DAD20 000D6B60 81 8C 00 6C */ lwz r12, 0x6c(r12)
/* 800DAD24 000D6B64 7F 46 D3 78 */ mr r6, r26
/* 800DAD28 000D6B68 7D 89 03 A6 */ mtctr r12
/* 800DAD2C 000D6B6C 4E 80 04 21 */ bctrl
lbl_800DAD30:
/* 800DAD30 000D6B70 3B 7B 00 44 */ addi r27, r27, 0x44
/* 800DAD34 000D6B74 3B 5A 00 01 */ addi r26, r26, 1
lbl_800DAD38:
/* 800DAD38 000D6B78 7C 1A F0 40 */ cmplw r26, r30
/* 800DAD3C 000D6B7C 41 80 FF 7C */ blt lbl_800DACB8
lbl_800DAD40:
/* 800DAD40 000D6B80 39 61 00 50 */ addi r11, r1, 0x50
/* 800DAD44 000D6B84 4B F2 C6 3D */ bl func_80007380
/* 800DAD48 000D6B88 80 01 00 54 */ lwz r0, 0x54(r1)
/* 800DAD4C 000D6B8C 7C 08 03 A6 */ mtlr r0
/* 800DAD50 000D6B90 38 21 00 50 */ addi r1, r1, 0x50
/* 800DAD54 000D6B94 4E 80 00 20 */ blr
/* 800DAD58 000D6B98 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAD5C 000D6B9C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global Attach__Q34nw4r3g3d6AnmScnFiPQ34nw4r3g3d9AnmScnRes
Attach__Q34nw4r3g3d6AnmScnFiPQ34nw4r3g3d9AnmScnRes:
/* 800DAD60 000D6BA0 4B F7 90 90 */ b __wpadNoAlloc
/* 800DAD64 000D6BA4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAD68 000D6BA8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAD6C 000D6BAC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global Detach__Q34nw4r3g3d6AnmScnFi
Detach__Q34nw4r3g3d6AnmScnFi:
/* 800DAD70 000D6BB0 4B F7 90 80 */ b __wpadNoAlloc
/* 800DAD74 000D6BB4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAD78 000D6BB8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAD7C 000D6BBC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global __dt__Q34nw4r3g3d6AnmScnFv
__dt__Q34nw4r3g3d6AnmScnFv:
/* 800DAD80 000D6BC0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800DAD84 000D6BC4 7C 08 02 A6 */ mflr r0
/* 800DAD88 000D6BC8 2C 03 00 00 */ cmpwi r3, 0
/* 800DAD8C 000D6BCC 90 01 00 14 */ stw r0, 0x14(r1)
/* 800DAD90 000D6BD0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800DAD94 000D6BD4 7C 7F 1B 78 */ mr r31, r3
/* 800DAD98 000D6BD8 41 82 00 0C */ beq lbl_800DADA4
/* 800DAD9C 000D6BDC 38 80 00 00 */ li r4, 0
/* 800DADA0 000D6BE0 48 00 0F 71 */ bl __dt__Q34nw4r3g3d6G3dObjFv
lbl_800DADA4:
/* 800DADA4 000D6BE4 7F E3 FB 78 */ mr r3, r31
/* 800DADA8 000D6BE8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800DADAC 000D6BEC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800DADB0 000D6BF0 7C 08 03 A6 */ mtlr r0
/* 800DADB4 000D6BF4 38 21 00 10 */ addi r1, r1, 0x10
/* 800DADB8 000D6BF8 4E 80 00 20 */ blr
/* 800DADBC 000D6BFC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetNumLightSet__Q34nw4r3g3d9AnmScnResCFv
GetNumLightSet__Q34nw4r3g3d9AnmScnResCFv:
/* 800DADC0 000D6C00 38 63 00 20 */ addi r3, r3, 0x20
/* 800DADC4 000D6C04 4B FF 7C DC */ b GetResLightSetNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DADC8 000D6C08 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DADCC 000D6C0C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetNumAmbLight__Q34nw4r3g3d9AnmScnResCFv
GetNumAmbLight__Q34nw4r3g3d9AnmScnResCFv:
/* 800DADD0 000D6C10 38 63 00 20 */ addi r3, r3, 0x20
/* 800DADD4 000D6C14 4B FF 7E 8C */ b GetResAnmAmbLightNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DADD8 000D6C18 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DADDC 000D6C1C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetNumDiffuseLight__Q34nw4r3g3d9AnmScnResCFv
GetNumDiffuseLight__Q34nw4r3g3d9AnmScnResCFv:
/* 800DADE0 000D6C20 38 63 00 20 */ addi r3, r3, 0x20
/* 800DADE4 000D6C24 4B FF 80 3C */ b GetResAnmLightNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DADE8 000D6C28 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DADEC 000D6C2C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetNumSpecularLight__Q34nw4r3g3d9AnmScnResCFv
GetNumSpecularLight__Q34nw4r3g3d9AnmScnResCFv:
/* 800DADF0 000D6C30 80 63 00 20 */ lwz r3, 0x20(r3)
/* 800DADF4 000D6C34 A0 63 00 36 */ lhz r3, 0x36(r3)
/* 800DADF8 000D6C38 4E 80 00 20 */ blr
/* 800DADFC 000D6C3C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetNumFog__Q34nw4r3g3d9AnmScnResCFv
GetNumFog__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE00 000D6C40 38 63 00 20 */ addi r3, r3, 0x20
/* 800DAE04 000D6C44 4B FF 81 4C */ b GetResAnmFogNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DAE08 000D6C48 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAE0C 000D6C4C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetNumCamera__Q34nw4r3g3d9AnmScnResCFv
GetNumCamera__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE10 000D6C50 38 63 00 20 */ addi r3, r3, 0x20
/* 800DAE14 000D6C54 4B FF 82 6C */ b GetResAnmCameraNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DAE18 000D6C58 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DAE1C 000D6C5C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetLightSetMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv
GetLightSetMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE20 000D6C60 80 63 00 20 */ lwz r3, 0x20(r3)
/* 800DAE24 000D6C64 A0 63 00 3C */ lhz r3, 0x3c(r3)
/* 800DAE28 000D6C68 4E 80 00 20 */ blr
/* 800DAE2C 000D6C6C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetAmbLightMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv
GetAmbLightMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE30 000D6C70 80 63 00 20 */ lwz r3, 0x20(r3)
/* 800DAE34 000D6C74 A0 63 00 3E */ lhz r3, 0x3e(r3)
/* 800DAE38 000D6C78 4E 80 00 20 */ blr
/* 800DAE3C 000D6C7C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetDiffuseLightMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv
GetDiffuseLightMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE40 000D6C80 80 63 00 20 */ lwz r3, 0x20(r3)
/* 800DAE44 000D6C84 A0 63 00 40 */ lhz r3, 0x40(r3)
/* 800DAE48 000D6C88 4E 80 00 20 */ blr
/* 800DAE4C 000D6C8C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetFogMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv
GetFogMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE50 000D6C90 80 63 00 20 */ lwz r3, 0x20(r3)
/* 800DAE54 000D6C94 A0 63 00 42 */ lhz r3, 0x42(r3)
/* 800DAE58 000D6C98 4E 80 00 20 */ blr
/* 800DAE5C 000D6C9C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetCameraMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv
GetCameraMaxRefNumber__Q34nw4r3g3d9AnmScnResCFv:
/* 800DAE60 000D6CA0 80 63 00 20 */ lwz r3, 0x20(r3)
/* 800DAE64 000D6CA4 A0 63 00 44 */ lhz r3, 0x44(r3)
/* 800DAE68 000D6CA8 4E 80 00 20 */ blr
/* 800DAE6C 000D6CAC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global Construct__Q34nw4r3g3d9AnmScnResFP12MEMAllocatorPUlQ34nw4r3g3d9ResAnmScnb
Construct__Q34nw4r3g3d9AnmScnResFP12MEMAllocatorPUlQ34nw4r3g3d9ResAnmScnb:
/* 800DAE70 000D6CB0 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 800DAE74 000D6CB4 7C 08 02 A6 */ mflr r0
/* 800DAE78 000D6CB8 90 01 00 44 */ stw r0, 0x44(r1)
/* 800DAE7C 000D6CBC 39 61 00 40 */ addi r11, r1, 0x40
/* 800DAE80 000D6CC0 4B F2 C4 A9 */ bl func_80007328
/* 800DAE84 000D6CC4 80 05 00 00 */ lwz r0, 0(r5)
/* 800DAE88 000D6CC8 7C 7D 1B 78 */ mr r29, r3
/* 800DAE8C 000D6CCC 7C 9E 23 78 */ mr r30, r4
/* 800DAE90 000D6CD0 7C BF 2B 78 */ mr r31, r5
/* 800DAE94 000D6CD4 2C 00 00 00 */ cmpwi r0, 0
/* 800DAE98 000D6CD8 7C D6 33 78 */ mr r22, r6
/* 800DAE9C 000D6CDC 40 82 00 0C */ bne lbl_800DAEA8
/* 800DAEA0 000D6CE0 38 60 00 00 */ li r3, 0
/* 800DAEA4 000D6CE4 48 00 01 48 */ b lbl_800DAFEC
lbl_800DAEA8:
/* 800DAEA8 000D6CE8 2C 06 00 00 */ cmpwi r6, 0
/* 800DAEAC 000D6CEC 41 82 00 14 */ beq lbl_800DAEC0
/* 800DAEB0 000D6CF0 7F E3 FB 78 */ mr r3, r31
/* 800DAEB4 000D6CF4 4B FF 7D AD */ bl GetResAnmAmbLightNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DAEB8 000D6CF8 7C 7A 1B 78 */ mr r26, r3
/* 800DAEBC 000D6CFC 48 00 00 08 */ b lbl_800DAEC4
lbl_800DAEC0:
/* 800DAEC0 000D6D00 3B 40 00 00 */ li r26, 0
lbl_800DAEC4:
/* 800DAEC4 000D6D04 2C 16 00 00 */ cmpwi r22, 0
/* 800DAEC8 000D6D08 41 82 00 14 */ beq lbl_800DAEDC
/* 800DAECC 000D6D0C 7F E3 FB 78 */ mr r3, r31
/* 800DAED0 000D6D10 4B FF 7F 51 */ bl GetResAnmLightNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DAED4 000D6D14 7C 7B 1B 78 */ mr r27, r3
/* 800DAED8 000D6D18 48 00 00 08 */ b lbl_800DAEE0
lbl_800DAEDC:
/* 800DAEDC 000D6D1C 3B 60 00 00 */ li r27, 0
lbl_800DAEE0:
/* 800DAEE0 000D6D20 2C 16 00 00 */ cmpwi r22, 0
/* 800DAEE4 000D6D24 41 82 00 14 */ beq lbl_800DAEF8
/* 800DAEE8 000D6D28 7F E3 FB 78 */ mr r3, r31
/* 800DAEEC 000D6D2C 4B FF 80 65 */ bl GetResAnmFogNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DAEF0 000D6D30 7C 7C 1B 78 */ mr r28, r3
/* 800DAEF4 000D6D34 48 00 00 08 */ b lbl_800DAEFC
lbl_800DAEF8:
/* 800DAEF8 000D6D38 3B 80 00 00 */ li r28, 0
lbl_800DAEFC:
/* 800DAEFC 000D6D3C 2C 16 00 00 */ cmpwi r22, 0
/* 800DAF00 000D6D40 41 82 00 10 */ beq lbl_800DAF10
/* 800DAF04 000D6D44 7F E3 FB 78 */ mr r3, r31
/* 800DAF08 000D6D48 4B FF 81 79 */ bl GetResAnmCameraNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DAF0C 000D6D4C 48 00 00 08 */ b lbl_800DAF14
lbl_800DAF10:
/* 800DAF10 000D6D50 38 60 00 00 */ li r3, 0
lbl_800DAF14:
/* 800DAF14 000D6D54 57 59 18 38 */ slwi r25, r26, 3
/* 800DAF18 000D6D58 57 78 30 32 */ slwi r24, r27, 6
/* 800DAF1C 000D6D5C 38 19 00 3B */ addi r0, r25, 0x3b
/* 800DAF20 000D6D60 57 97 20 36 */ slwi r23, r28, 4
/* 800DAF24 000D6D64 54 1A 00 3A */ rlwinm r26, r0, 0, 0, 0x1d
/* 800DAF28 000D6D68 2C 1E 00 00 */ cmpwi r30, 0
/* 800DAF2C 000D6D6C 7C 9A C2 14 */ add r4, r26, r24
/* 800DAF30 000D6D70 38 04 00 03 */ addi r0, r4, 3
/* 800DAF34 000D6D74 54 1B 00 3A */ rlwinm r27, r0, 0, 0, 0x1d
/* 800DAF38 000D6D78 7C 9B BA 14 */ add r4, r27, r23
/* 800DAF3C 000D6D7C 38 04 00 03 */ addi r0, r4, 3
/* 800DAF40 000D6D80 1E C3 00 34 */ mulli r22, r3, 0x34
/* 800DAF44 000D6D84 54 1C 00 3A */ rlwinm r28, r0, 0, 0, 0x1d
/* 800DAF48 000D6D88 7C 7C B2 14 */ add r3, r28, r22
/* 800DAF4C 000D6D8C 38 03 00 03 */ addi r0, r3, 3
/* 800DAF50 000D6D90 54 04 00 3A */ rlwinm r4, r0, 0, 0, 0x1d
/* 800DAF54 000D6D94 41 82 00 08 */ beq lbl_800DAF5C
/* 800DAF58 000D6D98 90 9E 00 00 */ stw r4, 0(r30)
lbl_800DAF5C:
/* 800DAF5C 000D6D9C 2C 1D 00 00 */ cmpwi r29, 0
/* 800DAF60 000D6DA0 40 82 00 0C */ bne lbl_800DAF6C
/* 800DAF64 000D6DA4 38 60 00 00 */ li r3, 0
/* 800DAF68 000D6DA8 48 00 00 84 */ b lbl_800DAFEC
lbl_800DAF6C:
/* 800DAF6C 000D6DAC 7F A3 EB 78 */ mr r3, r29
/* 800DAF70 000D6DB0 4B FC 88 81 */ bl MEMAllocFromAllocator
/* 800DAF74 000D6DB4 2C 03 00 00 */ cmpwi r3, 0
/* 800DAF78 000D6DB8 40 82 00 0C */ bne lbl_800DAF84
/* 800DAF7C 000D6DBC 38 60 00 00 */ li r3, 0
/* 800DAF80 000D6DC0 48 00 00 6C */ b lbl_800DAFEC
lbl_800DAF84:
/* 800DAF84 000D6DC4 41 82 00 68 */ beq lbl_800DAFEC
/* 800DAF88 000D6DC8 2C 16 00 00 */ cmpwi r22, 0
/* 800DAF8C 000D6DCC 41 82 00 0C */ beq lbl_800DAF98
/* 800DAF90 000D6DD0 7D 23 E2 14 */ add r9, r3, r28
/* 800DAF94 000D6DD4 48 00 00 08 */ b lbl_800DAF9C
lbl_800DAF98:
/* 800DAF98 000D6DD8 39 20 00 00 */ li r9, 0
lbl_800DAF9C:
/* 800DAF9C 000D6DDC 2C 17 00 00 */ cmpwi r23, 0
/* 800DAFA0 000D6DE0 41 82 00 0C */ beq lbl_800DAFAC
/* 800DAFA4 000D6DE4 7D 03 DA 14 */ add r8, r3, r27
/* 800DAFA8 000D6DE8 48 00 00 08 */ b lbl_800DAFB0
lbl_800DAFAC:
/* 800DAFAC 000D6DEC 39 00 00 00 */ li r8, 0
lbl_800DAFB0:
/* 800DAFB0 000D6DF0 2C 18 00 00 */ cmpwi r24, 0
/* 800DAFB4 000D6DF4 41 82 00 0C */ beq lbl_800DAFC0
/* 800DAFB8 000D6DF8 7C E3 D2 14 */ add r7, r3, r26
/* 800DAFBC 000D6DFC 48 00 00 08 */ b lbl_800DAFC4
lbl_800DAFC0:
/* 800DAFC0 000D6E00 38 E0 00 00 */ li r7, 0
lbl_800DAFC4:
/* 800DAFC4 000D6E04 2C 19 00 00 */ cmpwi r25, 0
/* 800DAFC8 000D6E08 41 82 00 0C */ beq lbl_800DAFD4
/* 800DAFCC 000D6E0C 38 C3 00 38 */ addi r6, r3, 0x38
/* 800DAFD0 000D6E10 48 00 00 08 */ b lbl_800DAFD8
lbl_800DAFD4:
/* 800DAFD4 000D6E14 38 C0 00 00 */ li r6, 0
lbl_800DAFD8:
/* 800DAFD8 000D6E18 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DAFDC 000D6E1C 7F A4 EB 78 */ mr r4, r29
/* 800DAFE0 000D6E20 90 01 00 08 */ stw r0, 8(r1)
/* 800DAFE4 000D6E24 38 A1 00 08 */ addi r5, r1, 8
/* 800DAFE8 000D6E28 48 00 00 29 */ bl __ct__Q34nw4r3g3d9AnmScnResFP12MEMAllocatorQ34nw4r3g3d9ResAnmScnPQ34nw4r3g3d17AmbLightAnmResultPQ34nw4r3g3d14LightAnmResultPQ34nw4r3g3d12FogAnmResultPQ34nw4r3g3d15CameraAnmResult
lbl_800DAFEC:
/* 800DAFEC 000D6E2C 39 61 00 40 */ addi r11, r1, 0x40
/* 800DAFF0 000D6E30 4B F2 C3 85 */ bl func_80007374
/* 800DAFF4 000D6E34 80 01 00 44 */ lwz r0, 0x44(r1)
/* 800DAFF8 000D6E38 7C 08 03 A6 */ mtlr r0
/* 800DAFFC 000D6E3C 38 21 00 40 */ addi r1, r1, 0x40
/* 800DB000 000D6E40 4E 80 00 20 */ blr
/* 800DB004 000D6E44 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB008 000D6E48 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB00C 000D6E4C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global __ct__Q34nw4r3g3d9AnmScnResFP12MEMAllocatorQ34nw4r3g3d9ResAnmScnPQ34nw4r3g3d17AmbLightAnmResultPQ34nw4r3g3d14LightAnmResultPQ34nw4r3g3d12FogAnmResultPQ34nw4r3g3d15CameraAnmResult
__ct__Q34nw4r3g3d9AnmScnResFP12MEMAllocatorQ34nw4r3g3d9ResAnmScnPQ34nw4r3g3d17AmbLightAnmResultPQ34nw4r3g3d14LightAnmResultPQ34nw4r3g3d12FogAnmResultPQ34nw4r3g3d15CameraAnmResult:
/* 800DB010 000D6E50 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800DB014 000D6E54 7C 08 02 A6 */ mflr r0
/* 800DB018 000D6E58 3D 60 80 44 */ lis r11, __vt__Q34nw4r3g3d6AnmScn@ha
/* 800DB01C 000D6E5C 3D 40 80 44 */ lis r10, __vt__Q34nw4r3g3d9AnmScnRes@ha
/* 800DB020 000D6E60 90 01 00 24 */ stw r0, 0x24(r1)
/* 800DB024 000D6E64 3C 00 43 30 */ lis r0, 0x4330
/* 800DB028 000D6E68 39 80 00 00 */ li r12, 0
/* 800DB02C 000D6E6C 39 6B 0E A0 */ addi r11, r11, __vt__Q34nw4r3g3d6AnmScn@l
/* 800DB030 000D6E70 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800DB034 000D6E74 39 4A 0E 10 */ addi r10, r10, __vt__Q34nw4r3g3d9AnmScnRes@l
/* 800DB038 000D6E78 C8 62 90 18 */ lfd f3, $$214573-_SDA2_BASE_(r2)
/* 800DB03C 000D6E7C 2C 06 00 00 */ cmpwi r6, 0
/* 800DB040 000D6E80 90 83 00 08 */ stw r4, 8(r3)
/* 800DB044 000D6E84 38 8D 85 C8 */ addi r4, r13, $$2LOCAL$$2GetAnmPlayPolicy__Q24nw4r3g3dFQ34nw4r3g3d9AnmPolicy$$2policyTable-_SDA_BASE_
/* 800DB048 000D6E88 C0 22 90 08 */ lfs f1, $$213876-_SDA2_BASE_(r2)
/* 800DB04C 000D6E8C 7C 7F 1B 78 */ mr r31, r3
/* 800DB050 000D6E90 91 83 00 04 */ stw r12, 4(r3)
/* 800DB054 000D6E94 C0 02 90 10 */ lfs f0, $$213878-_SDA2_BASE_(r2)
/* 800DB058 000D6E98 91 63 00 00 */ stw r11, 0(r3)
/* 800DB05C 000D6E9C 81 65 00 00 */ lwz r11, 0(r5)
/* 800DB060 000D6EA0 90 01 00 08 */ stw r0, 8(r1)
/* 800DB064 000D6EA4 A0 0B 00 34 */ lhz r0, 0x34(r11)
/* 800DB068 000D6EA8 81 6B 00 38 */ lwz r11, 0x38(r11)
/* 800DB06C 000D6EAC 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 800DB070 000D6EB0 90 01 00 0C */ stw r0, 0xc(r1)
/* 800DB074 000D6EB4 55 60 10 3A */ slwi r0, r11, 2
/* 800DB078 000D6EB8 7C 04 00 2E */ lwzx r0, r4, r0
/* 800DB07C 000D6EBC C8 41 00 08 */ lfd f2, 8(r1)
/* 800DB080 000D6EC0 D0 23 00 0C */ stfs f1, 0xc(r3)
/* 800DB084 000D6EC4 EC 42 18 28 */ fsubs f2, f2, f3
/* 800DB088 000D6EC8 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 800DB08C 000D6ECC D0 23 00 14 */ stfs f1, 0x14(r3)
/* 800DB090 000D6ED0 D0 43 00 18 */ stfs f2, 0x18(r3)
/* 800DB094 000D6ED4 90 03 00 1C */ stw r0, 0x1c(r3)
/* 800DB098 000D6ED8 91 43 00 00 */ stw r10, 0(r3)
/* 800DB09C 000D6EDC 80 05 00 00 */ lwz r0, 0(r5)
/* 800DB0A0 000D6EE0 90 03 00 20 */ stw r0, 0x20(r3)
/* 800DB0A4 000D6EE4 91 83 00 24 */ stw r12, 0x24(r3)
/* 800DB0A8 000D6EE8 90 C3 00 28 */ stw r6, 0x28(r3)
/* 800DB0AC 000D6EEC 90 E3 00 2C */ stw r7, 0x2c(r3)
/* 800DB0B0 000D6EF0 91 03 00 30 */ stw r8, 0x30(r3)
/* 800DB0B4 000D6EF4 91 23 00 34 */ stw r9, 0x34(r3)
/* 800DB0B8 000D6EF8 40 82 00 1C */ bne lbl_800DB0D4
/* 800DB0BC 000D6EFC 2C 07 00 00 */ cmpwi r7, 0
/* 800DB0C0 000D6F00 40 82 00 14 */ bne lbl_800DB0D4
/* 800DB0C4 000D6F04 2C 08 00 00 */ cmpwi r8, 0
/* 800DB0C8 000D6F08 40 82 00 0C */ bne lbl_800DB0D4
/* 800DB0CC 000D6F0C 2C 09 00 00 */ cmpwi r9, 0
/* 800DB0D0 000D6F10 41 82 00 10 */ beq lbl_800DB0E0
lbl_800DB0D4:
/* 800DB0D4 000D6F14 80 03 00 24 */ lwz r0, 0x24(r3)
/* 800DB0D8 000D6F18 60 00 00 01 */ ori r0, r0, 1
/* 800DB0DC 000D6F1C 90 03 00 24 */ stw r0, 0x24(r3)
lbl_800DB0E0:
/* 800DB0E0 000D6F20 80 03 00 24 */ lwz r0, 0x24(r3)
/* 800DB0E4 000D6F24 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 800DB0E8 000D6F28 41 82 00 0C */ beq lbl_800DB0F4
/* 800DB0EC 000D6F2C 7F E3 FB 78 */ mr r3, r31
/* 800DB0F0 000D6F30 48 00 09 D1 */ bl UpdateCache__Q34nw4r3g3d9AnmScnResFv
lbl_800DB0F4:
/* 800DB0F4 000D6F34 7F E3 FB 78 */ mr r3, r31
/* 800DB0F8 000D6F38 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800DB0FC 000D6F3C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DB100 000D6F40 7C 08 03 A6 */ mtlr r0
/* 800DB104 000D6F44 38 21 00 20 */ addi r1, r1, 0x20
/* 800DB108 000D6F48 4E 80 00 20 */ blr
/* 800DB10C 000D6F4C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global __dt__Q34nw4r3g3d9AnmScnResFv
__dt__Q34nw4r3g3d9AnmScnResFv:
/* 800DB110 000D6F50 4B FF 88 70 */ b __dt__Q34nw4r3g3d9AnmObjVisFv
/* 800DB114 000D6F54 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB118 000D6F58 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB11C 000D6F5C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global SetFrame__Q34nw4r3g3d9AnmScnResFf
SetFrame__Q34nw4r3g3d9AnmScnResFf:
/* 800DB120 000D6F60 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800DB124 000D6F64 7C 08 02 A6 */ mflr r0
/* 800DB128 000D6F68 FC 60 08 90 */ fmr f3, f1
/* 800DB12C 000D6F6C 90 01 00 14 */ stw r0, 0x14(r1)
/* 800DB130 000D6F70 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800DB134 000D6F74 7C 7F 1B 78 */ mr r31, r3
/* 800DB138 000D6F78 81 83 00 1C */ lwz r12, 0x1c(r3)
/* 800DB13C 000D6F7C C0 23 00 14 */ lfs f1, 0x14(r3)
/* 800DB140 000D6F80 C0 43 00 18 */ lfs f2, 0x18(r3)
/* 800DB144 000D6F84 7D 89 03 A6 */ mtctr r12
/* 800DB148 000D6F88 4E 80 04 21 */ bctrl
/* 800DB14C 000D6F8C 80 1F 00 24 */ lwz r0, 0x24(r31)
/* 800DB150 000D6F90 D0 3F 00 0C */ stfs f1, 0xc(r31)
/* 800DB154 000D6F94 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 800DB158 000D6F98 41 82 00 0C */ beq lbl_800DB164
/* 800DB15C 000D6F9C 7F E3 FB 78 */ mr r3, r31
/* 800DB160 000D6FA0 48 00 09 61 */ bl UpdateCache__Q34nw4r3g3d9AnmScnResFv
lbl_800DB164:
/* 800DB164 000D6FA4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800DB168 000D6FA8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800DB16C 000D6FAC 7C 08 03 A6 */ mtlr r0
/* 800DB170 000D6FB0 38 21 00 10 */ addi r1, r1, 0x10
/* 800DB174 000D6FB4 4E 80 00 20 */ blr
/* 800DB178 000D6FB8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB17C 000D6FBC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetFrame__Q34nw4r3g3d9AnmScnResCFv
GetFrame__Q34nw4r3g3d9AnmScnResCFv:
/* 800DB180 000D6FC0 C0 23 00 0C */ lfs f1, 0xc(r3)
/* 800DB184 000D6FC4 4E 80 00 20 */ blr
/* 800DB188 000D6FC8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB18C 000D6FCC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global SetUpdateRate__Q34nw4r3g3d9AnmScnResFf
SetUpdateRate__Q34nw4r3g3d9AnmScnResFf:
/* 800DB190 000D6FD0 C0 02 90 08 */ lfs f0, $$213876-_SDA2_BASE_(r2)
/* 800DB194 000D6FD4 D0 23 00 10 */ stfs f1, 0x10(r3)
/* 800DB198 000D6FD8 FC 00 08 00 */ fcmpu cr0, f0, f1
/* 800DB19C 000D6FDC 4C 82 00 20 */ bnelr
/* 800DB1A0 000D6FE0 80 03 00 24 */ lwz r0, 0x24(r3)
/* 800DB1A4 000D6FE4 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 800DB1A8 000D6FE8 4D 82 00 20 */ beqlr
/* 800DB1AC 000D6FEC 48 00 09 14 */ b UpdateCache__Q34nw4r3g3d9AnmScnResFv
/* 800DB1B0 000D6FF0 4E 80 00 20 */ blr
/* 800DB1B4 000D6FF4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB1B8 000D6FF8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB1BC 000D6FFC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetUpdateRate__Q34nw4r3g3d9AnmScnResCFv
GetUpdateRate__Q34nw4r3g3d9AnmScnResCFv:
/* 800DB1C0 000D7000 C0 23 00 10 */ lfs f1, 0x10(r3)
/* 800DB1C4 000D7004 4E 80 00 20 */ blr
/* 800DB1C8 000D7008 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB1CC 000D700C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global UpdateFrame__Q34nw4r3g3d9AnmScnResFv
UpdateFrame__Q34nw4r3g3d9AnmScnResFv:
/* 800DB1D0 000D7010 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800DB1D4 000D7014 7C 08 02 A6 */ mflr r0
/* 800DB1D8 000D7018 C0 02 90 08 */ lfs f0, $$213876-_SDA2_BASE_(r2)
/* 800DB1DC 000D701C 90 01 00 14 */ stw r0, 0x14(r1)
/* 800DB1E0 000D7020 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800DB1E4 000D7024 7C 7F 1B 78 */ mr r31, r3
/* 800DB1E8 000D7028 C0 23 00 10 */ lfs f1, 0x10(r3)
/* 800DB1EC 000D702C FC 00 08 00 */ fcmpu cr0, f0, f1
/* 800DB1F0 000D7030 41 82 00 44 */ beq lbl_800DB234
/* 800DB1F4 000D7034 C0 43 00 10 */ lfs f2, 0x10(r3)
/* 800DB1F8 000D7038 C0 2D 85 D0 */ lfs f1, smBaseUpdateRate__Q34nw4r3g3d9FrameCtrl-_SDA_BASE_(r13)
/* 800DB1FC 000D703C C0 03 00 0C */ lfs f0, 0xc(r3)
/* 800DB200 000D7040 EC 62 00 72 */ fmuls f3, f2, f1
/* 800DB204 000D7044 81 83 00 1C */ lwz r12, 0x1c(r3)
/* 800DB208 000D7048 C0 23 00 14 */ lfs f1, 0x14(r3)
/* 800DB20C 000D704C C0 43 00 18 */ lfs f2, 0x18(r3)
/* 800DB210 000D7050 EC 60 18 2A */ fadds f3, f0, f3
/* 800DB214 000D7054 7D 89 03 A6 */ mtctr r12
/* 800DB218 000D7058 4E 80 04 21 */ bctrl
/* 800DB21C 000D705C 80 1F 00 24 */ lwz r0, 0x24(r31)
/* 800DB220 000D7060 D0 3F 00 0C */ stfs f1, 0xc(r31)
/* 800DB224 000D7064 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 800DB228 000D7068 41 82 00 0C */ beq lbl_800DB234
/* 800DB22C 000D706C 7F E3 FB 78 */ mr r3, r31
/* 800DB230 000D7070 48 00 08 91 */ bl UpdateCache__Q34nw4r3g3d9AnmScnResFv
lbl_800DB234:
/* 800DB234 000D7074 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800DB238 000D7078 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800DB23C 000D707C 7C 08 03 A6 */ mtlr r0
/* 800DB240 000D7080 38 21 00 10 */ addi r1, r1, 0x10
/* 800DB244 000D7084 4E 80 00 20 */ blr
/* 800DB248 000D7088 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB24C 000D708C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global G3dProc__Q34nw4r3g3d9AnmScnResFUlUlPv
G3dProc__Q34nw4r3g3d9AnmScnResFUlUlPv:
/* 800DB250 000D7090 28 04 00 08 */ cmplwi r4, 8
/* 800DB254 000D7094 41 82 00 1C */ beq lbl_800DB270
/* 800DB258 000D7098 3C 04 FF FF */ addis r0, r4, 0xffff
/* 800DB25C 000D709C 28 00 00 03 */ cmplwi r0, 3
/* 800DB260 000D70A0 41 82 00 20 */ beq lbl_800DB280
/* 800DB264 000D70A4 28 00 00 02 */ cmplwi r0, 2
/* 800DB268 000D70A8 41 82 00 24 */ beq lbl_800DB28C
/* 800DB26C 000D70AC 4E 80 00 20 */ blr
lbl_800DB270:
/* 800DB270 000D70B0 81 83 00 00 */ lwz r12, 0(r3)
/* 800DB274 000D70B4 81 8C 00 2C */ lwz r12, 0x2c(r12)
/* 800DB278 000D70B8 7D 89 03 A6 */ mtctr r12
/* 800DB27C 000D70BC 4E 80 04 20 */ bctr
lbl_800DB280:
/* 800DB280 000D70C0 38 00 00 00 */ li r0, 0
/* 800DB284 000D70C4 90 03 00 04 */ stw r0, 4(r3)
/* 800DB288 000D70C8 4E 80 00 20 */ blr
lbl_800DB28C:
/* 800DB28C 000D70CC 90 C3 00 04 */ stw r6, 4(r3)
/* 800DB290 000D70D0 4E 80 00 20 */ blr
/* 800DB294 000D70D4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB298 000D70D8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB29C 000D70DC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetLightSet__Q34nw4r3g3d9AnmScnResFQ34nw4r3g3d8LightSetUl
GetLightSet__Q34nw4r3g3d9AnmScnResFQ34nw4r3g3d8LightSetUl:
/* 800DB2A0 000D70E0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800DB2A4 000D70E4 7C 08 02 A6 */ mflr r0
/* 800DB2A8 000D70E8 90 01 00 34 */ stw r0, 0x34(r1)
/* 800DB2AC 000D70EC 39 61 00 30 */ addi r11, r1, 0x30
/* 800DB2B0 000D70F0 4B F2 C0 81 */ bl func_80007330
/* 800DB2B4 000D70F4 7C 78 1B 78 */ mr r24, r3
/* 800DB2B8 000D70F8 7C 99 23 78 */ mr r25, r4
/* 800DB2BC 000D70FC 7C A4 2B 78 */ mr r4, r5
/* 800DB2C0 000D7100 38 63 00 20 */ addi r3, r3, 0x20
/* 800DB2C4 000D7104 4B FF 7E 3D */ bl GetResLightSetByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB2C8 000D7108 2C 03 00 00 */ cmpwi r3, 0
/* 800DB2CC 000D710C 7C 7E 1B 78 */ mr r30, r3
/* 800DB2D0 000D7110 40 82 00 0C */ bne lbl_800DB2DC
/* 800DB2D4 000D7114 38 60 00 00 */ li r3, 0
/* 800DB2D8 000D7118 48 00 00 E8 */ b lbl_800DB3C0
lbl_800DB2DC:
/* 800DB2DC 000D711C 8B 43 00 1A */ lbz r26, 0x1a(r3)
/* 800DB2E0 000D7120 3B 80 00 07 */ li r28, 7
/* 800DB2E4 000D7124 3B 60 00 00 */ li r27, 0
/* 800DB2E8 000D7128 2C 1A 00 00 */ cmpwi r26, 0
/* 800DB2EC 000D712C 41 82 00 90 */ beq lbl_800DB37C
/* 800DB2F0 000D7130 7F DD F3 78 */ mr r29, r30
/* 800DB2F4 000D7134 48 00 00 68 */ b lbl_800DB35C
lbl_800DB2F8:
/* 800DB2F8 000D7138 A0 9D 00 3C */ lhz r4, 0x3c(r29)
/* 800DB2FC 000D713C 28 04 FF FF */ cmplwi r4, 0xffff
/* 800DB300 000D7140 41 82 00 44 */ beq lbl_800DB344
/* 800DB304 000D7144 38 78 00 20 */ addi r3, r24, 0x20
/* 800DB308 000D7148 4B FF 7A 69 */ bl GetResAnmLight__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB30C 000D714C 7C 7F 1B 78 */ mr r31, r3
/* 800DB310 000D7150 7F 23 CB 78 */ mr r3, r25
/* 800DB314 000D7154 80 BF 00 10 */ lwz r5, 0x10(r31)
/* 800DB318 000D7158 7F 64 DB 78 */ mr r4, r27
/* 800DB31C 000D715C 48 01 70 15 */ bl SelectLightObj__Q34nw4r3g3d8LightSetFUli
/* 800DB320 000D7160 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 800DB324 000D7164 54 00 07 39 */ rlwinm. r0, r0, 0, 0x1c, 0x1c
/* 800DB328 000D7168 41 82 00 2C */ beq lbl_800DB354
/* 800DB32C 000D716C 80 BF 00 14 */ lwz r5, 0x14(r31)
/* 800DB330 000D7170 7F 84 E3 78 */ mr r4, r28
/* 800DB334 000D7174 7F 23 CB 78 */ mr r3, r25
/* 800DB338 000D7178 3B 9C FF FF */ addi r28, r28, -1
/* 800DB33C 000D717C 48 01 6F F5 */ bl SelectLightObj__Q34nw4r3g3d8LightSetFUli
/* 800DB340 000D7180 48 00 00 14 */ b lbl_800DB354
lbl_800DB344:
/* 800DB344 000D7184 7F 23 CB 78 */ mr r3, r25
/* 800DB348 000D7188 7F 64 DB 78 */ mr r4, r27
/* 800DB34C 000D718C 38 A0 FF FF */ li r5, -1
/* 800DB350 000D7190 48 01 6F E1 */ bl SelectLightObj__Q34nw4r3g3d8LightSetFUli
lbl_800DB354:
/* 800DB354 000D7194 3B BD 00 02 */ addi r29, r29, 2
/* 800DB358 000D7198 3B 7B 00 01 */ addi r27, r27, 1
lbl_800DB35C:
/* 800DB35C 000D719C 7C 1B D0 40 */ cmplw r27, r26
/* 800DB360 000D71A0 41 80 FF 98 */ blt lbl_800DB2F8
/* 800DB364 000D71A4 48 00 00 18 */ b lbl_800DB37C
lbl_800DB368:
/* 800DB368 000D71A8 7F 23 CB 78 */ mr r3, r25
/* 800DB36C 000D71AC 7F 44 D3 78 */ mr r4, r26
/* 800DB370 000D71B0 38 A0 FF FF */ li r5, -1
/* 800DB374 000D71B4 48 01 6F BD */ bl SelectLightObj__Q34nw4r3g3d8LightSetFUli
/* 800DB378 000D71B8 3B 5A 00 01 */ addi r26, r26, 1
lbl_800DB37C:
/* 800DB37C 000D71BC 7C 1A E0 40 */ cmplw r26, r28
/* 800DB380 000D71C0 40 81 FF E8 */ ble lbl_800DB368
/* 800DB384 000D71C4 80 1E 00 14 */ lwz r0, 0x14(r30)
/* 800DB388 000D71C8 2C 00 00 00 */ cmpwi r0, 0
/* 800DB38C 000D71CC 41 82 00 24 */ beq lbl_800DB3B0
/* 800DB390 000D71D0 A0 9E 00 18 */ lhz r4, 0x18(r30)
/* 800DB394 000D71D4 38 78 00 20 */ addi r3, r24, 0x20
/* 800DB398 000D71D8 4B FF 78 19 */ bl GetResAnmAmbLight__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB39C 000D71DC 7C 64 1B 78 */ mr r4, r3
/* 800DB3A0 000D71E0 7F 23 CB 78 */ mr r3, r25
/* 800DB3A4 000D71E4 80 84 00 10 */ lwz r4, 0x10(r4)
/* 800DB3A8 000D71E8 48 01 6F F9 */ bl SelectAmbLightObj__Q34nw4r3g3d8LightSetFi
/* 800DB3AC 000D71EC 48 00 00 10 */ b lbl_800DB3BC
lbl_800DB3B0:
/* 800DB3B0 000D71F0 7F 23 CB 78 */ mr r3, r25
/* 800DB3B4 000D71F4 38 80 FF FF */ li r4, -1
/* 800DB3B8 000D71F8 48 01 6F E9 */ bl SelectAmbLightObj__Q34nw4r3g3d8LightSetFi
lbl_800DB3BC:
/* 800DB3BC 000D71FC 38 60 00 01 */ li r3, 1
lbl_800DB3C0:
/* 800DB3C0 000D7200 39 61 00 30 */ addi r11, r1, 0x30
/* 800DB3C4 000D7204 4B F2 BF B9 */ bl func_8000737C
/* 800DB3C8 000D7208 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800DB3CC 000D720C 7C 08 03 A6 */ mtlr r0
/* 800DB3D0 000D7210 38 21 00 30 */ addi r1, r1, 0x30
/* 800DB3D4 000D7214 4E 80 00 20 */ blr
/* 800DB3D8 000D7218 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB3DC 000D721C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetAmbLightColor__Q34nw4r3g3d9AnmScnResFUl
GetAmbLightColor__Q34nw4r3g3d9AnmScnResFUl:
/* 800DB3E0 000D7220 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800DB3E4 000D7224 7C 08 02 A6 */ mflr r0
/* 800DB3E8 000D7228 90 01 00 24 */ stw r0, 0x24(r1)
/* 800DB3EC 000D722C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800DB3F0 000D7230 7C 7F 1B 78 */ mr r31, r3
/* 800DB3F4 000D7234 7C 83 23 78 */ mr r3, r4
/* 800DB3F8 000D7238 81 84 00 00 */ lwz r12, 0(r4)
/* 800DB3FC 000D723C 38 81 00 08 */ addi r4, r1, 8
/* 800DB400 000D7240 81 8C 00 80 */ lwz r12, 0x80(r12)
/* 800DB404 000D7244 7D 89 03 A6 */ mtctr r12
/* 800DB408 000D7248 4E 80 04 21 */ bctrl
/* 800DB40C 000D724C 80 83 00 00 */ lwz r4, 0(r3)
/* 800DB410 000D7250 80 63 00 04 */ lwz r3, 4(r3)
/* 800DB414 000D7254 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 800DB418 000D7258 40 82 00 0C */ bne lbl_800DB424
/* 800DB41C 000D725C 38 00 FF 00 */ li r0, -256
/* 800DB420 000D7260 7C 63 03 78 */ or r3, r3, r0
lbl_800DB424:
/* 800DB424 000D7264 54 80 07 BD */ rlwinm. r0, r4, 0, 0x1e, 0x1e
/* 800DB428 000D7268 40 82 00 08 */ bne lbl_800DB430
/* 800DB42C 000D726C 60 63 00 FF */ ori r3, r3, 0xff
lbl_800DB430:
/* 800DB430 000D7270 90 7F 00 00 */ stw r3, 0(r31)
/* 800DB434 000D7274 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800DB438 000D7278 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DB43C 000D727C 7C 08 03 A6 */ mtlr r0
/* 800DB440 000D7280 38 21 00 20 */ addi r1, r1, 0x20
/* 800DB444 000D7284 4E 80 00 20 */ blr
/* 800DB448 000D7288 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB44C 000D728C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetLight__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d8LightObjPQ34nw4r3g3d8LightObjUl
GetLight__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d8LightObjPQ34nw4r3g3d8LightObjUl:
/* 800DB450 000D7290 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 800DB454 000D7294 7C 08 02 A6 */ mflr r0
/* 800DB458 000D7298 90 01 00 74 */ stw r0, 0x74(r1)
/* 800DB45C 000D729C 38 00 FF FF */ li r0, -1
/* 800DB460 000D72A0 93 E1 00 6C */ stw r31, 0x6c(r1)
/* 800DB464 000D72A4 7C BF 2B 78 */ mr r31, r5
/* 800DB468 000D72A8 7C C5 33 78 */ mr r5, r6
/* 800DB46C 000D72AC 93 C1 00 68 */ stw r30, 0x68(r1)
/* 800DB470 000D72B0 93 A1 00 64 */ stw r29, 0x64(r1)
/* 800DB474 000D72B4 7C 9D 23 78 */ mr r29, r4
/* 800DB478 000D72B8 38 81 00 18 */ addi r4, r1, 0x18
/* 800DB47C 000D72BC 90 01 00 38 */ stw r0, 0x38(r1)
/* 800DB480 000D72C0 90 01 00 50 */ stw r0, 0x50(r1)
/* 800DB484 000D72C4 81 83 00 00 */ lwz r12, 0(r3)
/* 800DB488 000D72C8 81 8C 00 84 */ lwz r12, 0x84(r12)
/* 800DB48C 000D72CC 7D 89 03 A6 */ mtctr r12
/* 800DB490 000D72D0 4E 80 04 21 */ bctrl
/* 800DB494 000D72D4 80 03 00 04 */ lwz r0, 4(r3)
/* 800DB498 000D72D8 7C 7E 1B 78 */ mr r30, r3
/* 800DB49C 000D72DC 54 00 07 7B */ rlwinm. r0, r0, 0, 0x1d, 0x1d
/* 800DB4A0 000D72E0 41 82 00 E4 */ beq lbl_800DB584
/* 800DB4A4 000D72E4 2C 1D 00 00 */ cmpwi r29, 0
/* 800DB4A8 000D72E8 41 82 00 10 */ beq lbl_800DB4B8
/* 800DB4AC 000D72EC 7F A3 EB 78 */ mr r3, r29
/* 800DB4B0 000D72F0 7F C4 F3 78 */ mr r4, r30
/* 800DB4B4 000D72F4 4B FF F3 3D */ bl MakeDiffuseLightObj__Q34nw4r3g3d24$$2unnamed$$2g3d_anmscn_cpp$$2FPQ34nw4r3g3d8LightObjPCQ34nw4r3g3d14LightAnmResult
lbl_800DB4B8:
/* 800DB4B8 000D72F8 2C 1F 00 00 */ cmpwi r31, 0
/* 800DB4BC 000D72FC 41 82 00 F0 */ beq lbl_800DB5AC
/* 800DB4C0 000D7300 80 1E 00 04 */ lwz r0, 4(r30)
/* 800DB4C4 000D7304 54 00 07 39 */ rlwinm. r0, r0, 0, 0x1c, 0x1c
/* 800DB4C8 000D7308 41 82 00 AC */ beq lbl_800DB574
/* 800DB4CC 000D730C E0 3E 00 14 */ psq_l f1, 20(r30), 0, qr0
/* 800DB4D0 000D7310 38 61 00 0C */ addi r3, r1, 0xc
/* 800DB4D4 000D7314 E0 1E 00 08 */ psq_l f0, 8(r30), 0, qr0
/* 800DB4D8 000D7318 7C 64 1B 78 */ mr r4, r3
/* 800DB4DC 000D731C 10 01 00 28 */ ps_sub f0, f1, f0
/* 800DB4E0 000D7320 F0 03 00 00 */ psq_st f0, 0(r3), 0, qr0
/* 800DB4E4 000D7324 E0 3E 80 1C */ psq_l f1, 28(r30), 1, qr0
/* 800DB4E8 000D7328 E0 1E 80 10 */ psq_l f0, 16(r30), 1, qr0
/* 800DB4EC 000D732C 10 01 00 28 */ ps_sub f0, f1, f0
/* 800DB4F0 000D7330 F0 03 80 08 */ psq_st f0, 8(r3), 1, qr0
/* 800DB4F4 000D7334 4B F5 60 AD */ bl PSVECNormalize
/* 800DB4F8 000D7338 7F E3 FB 78 */ mr r3, r31
/* 800DB4FC 000D733C 48 01 64 55 */ bl Clear__Q34nw4r3g3d8LightObjFv
/* 800DB500 000D7340 80 1E 00 38 */ lwz r0, 0x38(r30)
/* 800DB504 000D7344 38 81 00 08 */ addi r4, r1, 8
/* 800DB508 000D7348 90 01 00 08 */ stw r0, 8(r1)
/* 800DB50C 000D734C 7F E3 FB 78 */ mr r3, r31
/* 800DB510 000D7350 48 01 64 61 */ bl InitLightColor__Q34nw4r3g3d8LightObjF8_GXColor
/* 800DB514 000D7354 C0 21 00 0C */ lfs f1, 0xc(r1)
/* 800DB518 000D7358 7F E3 FB 78 */ mr r3, r31
/* 800DB51C 000D735C C0 41 00 10 */ lfs f2, 0x10(r1)
/* 800DB520 000D7360 C0 61 00 14 */ lfs f3, 0x14(r1)
/* 800DB524 000D7364 48 01 65 FD */ bl InitSpecularDir__Q34nw4r3g3d8LightObjFfff
/* 800DB528 000D7368 C0 3E 00 3C */ lfs f1, 0x3c(r30)
/* 800DB52C 000D736C 7F E3 FB 78 */ mr r3, r31
/* 800DB530 000D7370 48 01 66 31 */ bl InitLightShininess__Q34nw4r3g3d8LightObjFf
/* 800DB534 000D7374 80 1E 00 04 */ lwz r0, 4(r30)
/* 800DB538 000D7378 54 00 06 F7 */ rlwinm. r0, r0, 0, 0x1b, 0x1b
/* 800DB53C 000D737C 40 82 00 10 */ bne lbl_800DB54C
/* 800DB540 000D7380 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DB544 000D7384 60 00 00 10 */ ori r0, r0, 0x10
/* 800DB548 000D7388 90 1F 00 00 */ stw r0, 0(r31)
lbl_800DB54C:
/* 800DB54C 000D738C 80 1E 00 04 */ lwz r0, 4(r30)
/* 800DB550 000D7390 54 00 06 B5 */ rlwinm. r0, r0, 0, 0x1a, 0x1a
/* 800DB554 000D7394 40 82 00 10 */ bne lbl_800DB564
/* 800DB558 000D7398 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DB55C 000D739C 60 00 00 20 */ ori r0, r0, 0x20
/* 800DB560 000D73A0 90 1F 00 00 */ stw r0, 0(r31)
lbl_800DB564:
/* 800DB564 000D73A4 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DB568 000D73A8 60 00 00 04 */ ori r0, r0, 4
/* 800DB56C 000D73AC 90 1F 00 00 */ stw r0, 0(r31)
/* 800DB570 000D73B0 48 00 00 3C */ b lbl_800DB5AC
lbl_800DB574:
/* 800DB574 000D73B4 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DB578 000D73B8 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DB57C 000D73BC 90 1F 00 00 */ stw r0, 0(r31)
/* 800DB580 000D73C0 48 00 00 2C */ b lbl_800DB5AC
lbl_800DB584:
/* 800DB584 000D73C4 2C 1D 00 00 */ cmpwi r29, 0
/* 800DB588 000D73C8 41 82 00 10 */ beq lbl_800DB598
/* 800DB58C 000D73CC 80 1D 00 00 */ lwz r0, 0(r29)
/* 800DB590 000D73D0 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DB594 000D73D4 90 1D 00 00 */ stw r0, 0(r29)
lbl_800DB598:
/* 800DB598 000D73D8 2C 1F 00 00 */ cmpwi r31, 0
/* 800DB59C 000D73DC 41 82 00 10 */ beq lbl_800DB5AC
/* 800DB5A0 000D73E0 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DB5A4 000D73E4 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 800DB5A8 000D73E8 90 1F 00 00 */ stw r0, 0(r31)
lbl_800DB5AC:
/* 800DB5AC 000D73EC 80 01 00 74 */ lwz r0, 0x74(r1)
/* 800DB5B0 000D73F0 83 E1 00 6C */ lwz r31, 0x6c(r1)
/* 800DB5B4 000D73F4 83 C1 00 68 */ lwz r30, 0x68(r1)
/* 800DB5B8 000D73F8 83 A1 00 64 */ lwz r29, 0x64(r1)
/* 800DB5BC 000D73FC 7C 08 03 A6 */ mtlr r0
/* 800DB5C0 000D7400 38 21 00 70 */ addi r1, r1, 0x70
/* 800DB5C4 000D7404 4E 80 00 20 */ blr
/* 800DB5C8 000D7408 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB5CC 000D740C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetFog__Q34nw4r3g3d9AnmScnResFQ34nw4r3g3d3FogUl
GetFog__Q34nw4r3g3d9AnmScnResFQ34nw4r3g3d3FogUl:
/* 800DB5D0 000D7410 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800DB5D4 000D7414 7C 08 02 A6 */ mflr r0
/* 800DB5D8 000D7418 90 01 00 34 */ stw r0, 0x34(r1)
/* 800DB5DC 000D741C 38 00 FF FF */ li r0, -1
/* 800DB5E0 000D7420 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 800DB5E4 000D7424 7C 9F 23 78 */ mr r31, r4
/* 800DB5E8 000D7428 38 81 00 10 */ addi r4, r1, 0x10
/* 800DB5EC 000D742C 90 01 00 1C */ stw r0, 0x1c(r1)
/* 800DB5F0 000D7430 81 83 00 00 */ lwz r12, 0(r3)
/* 800DB5F4 000D7434 81 8C 00 88 */ lwz r12, 0x88(r12)
/* 800DB5F8 000D7438 7D 89 03 A6 */ mtctr r12
/* 800DB5FC 000D743C 4E 80 04 21 */ bctrl
/* 800DB600 000D7440 80 9F 00 00 */ lwz r4, 0(r31)
/* 800DB604 000D7444 80 03 00 00 */ lwz r0, 0(r3)
/* 800DB608 000D7448 2C 04 00 00 */ cmpwi r4, 0
/* 800DB60C 000D744C 41 82 00 08 */ beq lbl_800DB614
/* 800DB610 000D7450 90 04 00 00 */ stw r0, 0(r4)
lbl_800DB614:
/* 800DB614 000D7454 80 9F 00 00 */ lwz r4, 0(r31)
/* 800DB618 000D7458 C0 23 00 08 */ lfs f1, 8(r3)
/* 800DB61C 000D745C 2C 04 00 00 */ cmpwi r4, 0
/* 800DB620 000D7460 C0 03 00 04 */ lfs f0, 4(r3)
/* 800DB624 000D7464 41 82 00 0C */ beq lbl_800DB630
/* 800DB628 000D7468 D0 04 00 04 */ stfs f0, 4(r4)
/* 800DB62C 000D746C D0 24 00 08 */ stfs f1, 8(r4)
lbl_800DB630:
/* 800DB630 000D7470 80 9F 00 00 */ lwz r4, 0(r31)
/* 800DB634 000D7474 80 03 00 0C */ lwz r0, 0xc(r3)
/* 800DB638 000D7478 2C 04 00 00 */ cmpwi r4, 0
/* 800DB63C 000D747C 90 01 00 08 */ stw r0, 8(r1)
/* 800DB640 000D7480 41 82 00 24 */ beq lbl_800DB664
/* 800DB644 000D7484 88 01 00 08 */ lbz r0, 8(r1)
/* 800DB648 000D7488 98 04 00 14 */ stb r0, 0x14(r4)
/* 800DB64C 000D748C 88 01 00 09 */ lbz r0, 9(r1)
/* 800DB650 000D7490 98 04 00 15 */ stb r0, 0x15(r4)
/* 800DB654 000D7494 88 01 00 0A */ lbz r0, 0xa(r1)
/* 800DB658 000D7498 98 04 00 16 */ stb r0, 0x16(r4)
/* 800DB65C 000D749C 88 01 00 0B */ lbz r0, 0xb(r1)
/* 800DB660 000D74A0 98 04 00 17 */ stb r0, 0x17(r4)
lbl_800DB664:
/* 800DB664 000D74A4 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800DB668 000D74A8 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 800DB66C 000D74AC 7C 08 03 A6 */ mtlr r0
/* 800DB670 000D74B0 38 21 00 30 */ addi r1, r1, 0x30
/* 800DB674 000D74B4 4E 80 00 20 */ blr
/* 800DB678 000D74B8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB67C 000D74BC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetCamera__Q34nw4r3g3d9AnmScnResFQ34nw4r3g3d6CameraUl
GetCamera__Q34nw4r3g3d9AnmScnResFQ34nw4r3g3d6CameraUl:
/* 800DB680 000D74C0 94 21 FF 70 */ stwu r1, -0x90(r1)
/* 800DB684 000D74C4 7C 08 02 A6 */ mflr r0
/* 800DB688 000D74C8 90 01 00 94 */ stw r0, 0x94(r1)
/* 800DB68C 000D74CC 93 E1 00 8C */ stw r31, 0x8c(r1)
/* 800DB690 000D74D0 93 C1 00 88 */ stw r30, 0x88(r1)
/* 800DB694 000D74D4 7C 9E 23 78 */ mr r30, r4
/* 800DB698 000D74D8 38 81 00 4C */ addi r4, r1, 0x4c
/* 800DB69C 000D74DC 81 83 00 00 */ lwz r12, 0(r3)
/* 800DB6A0 000D74E0 81 8C 00 8C */ lwz r12, 0x8c(r12)
/* 800DB6A4 000D74E4 7D 89 03 A6 */ mtctr r12
/* 800DB6A8 000D74E8 4E 80 04 21 */ bctrl
/* 800DB6AC 000D74EC 80 03 00 00 */ lwz r0, 0(r3)
/* 800DB6B0 000D74F0 7C 7F 1B 78 */ mr r31, r3
/* 800DB6B4 000D74F4 54 00 07 BD */ rlwinm. r0, r0, 0, 0x1e, 0x1e
/* 800DB6B8 000D74F8 40 82 00 0C */ bne lbl_800DB6C4
/* 800DB6BC 000D74FC 38 60 00 00 */ li r3, 0
/* 800DB6C0 000D7500 48 00 00 FC */ b lbl_800DB7BC
lbl_800DB6C4:
/* 800DB6C4 000D7504 80 03 00 04 */ lwz r0, 4(r3)
/* 800DB6C8 000D7508 2C 00 00 00 */ cmpwi r0, 0
/* 800DB6CC 000D750C 41 82 00 10 */ beq lbl_800DB6DC
/* 800DB6D0 000D7510 2C 00 00 01 */ cmpwi r0, 1
/* 800DB6D4 000D7514 41 82 00 24 */ beq lbl_800DB6F8
/* 800DB6D8 000D7518 48 00 00 4C */ b lbl_800DB724
lbl_800DB6DC:
/* 800DB6DC 000D751C C0 3F 00 30 */ lfs f1, 0x30(r31)
/* 800DB6E0 000D7520 7F C3 F3 78 */ mr r3, r30
/* 800DB6E4 000D7524 C0 5F 00 14 */ lfs f2, 0x14(r31)
/* 800DB6E8 000D7528 C0 7F 00 18 */ lfs f3, 0x18(r31)
/* 800DB6EC 000D752C C0 9F 00 1C */ lfs f4, 0x1c(r31)
/* 800DB6F0 000D7530 48 00 A8 F1 */ bl SetPerspective__Q34nw4r3g3d6CameraFffff
/* 800DB6F4 000D7534 48 00 00 30 */ b lbl_800DB724
lbl_800DB6F8:
/* 800DB6F8 000D7538 C0 43 00 30 */ lfs f2, 0x30(r3)
/* 800DB6FC 000D753C C0 22 90 20 */ lfs f1, $$214811-_SDA2_BASE_(r2)
/* 800DB700 000D7540 C0 03 00 14 */ lfs f0, 0x14(r3)
/* 800DB704 000D7544 7F C3 F3 78 */ mr r3, r30
/* 800DB708 000D7548 EC 22 00 72 */ fmuls f1, f2, f1
/* 800DB70C 000D754C C0 BF 00 18 */ lfs f5, 0x18(r31)
/* 800DB710 000D7550 C0 DF 00 1C */ lfs f6, 0x1c(r31)
/* 800DB714 000D7554 EC 81 00 32 */ fmuls f4, f1, f0
/* 800DB718 000D7558 FC 40 08 50 */ fneg f2, f1
/* 800DB71C 000D755C FC 60 20 50 */ fneg f3, f4
/* 800DB720 000D7560 48 00 A9 01 */ bl SetOrtho__Q34nw4r3g3d6CameraFffffff
lbl_800DB724:
/* 800DB724 000D7564 80 1F 00 00 */ lwz r0, 0(r31)
/* 800DB728 000D7568 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 800DB72C 000D756C 41 82 00 10 */ beq lbl_800DB73C
/* 800DB730 000D7570 28 00 00 01 */ cmplwi r0, 1
/* 800DB734 000D7574 41 82 00 38 */ beq lbl_800DB76C
/* 800DB738 000D7578 48 00 00 68 */ b lbl_800DB7A0
lbl_800DB73C:
/* 800DB73C 000D757C 38 00 00 01 */ li r0, 1
/* 800DB740 000D7580 90 01 00 20 */ stw r0, 0x20(r1)
/* 800DB744 000D7584 C0 5F 00 20 */ lfs f2, 0x20(r31)
/* 800DB748 000D7588 C0 3F 00 24 */ lfs f1, 0x24(r31)
/* 800DB74C 000D758C C0 1F 00 28 */ lfs f0, 0x28(r31)
/* 800DB750 000D7590 D0 41 00 14 */ stfs f2, 0x14(r1)
/* 800DB754 000D7594 D0 21 00 18 */ stfs f1, 0x18(r1)
/* 800DB758 000D7598 D0 01 00 1C */ stfs f0, 0x1c(r1)
/* 800DB75C 000D759C D0 41 00 3C */ stfs f2, 0x3c(r1)
/* 800DB760 000D75A0 D0 21 00 40 */ stfs f1, 0x40(r1)
/* 800DB764 000D75A4 D0 01 00 44 */ stfs f0, 0x44(r1)
/* 800DB768 000D75A8 48 00 00 38 */ b lbl_800DB7A0
lbl_800DB76C:
/* 800DB76C 000D75AC 38 00 00 02 */ li r0, 2
/* 800DB770 000D75B0 90 01 00 20 */ stw r0, 0x20(r1)
/* 800DB774 000D75B4 C0 7F 00 20 */ lfs f3, 0x20(r31)
/* 800DB778 000D75B8 C0 5F 00 24 */ lfs f2, 0x24(r31)
/* 800DB77C 000D75BC C0 3F 00 28 */ lfs f1, 0x28(r31)
/* 800DB780 000D75C0 D0 21 00 38 */ stfs f1, 0x38(r1)
/* 800DB784 000D75C4 D0 61 00 30 */ stfs f3, 0x30(r1)
/* 800DB788 000D75C8 D0 41 00 34 */ stfs f2, 0x34(r1)
/* 800DB78C 000D75CC C0 1F 00 2C */ lfs f0, 0x2c(r31)
/* 800DB790 000D75D0 D0 61 00 08 */ stfs f3, 8(r1)
/* 800DB794 000D75D4 D0 41 00 0C */ stfs f2, 0xc(r1)
/* 800DB798 000D75D8 D0 21 00 10 */ stfs f1, 0x10(r1)
/* 800DB79C 000D75DC D0 01 00 48 */ stfs f0, 0x48(r1)
lbl_800DB7A0:
/* 800DB7A0 000D75E0 7F C3 F3 78 */ mr r3, r30
/* 800DB7A4 000D75E4 38 9F 00 08 */ addi r4, r31, 8
/* 800DB7A8 000D75E8 48 00 A4 C9 */ bl SetPosition__Q34nw4r3g3d6CameraFRCQ34nw4r4math4VEC3
/* 800DB7AC 000D75EC 7F C3 F3 78 */ mr r3, r30
/* 800DB7B0 000D75F0 38 81 00 20 */ addi r4, r1, 0x20
/* 800DB7B4 000D75F4 48 00 A4 FD */ bl SetPosture__Q34nw4r3g3d6CameraFRCQ44nw4r3g3d6Camera11PostureInfo
/* 800DB7B8 000D75F8 38 60 00 01 */ li r3, 1
lbl_800DB7BC:
/* 800DB7BC 000D75FC 80 01 00 94 */ lwz r0, 0x94(r1)
/* 800DB7C0 000D7600 83 E1 00 8C */ lwz r31, 0x8c(r1)
/* 800DB7C4 000D7604 83 C1 00 88 */ lwz r30, 0x88(r1)
/* 800DB7C8 000D7608 7C 08 03 A6 */ mtlr r0
/* 800DB7CC 000D760C 38 21 00 90 */ addi r1, r1, 0x90
/* 800DB7D0 000D7610 4E 80 00 20 */ blr
/* 800DB7D4 000D7614 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB7D8 000D7618 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB7DC 000D761C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetAmbLightResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d17AmbLightAnmResultUl
GetAmbLightResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d17AmbLightAnmResultUl:
/* 800DB7E0 000D7620 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800DB7E4 000D7624 7C 08 02 A6 */ mflr r0
/* 800DB7E8 000D7628 90 01 00 24 */ stw r0, 0x24(r1)
/* 800DB7EC 000D762C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800DB7F0 000D7630 7C 9F 23 78 */ mr r31, r4
/* 800DB7F4 000D7634 7C A4 2B 78 */ mr r4, r5
/* 800DB7F8 000D7638 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800DB7FC 000D763C 7C 7E 1B 78 */ mr r30, r3
/* 800DB800 000D7640 38 63 00 20 */ addi r3, r3, 0x20
/* 800DB804 000D7644 4B FF 79 4D */ bl GetResAnmAmbLightByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB808 000D7648 2C 03 00 00 */ cmpwi r3, 0
/* 800DB80C 000D764C 90 61 00 08 */ stw r3, 8(r1)
/* 800DB810 000D7650 40 82 00 1C */ bne lbl_800DB82C
/* 800DB814 000D7654 38 60 00 00 */ li r3, 0
/* 800DB818 000D7658 38 00 FF FF */ li r0, -1
/* 800DB81C 000D765C 90 7F 00 00 */ stw r3, 0(r31)
/* 800DB820 000D7660 7F E3 FB 78 */ mr r3, r31
/* 800DB824 000D7664 90 1F 00 04 */ stw r0, 4(r31)
/* 800DB828 000D7668 48 00 00 34 */ b lbl_800DB85C
lbl_800DB82C:
/* 800DB82C 000D766C 80 9E 00 28 */ lwz r4, 0x28(r30)
/* 800DB830 000D7670 2C 04 00 00 */ cmpwi r4, 0
/* 800DB834 000D7674 41 82 00 14 */ beq lbl_800DB848
/* 800DB838 000D7678 80 03 00 0C */ lwz r0, 0xc(r3)
/* 800DB83C 000D767C 54 00 18 38 */ slwi r0, r0, 3
/* 800DB840 000D7680 7C 64 02 14 */ add r3, r4, r0
/* 800DB844 000D7684 48 00 00 18 */ b lbl_800DB85C
lbl_800DB848:
/* 800DB848 000D7688 C0 3E 00 0C */ lfs f1, 0xc(r30)
/* 800DB84C 000D768C 7F E4 FB 78 */ mr r4, r31
/* 800DB850 000D7690 38 61 00 08 */ addi r3, r1, 8
/* 800DB854 000D7694 4B FF 68 5D */ bl GetAnmResult__Q34nw4r3g3d14ResAnmAmbLightCFPQ34nw4r3g3d17AmbLightAnmResultf
/* 800DB858 000D7698 7F E3 FB 78 */ mr r3, r31
lbl_800DB85C:
/* 800DB85C 000D769C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DB860 000D76A0 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800DB864 000D76A4 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800DB868 000D76A8 7C 08 03 A6 */ mtlr r0
/* 800DB86C 000D76AC 38 21 00 20 */ addi r1, r1, 0x20
/* 800DB870 000D76B0 4E 80 00 20 */ blr
/* 800DB874 000D76B4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB878 000D76B8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DB87C 000D76BC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetLightResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d14LightAnmResultUl
GetLightResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d14LightAnmResultUl:
/* 800DB880 000D76C0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800DB884 000D76C4 7C 08 02 A6 */ mflr r0
/* 800DB888 000D76C8 90 01 00 24 */ stw r0, 0x24(r1)
/* 800DB88C 000D76CC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800DB890 000D76D0 7C 9F 23 78 */ mr r31, r4
/* 800DB894 000D76D4 7C A4 2B 78 */ mr r4, r5
/* 800DB898 000D76D8 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800DB89C 000D76DC 7C 7E 1B 78 */ mr r30, r3
/* 800DB8A0 000D76E0 38 63 00 20 */ addi r3, r3, 0x20
/* 800DB8A4 000D76E4 4B FF 78 FD */ bl GetResAnmLightByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB8A8 000D76E8 2C 03 00 00 */ cmpwi r3, 0
/* 800DB8AC 000D76EC 90 61 00 08 */ stw r3, 8(r1)
/* 800DB8B0 000D76F0 40 82 00 14 */ bne lbl_800DB8C4
/* 800DB8B4 000D76F4 38 00 00 00 */ li r0, 0
/* 800DB8B8 000D76F8 90 1F 00 04 */ stw r0, 4(r31)
/* 800DB8BC 000D76FC 7F E3 FB 78 */ mr r3, r31
/* 800DB8C0 000D7700 48 00 00 34 */ b lbl_800DB8F4
lbl_800DB8C4:
/* 800DB8C4 000D7704 80 9E 00 2C */ lwz r4, 0x2c(r30)
/* 800DB8C8 000D7708 2C 04 00 00 */ cmpwi r4, 0
/* 800DB8CC 000D770C 41 82 00 14 */ beq lbl_800DB8E0
/* 800DB8D0 000D7710 80 03 00 0C */ lwz r0, 0xc(r3)
/* 800DB8D4 000D7714 54 00 30 32 */ slwi r0, r0, 6
/* 800DB8D8 000D7718 7C 64 02 14 */ add r3, r4, r0
/* 800DB8DC 000D771C 48 00 00 18 */ b lbl_800DB8F4
lbl_800DB8E0:
/* 800DB8E0 000D7720 C0 3E 00 0C */ lfs f1, 0xc(r30)
/* 800DB8E4 000D7724 7F E4 FB 78 */ mr r4, r31
/* 800DB8E8 000D7728 38 61 00 08 */ addi r3, r1, 8
/* 800DB8EC 000D772C 4B FF 68 95 */ bl GetAnmResult__Q34nw4r3g3d11ResAnmLightCFPQ34nw4r3g3d14LightAnmResultf
/* 800DB8F0 000D7730 7F E3 FB 78 */ mr r3, r31
lbl_800DB8F4:
/* 800DB8F4 000D7734 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DB8F8 000D7738 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800DB8FC 000D773C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800DB900 000D7740 7C 08 03 A6 */ mtlr r0
/* 800DB904 000D7744 38 21 00 20 */ addi r1, r1, 0x20
/* 800DB908 000D7748 4E 80 00 20 */ blr
/* 800DB90C 000D774C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetFogResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d12FogAnmResultUl
GetFogResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d12FogAnmResultUl:
/* 800DB910 000D7750 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800DB914 000D7754 7C 08 02 A6 */ mflr r0
/* 800DB918 000D7758 90 01 00 24 */ stw r0, 0x24(r1)
/* 800DB91C 000D775C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800DB920 000D7760 7C 9F 23 78 */ mr r31, r4
/* 800DB924 000D7764 7C A4 2B 78 */ mr r4, r5
/* 800DB928 000D7768 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800DB92C 000D776C 7C 7E 1B 78 */ mr r30, r3
/* 800DB930 000D7770 38 63 00 20 */ addi r3, r3, 0x20
/* 800DB934 000D7774 4B FF 78 BD */ bl GetResAnmFogByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB938 000D7778 2C 03 00 00 */ cmpwi r3, 0
/* 800DB93C 000D777C 90 61 00 08 */ stw r3, 8(r1)
/* 800DB940 000D7780 40 82 00 14 */ bne lbl_800DB954
/* 800DB944 000D7784 38 00 00 00 */ li r0, 0
/* 800DB948 000D7788 90 1F 00 00 */ stw r0, 0(r31)
/* 800DB94C 000D778C 7F E3 FB 78 */ mr r3, r31
/* 800DB950 000D7790 48 00 00 34 */ b lbl_800DB984
lbl_800DB954:
/* 800DB954 000D7794 80 9E 00 30 */ lwz r4, 0x30(r30)
/* 800DB958 000D7798 2C 04 00 00 */ cmpwi r4, 0
/* 800DB95C 000D779C 41 82 00 14 */ beq lbl_800DB970
/* 800DB960 000D77A0 80 03 00 0C */ lwz r0, 0xc(r3)
/* 800DB964 000D77A4 54 00 20 36 */ slwi r0, r0, 4
/* 800DB968 000D77A8 7C 64 02 14 */ add r3, r4, r0
/* 800DB96C 000D77AC 48 00 00 18 */ b lbl_800DB984
lbl_800DB970:
/* 800DB970 000D77B0 C0 3E 00 0C */ lfs f1, 0xc(r30)
/* 800DB974 000D77B4 7F E4 FB 78 */ mr r4, r31
/* 800DB978 000D77B8 38 61 00 08 */ addi r3, r1, 8
/* 800DB97C 000D77BC 4B FF 6B F5 */ bl GetAnmResult__Q34nw4r3g3d9ResAnmFogCFPQ34nw4r3g3d12FogAnmResultf
/* 800DB980 000D77C0 7F E3 FB 78 */ mr r3, r31
lbl_800DB984:
/* 800DB984 000D77C4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DB988 000D77C8 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800DB98C 000D77CC 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800DB990 000D77D0 7C 08 03 A6 */ mtlr r0
/* 800DB994 000D77D4 38 21 00 20 */ addi r1, r1, 0x20
/* 800DB998 000D77D8 4E 80 00 20 */ blr
/* 800DB99C 000D77DC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetCameraResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d15CameraAnmResultUl
GetCameraResult__Q34nw4r3g3d9AnmScnResFPQ34nw4r3g3d15CameraAnmResultUl:
/* 800DB9A0 000D77E0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800DB9A4 000D77E4 7C 08 02 A6 */ mflr r0
/* 800DB9A8 000D77E8 90 01 00 24 */ stw r0, 0x24(r1)
/* 800DB9AC 000D77EC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800DB9B0 000D77F0 7C 9F 23 78 */ mr r31, r4
/* 800DB9B4 000D77F4 7C A4 2B 78 */ mr r4, r5
/* 800DB9B8 000D77F8 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800DB9BC 000D77FC 7C 7E 1B 78 */ mr r30, r3
/* 800DB9C0 000D7800 38 63 00 20 */ addi r3, r3, 0x20
/* 800DB9C4 000D7804 4B FF 78 7D */ bl GetResAnmCameraByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DB9C8 000D7808 2C 03 00 00 */ cmpwi r3, 0
/* 800DB9CC 000D780C 90 61 00 08 */ stw r3, 8(r1)
/* 800DB9D0 000D7810 40 82 00 14 */ bne lbl_800DB9E4
/* 800DB9D4 000D7814 38 00 00 00 */ li r0, 0
/* 800DB9D8 000D7818 90 1F 00 00 */ stw r0, 0(r31)
/* 800DB9DC 000D781C 7F E3 FB 78 */ mr r3, r31
/* 800DB9E0 000D7820 48 00 00 34 */ b lbl_800DBA14
lbl_800DB9E4:
/* 800DB9E4 000D7824 80 9E 00 34 */ lwz r4, 0x34(r30)
/* 800DB9E8 000D7828 2C 04 00 00 */ cmpwi r4, 0
/* 800DB9EC 000D782C 41 82 00 14 */ beq lbl_800DBA00
/* 800DB9F0 000D7830 80 03 00 0C */ lwz r0, 0xc(r3)
/* 800DB9F4 000D7834 1C 00 00 34 */ mulli r0, r0, 0x34
/* 800DB9F8 000D7838 7C 64 02 14 */ add r3, r4, r0
/* 800DB9FC 000D783C 48 00 00 18 */ b lbl_800DBA14
lbl_800DBA00:
/* 800DBA00 000D7840 C0 3E 00 0C */ lfs f1, 0xc(r30)
/* 800DBA04 000D7844 7F E4 FB 78 */ mr r4, r31
/* 800DBA08 000D7848 38 61 00 08 */ addi r3, r1, 8
/* 800DBA0C 000D784C 4B FF 6C C5 */ bl GetAnmResult__Q34nw4r3g3d12ResAnmCameraCFPQ34nw4r3g3d15CameraAnmResultf
/* 800DBA10 000D7850 7F E3 FB 78 */ mr r3, r31
lbl_800DBA14:
/* 800DBA14 000D7854 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800DBA18 000D7858 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800DBA1C 000D785C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800DBA20 000D7860 7C 08 03 A6 */ mtlr r0
/* 800DBA24 000D7864 38 21 00 20 */ addi r1, r1, 0x20
/* 800DBA28 000D7868 4E 80 00 20 */ blr
/* 800DBA2C 000D786C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetSpecularLightID__Q34nw4r3g3d9AnmScnResCFUl
GetSpecularLightID__Q34nw4r3g3d9AnmScnResCFUl:
/* 800DBA30 000D7870 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800DBA34 000D7874 7C 08 02 A6 */ mflr r0
/* 800DBA38 000D7878 38 63 00 20 */ addi r3, r3, 0x20
/* 800DBA3C 000D787C 90 01 00 14 */ stw r0, 0x14(r1)
/* 800DBA40 000D7880 4B FF 77 61 */ bl GetResAnmLightByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DBA44 000D7884 2C 03 00 00 */ cmpwi r3, 0
/* 800DBA48 000D7888 41 82 00 0C */ beq lbl_800DBA54
/* 800DBA4C 000D788C 80 63 00 14 */ lwz r3, 0x14(r3)
/* 800DBA50 000D7890 48 00 00 08 */ b lbl_800DBA58
lbl_800DBA54:
/* 800DBA54 000D7894 38 60 FF FF */ li r3, -1
lbl_800DBA58:
/* 800DBA58 000D7898 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800DBA5C 000D789C 7C 08 03 A6 */ mtlr r0
/* 800DBA60 000D78A0 38 21 00 10 */ addi r1, r1, 0x10
/* 800DBA64 000D78A4 4E 80 00 20 */ blr
/* 800DBA68 000D78A8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBA6C 000D78AC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global HasSpecularLight__Q34nw4r3g3d9AnmScnResCFUl
HasSpecularLight__Q34nw4r3g3d9AnmScnResCFUl:
/* 800DBA70 000D78B0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800DBA74 000D78B4 7C 08 02 A6 */ mflr r0
/* 800DBA78 000D78B8 38 63 00 20 */ addi r3, r3, 0x20
/* 800DBA7C 000D78BC 90 01 00 14 */ stw r0, 0x14(r1)
/* 800DBA80 000D78C0 4B FF 77 21 */ bl GetResAnmLightByRefNumber__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DBA84 000D78C4 2C 03 00 00 */ cmpwi r3, 0
/* 800DBA88 000D78C8 38 80 00 00 */ li r4, 0
/* 800DBA8C 000D78CC 41 82 00 14 */ beq lbl_800DBAA0
/* 800DBA90 000D78D0 80 03 00 1C */ lwz r0, 0x1c(r3)
/* 800DBA94 000D78D4 54 00 07 39 */ rlwinm. r0, r0, 0, 0x1c, 0x1c
/* 800DBA98 000D78D8 41 82 00 08 */ beq lbl_800DBAA0
/* 800DBA9C 000D78DC 38 80 00 01 */ li r4, 1
lbl_800DBAA0:
/* 800DBAA0 000D78E0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800DBAA4 000D78E4 7C 83 23 78 */ mr r3, r4
/* 800DBAA8 000D78E8 7C 08 03 A6 */ mtlr r0
/* 800DBAAC 000D78EC 38 21 00 10 */ addi r1, r1, 0x10
/* 800DBAB0 000D78F0 4E 80 00 20 */ blr
/* 800DBAB4 000D78F4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBAB8 000D78F8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBABC 000D78FC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global UpdateCache__Q34nw4r3g3d9AnmScnResFv
UpdateCache__Q34nw4r3g3d9AnmScnResFv:
/* 800DBAC0 000D7900 94 21 FF B0 */ stwu r1, -0x50(r1)
/* 800DBAC4 000D7904 7C 08 02 A6 */ mflr r0
/* 800DBAC8 000D7908 90 01 00 54 */ stw r0, 0x54(r1)
/* 800DBACC 000D790C 39 61 00 40 */ addi r11, r1, 0x40
/* 800DBAD0 000D7910 DB E1 00 40 */ stfd f31, 0x40(r1)
/* 800DBAD4 000D7914 F3 E1 00 48 */ psq_st f31, 72(r1), 0, qr0
/* 800DBAD8 000D7918 4B F2 B8 5D */ bl func_80007334
/* 800DBADC 000D791C 7C 79 1B 78 */ mr r25, r3
/* 800DBAE0 000D7920 38 63 00 20 */ addi r3, r3, 0x20
/* 800DBAE4 000D7924 4B FF 71 7D */ bl GetResAnmAmbLightNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DBAE8 000D7928 7C 7C 1B 78 */ mr r28, r3
/* 800DBAEC 000D792C 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBAF0 000D7930 4B FF 73 31 */ bl GetResAnmLightNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DBAF4 000D7934 7C 7D 1B 78 */ mr r29, r3
/* 800DBAF8 000D7938 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBAFC 000D793C 4B FF 74 55 */ bl GetResAnmFogNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DBB00 000D7940 7C 7E 1B 78 */ mr r30, r3
/* 800DBB04 000D7944 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBB08 000D7948 4B FF 75 79 */ bl GetResAnmCameraNumEntries__Q34nw4r3g3d9ResAnmScnCFv
/* 800DBB0C 000D794C C3 F9 00 0C */ lfs f31, 0xc(r25)
/* 800DBB10 000D7950 7C 7F 1B 78 */ mr r31, r3
/* 800DBB14 000D7954 3B 40 00 00 */ li r26, 0
/* 800DBB18 000D7958 3B 60 00 00 */ li r27, 0
/* 800DBB1C 000D795C 48 00 00 30 */ b lbl_800DBB4C
lbl_800DBB20:
/* 800DBB20 000D7960 7F 44 D3 78 */ mr r4, r26
/* 800DBB24 000D7964 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBB28 000D7968 4B FF 70 89 */ bl GetResAnmAmbLight__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DBB2C 000D796C 90 61 00 14 */ stw r3, 0x14(r1)
/* 800DBB30 000D7970 FC 20 F8 90 */ fmr f1, f31
/* 800DBB34 000D7974 38 61 00 14 */ addi r3, r1, 0x14
/* 800DBB38 000D7978 80 19 00 28 */ lwz r0, 0x28(r25)
/* 800DBB3C 000D797C 7C 80 DA 14 */ add r4, r0, r27
/* 800DBB40 000D7980 4B FF 65 71 */ bl GetAnmResult__Q34nw4r3g3d14ResAnmAmbLightCFPQ34nw4r3g3d17AmbLightAnmResultf
/* 800DBB44 000D7984 3B 7B 00 08 */ addi r27, r27, 8
/* 800DBB48 000D7988 3B 5A 00 01 */ addi r26, r26, 1
lbl_800DBB4C:
/* 800DBB4C 000D798C 7C 1A E0 40 */ cmplw r26, r28
/* 800DBB50 000D7990 41 80 FF D0 */ blt lbl_800DBB20
/* 800DBB54 000D7994 3B 40 00 00 */ li r26, 0
/* 800DBB58 000D7998 3B 80 00 00 */ li r28, 0
/* 800DBB5C 000D799C 48 00 00 30 */ b lbl_800DBB8C
lbl_800DBB60:
/* 800DBB60 000D79A0 7F 44 D3 78 */ mr r4, r26
/* 800DBB64 000D79A4 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBB68 000D79A8 4B FF 72 09 */ bl GetResAnmLight__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DBB6C 000D79AC 90 61 00 10 */ stw r3, 0x10(r1)
/* 800DBB70 000D79B0 FC 20 F8 90 */ fmr f1, f31
/* 800DBB74 000D79B4 38 61 00 10 */ addi r3, r1, 0x10
/* 800DBB78 000D79B8 80 19 00 2C */ lwz r0, 0x2c(r25)
/* 800DBB7C 000D79BC 7C 80 E2 14 */ add r4, r0, r28
/* 800DBB80 000D79C0 4B FF 66 01 */ bl GetAnmResult__Q34nw4r3g3d11ResAnmLightCFPQ34nw4r3g3d14LightAnmResultf
/* 800DBB84 000D79C4 3B 9C 00 40 */ addi r28, r28, 0x40
/* 800DBB88 000D79C8 3B 5A 00 01 */ addi r26, r26, 1
lbl_800DBB8C:
/* 800DBB8C 000D79CC 7C 1A E8 40 */ cmplw r26, r29
/* 800DBB90 000D79D0 41 80 FF D0 */ blt lbl_800DBB60
/* 800DBB94 000D79D4 3B 40 00 00 */ li r26, 0
/* 800DBB98 000D79D8 3B 80 00 00 */ li r28, 0
/* 800DBB9C 000D79DC 48 00 00 30 */ b lbl_800DBBCC
lbl_800DBBA0:
/* 800DBBA0 000D79E0 7F 44 D3 78 */ mr r4, r26
/* 800DBBA4 000D79E4 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBBA8 000D79E8 4B FF 72 F9 */ bl GetResAnmFog__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DBBAC 000D79EC 90 61 00 0C */ stw r3, 0xc(r1)
/* 800DBBB0 000D79F0 FC 20 F8 90 */ fmr f1, f31
/* 800DBBB4 000D79F4 38 61 00 0C */ addi r3, r1, 0xc
/* 800DBBB8 000D79F8 80 19 00 30 */ lwz r0, 0x30(r25)
/* 800DBBBC 000D79FC 7C 80 E2 14 */ add r4, r0, r28
/* 800DBBC0 000D7A00 4B FF 69 B1 */ bl GetAnmResult__Q34nw4r3g3d9ResAnmFogCFPQ34nw4r3g3d12FogAnmResultf
/* 800DBBC4 000D7A04 3B 9C 00 10 */ addi r28, r28, 0x10
/* 800DBBC8 000D7A08 3B 5A 00 01 */ addi r26, r26, 1
lbl_800DBBCC:
/* 800DBBCC 000D7A0C 7C 1A F0 40 */ cmplw r26, r30
/* 800DBBD0 000D7A10 41 80 FF D0 */ blt lbl_800DBBA0
/* 800DBBD4 000D7A14 3B 40 00 00 */ li r26, 0
/* 800DBBD8 000D7A18 3B 80 00 00 */ li r28, 0
/* 800DBBDC 000D7A1C 48 00 00 30 */ b lbl_800DBC0C
lbl_800DBBE0:
/* 800DBBE0 000D7A20 7F 44 D3 78 */ mr r4, r26
/* 800DBBE4 000D7A24 38 79 00 20 */ addi r3, r25, 0x20
/* 800DBBE8 000D7A28 4B FF 73 E9 */ bl GetResAnmCamera__Q34nw4r3g3d9ResAnmScnCFUl
/* 800DBBEC 000D7A2C 90 61 00 08 */ stw r3, 8(r1)
/* 800DBBF0 000D7A30 FC 20 F8 90 */ fmr f1, f31
/* 800DBBF4 000D7A34 38 61 00 08 */ addi r3, r1, 8
/* 800DBBF8 000D7A38 80 19 00 34 */ lwz r0, 0x34(r25)
/* 800DBBFC 000D7A3C 7C 80 E2 14 */ add r4, r0, r28
/* 800DBC00 000D7A40 4B FF 6A D1 */ bl GetAnmResult__Q34nw4r3g3d12ResAnmCameraCFPQ34nw4r3g3d15CameraAnmResultf
/* 800DBC04 000D7A44 3B 9C 00 34 */ addi r28, r28, 0x34
/* 800DBC08 000D7A48 3B 5A 00 01 */ addi r26, r26, 1
lbl_800DBC0C:
/* 800DBC0C 000D7A4C 7C 1A F8 40 */ cmplw r26, r31
/* 800DBC10 000D7A50 41 80 FF D0 */ blt lbl_800DBBE0
/* 800DBC14 000D7A54 39 61 00 40 */ addi r11, r1, 0x40
/* 800DBC18 000D7A58 E3 E1 00 48 */ psq_l f31, 72(r1), 0, qr0
/* 800DBC1C 000D7A5C CB E1 00 40 */ lfd f31, 0x40(r1)
/* 800DBC20 000D7A60 4B F2 B7 61 */ bl func_80007380
/* 800DBC24 000D7A64 80 01 00 54 */ lwz r0, 0x54(r1)
/* 800DBC28 000D7A68 7C 08 03 A6 */ mtlr r0
/* 800DBC2C 000D7A6C 38 21 00 50 */ addi r1, r1, 0x50
/* 800DBC30 000D7A70 4E 80 00 20 */ blr
/* 800DBC34 000D7A74 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBC38 000D7A78 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBC3C 000D7A7C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global IsDerivedFrom__Q34nw4r3g3d9AnmScnResCFQ44nw4r3g3d6G3dObj7TypeObj
IsDerivedFrom__Q34nw4r3g3d9AnmScnResCFQ44nw4r3g3d6G3dObj7TypeObj:
/* 800DBC40 000D7A80 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d9AnmScnRes@ha
/* 800DBC44 000D7A84 80 04 00 00 */ lwz r0, 0(r4)
/* 800DBC48 000D7A88 38 63 85 D8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d9AnmScnRes@l
/* 800DBC4C 000D7A8C 7C 00 18 40 */ cmplw r0, r3
/* 800DBC50 000D7A90 40 82 00 0C */ bne lbl_800DBC5C
/* 800DBC54 000D7A94 38 60 00 01 */ li r3, 1
/* 800DBC58 000D7A98 4E 80 00 20 */ blr
lbl_800DBC5C:
/* 800DBC5C 000D7A9C 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d6AnmScn@ha
/* 800DBC60 000D7AA0 80 04 00 00 */ lwz r0, 0(r4)
/* 800DBC64 000D7AA4 38 63 85 C8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d6AnmScn@l
/* 800DBC68 000D7AA8 7C 00 18 40 */ cmplw r0, r3
/* 800DBC6C 000D7AAC 40 82 00 0C */ bne lbl_800DBC78
/* 800DBC70 000D7AB0 38 60 00 01 */ li r3, 1
/* 800DBC74 000D7AB4 4E 80 00 20 */ blr
lbl_800DBC78:
/* 800DBC78 000D7AB8 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d6G3dObj@ha
/* 800DBC7C 000D7ABC 38 63 85 E8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d6G3dObj@l
/* 800DBC80 000D7AC0 7C 00 18 50 */ subf r0, r0, r3
/* 800DBC84 000D7AC4 7C 00 00 34 */ cntlzw r0, r0
/* 800DBC88 000D7AC8 54 03 D9 7E */ srwi r3, r0, 5
/* 800DBC8C 000D7ACC 4E 80 00 20 */ blr
.global IsDerivedFrom__Q34nw4r3g3d6AnmScnCFQ44nw4r3g3d6G3dObj7TypeObj
IsDerivedFrom__Q34nw4r3g3d6AnmScnCFQ44nw4r3g3d6G3dObj7TypeObj:
/* 800DBC90 000D7AD0 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d6AnmScn@ha
/* 800DBC94 000D7AD4 80 04 00 00 */ lwz r0, 0(r4)
/* 800DBC98 000D7AD8 38 63 85 C8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d6AnmScn@l
/* 800DBC9C 000D7ADC 7C 00 18 40 */ cmplw r0, r3
/* 800DBCA0 000D7AE0 40 82 00 0C */ bne lbl_800DBCAC
/* 800DBCA4 000D7AE4 38 60 00 01 */ li r3, 1
/* 800DBCA8 000D7AE8 4E 80 00 20 */ blr
lbl_800DBCAC:
/* 800DBCAC 000D7AEC 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d6G3dObj@ha
/* 800DBCB0 000D7AF0 80 04 00 00 */ lwz r0, 0(r4)
/* 800DBCB4 000D7AF4 38 63 85 E8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d6G3dObj@l
/* 800DBCB8 000D7AF8 7C 00 18 50 */ subf r0, r0, r3
/* 800DBCBC 000D7AFC 7C 00 00 34 */ cntlzw r0, r0
/* 800DBCC0 000D7B00 54 03 D9 7E */ srwi r3, r0, 5
/* 800DBCC4 000D7B04 4E 80 00 20 */ blr
/* 800DBCC8 000D7B08 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBCCC 000D7B0C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetTypeName__Q34nw4r3g3d9AnmScnResCFv
GetTypeName__Q34nw4r3g3d9AnmScnResCFv:
/* 800DBCD0 000D7B10 4B FF 8B 50 */ b GetTypeName__Q34nw4r3g3d12AnmObjVisResCFv
/* 800DBCD4 000D7B14 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBCD8 000D7B18 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBCDC 000D7B1C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetTypeObj__Q34nw4r3g3d9AnmScnResCFv
GetTypeObj__Q34nw4r3g3d9AnmScnResCFv:
/* 800DBCE0 000D7B20 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d9AnmScnRes@ha
/* 800DBCE4 000D7B24 38 63 85 D8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d9AnmScnRes@l
/* 800DBCE8 000D7B28 4E 80 00 20 */ blr
/* 800DBCEC 000D7B2C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetTypeName__Q34nw4r3g3d6AnmScnCFv
GetTypeName__Q34nw4r3g3d6AnmScnCFv:
/* 800DBCF0 000D7B30 4B FF 8B 30 */ b GetTypeName__Q34nw4r3g3d12AnmObjVisResCFv
/* 800DBCF4 000D7B34 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBCF8 000D7B38 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 800DBCFC 000D7B3C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global GetTypeObj__Q34nw4r3g3d6AnmScnCFv
GetTypeObj__Q34nw4r3g3d6AnmScnCFv:
/* 800DBD00 000D7B40 3C 60 80 41 */ lis r3, TYPE_NAME__Q34nw4r3g3d6AnmScn@ha
/* 800DBD04 000D7B44 38 63 85 C8 */ addi r3, r3, TYPE_NAME__Q34nw4r3g3d6AnmScn@l
/* 800DBD08 000D7B48 4E 80 00 20 */ blr
/* 800DBD0C 000D7B4C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.section .data4, "wa" # 0x80406560 - 0x80421040
.global TYPE_NAME__Q34nw4r3g3d6AnmScn
TYPE_NAME__Q34nw4r3g3d6AnmScn:
.incbin "baserom.dol", 0x4046C8, 0x10
.global TYPE_NAME__Q34nw4r3g3d9AnmScnRes
TYPE_NAME__Q34nw4r3g3d9AnmScnRes:
.incbin "baserom.dol", 0x4046D8, 0x10
.section .data5, "wa" # 0x80421040 - 0x80496700
.global __vt__Q34nw4r3g3d9AnmScnRes
__vt__Q34nw4r3g3d9AnmScnRes:
.incbin "baserom.dol", 0x43CF10, 0x90
.global __vt__Q34nw4r3g3d6AnmScn
__vt__Q34nw4r3g3d6AnmScn:
.incbin "baserom.dol", 0x43CFA0, 0x90
.section .data7, "wa" # 0x8055DF80 - 0x805643C0
.global $$213876
$$213876:
.incbin "baserom.dol", 0x499AC8, 0x4
.global $$213877
$$213877:
.incbin "baserom.dol", 0x499ACC, 0x4
.global $$213878
$$213878:
.incbin "baserom.dol", 0x499AD0, 0x8
.global $$214573
$$214573:
.incbin "baserom.dol", 0x499AD8, 0x8
.global $$214811
$$214811:
.incbin "baserom.dol", 0x499AE0, 0x8