mirror of https://github.com/zeldaret/tp.git
120 lines
5.5 KiB
ArmAsm
120 lines
5.5 KiB
ArmAsm
.include "macros.inc"
|
|
|
|
.section .text, "ax" # 8029bd14
|
|
|
|
|
|
.global __ct__6JASLfoFv
|
|
__ct__6JASLfoFv:
|
|
/* 8029BD14 00298C54 38 80 00 00 */ li r4, 0
|
|
/* 8029BD18 00298C58 90 83 00 00 */ stw r4, 0(r3)
|
|
/* 8029BD1C 00298C5C 38 00 00 01 */ li r0, 1
|
|
/* 8029BD20 00298C60 90 03 00 04 */ stw r0, 4(r3)
|
|
/* 8029BD24 00298C64 C0 02 BC E0 */ lfs f0, lbl_804556E0-_SDA2_BASE_(r2)
|
|
/* 8029BD28 00298C68 D0 03 00 08 */ stfs f0, 8(r3)
|
|
/* 8029BD2C 00298C6C D0 03 00 0C */ stfs f0, 0xc(r3)
|
|
/* 8029BD30 00298C70 C0 02 BC E4 */ lfs f0, lbl_804556E4-_SDA2_BASE_(r2)
|
|
/* 8029BD34 00298C74 D0 03 00 10 */ stfs f0, 0x10(r3)
|
|
/* 8029BD38 00298C78 B0 83 00 14 */ sth r4, 0x14(r3)
|
|
/* 8029BD3C 00298C7C B0 83 00 16 */ sth r4, 0x16(r3)
|
|
/* 8029BD40 00298C80 4E 80 00 20 */ blr
|
|
|
|
.global getValue__6JASLfoCFv
|
|
getValue__6JASLfoCFv:
|
|
/* 8029BD44 00298C84 94 21 FF E0 */ stwu r1, -0x20(r1)
|
|
/* 8029BD48 00298C88 A0 03 00 16 */ lhz r0, 0x16(r3)
|
|
/* 8029BD4C 00298C8C 28 00 00 00 */ cmplwi r0, 0
|
|
/* 8029BD50 00298C90 41 82 00 0C */ beq lbl_8029BD5C
|
|
/* 8029BD54 00298C94 C0 22 BC E0 */ lfs f1, lbl_804556E0-_SDA2_BASE_(r2)
|
|
/* 8029BD58 00298C98 48 00 00 78 */ b lbl_8029BDD0
|
|
lbl_8029BD5C:
|
|
/* 8029BD5C 00298C9C C0 22 BC E0 */ lfs f1, lbl_804556E0-_SDA2_BASE_(r2)
|
|
/* 8029BD60 00298CA0 C0 63 00 0C */ lfs f3, 0xc(r3)
|
|
/* 8029BD64 00298CA4 FC 01 18 00 */ fcmpu cr0, f1, f3
|
|
/* 8029BD68 00298CA8 40 82 00 08 */ bne lbl_8029BD70
|
|
/* 8029BD6C 00298CAC 48 00 00 64 */ b lbl_8029BDD0
|
|
lbl_8029BD70:
|
|
/* 8029BD70 00298CB0 C0 43 00 08 */ lfs f2, 8(r3)
|
|
/* 8029BD74 00298CB4 FC 02 08 40 */ fcmpo cr0, f2, f1
|
|
/* 8029BD78 00298CB8 40 80 00 30 */ bge lbl_8029BDA8
|
|
/* 8029BD7C 00298CBC C0 02 BC E8 */ lfs f0, lbl_804556E8-_SDA2_BASE_(r2)
|
|
/* 8029BD80 00298CC0 EC 00 00 B2 */ fmuls f0, f0, f2
|
|
/* 8029BD84 00298CC4 FC 00 00 1E */ fctiwz f0, f0
|
|
/* 8029BD88 00298CC8 D8 01 00 08 */ stfd f0, 8(r1)
|
|
/* 8029BD8C 00298CCC 80 01 00 0C */ lwz r0, 0xc(r1)
|
|
/* 8029BD90 00298CD0 54 00 1C 38 */ rlwinm r0, r0, 3, 0x10, 0x1c
|
|
/* 8029BD94 00298CD4 3C 60 80 44 */ lis r3, lbl_80439A20@ha
|
|
/* 8029BD98 00298CD8 38 63 9A 20 */ addi r3, r3, lbl_80439A20@l
|
|
/* 8029BD9C 00298CDC 7C 03 04 2E */ lfsx f0, r3, r0
|
|
/* 8029BDA0 00298CE0 FC 00 00 50 */ fneg f0, f0
|
|
/* 8029BDA4 00298CE4 48 00 00 28 */ b lbl_8029BDCC
|
|
lbl_8029BDA8:
|
|
/* 8029BDA8 00298CE8 C0 02 BC EC */ lfs f0, lbl_804556EC-_SDA2_BASE_(r2)
|
|
/* 8029BDAC 00298CEC EC 00 00 B2 */ fmuls f0, f0, f2
|
|
/* 8029BDB0 00298CF0 FC 00 00 1E */ fctiwz f0, f0
|
|
/* 8029BDB4 00298CF4 D8 01 00 10 */ stfd f0, 0x10(r1)
|
|
/* 8029BDB8 00298CF8 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
/* 8029BDBC 00298CFC 54 00 1C 38 */ rlwinm r0, r0, 3, 0x10, 0x1c
|
|
/* 8029BDC0 00298D00 3C 60 80 44 */ lis r3, lbl_80439A20@ha
|
|
/* 8029BDC4 00298D04 38 63 9A 20 */ addi r3, r3, lbl_80439A20@l
|
|
/* 8029BDC8 00298D08 7C 03 04 2E */ lfsx f0, r3, r0
|
|
lbl_8029BDCC:
|
|
/* 8029BDCC 00298D0C EC 23 00 32 */ fmuls f1, f3, f0
|
|
lbl_8029BDD0:
|
|
/* 8029BDD0 00298D10 38 21 00 20 */ addi r1, r1, 0x20
|
|
/* 8029BDD4 00298D14 4E 80 00 20 */ blr
|
|
|
|
.global incCounter__6JASLfoFf
|
|
incCounter__6JASLfoFf:
|
|
/* 8029BDD8 00298D18 A0 83 00 16 */ lhz r4, 0x16(r3)
|
|
/* 8029BDDC 00298D1C 28 04 00 00 */ cmplwi r4, 0
|
|
/* 8029BDE0 00298D20 41 82 00 10 */ beq lbl_8029BDF0
|
|
/* 8029BDE4 00298D24 38 04 FF FF */ addi r0, r4, -1
|
|
/* 8029BDE8 00298D28 B0 03 00 16 */ sth r0, 0x16(r3)
|
|
/* 8029BDEC 00298D2C 4E 80 00 20 */ blr
|
|
lbl_8029BDF0:
|
|
/* 8029BDF0 00298D30 C0 63 00 08 */ lfs f3, 8(r3)
|
|
/* 8029BDF4 00298D34 C0 42 BC F0 */ lfs f2, lbl_804556F0-_SDA2_BASE_(r2)
|
|
/* 8029BDF8 00298D38 C0 03 00 10 */ lfs f0, 0x10(r3)
|
|
/* 8029BDFC 00298D3C EC 02 00 32 */ fmuls f0, f2, f0
|
|
/* 8029BE00 00298D40 EC 01 00 32 */ fmuls f0, f1, f0
|
|
/* 8029BE04 00298D44 EC 03 00 2A */ fadds f0, f3, f0
|
|
/* 8029BE08 00298D48 D0 03 00 08 */ stfs f0, 8(r3)
|
|
/* 8029BE0C 00298D4C C0 23 00 08 */ lfs f1, 8(r3)
|
|
/* 8029BE10 00298D50 C0 02 BC E4 */ lfs f0, lbl_804556E4-_SDA2_BASE_(r2)
|
|
/* 8029BE14 00298D54 FC 01 00 40 */ fcmpo cr0, f1, f0
|
|
/* 8029BE18 00298D58 4C 41 13 82 */ cror 2, 1, 2
|
|
/* 8029BE1C 00298D5C 4C 82 00 20 */ bnelr
|
|
/* 8029BE20 00298D60 EC 01 00 28 */ fsubs f0, f1, f0
|
|
/* 8029BE24 00298D64 D0 03 00 08 */ stfs f0, 8(r3)
|
|
/* 8029BE28 00298D68 4E 80 00 20 */ blr
|
|
|
|
.global resetCounter__6JASLfoFv
|
|
resetCounter__6JASLfoFv:
|
|
/* 8029BE2C 00298D6C A0 03 00 14 */ lhz r0, 0x14(r3)
|
|
/* 8029BE30 00298D70 B0 03 00 16 */ sth r0, 0x16(r3)
|
|
/* 8029BE34 00298D74 80 03 00 04 */ lwz r0, 4(r3)
|
|
/* 8029BE38 00298D78 2C 00 00 01 */ cmpwi r0, 1
|
|
/* 8029BE3C 00298D7C 41 82 00 24 */ beq lbl_8029BE60
|
|
/* 8029BE40 00298D80 4C 80 00 20 */ bgelr
|
|
/* 8029BE44 00298D84 2C 00 00 00 */ cmpwi r0, 0
|
|
/* 8029BE48 00298D88 4D 80 00 20 */ bltlr
|
|
/* 8029BE4C 00298D8C 3C 80 80 43 */ lis r4, lbl_80431C40@ha
|
|
/* 8029BE50 00298D90 38 84 1C 40 */ addi r4, r4, lbl_80431C40@l
|
|
/* 8029BE54 00298D94 C0 04 00 08 */ lfs f0, 8(r4)
|
|
/* 8029BE58 00298D98 D0 03 00 08 */ stfs f0, 8(r3)
|
|
/* 8029BE5C 00298D9C 4E 80 00 20 */ blr
|
|
lbl_8029BE60:
|
|
/* 8029BE60 00298DA0 C0 02 BC E0 */ lfs f0, lbl_804556E0-_SDA2_BASE_(r2)
|
|
/* 8029BE64 00298DA4 D0 03 00 08 */ stfs f0, 8(r3)
|
|
/* 8029BE68 00298DA8 4E 80 00 20 */ blr
|
|
/* 8029BE6C 00298DAC 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
/* 8029BE70 00298DB0 7C 08 02 A6 */ mflr r0
|
|
/* 8029BE74 00298DB4 90 01 00 14 */ stw r0, 0x14(r1)
|
|
/* 8029BE78 00298DB8 3C 60 80 43 */ lis r3, lbl_80431C40@ha
|
|
/* 8029BE7C 00298DBC 38 63 1C 40 */ addi r3, r3, lbl_80431C40@l
|
|
/* 8029BE80 00298DC0 4B FF FE 95 */ bl __ct__6JASLfoFv
|
|
/* 8029BE84 00298DC4 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
/* 8029BE88 00298DC8 7C 08 03 A6 */ mtlr r0
|
|
/* 8029BE8C 00298DCC 38 21 00 10 */ addi r1, r1, 0x10
|
|
/* 8029BE90 00298DD0 4E 80 00 20 */ blr
|