papermario/ver/us/asm/nonmatchings/EDC020/func_802405C0_EDC5A0.s
Alexander Faßbender b198250cde
Rename every function that is a part of evt_funcs.h to have the evt_ prefix (#408)
* rename every function that is part of evt_funcs.h to have the evtt_ prefix.

* remove old .s files

* fix symbol_addrs error

* add evt_ 'prefix' to the dead functions in dead-h
2021-08-29 18:51:56 +02:00

29 lines
1.4 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802405C0_EDC5A0
/* EDC5A0 802405C0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* EDC5A4 802405C4 AFBF0010 */ sw $ra, 0x10($sp)
/* EDC5A8 802405C8 10A00003 */ beqz $a1, .L802405D8
/* EDC5AC 802405CC 8C86000C */ lw $a2, 0xc($a0)
/* EDC5B0 802405D0 3C018024 */ lui $at, %hi(D_80241850_EDD830)
/* EDC5B4 802405D4 AC201850 */ sw $zero, %lo(D_80241850_EDD830)($at)
.L802405D8:
/* EDC5B8 802405D8 3C038024 */ lui $v1, %hi(D_80241850_EDD830)
/* EDC5BC 802405DC 24631850 */ addiu $v1, $v1, %lo(D_80241850_EDD830)
/* EDC5C0 802405E0 8C620000 */ lw $v0, ($v1)
/* EDC5C4 802405E4 54400003 */ bnel $v0, $zero, .L802405F4
/* EDC5C8 802405E8 AC600000 */ sw $zero, ($v1)
/* EDC5CC 802405EC 08090182 */ j .L80240608
/* EDC5D0 802405F0 0000102D */ daddu $v0, $zero, $zero
.L802405F4:
/* EDC5D4 802405F4 8CC50000 */ lw $a1, ($a2)
/* EDC5D8 802405F8 3C068024 */ lui $a2, %hi(D_80241854_EDD834)
/* EDC5DC 802405FC 0C0B551A */ jal dead_evt_set_variable
/* EDC5E0 80240600 8CC61854 */ lw $a2, %lo(D_80241854_EDD834)($a2)
/* EDC5E4 80240604 24020002 */ addiu $v0, $zero, 2
.L80240608:
/* EDC5E8 80240608 8FBF0010 */ lw $ra, 0x10($sp)
/* EDC5EC 8024060C 03E00008 */ jr $ra
/* EDC5F0 80240610 27BD0018 */ addiu $sp, $sp, 0x18