mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
33 lines
1.4 KiB
ArmAsm
33 lines
1.4 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel sins
|
|
/* 3F9F0 800645F0 3084FFFF */ andi $a0, $a0, 0xffff
|
|
/* 3F9F4 800645F4 00042102 */ srl $a0, $a0, 4
|
|
/* 3F9F8 800645F8 30820400 */ andi $v0, $a0, 0x400
|
|
/* 3F9FC 800645FC 10400004 */ beqz $v0, .L80064610
|
|
/* 3FA00 80064600 00802821 */ addu $a1, $a0, $zero
|
|
/* 3FA04 80064604 00041027 */ nor $v0, $zero, $a0
|
|
/* 3FA08 80064608 08019185 */ j .L80064614
|
|
/* 3FA0C 8006460C 304203FF */ andi $v0, $v0, 0x3ff
|
|
.L80064610:
|
|
/* 3FA10 80064610 308203FF */ andi $v0, $a0, 0x3ff
|
|
.L80064614:
|
|
/* 3FA14 80064614 00021040 */ sll $v0, $v0, 1
|
|
/* 3FA18 80064618 3C038009 */ lui $v1, 0x8009
|
|
/* 3FA1C 8006461C 00621821 */ addu $v1, $v1, $v0
|
|
/* 3FA20 80064620 94633DE0 */ lhu $v1, 0x3de0($v1)
|
|
/* 3FA24 80064624 30A20800 */ andi $v0, $a1, 0x800
|
|
/* 3FA28 80064628 14400003 */ bnez $v0, .L80064638
|
|
/* 3FA2C 8006462C 00031023 */ negu $v0, $v1
|
|
/* 3FA30 80064630 0801918F */ j .L8006463C
|
|
/* 3FA34 80064634 00031400 */ sll $v0, $v1, 0x10
|
|
.L80064638:
|
|
/* 3FA38 80064638 00021400 */ sll $v0, $v0, 0x10
|
|
.L8006463C:
|
|
/* 3FA3C 8006463C 03E00008 */ jr $ra
|
|
/* 3FA40 80064640 00021403 */ sra $v0, $v0, 0x10
|
|
/* 3FA44 80064644 00000000 */ nop
|
|
/* 3FA48 80064648 00000000 */ nop
|
|
/* 3FA4C 8006464C 00000000 */ nop
|