Files
SpaghettiKart/asm/non_matchings/code_80005FD0/func_80015314.s
T
Maciek Baron 7df6d01ef3 Add player and controller labels, rename function (#123)
* Add player labels, rename function

* Relabel controller vars to improve readability
2022-01-01 13:06:21 -07:00

33 lines
1.6 KiB
ArmAsm

glabel func_80015314
/* 015F14 80015314 00803825 */ move $a3, $a0
/* 015F18 80015318 000770C0 */ sll $t6, $a3, 3
/* 015F1C 8001531C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 015F20 80015320 01C77023 */ subu $t6, $t6, $a3
/* 015F24 80015324 AFA5001C */ sw $a1, 0x1c($sp)
/* 015F28 80015328 000E7100 */ sll $t6, $t6, 4
/* 015F2C 8001532C 3C05800E */ lui $a1, %hi(gPlayerOne)
/* 015F30 80015330 01C77023 */ subu $t6, $t6, $a3
/* 015F34 80015334 8CA5C4DC */ lw $a1, %lo(gPlayerOne)($a1)
/* 015F38 80015338 000E7080 */ sll $t6, $t6, 2
/* 015F3C 8001533C 0006C080 */ sll $t8, $a2, 2
/* 015F40 80015340 3C04800E */ lui $a0, %hi(camera1)
/* 015F44 80015344 01C77023 */ subu $t6, $t6, $a3
/* 015F48 80015348 0306C023 */ subu $t8, $t8, $a2
/* 015F4C 8001534C 8C84DB40 */ lw $a0, %lo(camera1)($a0)
/* 015F50 80015350 000E70C0 */ sll $t6, $t6, 3
/* 015F54 80015354 0018C0C0 */ sll $t8, $t8, 3
/* 015F58 80015358 AFBF0014 */ sw $ra, 0x14($sp)
/* 015F5C 8001535C AFA60020 */ sw $a2, 0x20($sp)
/* 015F60 80015360 0306C023 */ subu $t8, $t8, $a2
/* 015F64 80015364 00AE2821 */ addu $a1, $a1, $t6
/* 015F68 80015368 84B9002E */ lh $t9, 0x2e($a1)
/* 015F6C 8001536C 0018C0C0 */ sll $t8, $t8, 3
/* 015F70 80015370 00982021 */ addu $a0, $a0, $t8
/* 015F74 80015374 00003025 */ move $a2, $zero
/* 015F78 80015378 0C0054E4 */ jal func_80015390
/* 015F7C 8001537C A499002C */ sh $t9, 0x2c($a0)
/* 015F80 80015380 8FBF0014 */ lw $ra, 0x14($sp)
/* 015F84 80015384 27BD0018 */ addiu $sp, $sp, 0x18
/* 015F88 80015388 03E00008 */ jr $ra
/* 015F8C 8001538C 00000000 */ nop