//
// SetupGradientPopup::onBlending from 0x9fa36c to 0x9fa3d4 (104 bytes)
//
// 4 xrefs:
// > ??> @ 0xa2eb8
// > SetupGradientPopup::init @ 0x9fad9c
// > SetupGradientPopup::init @ 0x9fae88
// > ??> @ 0x122d9d0
//
// 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 SetupGradientPopup::onBlending(SetupGradientPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int m_blendingMode; // w1
int v5; // w1
v3 = a2->getTag(a2);
m_blendingMode = a1->m_blendingMode;
if ( v3 == 1 )
v5 = m_blendingMode + 1;
else
v5 = m_blendingMode - 1;
if ( v5 < 0 )
v5 = 0;
if ( v5 > 3 )
v5 = 3;
a1->m_blendingMode = v5;
SetupGradientPopup::updateBlending(a1);
SetupGradientPopup::updateBlendingLabel(a1);
}