mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
39 lines
1.6 KiB
ArmAsm
39 lines
1.6 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_80029FF4
|
||
|
/* 53F4 80029FF4 3C014980 */ lui $at, 0x4980
|
||
|
/* 53F8 80029FF8 44812000 */ mtc1 $at, $f4
|
||
|
/* 53FC 80029FFC 00000000 */ nop
|
||
|
/* 5400 8002A000 460C203E */ c.le.s $f4, $f12
|
||
|
/* 5404 8002A004 00000000 */ nop
|
||
|
/* 5408 8002A008 45010008 */ bc1t .L8002A02C
|
||
|
/* 540C 8002A00C 46006086 */ mov.s $f2, $f12
|
||
|
/* 5410 8002A010 3C01C980 */ lui $at, 0xc980
|
||
|
/* 5414 8002A014 44810000 */ mtc1 $at, $f0
|
||
|
/* 5418 8002A018 00000000 */ nop
|
||
|
/* 541C 8002A01C 4600603E */ c.le.s $f12, $f0
|
||
|
/* 5420 8002A020 00000000 */ nop
|
||
|
/* 5424 8002A024 4500000F */ bc1f .L8002A064
|
||
|
/* 5428 8002A028 00000000 */ nop
|
||
|
.L8002A02C:
|
||
|
/* 542C 8002A02C 3C013580 */ lui $at, 0x3580
|
||
|
/* 5430 8002A030 44810000 */ mtc1 $at, $f0
|
||
|
/* 5434 8002A034 00000000 */ nop
|
||
|
/* 5438 8002A038 46006302 */ mul.s $f12, $f12, $f0
|
||
|
/* 543C 8002A03C 00000000 */ nop
|
||
|
/* 5440 8002A040 4600618D */ trunc.w.s $f6, $f12
|
||
|
/* 5444 8002A044 44023000 */ mfc1 $v0, $f6
|
||
|
/* 5448 8002A048 00000000 */ nop
|
||
|
/* 544C 8002A04C 44820000 */ mtc1 $v0, $f0
|
||
|
/* 5450 8002A050 00000000 */ nop
|
||
|
/* 5454 8002A054 46800020 */ cvt.s.w $f0, $f0
|
||
|
/* 5458 8002A058 46040002 */ mul.s $f0, $f0, $f4
|
||
|
/* 545C 8002A05C 00000000 */ nop
|
||
|
/* 5460 8002A060 46001301 */ sub.s $f12, $f2, $f0
|
||
|
.L8002A064:
|
||
|
/* 5464 8002A064 4600618D */ trunc.w.s $f6, $f12
|
||
|
/* 5468 8002A068 44023000 */ mfc1 $v0, $f6
|
||
|
/* 546C 8002A06C 03E00008 */ jr $ra
|
||
|
/* 5470 8002A070 3042FFFF */ andi $v0, $v0, 0xffff
|