Decompile func00025724

This commit is contained in:
Ryan Dwyer 2021-05-09 20:19:33 +10:00
parent 3b2f73b48c
commit 4018280370
1 changed files with 7 additions and 23 deletions

View File

@ -676,29 +676,13 @@ glabel func00025654
/* 25720: 00000000 */ nop
);
GLOBAL_ASM(
glabel func00025724
/* 25724: 27bdffe8 */ addiu $sp,$sp,-24
/* 25728: e7ac0018 */ swc1 $f12,0x18($sp)
/* 2572c: afa60020 */ sw $a2,0x20($sp)
/* 25730: c7a40020 */ lwc1 $f4,0x20($sp)
/* 25734: c7a60018 */ lwc1 $f6,0x18($sp)
/* 25738: afa70024 */ sw $a3,0x24($sp)
/* 2573c: c7aa0024 */ lwc1 $f10,0x24($sp)
/* 25740: 46062201 */ sub.s $f8,$f4,$f6
/* 25744: afbf0014 */ sw $ra,0x14($sp)
/* 25748: 460e5401 */ sub.s $f16,$f10,$f14
/* 2574c: 46084482 */ mul.s $f18,$f8,$f8
/* 25750: e7a80020 */ swc1 $f8,0x20($sp)
/* 25754: 46108102 */ mul.s $f4,$f16,$f16
/* 25758: e7b00024 */ swc1 $f16,0x24($sp)
/* 2575c: 0c012974 */ jal sqrtf
/* 25760: 46049300 */ add.s $f12,$f18,$f4
/* 25764: 8fbf0014 */ lw $ra,0x14($sp)
/* 25768: 27bd0018 */ addiu $sp,$sp,0x18
/* 2576c: 03e00008 */ jr $ra
/* 25770: 00000000 */ nop
);
f32 func00025724(f32 x1, f32 z1, f32 x2, f32 z2)
{
x2 -= x1;
z2 -= z1;
return sqrtf(x2 * x2 + z2 * z2);
}
GLOBAL_ASM(
glabel func00025774