//
// sub_1002D4A50 from 0x1002d4a50 to 0x1002d4acb (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x100908968
//
// 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
//
char __fastcall sub_1002D4A50(__int64 a1, __int64 a2)
{
__int64 v4; // rdi
char v5; // al
char v6; // cl
__int64 v7; // rdi
if ( *(_DWORD *)(a1 + 304) != -1 )
return 1;
v4 = *(_QWORD *)(a1 + 312);
if ( !v4 || (v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 880LL))(v4, a2), v6 = 1, !v5) )
{
v7 = *(_QWORD *)(a1 + 224);
if ( !v7 || !(*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 880LL))(v7, a2) )
return 1;
v6 = 0;
}
*(_BYTE *)(a1 + 320) = v6;
*(_DWORD *)(a1 + 304) = *(_DWORD *)(a2 + 56);
return 1;
}