//
// GJBaseGameLayer::getItemValue from 0x100297a28 to 0x100297aa4 (124 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c00
// > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c14
// > GJBaseGameLayer::activateItemEditTrigger @ 0x100297c28
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x100297f28
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x100297ff0
//
// 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 11:02:07 +0000
//
double __fastcall GJBaseGameLayer::getItemValue(__int64 a1, int a2, int a3)
{
double result; // d0
result = 0.0;
if ( a2 <= 2 )
{
if ( a2 == 1 )
{
return (double)(int)sub_100015640(*(_QWORD *)(a1 + 2152), a3);
}
else if ( a2 == 2 )
{
return sub_100016D2C(*(_QWORD *)(a1 + 2152), a3);
}
}
else
{
switch ( a2 )
{
case 3:
return (double)*(int *)(a1 + 1916);
case 4:
return *(double *)(a1 + 13320);
case 5:
return (double)*(int *)(a1 + 12212);
}
}
return result;
}