//
// GJBaseGameLayer::collectedObject from 0x5bd0b4 to 0x5bd0f0 (60 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4918
//
// 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:43 +0000
//
void __fastcall GJBaseGameLayer::collectedObject(GJBaseGameLayer *this, EffectGameObject *a2)
{
int v3; // r3
GJEffectManager *v5; // r0
int v6; // r1
int v7; // r2
unsigned int v8; // r5
int v9; // r0
v3 = *((unsigned __int8 *)a2 + 1507);
v5 = *((GJEffectManager **)this + 381);
v6 = *((_DWORD *)a2 + 375);
if ( v3 )
v7 = -1;
else
v7 = 1;
GJEffectManager::addCountToItem(v5, v6, v7);
v8 = *((_DWORD *)a2 + 375);
v9 = GJEffectManager::countForItem(*((GJEffectManager **)this + 381), v8);
GJBaseGameLayer::updateCounters(this, v8, v9);
}