//
// sub_100508F40 from 0x100508f40 to 0x100508fa0 (96 bytes)
//
// 3 xrefs:
// > ??> @ 0x100827a50
// > ??> @ 0x100827c78
// > ??> @ 0x10082a530
//
// 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_100508F40(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 result; // x0
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 4294967294LL, &v8);
if ( !(_DWORD)result )
return sub_10050B9EC(v8, a2, a3, a4);
return result;
}