//
// sub_100502F18 from 0x100502f18 to 0x100502f80 (104 bytes)
//
// 0 xrefs:
//
// 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_100502F18(__int64 a1, int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 result; // x0
int *v9; // [xsp+8h] [xbp-18h] BYREF
*(_QWORD *)(a1 + 432) = a5;
v9 = nullptr;
result = (*(__int64 (__fastcall **)(__int64, __int64, int **, _QWORD))(a6 + 240))(a6, a4, &v9, 0);
if ( !(_DWORD)result )
return sub_10050249C(a1, a2, *(_DWORD *)(*(_QWORD *)(a1 + 8) + 16LL), *v9, (__int64)(v9 + 2));
return result;
}