//
// GJBaseGameLayer::getItemValue from 0x5957a0 to 0x5957fe (94 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x59597c
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x5959cc
// > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd262
// > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd270
// > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd27e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:08 +0000
//
int __fastcall GJBaseGameLayer::getItemValue(GJEffectManager **this, int a2, int a3)
{
double v3; // d7
int v5; // r3
switch ( a2 )
{
case 1:
v3 = (double)(int)GJEffectManager::countForItem(*(this + 381), a3);
return LODWORD(v3);
case 2:
return GJEffectManager::timeForItem(*(this + 381), a3);
case 3:
v5 = (int)*(this + 348);
goto LABEL_7;
case 4:
v3 = *((double *)this + 1407);
return LODWORD(v3);
case 5:
v5 = (int)*(this + 2647);
LABEL_7:
v3 = (double)v5;
break;
default:
LODWORD(v3) = 0;
break;
}
return LODWORD(v3);
}