//
// sub_1800103A0 from 0x1800103a0 to 0x18001042a (138 bytes)
//
// 3 xrefs:
// > ??> @ 0x18016c788
// > ??> @ 0x18016ca00
// > ??> @ 0x1801f6e1c
//
// 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
//
__int64 __fastcall sub_1800103A0(__int64 a1, __int64 a2, float a3)
{
__int64 result; // rax
__int64 v6; // [rsp+58h] [rbp+20h] BYREF
if ( (LODWORD(a3) & 0x7F800000) == 0x7F800000 )
return 29;
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 4294967294LL, &v6);
if ( !(_DWORD)result )
{
result = sub_180069780(v6, a2);
if ( !(_DWORD)result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 520LL))(a1);
}
return result;
}