mirror of
https://github.com/pmret/papermario.git
synced 2024-11-13 22:43:00 +01:00
57 lines
2.7 KiB
ArmAsm
57 lines
2.7 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_8004B328
|
||
|
/* 26728 8004B328 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||
|
/* 2672C 8004B32C 00042400 */ sll $a0, $a0, 0x10
|
||
|
/* 26730 8004B330 00042403 */ sra $a0, $a0, 0x10
|
||
|
/* 26734 8004B334 24020001 */ addiu $v0, $zero, 1
|
||
|
/* 26738 8004B338 AFBF0014 */ sw $ra, 0x14($sp)
|
||
|
/* 2673C 8004B33C 1082000B */ beq $a0, $v0, .L8004B36C
|
||
|
/* 26740 8004B340 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 26744 8004B344 24020002 */ addiu $v0, $zero, 2
|
||
|
/* 26748 8004B348 14820024 */ bne $a0, $v0, .L8004B3DC
|
||
|
/* 2674C 8004B34C 00000000 */ nop
|
||
|
/* 26750 8004B350 0C015B54 */ jal func_80056D50
|
||
|
/* 26754 8004B354 00000000 */ nop
|
||
|
/* 26758 8004B358 3C01800A */ lui $at, 0x800a
|
||
|
/* 2675C 8004B35C 0C015B4D */ jal func_80056D34
|
||
|
/* 26760 8004B360 A4220F50 */ sh $v0, 0xf50($at)
|
||
|
/* 26764 8004B364 08012CF7 */ j .L8004B3DC
|
||
|
/* 26768 8004B368 00000000 */ nop
|
||
|
.L8004B36C:
|
||
|
/* 2676C 8004B36C 3C026666 */ lui $v0, 0x6666
|
||
|
/* 26770 8004B370 3C03800A */ lui $v1, 0x800a
|
||
|
/* 26774 8004B374 94630F50 */ lhu $v1, 0xf50($v1)
|
||
|
/* 26778 8004B378 34426667 */ ori $v0, $v0, 0x6667
|
||
|
/* 2677C 8004B37C 00031C00 */ sll $v1, $v1, 0x10
|
||
|
/* 26780 8004B380 00032403 */ sra $a0, $v1, 0x10
|
||
|
/* 26784 8004B384 00820018 */ mult $a0, $v0
|
||
|
/* 26788 8004B388 00031FC3 */ sra $v1, $v1, 0x1f
|
||
|
/* 2678C 8004B38C 00003810 */ mfhi $a3
|
||
|
/* 26790 8004B390 000710C3 */ sra $v0, $a3, 3
|
||
|
/* 26794 8004B394 00431023 */ subu $v0, $v0, $v1
|
||
|
/* 26798 8004B398 00021400 */ sll $v0, $v0, 0x10
|
||
|
/* 2679C 8004B39C 00021403 */ sra $v0, $v0, 0x10
|
||
|
/* 267A0 8004B3A0 00450018 */ mult $v0, $a1
|
||
|
/* 267A4 8004B3A4 00001812 */ mflo $v1
|
||
|
/* 267A8 8004B3A8 00838023 */ subu $s0, $a0, $v1
|
||
|
/* 267AC 8004B3AC 06020001 */ bltzl $s0, .L8004B3B4
|
||
|
/* 267B0 8004B3B0 0000802D */ daddu $s0, $zero, $zero
|
||
|
.L8004B3B4:
|
||
|
/* 267B4 8004B3B4 02100018 */ mult $s0, $s0
|
||
|
/* 267B8 8004B3B8 00003012 */ mflo $a2
|
||
|
/* 267BC 8004B3BC 000683C3 */ sra $s0, $a2, 0xf
|
||
|
/* 267C0 8004B3C0 00102400 */ sll $a0, $s0, 0x10
|
||
|
/* 267C4 8004B3C4 0C015B51 */ jal func_80056D44
|
||
|
/* 267C8 8004B3C8 00042403 */ sra $a0, $a0, 0x10
|
||
|
/* 267CC 8004B3CC 16000003 */ bnez $s0, .L8004B3DC
|
||
|
/* 267D0 8004B3D0 00000000 */ nop
|
||
|
/* 267D4 8004B3D4 3C018008 */ lui $at, 0x8008
|
||
|
/* 267D8 8004B3D8 A0208180 */ sb $zero, -0x7e80($at)
|
||
|
.L8004B3DC:
|
||
|
/* 267DC 8004B3DC 8FBF0014 */ lw $ra, 0x14($sp)
|
||
|
/* 267E0 8004B3E0 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 267E4 8004B3E4 03E00008 */ jr $ra
|
||
|
/* 267E8 8004B3E8 27BD0018 */ addiu $sp, $sp, 0x18
|