papermario/asm/nonmatchings/code_a5dd0_len_114e0/load_model_textures.s

40 lines
2.0 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
2020-08-04 08:49:11 +02:00
.set noreorder # don't insert nops after branches
glabel load_model_textures
2020-09-28 03:13:56 +02:00
/* AC324 80115C24 3C028007 */ lui $v0, %hi(gGameStatusPtr)
/* AC328 80115C28 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
2020-09-24 05:16:13 +02:00
/* AC32C 80115C2C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* AC330 80115C30 AFBF0010 */ sw $ra, 0x10($sp)
/* AC334 80115C34 80420070 */ lb $v0, 0x70($v0)
2020-11-29 08:13:07 +01:00
/* AC338 80115C38 3C038015 */ lui $v1, %hi(D_8014B748)
/* AC33C 80115C3C 8C63B748 */ lw $v1, %lo(D_8014B748)($v1)
2020-09-24 05:16:13 +02:00
/* AC340 80115C40 0002102B */ sltu $v0, $zero, $v0
/* AC344 80115C44 00021440 */ sll $v0, $v0, 0x11
/* AC348 80115C48 00621821 */ addu $v1, $v1, $v0
2020-11-29 08:13:07 +01:00
/* AC34C 80115C4C 3C018015 */ lui $at, %hi(D_80153368)
/* AC350 80115C50 AC233368 */ sw $v1, %lo(D_80153368)($at)
2020-09-24 05:16:13 +02:00
/* AC354 80115C54 10800011 */ beqz $a0, .L80115C9C
/* AC358 80115C58 00000000 */ nop
/* AC35C 80115C5C 10A0000F */ beqz $a1, .L80115C9C
/* AC360 80115C60 00000000 */ nop
/* AC364 80115C64 10C0000D */ beqz $a2, .L80115C9C
/* AC368 80115C68 2403007F */ addiu $v1, $zero, 0x7f
2020-11-29 08:13:07 +01:00
/* AC36C 80115C6C 3C028016 */ lui $v0, %hi(D_8015C74C)
/* AC370 80115C70 2442C74C */ addiu $v0, $v0, %lo(D_8015C74C)
2020-08-04 08:49:11 +02:00
.L80115C74:
2020-09-24 05:16:13 +02:00
/* AC374 80115C74 AC400000 */ sw $zero, ($v0)
/* AC378 80115C78 2463FFFF */ addiu $v1, $v1, -1
/* AC37C 80115C7C 0461FFFD */ bgez $v1, .L80115C74
/* AC380 80115C80 2442FFBC */ addiu $v0, $v0, -0x44
2020-11-29 08:13:07 +01:00
/* AC384 80115C84 3C018015 */ lui $at, %hi(D_80153224)
/* AC388 80115C88 AC203224 */ sw $zero, %lo(D_80153224)($at)
2020-09-24 05:16:13 +02:00
/* AC38C 80115C8C 10800003 */ beqz $a0, .L80115C9C
/* AC390 80115C90 00000000 */ nop
/* AC394 80115C94 0C0456D1 */ jal _load_model_textures
/* AC398 80115C98 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80115C9C:
2020-09-24 05:16:13 +02:00
/* AC39C 80115C9C 8FBF0010 */ lw $ra, 0x10($sp)
/* AC3A0 80115CA0 03E00008 */ jr $ra
/* AC3A4 80115CA4 27BD0018 */ addiu $sp, $sp, 0x18