//
// CountTriggerGameObject::triggerObject from 0x100437210 to 0x10043738c (380 bytes)
//
// 1 xrefs:
// > ??> @ 0x10095abf8
//
// 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 11:05:08 +0000
//
void __fastcall CountTriggerGameObject::triggerObject(
__int64 a1,
__int64 *a2,
int a3,
__int64 a4,
__n128 a5,
__n128 a6,
__n128 a7,
__n128 a8,
__n128 a9)
{
int v11; // w8
__int64 v12; // x20
int v13; // w21
__int64 v14; // x22
__int64 v15; // x23
__int64 v16; // x24
__int64 v17; // x25
int v18; // w21
int v19; // w22
__int64 v20; // x23
__int64 v21; // x24
int v22; // w25
void *__p; // [xsp+8h] [xbp-58h] BYREF
void *v24; // [xsp+10h] [xbp-50h]
__int64 v25; // [xsp+18h] [xbp-48h]
v11 = *(_DWORD *)(a1 + 1028);
switch ( v11 )
{
case 1817:
GJBaseGameLayer::addPickupTrigger((__int64)a2, a1);
return;
case 1811:
v18 = *(_DWORD *)(a1 + 1680);
v19 = *(_DWORD *)(a1 + 1840);
v20 = *(unsigned int *)(a1 + 1464);
v21 = *(unsigned __int8 *)(a1 + 1637);
v22 = *(_DWORD *)(a1 + 1844);
__p = nullptr;
v24 = nullptr;
v25 = 0;
if ( a4 )
sub_100018908(
(__int64 *)&__p,
*(const void **)a4,
*(_QWORD *)(a4 + 8),
(__int64)(*(_QWORD *)(a4 + 8) - *(_QWORD *)a4) >> 2);
GJBaseGameLayer::testInstantCountTrigger(
a2,
v18,
v19,
v20,
v21,
v22,
(__int64)&__p,
*(unsigned int *)(a1 + 916),
*(_DWORD *)(a1 + 1672));
break;
case 1611:
v12 = a2[269];
v13 = *(_DWORD *)(a1 + 1680);
v14 = *(unsigned int *)(a1 + 1840);
v15 = *(unsigned __int8 *)(a1 + 1848);
v16 = *(unsigned int *)(a1 + 1464);
v17 = *(unsigned __int8 *)(a1 + 1637);
__p = nullptr;
v24 = nullptr;
v25 = 0;
if ( a4 )
sub_100018908(
(__int64 *)&__p,
*(const void **)a4,
*(_QWORD *)(a4 + 8),
(__int64)(*(_QWORD *)(a4 + 8) - *(_QWORD *)a4) >> 2);
sub_1000154F4(v12, v13, v14, v15, v16, v17, (__int64)&__p, *(_DWORD *)(a1 + 916), *(_DWORD *)(a1 + 1672));
break;
default:
EffectGameObject::triggerObject(a1, (__int64)a2, a3, a4, a5, a6, a7, a8, a9);
return;
}
if ( __p )
{
v24 = __p;
operator delete(__p);
}
}