//
// CreateParticlePopup::onMode from 0x663cc0 to 0x663d4c (140 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:39 +0000
//
char *__fastcall CreateParticlePopup::onMode(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r3
char *v5; // r0
const char *v6; // r1
char *v7; // r0
const char *v8; // r1
char *v9; // r0
const char *v10; // r1
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( v3 == *((_DWORD *)this + 152) )
v3 = 0;
v4 = *((_DWORD *)this + 147);
*((_DWORD *)this + 152) = v3;
*(_DWORD *)(v4 + 440) = v3;
v5 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 148) + 536))(*((_DWORD *)this + 148));
if ( *((_DWORD *)this + 152) == 1 )
v6 = "GJ_button_01.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
v7 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 149) + 536))(*((_DWORD *)this + 149));
if ( *((_DWORD *)this + 152) == 2 )
v8 = "GJ_button_01.png";
else
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v7, v8);
v9 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 150) + 536))(*((_DWORD *)this + 150));
if ( *((_DWORD *)this + 152) == 3 )
v10 = "GJ_button_01.png";
else
v10 = "GJ_button_04.png";
return ButtonSprite::updateBGImage(v9, v10);
}