//
// SetItemIDLayer::onCustomToggleTriggerValue from 0x10009c990 to 0x10009caa5 (277 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b6038
//
// 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 SetItemIDLayer::onCustomToggleTriggerValue(SetItemIDLayer *a1, cocos2d::CCObject *a2)
{
int v2; // r14d
float (__cdecl *getValue)(SetupTriggerPopup *__hidden, int); // rax
int v4; // r15d
int v5; // r15d
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
getValue = a1->getValue;
if ( (unsigned int)(v2 - 1) > 1 )
{
v5 = 0;
if ( v2 != (int)((float (__fastcall *)(SetItemIDLayer *, __int64))getValue)(a1, 390) )
v5 = v2;
SetupTriggerPopup::updateValue(a1, 390, (float)v5);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -1, v5 == -1);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -2, v5 == -2);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -3, v5 == -3);
SetupTriggerPopup::updateValue(a1, 80, 0.0);
}
else
{
v4 = 0;
if ( v2 != (int)((float (__fastcall *)(SetItemIDLayer *, __int64))getValue)(a1, 391) )
v4 = v2;
SetupTriggerPopup::updateValue(a1, 391, (float)v4);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v4 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v4 == 2);
}
}