//
// sub_100630058 from 0x100630058 to 0x100630128 (208 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009ab118
// > ??> @ 0x1009ab340
// > ??> @ 0x1009adbf8
//
// 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_100630058(__int64 a1, float a2, float a3, float a4)
{
__int64 result; // x0
_BYTE v9[4]; // [xsp+Ch] [xbp-34h] BYREF
result = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v9);
if ( !(_DWORD)result )
{
if ( (v9[0] & 0x10) != 0 )
{
if ( (~LODWORD(a2) & 0x7F800000) != 0 && (~LODWORD(a3) & 0x7F800000) != 0 && (~LODWORD(a4) & 0x7F800000) != 0 )
{
if ( a2 <= a3 )
{
*(float *)(a1 + 168) = a2;
*(float *)(a1 + 172) = a3;
*(float *)(a1 + 176) = fmaxf(fminf(a4, 1.0), 0.0);
*(_DWORD *)(a1 + 72) |= 4u;
return 0;
}
else
{
return 31;
}
}
else
{
return 29;
}
}
else
{
return 40;
}
}
return result;
}