//
// SetupItemCompareTriggerPopup::onCustomToggleTriggerValue from 0xb7c590 to 0xb7c754 (452 bytes)
//
// 2 xrefs:
// > ??> @ 0x68e18
// > ??> @ 0x14d0a40
//
// 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:26 +0000
//
__int64 __fastcall SetupItemCompareTriggerPopup::onCustomToggleTriggerValue(
cocos2d::CCDictionary **this,
cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w20
unsigned __int8 v5; // w25
unsigned __int8 v6; // w24
unsigned __int8 v7; // w23
float v8; // s0
unsigned __int8 v9; // w22
unsigned __int8 v10; // w21
__int64 v11; // x1
int v12; // w1
IDNameInput *v13; // x21
int v14; // w0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = v3;
if ( v3 <= 100 )
{
SetupTriggerPopup::updateValue(this, 0x1DCu, (float)v3);
SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v4 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v4 == 2);
SetupTriggerPopup::updateCustomToggleTrigger(this, 3, v4 == 3);
SetupTriggerPopup::updateCustomToggleTrigger(this, 4, v4 == 4);
SetupTriggerPopup::updateCustomToggleTrigger(this, 5, v4 == 5);
v11 = 80;
}
else
{
v4 = v3 - 100;
if ( (int)(*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 477) == v3 - 100 )
{
v8 = 0.0;
v10 = 0;
v9 = 0;
v7 = 0;
v6 = 0;
v5 = 0;
v4 = 0;
}
else
{
v5 = v4 == 1;
v6 = v4 == 2;
v7 = v4 == 3;
v8 = (float)v4;
v9 = v4 == 4;
v10 = v4 == 5;
}
SetupTriggerPopup::updateValue(this, 0x1DDu, v8);
SetupTriggerPopup::updateCustomToggleTrigger(this, 101, v5);
SetupTriggerPopup::updateCustomToggleTrigger(this, 102, v6);
SetupTriggerPopup::updateCustomToggleTrigger(this, 103, v7);
SetupTriggerPopup::updateCustomToggleTrigger(this, 104, v9);
SetupTriggerPopup::updateCustomToggleTrigger(this, 105, v10);
v11 = 95;
}
v13 = (IDNameInput *)cocos2d::CCDictionary::objectForKey(*(this + 125), v11);
if ( v13 )
{
v14 = IDNameInput::idNameTypeForItemValueType((IDNameInput *)(unsigned int)v4, v12);
IDNameInput::setType(v13, v14);
}
return SetupItemCompareTriggerPopup::updateFormulaLabel((SetupItemCompareTriggerPopup *)this);
}