//
// CreateParticlePopup::onPosType from 0x1405ca690 to 0x1405ca703 (115 bytes)
//
// 4 xrefs:
// > CreateParticlePopup::init @ 0x1405c2a1c
// > CreateParticlePopup::init @ 0x1405c2b4e
// > CreateParticlePopup::init @ 0x1405c2ca5
// > ??> @ 0x14092e40c
//
// 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::onPosType(__int64 *a1, __int64 a2)
{
int v3; // edi
__int64 v4; // rdx
__int64 result; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
CreateParticlePopup::updateParticleValueForType((__int64)a1, v4, 0x39u, nullptr);
if ( v3 )
{
CCMenuItemToggler::toggle(a1[104], 0);
if ( v3 == 1 )
return CCMenuItemToggler::toggle(a1[106], 0);
}
result = CCMenuItemToggler::toggle(a1[105], 0);
if ( v3 != 2 )
return CCMenuItemToggler::toggle(a1[106], 0);
return result;
}