prime/asm/Kyoto/Animation/CAdditiveAnimPlayback.s

339 lines
15 KiB
ArmAsm

.include "macros.inc"
.section .sdata
.balign 8
.global lbl_805A89F8
lbl_805A89F8:
# ROM: 0x3F6398
.float 1.0
.global lbl_805A89FC
lbl_805A89FC:
# ROM: 0x3F639C
.4byte 0
.global lbl_805A8A00
lbl_805A8A00:
# ROM: 0x3F63A0
.float 1.0
.global lbl_805A8A04
lbl_805A8A04:
# ROM: 0x3F63A4
.4byte 0
.global lbl_805A8A08
lbl_805A8A08:
# ROM: 0x3F63A8
.4byte 0
.4byte 0
.section .text, "ax"
.global AddToSegStatementSet__21CAdditiveAnimPlaybackCFRC10CSegIdListRC15CCharLayoutInfoR16CSegStatementSet
AddToSegStatementSet__21CAdditiveAnimPlaybackCFRC10CSegIdListRC15CCharLayoutInfoR16CSegStatementSet:
/* 8035DB10 0035AA70 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 8035DB14 0035AA74 7C 08 02 A6 */ mflr r0
/* 8035DB18 0035AA78 90 01 00 44 */ stw r0, 0x44(r1)
/* 8035DB1C 0035AA7C BF 21 00 24 */ stmw r25, 0x24(r1)
/* 8035DB20 0035AA80 7C 79 1B 78 */ mr r25, r3
/* 8035DB24 0035AA84 7C 9A 23 78 */ mr r26, r4
/* 8035DB28 0035AA88 7C BB 2B 78 */ mr r27, r5
/* 8035DB2C 0035AA8C 7C DC 33 78 */ mr r28, r6
/* 8035DB30 0035AA90 38 61 00 0C */ addi r3, r1, 0xc
/* 8035DB34 0035AA94 4B F9 F8 39 */ bl __ct__21CStackSegStatementSetFv
/* 8035DB38 0035AA98 80 79 00 08 */ lwz r3, 8(r25)
/* 8035DB3C 0035AA9C 7F 44 D3 78 */ mr r4, r26
/* 8035DB40 0035AAA0 38 A1 00 0C */ addi r5, r1, 0xc
/* 8035DB44 0035AAA4 80 63 00 00 */ lwz r3, 0(r3)
/* 8035DB48 0035AAA8 81 83 00 00 */ lwz r12, 0(r3)
/* 8035DB4C 0035AAAC 81 8C 00 44 */ lwz r12, 0x44(r12)
/* 8035DB50 0035AAB0 7D 89 03 A6 */ mtctr r12
/* 8035DB54 0035AAB4 4E 80 04 21 */ bctrl
/* 8035DB58 0035AAB8 83 DA 00 04 */ lwz r30, 4(r26)
/* 8035DB5C 0035AABC 3B A0 00 00 */ li r29, 0
/* 8035DB60 0035AAC0 3B E0 00 01 */ li r31, 1
/* 8035DB64 0035AAC4 48 00 00 54 */ b lbl_8035DBB8
lbl_8035DB68:
/* 8035DB68 0035AAC8 80 DA 00 0C */ lwz r6, 0xc(r26)
/* 8035DB6C 0035AACC 7F 64 DB 78 */ mr r4, r27
/* 8035DB70 0035AAD0 38 61 00 14 */ addi r3, r1, 0x14
/* 8035DB74 0035AAD4 38 A1 00 08 */ addi r5, r1, 8
/* 8035DB78 0035AAD8 7C 06 E8 AE */ lbzx r0, r6, r29
/* 8035DB7C 0035AADC 98 01 00 08 */ stb r0, 8(r1)
/* 8035DB80 0035AAE0 4B DC DE 21 */ bl GetFromParentUnrotated__15CCharLayoutInfoCFRC6CSegId
/* 8035DB84 0035AAE4 80 7A 00 0C */ lwz r3, 0xc(r26)
/* 8035DB88 0035AAE8 80 81 00 10 */ lwz r4, 0x10(r1)
/* 8035DB8C 0035AAEC 7C 03 E8 AE */ lbzx r0, r3, r29
/* 8035DB90 0035AAF0 3B BD 00 01 */ addi r29, r29, 1
/* 8035DB94 0035AAF4 C0 01 00 14 */ lfs f0, 0x14(r1)
/* 8035DB98 0035AAF8 54 00 28 34 */ slwi r0, r0, 5
/* 8035DB9C 0035AAFC 7C 64 02 14 */ add r3, r4, r0
/* 8035DBA0 0035AB00 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DBA4 0035AB04 C0 01 00 18 */ lfs f0, 0x18(r1)
/* 8035DBA8 0035AB08 D0 03 00 14 */ stfs f0, 0x14(r3)
/* 8035DBAC 0035AB0C C0 01 00 1C */ lfs f0, 0x1c(r1)
/* 8035DBB0 0035AB10 D0 03 00 18 */ stfs f0, 0x18(r3)
/* 8035DBB4 0035AB14 93 E3 00 1C */ stw r31, 0x1c(r3)
lbl_8035DBB8:
/* 8035DBB8 0035AB18 7C 1D F0 40 */ cmplw r29, r30
/* 8035DBBC 0035AB1C 41 80 FF AC */ blt lbl_8035DB68
/* 8035DBC0 0035AB20 C0 39 00 10 */ lfs f1, 0x10(r25)
/* 8035DBC4 0035AB24 7F 83 E3 78 */ mr r3, r28
/* 8035DBC8 0035AB28 7F 44 D3 78 */ mr r4, r26
/* 8035DBCC 0035AB2C 7F 65 DB 78 */ mr r5, r27
/* 8035DBD0 0035AB30 38 C1 00 0C */ addi r6, r1, 0xc
/* 8035DBD4 0035AB34 4B F9 F8 65 */ bl Add__16CSegStatementSetFRC10CSegIdListRC15CCharLayoutInfoRC16CSegStatementSetf
/* 8035DBD8 0035AB38 38 61 00 0C */ addi r3, r1, 0xc
/* 8035DBDC 0035AB3C 38 80 FF FF */ li r4, -1
/* 8035DBE0 0035AB40 4B F9 F6 CD */ bl __dt__21CStackSegStatementSetFv
/* 8035DBE4 0035AB44 BB 21 00 24 */ lmw r25, 0x24(r1)
/* 8035DBE8 0035AB48 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8035DBEC 0035AB4C 7C 08 03 A6 */ mtlr r0
/* 8035DBF0 0035AB50 38 21 00 40 */ addi r1, r1, 0x40
/* 8035DBF4 0035AB54 4E 80 00 20 */ blr
.global Update__21CAdditiveAnimPlaybackFf
Update__21CAdditiveAnimPlaybackFf:
/* 8035DBF8 0035AB58 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8035DBFC 0035AB5C 80 03 00 1C */ lwz r0, 0x1c(r3)
/* 8035DC00 0035AB60 2C 00 00 01 */ cmpwi r0, 1
/* 8035DC04 0035AB64 40 82 00 88 */ bne lbl_8035DC8C
/* 8035DC08 0035AB68 C0 43 00 00 */ lfs f2, 0(r3)
/* 8035DC0C 0035AB6C D0 41 00 10 */ stfs f2, 0x10(r1)
/* 8035DC10 0035AB70 C0 03 00 18 */ lfs f0, 0x18(r3)
/* 8035DC14 0035AB74 EC 00 08 2A */ fadds f0, f0, f1
/* 8035DC18 0035AB78 FC 00 10 40 */ fcmpo cr0, f0, f2
/* 8035DC1C 0035AB7C D0 01 00 0C */ stfs f0, 0xc(r1)
/* 8035DC20 0035AB80 40 80 00 0C */ bge lbl_8035DC2C
/* 8035DC24 0035AB84 38 81 00 0C */ addi r4, r1, 0xc
/* 8035DC28 0035AB88 48 00 00 08 */ b lbl_8035DC30
lbl_8035DC2C:
/* 8035DC2C 0035AB8C 38 81 00 10 */ addi r4, r1, 0x10
lbl_8035DC30:
/* 8035DC30 0035AB90 C0 24 00 00 */ lfs f1, 0(r4)
/* 8035DC34 0035AB94 C0 02 CD 40 */ lfs f0, lbl_805AEA60@sda21(r2)
/* 8035DC38 0035AB98 D0 23 00 18 */ stfs f1, 0x18(r3)
/* 8035DC3C 0035AB9C C0 41 00 10 */ lfs f2, 0x10(r1)
/* 8035DC40 0035ABA0 FC 02 00 40 */ fcmpo cr0, f2, f0
/* 8035DC44 0035ABA4 40 81 00 18 */ ble lbl_8035DC5C
/* 8035DC48 0035ABA8 C0 03 00 18 */ lfs f0, 0x18(r3)
/* 8035DC4C 0035ABAC C0 23 00 0C */ lfs f1, 0xc(r3)
/* 8035DC50 0035ABB0 EC 00 10 24 */ fdivs f0, f0, f2
/* 8035DC54 0035ABB4 EC 01 00 32 */ fmuls f0, f1, f0
/* 8035DC58 0035ABB8 48 00 00 08 */ b lbl_8035DC60
lbl_8035DC5C:
/* 8035DC5C 0035ABBC C0 03 00 0C */ lfs f0, 0xc(r3)
lbl_8035DC60:
/* 8035DC60 0035ABC0 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DC64 0035ABC4 C0 02 CD 44 */ lfs f0, lbl_805AEA64@sda21(r2)
/* 8035DC68 0035ABC8 C0 43 00 10 */ lfs f2, 0x10(r3)
/* 8035DC6C 0035ABCC C0 23 00 0C */ lfs f1, 0xc(r3)
/* 8035DC70 0035ABD0 EC 22 08 28 */ fsubs f1, f2, f1
/* 8035DC74 0035ABD4 FC 20 0A 10 */ fabs f1, f1
/* 8035DC78 0035ABD8 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8035DC7C 0035ABDC 40 80 00 8C */ bge lbl_8035DD08
/* 8035DC80 0035ABE0 38 00 00 03 */ li r0, 3
/* 8035DC84 0035ABE4 90 03 00 1C */ stw r0, 0x1c(r3)
/* 8035DC88 0035ABE8 48 00 00 80 */ b lbl_8035DD08
lbl_8035DC8C:
/* 8035DC8C 0035ABEC 2C 00 00 02 */ cmpwi r0, 2
/* 8035DC90 0035ABF0 40 82 00 78 */ bne lbl_8035DD08
/* 8035DC94 0035ABF4 C0 43 00 18 */ lfs f2, 0x18(r3)
/* 8035DC98 0035ABF8 C0 0D 9E 48 */ lfs f0, lbl_805A8A08@sda21(r13)
/* 8035DC9C 0035ABFC EC 22 08 28 */ fsubs f1, f2, f1
/* 8035DCA0 0035AC00 C0 43 00 04 */ lfs f2, 4(r3)
/* 8035DCA4 0035AC04 FC 00 08 40 */ fcmpo cr0, f0, f1
/* 8035DCA8 0035AC08 D0 21 00 08 */ stfs f1, 8(r1)
/* 8035DCAC 0035AC0C 40 80 00 0C */ bge lbl_8035DCB8
/* 8035DCB0 0035AC10 38 81 00 08 */ addi r4, r1, 8
/* 8035DCB4 0035AC14 48 00 00 08 */ b lbl_8035DCBC
lbl_8035DCB8:
/* 8035DCB8 0035AC18 38 8D 9E 48 */ addi r4, r13, lbl_805A8A08@sda21
lbl_8035DCBC:
/* 8035DCBC 0035AC1C C0 02 CD 40 */ lfs f0, lbl_805AEA60@sda21(r2)
/* 8035DCC0 0035AC20 C0 24 00 00 */ lfs f1, 0(r4)
/* 8035DCC4 0035AC24 FC 02 00 40 */ fcmpo cr0, f2, f0
/* 8035DCC8 0035AC28 D0 23 00 18 */ stfs f1, 0x18(r3)
/* 8035DCCC 0035AC2C 40 81 00 14 */ ble lbl_8035DCE0
/* 8035DCD0 0035AC30 C0 03 00 18 */ lfs f0, 0x18(r3)
/* 8035DCD4 0035AC34 C0 23 00 0C */ lfs f1, 0xc(r3)
/* 8035DCD8 0035AC38 EC 00 10 24 */ fdivs f0, f0, f2
/* 8035DCDC 0035AC3C EC 01 00 32 */ fmuls f0, f1, f0
lbl_8035DCE0:
/* 8035DCE0 0035AC40 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DCE4 0035AC44 C0 22 CD 40 */ lfs f1, lbl_805AEA60@sda21(r2)
/* 8035DCE8 0035AC48 C0 43 00 10 */ lfs f2, 0x10(r3)
/* 8035DCEC 0035AC4C C0 02 CD 44 */ lfs f0, lbl_805AEA64@sda21(r2)
/* 8035DCF0 0035AC50 EC 22 08 28 */ fsubs f1, f2, f1
/* 8035DCF4 0035AC54 FC 20 0A 10 */ fabs f1, f1
/* 8035DCF8 0035AC58 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8035DCFC 0035AC5C 40 80 00 0C */ bge lbl_8035DD08
/* 8035DD00 0035AC60 38 00 00 04 */ li r0, 4
/* 8035DD04 0035AC64 90 03 00 1C */ stw r0, 0x1c(r3)
lbl_8035DD08:
/* 8035DD08 0035AC68 38 21 00 20 */ addi r1, r1, 0x20
/* 8035DD0C 0035AC6C 4E 80 00 20 */ blr
.global FadeOut__21CAdditiveAnimPlaybackFv
FadeOut__21CAdditiveAnimPlaybackFv:
/* 8035DD10 0035AC70 80 03 00 1C */ lwz r0, 0x1c(r3)
/* 8035DD14 0035AC74 2C 00 00 04 */ cmpwi r0, 4
/* 8035DD18 0035AC78 41 82 00 0C */ beq lbl_8035DD24
/* 8035DD1C 0035AC7C 2C 00 00 03 */ cmpwi r0, 3
/* 8035DD20 0035AC80 40 82 00 10 */ bne lbl_8035DD30
lbl_8035DD24:
/* 8035DD24 0035AC84 C0 03 00 04 */ lfs f0, 4(r3)
/* 8035DD28 0035AC88 D0 03 00 18 */ stfs f0, 0x18(r3)
/* 8035DD2C 0035AC8C 48 00 00 24 */ b lbl_8035DD50
lbl_8035DD30:
/* 8035DD30 0035AC90 2C 00 00 01 */ cmpwi r0, 1
/* 8035DD34 0035AC94 40 82 00 1C */ bne lbl_8035DD50
/* 8035DD38 0035AC98 C0 43 00 18 */ lfs f2, 0x18(r3)
/* 8035DD3C 0035AC9C C0 23 00 00 */ lfs f1, 0(r3)
/* 8035DD40 0035ACA0 C0 03 00 04 */ lfs f0, 4(r3)
/* 8035DD44 0035ACA4 EC 22 08 24 */ fdivs f1, f2, f1
/* 8035DD48 0035ACA8 EC 01 00 32 */ fmuls f0, f1, f0
/* 8035DD4C 0035ACAC D0 03 00 18 */ stfs f0, 0x18(r3)
lbl_8035DD50:
/* 8035DD50 0035ACB0 C0 23 00 04 */ lfs f1, 4(r3)
/* 8035DD54 0035ACB4 C0 02 CD 40 */ lfs f0, lbl_805AEA60@sda21(r2)
/* 8035DD58 0035ACB8 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8035DD5C 0035ACBC 40 81 00 10 */ ble lbl_8035DD6C
/* 8035DD60 0035ACC0 38 00 00 02 */ li r0, 2
/* 8035DD64 0035ACC4 90 03 00 1C */ stw r0, 0x1c(r3)
/* 8035DD68 0035ACC8 4E 80 00 20 */ blr
lbl_8035DD6C:
/* 8035DD6C 0035ACCC 38 00 00 04 */ li r0, 4
/* 8035DD70 0035ACD0 90 03 00 1C */ stw r0, 0x1c(r3)
/* 8035DD74 0035ACD4 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DD78 0035ACD8 4E 80 00 20 */ blr
.global SetWeight__21CAdditiveAnimPlaybackFf
SetWeight__21CAdditiveAnimPlaybackFf:
/* 8035DD7C 0035ACDC 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8035DD80 0035ACE0 FC 00 08 18 */ frsp f0, f1
/* 8035DD84 0035ACE4 C0 4D 9E 40 */ lfs f2, lbl_805A8A00@sda21(r13)
/* 8035DD88 0035ACE8 D0 21 00 08 */ stfs f1, 8(r1)
/* 8035DD8C 0035ACEC FC 02 00 40 */ fcmpo cr0, f2, f0
/* 8035DD90 0035ACF0 40 80 00 0C */ bge lbl_8035DD9C
/* 8035DD94 0035ACF4 38 8D 9E 40 */ addi r4, r13, lbl_805A8A00@sda21
/* 8035DD98 0035ACF8 48 00 00 08 */ b lbl_8035DDA0
lbl_8035DD9C:
/* 8035DD9C 0035ACFC 38 81 00 08 */ addi r4, r1, 8
lbl_8035DDA0:
/* 8035DDA0 0035AD00 C0 2D 9E 44 */ lfs f1, lbl_805A8A04@sda21(r13)
/* 8035DDA4 0035AD04 C0 04 00 00 */ lfs f0, 0(r4)
/* 8035DDA8 0035AD08 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8035DDAC 0035AD0C 40 80 00 08 */ bge lbl_8035DDB4
/* 8035DDB0 0035AD10 48 00 00 08 */ b lbl_8035DDB8
lbl_8035DDB4:
/* 8035DDB4 0035AD14 38 8D 9E 44 */ addi r4, r13, lbl_805A8A04@sda21
lbl_8035DDB8:
/* 8035DDB8 0035AD18 C0 04 00 00 */ lfs f0, 0(r4)
/* 8035DDBC 0035AD1C D0 03 00 0C */ stfs f0, 0xc(r3)
/* 8035DDC0 0035AD20 80 03 00 1C */ lwz r0, 0x1c(r3)
/* 8035DDC4 0035AD24 2C 00 00 01 */ cmpwi r0, 1
/* 8035DDC8 0035AD28 40 82 00 34 */ bne lbl_8035DDFC
/* 8035DDCC 0035AD2C C0 43 00 00 */ lfs f2, 0(r3)
/* 8035DDD0 0035AD30 C0 02 CD 40 */ lfs f0, lbl_805AEA60@sda21(r2)
/* 8035DDD4 0035AD34 FC 02 00 40 */ fcmpo cr0, f2, f0
/* 8035DDD8 0035AD38 40 81 00 18 */ ble lbl_8035DDF0
/* 8035DDDC 0035AD3C C0 03 00 18 */ lfs f0, 0x18(r3)
/* 8035DDE0 0035AD40 C0 23 00 0C */ lfs f1, 0xc(r3)
/* 8035DDE4 0035AD44 EC 00 10 24 */ fdivs f0, f0, f2
/* 8035DDE8 0035AD48 EC 01 00 32 */ fmuls f0, f1, f0
/* 8035DDEC 0035AD4C 48 00 00 08 */ b lbl_8035DDF4
lbl_8035DDF0:
/* 8035DDF0 0035AD50 C0 03 00 0C */ lfs f0, 0xc(r3)
lbl_8035DDF4:
/* 8035DDF4 0035AD54 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DDF8 0035AD58 48 00 00 44 */ b lbl_8035DE3C
lbl_8035DDFC:
/* 8035DDFC 0035AD5C 2C 00 00 02 */ cmpwi r0, 2
/* 8035DE00 0035AD60 40 82 00 34 */ bne lbl_8035DE34
/* 8035DE04 0035AD64 C0 43 00 04 */ lfs f2, 4(r3)
/* 8035DE08 0035AD68 C0 02 CD 40 */ lfs f0, lbl_805AEA60@sda21(r2)
/* 8035DE0C 0035AD6C FC 02 00 40 */ fcmpo cr0, f2, f0
/* 8035DE10 0035AD70 40 81 00 18 */ ble lbl_8035DE28
/* 8035DE14 0035AD74 C0 03 00 18 */ lfs f0, 0x18(r3)
/* 8035DE18 0035AD78 C0 23 00 0C */ lfs f1, 0xc(r3)
/* 8035DE1C 0035AD7C EC 00 10 24 */ fdivs f0, f0, f2
/* 8035DE20 0035AD80 EC 01 00 32 */ fmuls f0, f1, f0
/* 8035DE24 0035AD84 48 00 00 08 */ b lbl_8035DE2C
lbl_8035DE28:
/* 8035DE28 0035AD88 C0 03 00 0C */ lfs f0, 0xc(r3)
lbl_8035DE2C:
/* 8035DE2C 0035AD8C D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DE30 0035AD90 48 00 00 0C */ b lbl_8035DE3C
lbl_8035DE34:
/* 8035DE34 0035AD94 C0 03 00 0C */ lfs f0, 0xc(r3)
/* 8035DE38 0035AD98 D0 03 00 10 */ stfs f0, 0x10(r3)
lbl_8035DE3C:
/* 8035DE3C 0035AD9C 38 21 00 10 */ addi r1, r1, 0x10
/* 8035DE40 0035ADA0 4E 80 00 20 */ blr
.global "__ct__21CAdditiveAnimPlaybackFRCQ24rstl25ncrc_ptr<13CAnimTreeNode>fbRC22CAdditiveAnimationInfob"
"__ct__21CAdditiveAnimPlaybackFRCQ24rstl25ncrc_ptr<13CAnimTreeNode>fbRC22CAdditiveAnimationInfob":
/* 8035DE44 0035ADA4 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8035DE48 0035ADA8 D0 21 00 08 */ stfs f1, 8(r1)
/* 8035DE4C 0035ADAC C0 06 00 00 */ lfs f0, 0(r6)
/* 8035DE50 0035ADB0 D0 03 00 00 */ stfs f0, 0(r3)
/* 8035DE54 0035ADB4 C0 06 00 04 */ lfs f0, 4(r6)
/* 8035DE58 0035ADB8 D0 03 00 04 */ stfs f0, 4(r3)
/* 8035DE5C 0035ADBC 80 04 00 00 */ lwz r0, 0(r4)
/* 8035DE60 0035ADC0 90 03 00 08 */ stw r0, 8(r3)
/* 8035DE64 0035ADC4 80 C3 00 08 */ lwz r6, 8(r3)
/* 8035DE68 0035ADC8 80 86 00 04 */ lwz r4, 4(r6)
/* 8035DE6C 0035ADCC 38 04 00 01 */ addi r0, r4, 1
/* 8035DE70 0035ADD0 90 06 00 04 */ stw r0, 4(r6)
/* 8035DE74 0035ADD4 C0 2D 9E 38 */ lfs f1, lbl_805A89F8@sda21(r13)
/* 8035DE78 0035ADD8 C0 01 00 08 */ lfs f0, 8(r1)
/* 8035DE7C 0035ADDC FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8035DE80 0035ADE0 40 80 00 0C */ bge lbl_8035DE8C
/* 8035DE84 0035ADE4 38 8D 9E 38 */ addi r4, r13, lbl_805A89F8@sda21
/* 8035DE88 0035ADE8 48 00 00 08 */ b lbl_8035DE90
lbl_8035DE8C:
/* 8035DE8C 0035ADEC 38 81 00 08 */ addi r4, r1, 8
lbl_8035DE90:
/* 8035DE90 0035ADF0 C0 2D 9E 3C */ lfs f1, lbl_805A89FC@sda21(r13)
/* 8035DE94 0035ADF4 C0 04 00 00 */ lfs f0, 0(r4)
/* 8035DE98 0035ADF8 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8035DE9C 0035ADFC 40 80 00 08 */ bge lbl_8035DEA4
/* 8035DEA0 0035AE00 48 00 00 08 */ b lbl_8035DEA8
lbl_8035DEA4:
/* 8035DEA4 0035AE04 38 8D 9E 3C */ addi r4, r13, lbl_805A89FC@sda21
lbl_8035DEA8:
/* 8035DEA8 0035AE08 C0 24 00 00 */ lfs f1, 0(r4)
/* 8035DEAC 0035AE0C 54 A0 06 3F */ clrlwi. r0, r5, 0x18
/* 8035DEB0 0035AE10 C0 02 CD 40 */ lfs f0, lbl_805AEA60@sda21(r2)
/* 8035DEB4 0035AE14 38 C0 00 01 */ li r6, 1
/* 8035DEB8 0035AE18 D0 23 00 0C */ stfs f1, 0xc(r3)
/* 8035DEBC 0035AE1C 38 80 00 00 */ li r4, 0
/* 8035DEC0 0035AE20 D0 03 00 10 */ stfs f0, 0x10(r3)
/* 8035DEC4 0035AE24 98 A3 00 14 */ stb r5, 0x14(r3)
/* 8035DEC8 0035AE28 D0 03 00 18 */ stfs f0, 0x18(r3)
/* 8035DECC 0035AE2C 90 C3 00 1C */ stw r6, 0x1c(r3)
/* 8035DED0 0035AE30 40 82 00 10 */ bne lbl_8035DEE0
/* 8035DED4 0035AE34 54 E0 06 3F */ clrlwi. r0, r7, 0x18
/* 8035DED8 0035AE38 41 82 00 08 */ beq lbl_8035DEE0
/* 8035DEDC 0035AE3C 7C C4 33 78 */ mr r4, r6
lbl_8035DEE0:
/* 8035DEE0 0035AE40 98 83 00 20 */ stb r4, 0x20(r3)
/* 8035DEE4 0035AE44 38 21 00 10 */ addi r1, r1, 0x10
/* 8035DEE8 0035AE48 4E 80 00 20 */ blr
.section .sdata2, "a"
.balign 8
.global lbl_805AEA60
lbl_805AEA60:
# ROM: 0x3FB300
.4byte 0
.global lbl_805AEA64
lbl_805AEA64:
# ROM: 0x3FB304
.4byte 0x3727C5AC