//
// CreateParticlePopup::valueForParticleValue from 0x664a2c to 0x664da2 (886 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::updateSliderForType @ 0x6657fa
// > CreateParticlePopup::updateInputNodeStringForType @ 0x66647e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:40 +0000
//
float __fastcall CreateParticlePopup::valueForParticleValue(int a1, int a2)
{
float result; // r0
int (*v3)(void); // r3
int (*v4)(void); // r3
int (*v5)(void); // r3
int (*v6)(void); // r3
int (*v7)(void); // r3
int (*v8)(void); // r3
switch ( a2 )
{
case 1:
return (float)(unsigned int)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 544) + 748))(*(_DWORD *)(a1 + 544));
case 2:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 460);
goto LABEL_62;
case 3:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 484);
goto LABEL_62;
case 4:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 492);
goto LABEL_62;
case 5:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 740);
goto LABEL_62;
case 6:
v4 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 500);
goto LABEL_60;
case 7:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 508);
goto LABEL_62;
case 8:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 528);
goto LABEL_62;
case 9:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 536);
goto LABEL_62;
case 10:
v5 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 476);
return *(float *)v5();
case 11:
v6 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 476);
return *(float *)(v6() + 4);
case 12:
v5 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 520);
return *(float *)v5();
case 13:
v6 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 520);
return *(float *)(v6() + 4);
case 14:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 560);
goto LABEL_62;
case 15:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 568);
goto LABEL_62;
case 16:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 544);
goto LABEL_62;
case 17:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 552);
goto LABEL_62;
case 18:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 644);
goto LABEL_62;
case 19:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 652);
goto LABEL_62;
case 20:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 660);
goto LABEL_62;
case 21:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 668);
goto LABEL_62;
case 22:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 708);
goto LABEL_62;
case 23:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 716);
goto LABEL_62;
case 24:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 724);
goto LABEL_62;
case 25:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 732);
goto LABEL_62;
case 26:
v5 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 676);
return *(float *)v5();
case 27:
v5 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 684);
return *(float *)v5();
case 28:
v6 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 676);
return *(float *)(v6() + 4);
case 29:
v6 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 684);
return *(float *)(v6() + 4);
case 30:
v7 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 676);
return *(float *)(v7() + 8);
case 31:
v7 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 684);
return *(float *)(v7() + 8);
case 32:
v8 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 676);
return *(float *)(v8() + 12);
case 33:
v8 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 684);
return *(float *)(v8() + 12);
case 34:
v5 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 692);
return *(float *)v5();
case 35:
v5 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 700);
return *(float *)v5();
case 36:
v6 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 692);
return *(float *)(v6() + 4);
case 37:
v6 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 700);
return *(float *)(v6() + 4);
case 38:
v7 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 692);
return *(float *)(v7() + 8);
case 39:
v7 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 700);
return *(float *)(v7() + 8);
case 40:
v8 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 692);
return *(float *)(v8() + 12);
case 41:
v8 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 700);
return *(float *)(v8() + 12);
case 42:
return *(float *)(*(_DWORD *)(a1 + 544) + 416);
case 43:
return *(float *)(*(_DWORD *)(a1 + 544) + 420);
case 44:
return *(float *)(*(_DWORD *)(a1 + 544) + 424);
case 45:
return *(float *)(*(_DWORD *)(a1 + 544) + 428);
case 46:
return *(float *)(*(_DWORD *)(a1 + 544) + 432);
case 47:
return *(float *)(*(_DWORD *)(a1 + 544) + 436);
case 48:
return *(float *)(*(_DWORD *)(a1 + 544) + 456);
case 49:
return *(float *)(*(_DWORD *)(a1 + 544) + 460);
case 50:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 584);
goto LABEL_62;
case 51:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 592);
goto LABEL_62;
case 52:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 600);
goto LABEL_62;
case 53:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 608);
goto LABEL_62;
case 54:
v4 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 616);
LABEL_60:
LODWORD(result) = v4() ^ 0x80000000;
return result;
case 55:
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 544) + 624);
LABEL_62:
result = COERCE_FLOAT(v3());
break;
case 69:
result = *(float *)(*(_DWORD *)(a1 + 544) + 440);
break;
case 70:
result = *(float *)(*(_DWORD *)(a1 + 544) + 444);
break;
case 71:
result = *(float *)(*(_DWORD *)(a1 + 544) + 448);
break;
case 72:
result = *(float *)(*(_DWORD *)(a1 + 544) + 452);
break;
default:
result = 0.0;
break;
}
return result;
}