papermario/ver/us/asm/nonmatchings/e0b30_len_b80/func_8014AD40.s

33 lines
1.5 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8014AD40
/* E1440 8014AD40 27BDFFE0 */ addiu $sp, $sp, -0x20
/* E1444 8014AD44 AFB00010 */ sw $s0, 0x10($sp)
f270, world, and more (#246) * 415D90 decomp * code_415D90 rodata migration * data migration, decomp * . * . * . * 4 funcs * non-matching * audio part 1 * audio work * end of snd * update_symbol_addrs * . * :chicken: * . * sfx func names * bgm * more audio * . * a few audio funcs * update section length * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "82ff308caf" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "82ff308caf" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "4e9d3cdf85" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "4e9d3cdf85" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * misc-decomp power * sound * 4 mo * more changes * . * some f270 * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "1c8ff4ec3f" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "1c8ff4ec3f" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "f0633ecdbc" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "f0633ecdbc" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * fix is_logo image size * . * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "4be92a4786" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "4be92a4786" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * state_step_pause * almost * fixing symbol_addrs and disasm * update symbol_addrs * . * fix Matrix4f usages * . * . * update_symbol_addrs * fixes * I hate bitfields * load_map_by_IDs * cleanup * state_step_logos * more cleanup * . * splat * PR comments
2021-04-01 20:00:29 +02:00
/* E1448 8014AD48 3C108016 */ lui $s0, %hi(gMusicSettings)
/* E144C 8014AD4C 26109AF0 */ addiu $s0, $s0, %lo(gMusicSettings)
2020-09-24 05:16:13 +02:00
/* E1450 8014AD50 AFB10014 */ sw $s1, 0x14($sp)
/* E1454 8014AD54 0000882D */ daddu $s1, $zero, $zero
/* E1458 8014AD58 AFBF0018 */ sw $ra, 0x18($sp)
.L8014AD5C:
/* E145C 8014AD5C 96020000 */ lhu $v0, ($s0)
/* E1460 8014AD60 30420001 */ andi $v0, $v0, 1
/* E1464 8014AD64 10400006 */ beqz $v0, .L8014AD80
/* E1468 8014AD68 26310001 */ addiu $s1, $s1, 1
/* E146C 8014AD6C 8E040018 */ lw $a0, 0x18($s0)
/* E1470 8014AD70 0C01567F */ jal func_800559FC
2021-01-12 16:42:27 +01:00
/* E1474 8014AD74 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* E1478 8014AD78 14400005 */ bnez $v0, .L8014AD90
/* E147C 8014AD7C 24020001 */ addiu $v0, $zero, 1
.L8014AD80:
/* E1480 8014AD80 2A220002 */ slti $v0, $s1, 2
/* E1484 8014AD84 1440FFF5 */ bnez $v0, .L8014AD5C
/* E1488 8014AD88 26100030 */ addiu $s0, $s0, 0x30
/* E148C 8014AD8C 0000102D */ daddu $v0, $zero, $zero
.L8014AD90:
/* E1490 8014AD90 8FBF0018 */ lw $ra, 0x18($sp)
/* E1494 8014AD94 8FB10014 */ lw $s1, 0x14($sp)
/* E1498 8014AD98 8FB00010 */ lw $s0, 0x10($sp)
/* E149C 8014AD9C 03E00008 */ jr $ra
/* E14A0 8014ADA0 27BD0020 */ addiu $sp, $sp, 0x20