//
// sub_1009A3E40 from 0x1009a3e40 to 0x1009a3ea2 (98 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bd7128
//
// 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:39:18 +0000
//
void __fastcall sub_1009A3E40(__int64 a1, __int64 a2, int a3)
{
int v3; // eax
if ( a3 == 103 )
{
v3 = *(_DWORD *)(a1 + 428);
if ( v3 > 0 )
*(_DWORD *)(a1 + 428) = --v3;
if ( !v3 && *(_QWORD *)(GameLevelManager::sharedState() + 1264) == a1 )
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = 0;
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)(a1 - 832) + 1408LL))(a1 - 832, 0, 0);
}
}