//
// GJEffectManager::timeForItem from 0x9fd2f8 to 0x9fd344 (76 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::getItemValue @ 0x9a7ddc
// > GJBaseGameLayer::updateTimerLabels @ 0x9ed1b0
// > ??> @ 0xa42a8
//
// This function is hookable on this platform (idp: arm, 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:59:18 +0000
//
double __fastcall GJEffectManager::timeForItem(GJEffectManager *this, int a2)
{
int v2; // w2
__int64 *v3; // x0
int v5; // [xsp+1Ch] [xbp+1Ch] BYREF
v2 = 9999;
if ( a2 <= 9998 )
{
if ( a2 < 0 )
v2 = 0;
else
v2 = a2;
}
v5 = v2;
v3 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 115,
&v5);
if ( v3 )
return *((double *)v3 + 4);
else
return 0.0;
}