//
// CreateParticlePopup::onEmitterMode from 0x100467e90 to 0x100467f08 (120 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0x100464337
// > CreateParticlePopup::init @ 0x10046446c
//
// This function is hookable on this platform (idp: pc, 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 12:30:30 +0000
//
__int64 __fastcall CreateParticlePopup::onEmitterMode(__int64 a1, __int64 a2)
{
int v2; // r14d
int v3; // eax
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
CreateParticlePopup::updateParticleValueForType(a1, 62, 0, (float)v2);
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 872), v2 == 0);
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 880), v2 == 1);
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1592LL))(*(_QWORD *)(a1 + 712));
return CreateParticlePopup::toggleGravityMode(a1, v3 == 0);
}