//
// GJBaseGameLayer::activateProgressTrigger from 0x5bd038 to 0x5bd0b4 (124 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4cf6
//
// 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::activateProgressTrigger(GJBaseGameLayer *this, ProgressGameObject *a2)
{
GJEffectManager *v4; // r0
int v5; // r6
int v6; // r0
int v7; // r1
int v8; // r5
int v9; // r0
if ( *((_BYTE *)this + 10614) )
{
v4 = *((GJEffectManager **)this + 381);
v5 = *((_DWORD *)v4 + 130);
if ( *((_BYTE *)a2 + 1653) )
v6 = GJEffectManager::countForItem(v4, *((_DWORD *)a2 + 372));
else
v6 = *((_DWORD *)a2 + 412);
if ( v6 > 98 )
v7 = 99;
else
v7 = v6 & ~(v6 >> 31);
if ( *((_BYTE *)a2 + 1652) )
{
v7 += v5;
}
else if ( v7 < v5 )
{
v7 = v5;
}
GJEffectManager::setPlatformerProgress(*((GJEffectManager **)this + 381), v7);
v8 = *((_DWORD *)a2 + 375);
if ( v8 > 0 )
{
GJEffectManager::updateCountForItem(
*((GJEffectManager **)this + 381),
v8,
*(_DWORD *)(*((_DWORD *)this + 381) + 520));
v9 = GJEffectManager::countForItem(*((GJEffectManager **)this + 381), v8);
GJBaseGameLayer::updateCounters(this, v8, v9);
}
}
}