//
// CreateParticlePopup::valueForParticleValue from 0x1405c8d60 to 0x1405c93f0 (1680 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::updateSliderForType @ 0x1405ca29c
// > CreateParticlePopup::updateInputNodeStringForType @ 0x1405ca533
// > ??> @ 0x14092e3ac
//
// 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
//
unsigned __int64 __usercall CreateParticlePopup::valueForParticleValue@(__int64 a1@, int a2@)
{
unsigned __int64 result; // xmm0_8
switch ( a2 )
{
case 1:
HIDWORD(result) = 0;
*(float *)&result = (float)(*(int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1488LL))(*(_QWORD *)(a1 + 712));
break;
case 2:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 912LL))(*(_QWORD *)(a1 + 712));
break;
case 3:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 960LL))(*(_QWORD *)(a1 + 712));
break;
case 4:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 976LL))(*(_QWORD *)(a1 + 712));
break;
case 5:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1472LL))(*(_QWORD *)(a1 + 712));
break;
case 6:
result = COERCE_UNSIGNED_INT64((*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 992LL))(*(_QWORD *)(a1 + 712)))
^ 0x8000000080000000uLL;
break;
case 7:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1008LL))(*(_QWORD *)(a1 + 712));
break;
case 8:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1048LL))(*(_QWORD *)(a1 + 712));
break;
case 9:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1064LL))(*(_QWORD *)(a1 + 712));
break;
case 10:
result = *(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 944LL))(*(_QWORD *)(a1 + 712));
break;
case 11:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 944LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 12:
result = *(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1032LL))(*(_QWORD *)(a1 + 712));
break;
case 13:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1032LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 14:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1112LL))(*(_QWORD *)(a1 + 712));
break;
case 15:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1128LL))(*(_QWORD *)(a1 + 712));
break;
case 16:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1080LL))(*(_QWORD *)(a1 + 712));
break;
case 17:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1096LL))(*(_QWORD *)(a1 + 712));
break;
case 18:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1280LL))(*(_QWORD *)(a1 + 712));
break;
case 19:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1296LL))(*(_QWORD *)(a1 + 712));
break;
case 20:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1312LL))(*(_QWORD *)(a1 + 712));
break;
case 21:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1328LL))(*(_QWORD *)(a1 + 712));
break;
case 22:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1408LL))(*(_QWORD *)(a1 + 712));
break;
case 23:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1424LL))(*(_QWORD *)(a1 + 712));
break;
case 24:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1440LL))(*(_QWORD *)(a1 + 712));
break;
case 25:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1456LL))(*(_QWORD *)(a1 + 712));
break;
case 26:
result = *(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1344LL))(*(_QWORD *)(a1 + 712));
break;
case 27:
result = *(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1360LL))(*(_QWORD *)(a1 + 712));
break;
case 28:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1344LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 29:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1360LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 30:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1344LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 31:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1360LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 32:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1344LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 33:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1360LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 34:
result = *(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1376LL))(*(_QWORD *)(a1 + 712));
break;
case 35:
result = *(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1392LL))(*(_QWORD *)(a1 + 712));
break;
case 36:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1376LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 37:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1392LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 38:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1376LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 39:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1392LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 40:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1376LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 41:
result = *(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1392LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 42:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 504LL);
break;
case 43:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 508LL);
break;
case 44:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 512LL);
break;
case 45:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 516LL);
break;
case 46:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 520LL);
break;
case 47:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 524LL);
break;
case 48:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 544LL);
break;
case 49:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 548LL);
break;
case 50:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1160LL))(*(_QWORD *)(a1 + 712));
break;
case 51:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1176LL))(*(_QWORD *)(a1 + 712));
break;
case 52:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1192LL))(*(_QWORD *)(a1 + 712));
break;
case 53:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1208LL))(*(_QWORD *)(a1 + 712));
break;
case 54:
result = COERCE_UNSIGNED_INT64((*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1224LL))(*(_QWORD *)(a1 + 712)))
^ 0x8000000080000000uLL;
break;
case 55:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1240LL))(*(_QWORD *)(a1 + 712));
break;
case 69:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 528LL);
break;
case 70:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 532LL);
break;
case 71:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 536LL);
break;
case 72:
result = *(unsigned int *)(*(_QWORD *)(a1 + 712) + 540LL);
break;
default:
result = 0;
break;
}
return result;
}