//
// sub_47D50 from 0x47d50 to 0x47dc2 (114 bytes)
//
// 1 xrefs:
// > sub_785D0 @ 0x785f2
//
// 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:40:39 +0000
//
int __fastcall sub_47D50(int a1, float a2)
{
float v3; // s0
if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )
return 29;
if ( a2 >= -1.0 )
{
v3 = 1.0;
if ( a2 <= 1.0 )
v3 = (float)(a2 * 0.5) + 0.5;
}
else
{
v3 = 0.0;
}
return (*(int (__fastcall **)(int, float, float, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)a1 + 92))(
a1,
sqrtf(1.0 - v3),
sqrtf(v3),
0,
0,
0,
0,
0,
0);
}