//
// sub_1005E7884 from 0x1005e7884 to 0x1005e7914 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x10083d050
// > ??> @ 0x10083d0a8
//
// 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
//
bool __fastcall sub_1005E7884(__int64 a1, __int64 a2, _QWORD *a3, unsigned __int64 a4)
{
_QWORD *v4; // x11
__int64 v5; // x10
void (__fastcall *v6)(_QWORD *, __int64, unsigned __int64); // x10
v4 = *(_QWORD **)(a1 + 120);
if ( !v4[62] || !v4[63] )
return 0;
v5 = 0;
if ( a2 && a3 && a4 >= 0x10 )
{
v6 = (void (__fastcall *)(_QWORD *, __int64, unsigned __int64))v4[66];
if ( v6 )
{
v6(a3, a2, a4);
return 1;
}
return !(unsigned int)sub_1005A823C(v4 + 62, (__int128 *)(a1 + 40), a3, a2, a4, *(_DWORD *)(a1 + 16));
}
return v5;
}