//
// CreateParticlePopup::onEmitterMode from 0x1405ca710 to 0x1405ca78a (122 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::init @ 0x1405c2df5
// > CreateParticlePopup::init @ 0x1405c2f33
// > ??> @ 0x14092e418
//
// 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 11:34:52 +0000
//
__int64 __fastcall CreateParticlePopup::onEmitterMode(__int64 a1, __int64 a2)
{
int v3; // ebx
__int64 v4; // rdx
__int64 v5; // rdx
__int64 v6; // rdx
__int64 v7; // rdx
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
CreateParticlePopup::updateParticleValueForType(a1, v4, 0x3Eu, nullptr);
LOBYTE(v5) = v3 == 0;
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 872), v5);
LOBYTE(v6) = v3 == 1;
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 880), v6);
LOBYTE(v7) = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1552LL))(*(_QWORD *)(a1 + 712)) == 0;
return CreateParticlePopup::toggleGravityMode(a1, v7);
}