//
// SetupTriggerPopup::onToggleTriggerValue from 0xb249d4 to 0xb24a54 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0xef8a8
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0xb1f210
// > ??> @ 0x15473b0
//
// 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 13:01:37 +0000
//
__int64 __fastcall SetupTriggerPopup::onToggleTriggerValue(SetupTriggerPopup *this, cocos2d::CCObject *a2)
{
unsigned int v3; // w0
char v4; // w22
__int64 v5; // x3
int v6; // w21
unsigned int v7; // w20
__int64 result; // x0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_BYTE *)this + 744);
v5 = *(_QWORD *)this;
v6 = v3;
v7 = *((unsigned __int8 *)a2 + 392);
*((_BYTE *)this + 744) = 1;
v7 ^= 1u;
(*(void (__fastcall **)(SetupTriggerPopup *, _QWORD, _QWORD))(v5 + 1448))(this, v3, v7);
result = SetupTriggerPopup::valueChanged(this, v6, (float)v7);
*((_BYTE *)this + 744) = v4;
return result;
}