//
// sub_1002A8620 from 0x1002a8620 to 0x1002a8663 (67 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fb128
//
// 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_1002A8620(__int64 a1, int a2)
{
__int64 result; // rax
result = *(_QWORD *)(a1 + 24);
if ( *(_DWORD *)(result + 316) == a2 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 32) + 328LL))(*(_QWORD *)(a1 + 32), 0);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 16) + 328LL))(*(_QWORD *)(a1 + 16), 1);
}
return result;
}