//
// SetupTriggerPopup::triggerArrowChanged from 0x14060d490 to 0x14060d598 (264 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::triggerArrowLeft @ 0x14060d44f
// > SetupTriggerPopup::triggerArrowRight @ 0x14060d47f
// > ??> @ 0x14092fe58
//
// 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 11:35:14 +0000
//
_BYTE *__fastcall SetupTriggerPopup::triggerArrowChanged(__int64 a1, unsigned int a2)
{
char v4; // bp
_BYTE *result; // rax
unsigned int v6; // [rsp+60h] [rbp+18h] BYREF
cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 832), (int)a2);
v4 = *(_BYTE *)(a1 + 744);
*(_BYTE *)(a1 + 744) = 1;
v6 = a2;
if ( *(_BYTE *)sub_14016EE40((__int64 *)(a1 + 872), (int *)&v6) )
{
v6 = a2;
*(_BYTE *)sub_14016EE40((__int64 *)(a1 + 856), (int *)&v6) = 1;
}
SetupTriggerPopup::updateValueControls(a1, a2);
SetupTriggerPopup::valueChanged(a1, a2);
v6 = a2;
result = (_BYTE *)sub_14016EE40((__int64 *)(a1 + 872), (int *)&v6);
if ( *result )
{
v6 = a2;
result = (_BYTE *)sub_14016EE40((__int64 *)(a1 + 856), (int *)&v6);
*result = 0;
}
*(_BYTE *)(a1 + 744) = v4;
return result;
}