//
// GJBaseGameLayer::testInstantCountTrigger from 0x595732 to 0x59579e (108 bytes)
//
// 1 xrefs:
// > CountTriggerGameObject::triggerObject @ 0x4f5844
//
// 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:08 +0000
//
int __fastcall GJBaseGameLayer::testInstantCountTrigger(
GJEffectManager **a1,
int a2,
int a3,
int a4,
unsigned __int8 a5,
int a6,
int a7,
int a8,
int a9)
{
int result; // r0
result = GJEffectManager::countForItem(a1[381], a2);
if ( a6 == 1 )
{
result = result > a3;
}
else if ( a6 == 2 )
{
result = result < a3;
}
else
{
if ( a6 )
return result;
result = result == a3;
}
if ( result )
return (*((int (__fastcall **)(GJEffectManager **, int, _DWORD, int, int, int))*a1 + 155))(a1, a4, a5, a7, a8, a9);
return result;
}