//
// GJEffectManager::timerExists from 0x14036d900 to 0x14036d995 (149 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x14033d83d
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x14033d8e8
//
// 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 11:30:58 +0000
//
bool __fastcall GJEffectManager::timerExists(_QWORD *a1, int a2)
{
__int64 *v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
v3 = (__int64 *)(a1[146]
+ 16
* (a1[149]
& (0x100000001B3LL
* ((0x100000001B3LL
* (BYTE2(a2)
^ (0x100000001B3LL
* (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL))))))
^ HIBYTE(a2)))));
v4 = v3[1];
if ( v4 == a1[144] )
{
LABEL_6:
v4 = 0;
return v4 != 0;
}
v5 = *v3;
if ( a2 != *(_DWORD *)(v4 + 16) )
{
while ( v4 != v5 )
{
v4 = *(_QWORD *)(v4 + 8);
if ( a2 == *(_DWORD *)(v4 + 16) )
return v4 != 0;
}
goto LABEL_6;
}
return v4 != 0;
}