//
// sub_1002D4B20 from 0x1002d4b20 to 0x1002d4b71 (81 bytes)
//
// 1 xrefs:
// > ??> @ 0x100908978
//
// 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_1002D4B20(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // rcx
result = *(unsigned int *)(a1 + 304);
if ( (_DWORD)result == *(_DWORD *)(a2 + 56) )
{
v3 = a1 + 544;
if ( *(_BYTE *)(a1 + 320) )
v3 = a1 + 632;
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v3 - 320) + 896LL))(*(_QWORD *)(v3 - 320));
*(_DWORD *)(a1 + 304) = -1;
}
return result;
}