//
// sub_1002DB7F8 from 0x1002db7f8 to 0x1002db84c (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007db6f0
//
// 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_1002DB7F8(__int64 result, int a2)
{
__int64 v2; // x19
if ( *(_DWORD *)(*(_QWORD *)(result + 24) + 316LL) == a2 )
{
v2 = result;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(result + 32) + 328LL))(*(_QWORD *)(result + 32), 0);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v2 + 16) + 328LL))(*(_QWORD *)(v2 + 16), 1);
}
return result;
}