//
// UIObjectSettingsPopup::onCustomToggleTriggerValue from 0x10057da70 to 0x10057db34 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x100968388
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall UIObjectSettingsPopup::onCustomToggleTriggerValue(UIObjectSettingsPopup *a1, cocos2d::CCObject *a2)
{
int v2; // r14d
float v3; // xmm0_4
int v4; // r15d
int v5; // r12d
int v6; // r13d
int v7; // esi
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v3 = (float)v2;
if ( v2 > 4 )
{
SetupTriggerPopup::updateValue(a1, 386, v3);
v4 = 8;
v5 = 7;
v6 = 6;
v7 = 5;
}
else
{
SetupTriggerPopup::updateValue(a1, 385, v3);
v4 = 4;
v5 = 3;
v6 = 2;
v7 = 1;
}
SetupTriggerPopup::updateCustomToggleTrigger(a1, v7, v2 == v7);
SetupTriggerPopup::updateCustomToggleTrigger(a1, v6, v2 == v6);
SetupTriggerPopup::updateCustomToggleTrigger(a1, v5, v2 == v5);
SetupTriggerPopup::updateCustomToggleTrigger(a1, v4, v2 == v4);
}