//
// sub_1002C1780 from 0x1002c1780 to 0x1002c17d1 (81 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b100c8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:05 +0000
//
__int64 __fastcall sub_1002C1780(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // rcx
result = *(unsigned int *)(a1 + 320);
if ( (_DWORD)result == *(_DWORD *)(a2 + 56) )
{
v3 = a1 + 552;
if ( *(_BYTE *)(a1 + 352) )
v3 = a1 + 664;
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v3 - 320) + 912LL))(*(_QWORD *)(v3 - 320));
*(_DWORD *)(a1 + 320) = -1;
}
return result;
}