//
// GJBaseGameLayer::controlGradientTrigger from 0x100289ee0 to 0x100289f3c (92 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x1002898ec
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x10028a078
//
// 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:01:59 +0000
//
void __fastcall GJBaseGameLayer::controlGradientTrigger(__int64 a1, __int64 a2, int a3)
{
int v3; // w8
__int64 v4; // x0
__n128 v5; // q0
__int64 v6; // x19
if ( a3 == 2 )
{
GJBaseGameLayer::triggerGradientCommand(a1, a2);
}
else
{
v3 = *(_DWORD *)(a2 + 1848);
if ( v3 >= 999 )
v3 = 999;
v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 12400), v3);
if ( v4 )
{
v6 = v4;
(*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v4 + 528LL))(v4, 0, v5);
*(_QWORD *)(v6 + 584) = 0;
}
}
}