//
// UIObjectSettingsPopup::onCustomToggleTriggerValue from 0xb7185c to 0xb71950 (244 bytes)
//
// 2 xrefs:
// > ??> @ 0x95608
// > ??> @ 0x14cfa20
//
// 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:02:20 +0000
//
CCMenuItemToggler *__fastcall UIObjectSettingsPopup::onCustomToggleTriggerValue(
cocos2d::CCDictionary **this,
cocos2d::CCObject *a2)
{
int v3; // w19
float v4; // s0
cocos2d::CCDictionary **v5; // x0
int v6; // w1
unsigned __int8 v7; // w2
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (float)v3;
if ( v3 <= 4 )
{
SetupTriggerPopup::updateValue(this, 0x181u, v4);
SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v3 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v3 == 2);
SetupTriggerPopup::updateCustomToggleTrigger(this, 3, v3 == 3);
v5 = this;
v6 = 4;
v7 = v3 == 4;
}
else
{
SetupTriggerPopup::updateValue(this, 0x182u, v4);
SetupTriggerPopup::updateCustomToggleTrigger(this, 5, v3 == 5);
SetupTriggerPopup::updateCustomToggleTrigger(this, 6, v3 == 6);
SetupTriggerPopup::updateCustomToggleTrigger(this, 7, v3 == 7);
v5 = this;
v6 = 8;
v7 = v3 == 8;
}
return SetupTriggerPopup::updateCustomToggleTrigger(v5, v6, v7);
}