//
// sub_893B0 from 0x893b0 to 0x89410 (96 bytes)
//
// 1 xrefs:
// > sub_88FB8 @ 0x89238
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:41:22 +0000
//
int __fastcall sub_893B0(int a1, float a2)
{
int v2; // r1
unsigned int v3; // r1
float v4; // s0
float v5; // s0
v2 = (int)(float)(a2 * 32768.0);
if ( v2 < 0 )
v2 = -v2;
v3 = v2 & 0x7FFF;
switch ( v3 >> 13 )
{
case 0u:
goto LABEL_8;
case 1u:
v4 = *(float *)(a1 + 4 * (0x3FFF - v3) + 460);
goto LABEL_6;
case 2u:
v4 = *(float *)(a1 + 4 * v3 - 65076);
LABEL_6:
v5 = -v4;
break;
case 3u:
v3 ^= 0x7FFFu;
LABEL_8:
v5 = *(float *)(a1 + 4 * v3 + 460);
break;
}
return LODWORD(v5);
}