//
// SetupGradientPopup::updateBlendingLabel from 0x1404220d0 to 0x14042215b (139 bytes)
//
// 5 xrefs:
// > SetupGradientPopup::init @ 0x1404216cc
// > SetupGradientPopup::onBlending @ 0x140422071
// > SetupGradientPopup::onBlending @ 0x1404220cb
// > ??> @ 0x1406d95e4
// > ??> @ 0x1406d95f0
//
// 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::updateBlendingLabel(SetupGradientPopup *a1)
{
int m_blendingMode; // edx
const char *v2; // r8
int v4; // edx
int v5; // edx
m_blendingMode = a1->m_blendingMode;
v2 = "Mixed";
if ( m_blendingMode != -99999 )
{
v4 = m_blendingMode - 1;
if ( v4 )
{
v5 = v4 - 1;
if ( v5 )
{
if ( v5 == 1 )
v2 = "Invert";
else
v2 = "Normal";
}
else
{
v2 = "Multiply";
}
}
else
{
v2 = "Additive";
}
}
a1->m_blendingLabel->setString(&a1->m_blendingLabel->cocos2d::CCLabelProtocol, v2);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_blendingLabel, 150.0, 0.69999999, 0.0);
}