//
// GJBaseGameLayer::controlGradientTrigger from 0x9ad784 to 0x9ad7e8 (100 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x9bb104
// > GJBaseGameLayer::controlTriggersInGroup @ 0x9e0500
// > ??> @ 0x80398
//
// 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:13 +0000
//
_QWORD *__fastcall GJBaseGameLayer::controlGradientTrigger(
cocos2d::CCDictionary **a1,
GradientTriggerObject *a2,
int a3)
{
int v3; // w1
cocos2d::CCDictionary *v4; // x0
_QWORD *result; // x0
_QWORD *v6; // x19
if ( a3 == 2 )
return GJBaseGameLayer::triggerGradientCommand(a1, a2);
v3 = *((_DWORD *)a2 + 462);
v4 = a1[1550];
if ( v3 > 999 )
v3 = 999;
result = (_QWORD *)cocos2d::CCDictionary::objectForKey(v4, v3);
v6 = result;
if ( result )
{
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*result + 528LL))(result, 0);
v6[73] = 0;
}
return result;
}