//
// GJBaseGameLayer::testInstantCountTrigger from 0x865388 to 0x865440 (184 bytes)
//
// 2 xrefs:
// > CountTriggerGameObject::triggerObject @ 0x7708c0
// > ??> @ 0xb4648
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::testInstantCountTrigger(
GJBaseGameLayer *a1,
int a2,
int a3,
int a4,
bool a5,
int a6,
std::vector *const a7,
int a8,
int a9)
{
_BOOL4 v10; // w20
int v11; // w0
_BOOL4 v12; // w0
const std::vector *vars0; // [xsp+40h] [xbp+40h]
int vars8; // [xsp+48h] [xbp+48h]
v10 = a5;
v11 = GJEffectManager::countForItem(a1->m_effectManager, a2);
if ( a6 == 1 )
{
v12 = v11 > a3;
}
else if ( a6 == 2 )
{
v12 = v11 < a3;
}
else
{
if ( a6 )
return;
v12 = v11 == a3;
}
if ( v12 )
a1->toggleGroupTriggered(a1, a4, v10, vars0, vars8, a9);
}