//
// GJBaseGameLayer::addPickupTrigger from 0x1002978dc to 0x1002979a4 (200 bytes)
//
// 1 xrefs:
// > CountTriggerGameObject::triggerObject @ 0x100437364
//
// 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:02:06 +0000
//
void __fastcall GJBaseGameLayer::addPickupTrigger(__int64 a1, __int64 a2)
{
int v4; // w19
int v5; // w8
float v6; // s0
int v7; // w0
float v8; // s0
int v9; // w2
__int64 v10; // x0
int v11; // w2
v4 = *(_DWORD *)(a2 + 1680);
v5 = *(_DWORD *)(a2 + 1844);
if ( v5 != 2 )
{
if ( v5 != 1 )
{
v10 = *(_QWORD *)(a1 + 2152);
v9 = *(_DWORD *)(a2 + 1840);
if ( *(_BYTE *)(a2 + 1849) != 1 )
{
sub_100015680(v10, *(_DWORD *)(a2 + 1680), v9);
goto LABEL_9;
}
goto LABEL_8;
}
v6 = *(float *)(a2 + 1852) * (float)(int)sub_100015640(*(_QWORD *)(a1 + 2152), *(_DWORD *)(a2 + 1680));
LABEL_6:
v9 = llroundf(v6);
v10 = *(_QWORD *)(a1 + 2152);
LABEL_8:
sub_1000156F4(v10, v4, v9);
goto LABEL_9;
}
v7 = sub_100015640(*(_QWORD *)(a1 + 2152), *(_DWORD *)(a2 + 1680));
v8 = *(float *)(a2 + 1852);
if ( v8 != 0.0 )
{
v6 = (float)v7 / v8;
goto LABEL_6;
}
LABEL_9:
v11 = sub_100015640(*(_QWORD *)(a1 + 2152), v4);
GJBaseGameLayer::updateCounters(a1, v4, v11);
}