//
// CreateParticlePopup::onMode from 0x9c061c to 0x9c0710 (244 bytes)
//
// 3 xrefs:
// > ??> @ 0x8f940
// > CreateParticlePopup::init @ 0x9c5bbc
// > ??> @ 0x122ce38
//
// 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; // w1
ParticlePreviewLayer *m_previewLayer; // x3
CCMenuItemSpriteExtra_vtbl *v5; // x2
ButtonSprite *v6; // x0
const char *v7; // x1
ButtonSprite *v8; // x0
const char *v9; // x1
ButtonSprite *v10; // x0
const char *v11; // x1
v3 = a2->getTag(a2);
m_previewLayer = a1->m_previewLayer;
v5 = a1->m_mode1Button->__vftable;
if ( a1->m_selectedMode == v3 )
v3 = 0;
a1->m_selectedMode = v3;
m_previewLayer->m_particleMode = v3;
v6 = (ButtonSprite *)((__int64 (*)(void))v5->getNormalImage)();
if ( a1->m_selectedMode == 1 )
v7 = "GJ_button_01.png";
else
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v7);
v8 = (ButtonSprite *)a1->m_mode2Button->getNormalImage(a1->m_mode2Button);
if ( a1->m_selectedMode == 2 )
v9 = "GJ_button_01.png";
else
v9 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v8, v9);
v10 = (ButtonSprite *)a1->m_mode3Button->getNormalImage(a1->m_mode3Button);
if ( a1->m_selectedMode == 3 )
v11 = "GJ_button_01.png";
else
v11 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v10, v11);
}