//
// CreateParticlePopup::onMode from 0x1004733b0 to 0x10047346e (190 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::init @ 0x10046f34d
// > CreateParticlePopup::init @ 0x10046f456
// > CreateParticlePopup::init @ 0x10046f55d
//
// 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 __fastcall CreateParticlePopup::onMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
int v2; // eax
int v3; // ecx
ButtonSprite *v4; // rax
const char *v5; // r14
const char *v6; // rsi
ButtonSprite *v7; // rax
const char *v8; // rsi
ButtonSprite *v9; // rax
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v3 = 0;
if ( v2 != a1->m_selectedMode )
v3 = v2;
a1->m_selectedMode = v3;
a1->m_previewLayer->m_particleMode = v3;
v4 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode1Button->getNormalImage)(a1->m_mode1Button);
v5 = "GJ_button_04.png";
v6 = "GJ_button_04.png";
if ( a1->m_selectedMode == 1 )
v6 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v4, v6);
v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode2Button->getNormalImage)(a1->m_mode2Button);
v8 = "GJ_button_04.png";
if ( a1->m_selectedMode == 2 )
v8 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v7, v8);
v9 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode3Button->getNormalImage)(a1->m_mode3Button);
if ( a1->m_selectedMode == 3 )
v5 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v9, v5);
}