//
// sub_1800103A0 from 0x1800103a0 to 0x18001042a (138 bytes)
//
// 3 xrefs:
// > ??> @ 0x18016c788
// > ??> @ 0x18016ca00
// > ??> @ 0x1801f6e1c
//
// This function is hookable on this platform (idp: pc, 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 10:52:44 +0000
//
__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;
}