papermario/ver/us/asm/nonmatchings/code_DF950/func_80149A6C.s
Ethan Roseman 4ace4bb0d9
415D90 and Audio (#229)
* 415D90 decomp

* code_415D90 rodata migration

* data migration, decomp

* .

* .

* .

* 4 funcs

* non-matching

* audio part 1

* audio work

* end of snd

* update_symbol_addrs

* .

* 🐔

* .

* sfx func names

* bgm

* more audio

* .

* a few audio funcs
2021-03-26 10:46:45 -04:00

25 lines
1.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80149A6C
/* E016C 80149A6C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* E0170 80149A70 AFB00010 */ sw $s0, 0x10($sp)
/* E0174 80149A74 AFBF0014 */ sw $ra, 0x14($sp)
/* E0178 80149A78 0C052631 */ jal sfx_get_env_sound_instance
/* E017C 80149A7C 00A0802D */ daddu $s0, $a1, $zero
/* E0180 80149A80 0040202D */ daddu $a0, $v0, $zero
/* E0184 80149A84 10800008 */ beqz $a0, .L80149AA8
/* E0188 80149A88 2403FFFC */ addiu $v1, $zero, -4
/* E018C 80149A8C 8C820000 */ lw $v0, ($a0)
/* E0190 80149A90 00431024 */ and $v0, $v0, $v1
/* E0194 80149A94 16000004 */ bnez $s0, .L80149AA8
/* E0198 80149A98 AC820000 */ sw $v0, ($a0)
/* E019C 80149A9C 8C840004 */ lw $a0, 4($a0)
/* E01A0 80149AA0 0C0154F0 */ jal snd_stop_sound
/* E01A4 80149AA4 00000000 */ nop
.L80149AA8:
/* E01A8 80149AA8 8FBF0014 */ lw $ra, 0x14($sp)
/* E01AC 80149AAC 8FB00010 */ lw $s0, 0x10($sp)
/* E01B0 80149AB0 03E00008 */ jr $ra
/* E01B4 80149AB4 27BD0018 */ addiu $sp, $sp, 0x18