//
// CreateParticlePopup::onPosType from 0x100467dc0 to 0x100467e3e (126 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::init @ 0x100463fb1
// > CreateParticlePopup::init @ 0x1004640dc
// > CreateParticlePopup::init @ 0x10046420d
//
// 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::onPosType(__int64 *a1, __int64 a2)
{
int v2; // r14d
__int64 result; // rax
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
CreateParticlePopup::updateParticleValueForType(a1, 57, 0, (float)v2);
if ( !v2 )
{
CCMenuItemToggler::toggle(a1[105], 0);
return CCMenuItemToggler::toggle(a1[106], 0);
}
CCMenuItemToggler::toggle(a1[104], 0);
if ( v2 == 1 )
return CCMenuItemToggler::toggle(a1[106], 0);
result = CCMenuItemToggler::toggle(a1[105], 0);
if ( v2 != 2 )
return CCMenuItemToggler::toggle(a1[106], 0);
return result;
}