//
// sub_100630514 from 0x100630514 to 0x1006305a0 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009ab170
// > ??> @ 0x1009adc50
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:10:27 +0000
//
__int64 __fastcall sub_100630514(float *a1, float a2)
{
__int64 result; // x0
_BYTE v5[4]; // [xsp+Ch] [xbp-24h] BYREF
result = (*(__int64 (__fastcall **)(float *, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v5);
if ( !(_DWORD)result )
{
if ( (v5[0] & 0x10) != 0 )
{
if ( (~LODWORD(a2) & 0x7F800000) != 0 )
{
result = 31;
if ( a2 >= 0.0 && a2 <= 1.0 )
{
a1[60] = a2;
return 0;
}
}
else
{
return 29;
}
}
else
{
return 40;
}
}
return result;
}