//
// sub_935B0 from 0x935b0 to 0x93610 (96 bytes)
//
// 1 xrefs:
// > sub_93284 @ 0x93456
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_935B0(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) + 440);
goto LABEL_6;
case 2u:
v4 = *(float *)(a1 + 4 * v3 - 65096);
LABEL_6:
v5 = -v4;
break;
case 3u:
v3 ^= 0x7FFFu;
LABEL_8:
v5 = *(float *)(a1 + 4 * v3 + 440);
break;
}
return LODWORD(v5);
}