//
// GJBaseGameLayer::testInstantCountTrigger from 0x9a7cac to 0x9a7d64 (184 bytes)
//
// 2 xrefs:
// > CountTriggerGameObject::triggerObject @ 0x8991f4
// > ??> @ 0x50f50
//
// 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:58:10 +0000
//
__int64 __fastcall GJBaseGameLayer::testInstantCountTrigger(
GJEffectManager **a1,
int a2,
int a3,
unsigned int a4,
unsigned __int8 a5,
int a6,
__int64 a7,
__int64 a8,
unsigned int a9)
{
unsigned int v10; // w20
__int64 result; // x0
v10 = a5;
result = GJEffectManager::countForItem(a1[269], a2);
if ( a6 == 1 )
{
result = (int)result > a3;
}
else if ( a6 == 2 )
{
result = (int)result < a3;
}
else
{
if ( a6 )
return result;
result = (_DWORD)result == a3;
}
if ( (_DWORD)result )
return (*((__int64 (__fastcall **)(GJEffectManager **, _QWORD, _QWORD, __int64, _QWORD, _QWORD))*a1 + 155))(
a1,
a4,
v10,
a7,
(unsigned int)a8,
a9);
return result;
}