//
// CreateParticlePopup::valueForParticleValue from 0xafd56c to 0xafdaf8 (1420 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::updateSliderForType @ 0xafec38
// > CreateParticlePopup::updateInputNodeStringForType @ 0xaffee8
// > ??> @ 0xc5cc8
//
// This function is hookable on this platform (idp: arm, 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 13:01:18 +0000
//
float __fastcall CreateParticlePopup::valueForParticleValue(__int64 a1, int a2)
{
float result; // s0
switch ( a2 )
{
case 1:
result = (float)(*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1496LL))(*(_QWORD *)(a1 + 712));
break;
case 2:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 920LL))(*(_QWORD *)(a1 + 712));
break;
case 3:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 968LL))(*(_QWORD *)(a1 + 712));
break;
case 4:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 984LL))(*(_QWORD *)(a1 + 712));
break;
case 5:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1480LL))(*(_QWORD *)(a1 + 712));
break;
case 6:
result = -(*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1000LL))(*(_QWORD *)(a1 + 712));
break;
case 7:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1016LL))(*(_QWORD *)(a1 + 712));
break;
case 8:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1056LL))(*(_QWORD *)(a1 + 712));
break;
case 9:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1072LL))(*(_QWORD *)(a1 + 712));
break;
case 10:
result = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 952LL))(*(_QWORD *)(a1 + 712));
break;
case 11:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 952LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 12:
result = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1040LL))(*(_QWORD *)(a1 + 712));
break;
case 13:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1040LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 14:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1120LL))(*(_QWORD *)(a1 + 712));
break;
case 15:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1136LL))(*(_QWORD *)(a1 + 712));
break;
case 16:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1088LL))(*(_QWORD *)(a1 + 712));
break;
case 17:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1104LL))(*(_QWORD *)(a1 + 712));
break;
case 18:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1288LL))(*(_QWORD *)(a1 + 712));
break;
case 19:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1304LL))(*(_QWORD *)(a1 + 712));
break;
case 20:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1320LL))(*(_QWORD *)(a1 + 712));
break;
case 21:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1336LL))(*(_QWORD *)(a1 + 712));
break;
case 22:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1416LL))(*(_QWORD *)(a1 + 712));
break;
case 23:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1432LL))(*(_QWORD *)(a1 + 712));
break;
case 24:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1448LL))(*(_QWORD *)(a1 + 712));
break;
case 25:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1464LL))(*(_QWORD *)(a1 + 712));
break;
case 26:
result = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712));
break;
case 27:
result = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1368LL))(*(_QWORD *)(a1 + 712));
break;
case 28:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 29:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1368LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 30:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 31:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1368LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 32:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 33:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1368LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 34:
result = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1384LL))(*(_QWORD *)(a1 + 712));
break;
case 35:
result = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1400LL))(*(_QWORD *)(a1 + 712));
break;
case 36:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1384LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 37:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1400LL))(*(_QWORD *)(a1 + 712))
+ 4);
break;
case 38:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1384LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 39:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1400LL))(*(_QWORD *)(a1 + 712))
+ 8);
break;
case 40:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1384LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 41:
result = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1400LL))(*(_QWORD *)(a1 + 712))
+ 12);
break;
case 42:
result = *(float *)(*(_QWORD *)(a1 + 712) + 496LL);
break;
case 43:
result = *(float *)(*(_QWORD *)(a1 + 712) + 500LL);
break;
case 44:
result = *(float *)(*(_QWORD *)(a1 + 712) + 504LL);
break;
case 45:
result = *(float *)(*(_QWORD *)(a1 + 712) + 508LL);
break;
case 46:
result = *(float *)(*(_QWORD *)(a1 + 712) + 512LL);
break;
case 47:
result = *(float *)(*(_QWORD *)(a1 + 712) + 516LL);
break;
case 48:
result = *(float *)(*(_QWORD *)(a1 + 712) + 536LL);
break;
case 49:
result = *(float *)(*(_QWORD *)(a1 + 712) + 540LL);
break;
case 50:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1168LL))(*(_QWORD *)(a1 + 712));
break;
case 51:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1184LL))(*(_QWORD *)(a1 + 712));
break;
case 52:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1200LL))(*(_QWORD *)(a1 + 712));
break;
case 53:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1216LL))(*(_QWORD *)(a1 + 712));
break;
case 54:
result = -(*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1232LL))(*(_QWORD *)(a1 + 712));
break;
case 55:
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1248LL))(*(_QWORD *)(a1 + 712));
break;
case 69:
result = *(float *)(*(_QWORD *)(a1 + 712) + 520LL);
break;
case 70:
result = *(float *)(*(_QWORD *)(a1 + 712) + 524LL);
break;
case 71:
result = *(float *)(*(_QWORD *)(a1 + 712) + 528LL);
break;
case 72:
result = *(float *)(*(_QWORD *)(a1 + 712) + 532LL);
break;
default:
result = 0.0;
break;
}
return result;
}