//
// CreateParticlePopup::onEmitterMode from 0xaff008 to 0xaff08c (132 bytes)
//
// 4 xrefs:
// > ??> @ 0xb6a88
// > CreateParticlePopup::init @ 0xb025d8
// > CreateParticlePopup::init @ 0xb026e4
// > ??> @ 0x1545418
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:19 +0000
//
bool __fastcall CreateParticlePopup::onEmitterMode(CCMenuItemToggler **this, cocos2d::CCObject *a2)
{
long double v3; // q0
int v4; // w0
int v5; // w20
unsigned __int8 v6; // w1
*(__n128 *)&v3 = ((__n128 (__fastcall *)(cocos2d::CCObject *))*(_QWORD *)(*(_QWORD *)a2 + 64LL))(a2);
v5 = v4;
*(float *)&v3 = (float)v4;
CreateParticlePopup::updateParticleValueForType((__int64)this, 0x3Eu, nullptr, v3);
CCMenuItemToggler::toggle(*(this + 109), v5 == 0);
CCMenuItemToggler::toggle(*(this + 110), v5 == 1);
v6 = (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 89) + 1592LL))(*(this + 89)) == 0;
return CreateParticlePopup::toggleGravityMode(this, v6);
}