mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-06 05:54:59 -04:00
8ab4557b39
* Split asm using autodecompiler * Placed libultra bss and linked more C
56 lines
2.2 KiB
ArmAsm
56 lines
2.2 KiB
ArmAsm
glabel func_80013C74
|
|
/* 014874 80013C74 0005C400 */ sll $t8, $a1, 0x10
|
|
/* 014878 80013C78 0018CC03 */ sra $t9, $t8, 0x10
|
|
/* 01487C 80013C7C 00047400 */ sll $t6, $a0, 0x10
|
|
/* 014880 80013C80 000E7C03 */ sra $t7, $t6, 0x10
|
|
/* 014884 80013C84 AFA40000 */ sw $a0, ($sp)
|
|
/* 014888 80013C88 44801000 */ mtc1 $zero, $f2
|
|
/* 01488C 80013C8C 2B21028A */ slti $at, $t9, 0x28a
|
|
/* 014890 80013C90 01E02025 */ move $a0, $t7
|
|
/* 014894 80013C94 10200011 */ beqz $at, .L80013CDC
|
|
/* 014898 80013C98 AFA50004 */ sw $a1, 4($sp)
|
|
/* 01489C 80013C9C 11E00008 */ beqz $t7, .L80013CC0
|
|
/* 0148A0 80013CA0 3C01800F */ lui $at, %hi(D_800ED170)
|
|
/* 0148A4 80013CA4 24010001 */ li $at, 1
|
|
/* 0148A8 80013CA8 11E1001B */ beq $t7, $at, .L80013D18
|
|
/* 0148AC 80013CAC 24010002 */ li $at, 2
|
|
/* 0148B0 80013CB0 11E10006 */ beq $t7, $at, .L80013CCC
|
|
/* 0148B4 80013CB4 00000000 */ nop
|
|
/* 0148B8 80013CB8 03E00008 */ jr $ra
|
|
/* 0148BC 80013CBC 46001006 */ mov.s $f0, $f2
|
|
|
|
.L80013CC0:
|
|
/* 0148C0 80013CC0 C422D170 */ lwc1 $f2, %lo(D_800ED170)($at)
|
|
/* 0148C4 80013CC4 03E00008 */ jr $ra
|
|
/* 0148C8 80013CC8 46001006 */ mov.s $f0, $f2
|
|
|
|
.L80013CCC:
|
|
/* 0148CC 80013CCC 3C01800F */ lui $at, %hi(D_800ED174) # $at, 0x800f
|
|
/* 0148D0 80013CD0 C422D174 */ lwc1 $f2, %lo(D_800ED174)($at)
|
|
/* 0148D4 80013CD4 03E00008 */ jr $ra
|
|
/* 0148D8 80013CD8 46001006 */ mov.s $f0, $f2
|
|
|
|
.L80013CDC:
|
|
/* 0148DC 80013CDC 10800007 */ beqz $a0, .L80013CFC
|
|
/* 0148E0 80013CE0 24010001 */ li $at, 1
|
|
/* 0148E4 80013CE4 10810005 */ beq $a0, $at, .L80013CFC
|
|
/* 0148E8 80013CE8 24010002 */ li $at, 2
|
|
/* 0148EC 80013CEC 50810008 */ beql $a0, $at, .L80013D10
|
|
/* 0148F0 80013CF0 3C013F00 */ lui $at, 0x3f00
|
|
/* 0148F4 80013CF4 03E00008 */ jr $ra
|
|
/* 0148F8 80013CF8 46001006 */ mov.s $f0, $f2
|
|
|
|
.L80013CFC:
|
|
/* 0148FC 80013CFC 3C01BF00 */ li $at, 0xBF000000 # -0.500000
|
|
/* 014900 80013D00 44811000 */ mtc1 $at, $f2
|
|
/* 014904 80013D04 03E00008 */ jr $ra
|
|
/* 014908 80013D08 46001006 */ mov.s $f0, $f2
|
|
|
|
/* 01490C 80013D0C 3C013F00 */ li $at, 0x3F000000 # 0.500000
|
|
.L80013D10:
|
|
/* 014910 80013D10 44811000 */ mtc1 $at, $f2
|
|
/* 014914 80013D14 00000000 */ nop
|
|
.L80013D18:
|
|
/* 014918 80013D18 03E00008 */ jr $ra
|
|
/* 01491C 80013D1C 46001006 */ mov.s $f0, $f2
|