//
// SetupGradientPopup::onBlending from 0xb30a58 to 0xb30ac0 (104 bytes)
//
// 4 xrefs:
// > ??> @ 0xd6330
// > SetupGradientPopup::init @ 0xb313ac
// > SetupGradientPopup::init @ 0xb314a0
// > ??> @ 0x1546600
//
// 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:01:43 +0000
//
__int64 __fastcall SetupGradientPopup::onBlending(SetupGradientPopup *this, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w1
int v5; // w1
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_DWORD *)this + 256);
if ( v3 == 1 )
v5 = v4 + 1;
else
v5 = v4 - 1;
if ( v5 < 0 )
v5 = 0;
if ( v5 > 3 )
v5 = 3;
*((_DWORD *)this + 256) = v5;
SetupGradientPopup::updateBlending(this);
return SetupGradientPopup::updateBlendingLabel(this);
}