//
// GJEffectManager::addCountToItem from 0x5cf518 to 0x5cf54e (54 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::collectedObject @ 0x5bd0d0
// > GJBaseGameLayer::addPickupTrigger @ 0x5bd178
//
// 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:54:03 +0000
//
void __fastcall GJEffectManager::addCountToItem(GJEffectManager *this, int a2, int a3)
{
int v3; // r3
_DWORD *v6; // r0
int v7[2]; // [sp+4h] [bp-8h] BYREF
v7[0] = a2;
v7[1] = a3;
if ( a2 > 9998 )
v3 = 9999;
else
v3 = a2 & ~(a2 >> 31);
v7[0] = v3;
v6 = std::unordered_map::operator[]((int)this + 460, (unsigned int *)v7);
GJEffectManager::updateCountForItem(this, v7[0], *v6 + a3);
}