//
// CreateParticlePopup::onMode from 0x140432150 to 0x140432228 (216 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::init @ 0x14042cf0e
// > ??> @ 0x1406d9b6c
// > ??> @ 0x1406d9b78
//
// 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 CreateParticlePopup::onMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
int v3; // eax
ParticlePreviewLayer *m_previewLayer; // rdx
const char *v5; // rdi
const char *v6; // rbx
ButtonSprite *v7; // rax
const char *v8; // rbx
ButtonSprite *v9; // rax
ButtonSprite *v10; // rax
v3 = a2->getTag(a2);
m_previewLayer = a1->m_previewLayer;
v5 = "GJ_button_04.png";
v6 = "GJ_button_04.png";
if ( v3 == a1->m_selectedMode )
v3 = 0;
a1->m_selectedMode = v3;
m_previewLayer->m_particleMode = v3;
if ( a1->m_selectedMode == 1 )
v6 = "GJ_button_01.png";
v7 = (ButtonSprite *)a1->m_mode1Button->getNormalImage(a1->m_mode1Button);
ButtonSprite::updateBGImage(v7, v6);
v8 = "GJ_button_04.png";
if ( a1->m_selectedMode == 2 )
v8 = "GJ_button_01.png";
v9 = (ButtonSprite *)a1->m_mode2Button->getNormalImage(a1->m_mode2Button);
ButtonSprite::updateBGImage(v9, v8);
if ( a1->m_selectedMode == 3 )
v5 = "GJ_button_01.png";
v10 = (ButtonSprite *)a1->m_mode3Button->getNormalImage(a1->m_mode3Button);
ButtonSprite::updateBGImage(v10, v5);
}