//
// CreateParticlePopup::colorSelectClosed from 0x1405c7500 to 0x1405c77e0 (736 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407f86c0
// > ??> @ 0x14092e2d4
//
// 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:51 +0000
//
_OWORD *__fastcall CreateParticlePopup::colorSelectClosed(_QWORD *a1, __int64 a2)
{
_OWORD *result; // rax
__int64 v5; // rdx
__int64 (__fastcall ***v6)(_QWORD, __int16 *); // rcx
__int64 v7; // rdx
__int64 v8; // rdx
__int64 v9; // rdx
__int64 v10; // rdx
__int16 v11; // [rsp+48h] [rbp+10h] BYREF
char v12; // [rsp+4Ah] [rbp+12h]
__int16 v13; // [rsp+50h] [rbp+18h] BYREF
char v14; // [rsp+52h] [rbp+1Ah]
result = (_OWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v11 = *(_WORD *)(a2 + 1096);
v12 = *(_BYTE *)(a2 + 1098);
if ( (_DWORD)result )
{
if ( (_DWORD)result == 1 )
{
v13 = *(_WORD *)(a2 + 1096);
CreateParticlePopup::updateParticleValueForType(a1 - 83, v5, 26, 0);
CreateParticlePopup::updateParticleValueForType(a1 - 83, v7, 28, 0);
CreateParticlePopup::updateParticleValueForType(a1 - 83, v8, 30, 0);
CreateParticlePopup::updateInputNodeStringForType(a1 - 83, 26);
CreateParticlePopup::updateInputNodeStringForType(a1 - 83, 28);
CreateParticlePopup::updateInputNodeStringForType(a1 - 83, 30);
CreateParticlePopup::updateSliderForType(a1 - 83, 26);
CreateParticlePopup::updateSliderForType(a1 - 83, 28);
CreateParticlePopup::updateSliderForType(a1 - 83, 30);
(**(void (__fastcall ***)(__int64, __int16 *))(a1[35] + 320LL))(a1[35] + 320LL, &v11);
*(_OWORD *)(a1[6] + 716LL) = *(_OWORD *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[6] + 1344LL))(a1[6]);
result = (_OWORD *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[6] + 1376LL))(a1[6]);
*(_OWORD *)(a1[6] + 732LL) = *result;
}
else if ( (_DWORD)result == 2 )
{
v13 = *(_WORD *)(a2 + 1096);
CreateParticlePopup::updateParticleValueForType(a1 - 83, v5, 34, 0);
CreateParticlePopup::updateParticleValueForType(a1 - 83, v9, 36, 0);
CreateParticlePopup::updateParticleValueForType(a1 - 83, v10, 38, 0);
CreateParticlePopup::updateInputNodeStringForType(a1 - 83, 34);
CreateParticlePopup::updateInputNodeStringForType(a1 - 83, 36);
CreateParticlePopup::updateInputNodeStringForType(a1 - 83, 38);
CreateParticlePopup::updateSliderForType(a1 - 83, 34);
CreateParticlePopup::updateSliderForType(a1 - 83, 36);
CreateParticlePopup::updateSliderForType(a1 - 83, 38);
return (_OWORD *)(**(__int64 (__fastcall ***)(__int64, __int16 *))(a1[36] + 320LL))(a1[36] + 320LL, &v11);
}
}
else
{
(**(void (__fastcall ***)(__int64, __int16 *))(a1[16] + 408LL))(a1[16] + 408LL, &v11);
(**(void (__fastcall ***)(__int64, __int16 *))(a1[34] + 320LL))(a1[34] + 320LL, &v11);
LOBYTE(v13) = -1 - v11;
v14 = -1 - v12;
v6 = (__int64 (__fastcall ***)(_QWORD, __int16 *))(a1[40] + 368LL);
HIBYTE(v13) = -1 - HIBYTE(v11);
return (_OWORD *)(**v6)(v6, &v13);
}
return result;
}