//
// GJBaseGameLayer::collectedObject from 0x9ec950 to 0x9ec9b8 (104 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x897ebc
// > ??> @ 0xc3160
//
// 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:03 +0000
//
__int64 __fastcall GJBaseGameLayer::collectedObject(GJEffectManager **this, EffectGameObject *a2)
{
int v4; // w20
int v5; // w0
if ( *((_BYTE *)a2 + 1687) )
GJEffectManager::addCountToItem(*(this + 269), *((_DWORD *)a2 + 420), -1);
else
GJEffectManager::addCountToItem(*(this + 269), *((_DWORD *)a2 + 420), 1);
v4 = *((_DWORD *)a2 + 420);
v5 = GJEffectManager::countForItem(*(this + 269), v4);
return GJBaseGameLayer::updateCounters((GJBaseGameLayer *)this, v4, v5);
}