//
// GJEffectManager::timerExists from 0x140263110 to 0x1402631a2 (146 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234b3d
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x140234beb
//
// 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
//
bool GJEffectManager::timerExists(GJEffectManager *a1, int a2)
{
__int64 *v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
v3 = (__int64 *)((char *)a1->m_timerItemMap._Vec._Mypair._Myval2._Myfirst
+ 16
* ((0x100000001B3LL
* (HIBYTE(a2)
^ (0x100000001B3LL
* (BYTE2(a2)
^ (0x100000001B3LL
* (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL))))))))
& a1->m_timerItemMap._Mask));
v4 = v3[1];
if ( (std::_List_val>>::_Nodeptr)v4 == a1->m_timerItemMap._List._Mypair._Myval2._Myhead )
{
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;
}