//
// GJBaseGameLayer::testInstantCountTrigger from 0x100129d90 to 0x100129e2b (155 bytes)
//
// 1 xrefs:
// > CountTriggerGameObject::triggerObject @ 0x1001b7cc5
//
// This function is hookable on this platform (idp: pc, 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:24:43 +0000
//
__int64 __fastcall GJBaseGameLayer::testInstantCountTrigger(
_QWORD *a1,
__int64 a2,
int a3,
unsigned int a4,
unsigned __int8 a5,
int a6,
__int64 a7,
unsigned int a8,
unsigned int a9)
{
__int64 result; // rax
result = GJEffectManager::countForItem(a1[269], a2);
if ( !a6 )
{
if ( (_DWORD)result != a3 )
return result;
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64, _QWORD, _QWORD))(*a1 + 1240LL))(
a1,
a4,
a5,
a7,
a8,
a9);
}
if ( a6 == 2 )
{
if ( (int)result >= a3 )
return result;
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64, _QWORD, _QWORD))(*a1 + 1240LL))(
a1,
a4,
a5,
a7,
a8,
a9);
}
if ( a6 == 1 && (int)result > a3 )
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64, _QWORD, _QWORD))(*a1 + 1240LL))(
a1,
a4,
a5,
a7,
a8,
a9);
return result;
}