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