//
// SetItemIDLayer::onCustomToggleTriggerValue from 0xa97b90 to 0xa97ce0 (336 bytes)
//
// 2 xrefs:
// > ??> @ 0x51640
// > ??> @ 0x149b9b0
//
// 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:00:44 +0000
//
__int64 __fastcall SetItemIDLayer::onCustomToggleTriggerValue(SetItemIDLayer *this, cocos2d::CCObject *a2)
{
int v3; // w19
__int64 v4; // x2
bool v5; // w22
bool v6; // w21
float v7; // s0
bool v8; // w19
bool v10; // w21
float v11; // s0
bool v12; // w19
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)this;
if ( (unsigned int)(v3 - 1) <= 1 )
{
if ( v3 == (int)(*(float (__fastcall **)(SetItemIDLayer *, __int64))(v4 + 1464))(this, 391) )
{
v11 = 0.0;
v12 = 0;
v10 = 0;
}
else
{
v10 = v3 == 1;
v11 = (float)v3;
v12 = v3 == 2;
}
SetupTriggerPopup::updateValue(this, 391, v11);
SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v10);
return SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v12);
}
else
{
if ( v3 == (int)(*(float (__fastcall **)(SetItemIDLayer *, __int64))(v4 + 1464))(this, 390) )
{
v7 = 0.0;
v8 = 0;
v6 = 0;
v5 = 0;
}
else
{
v5 = v3 == -1;
v6 = v3 == -2;
v7 = (float)v3;
v8 = v3 == -3;
}
SetupTriggerPopup::updateValue(this, 390, v7);
SetupTriggerPopup::updateCustomToggleTrigger(this, -1, v5);
SetupTriggerPopup::updateCustomToggleTrigger(this, -2, v6);
SetupTriggerPopup::updateCustomToggleTrigger(this, -3, v8);
return SetupTriggerPopup::updateValue(this, 80, 0.0);
}
}