//
// UIOptionsLayer::getValue from 0x1002a2910 to 0x1002a2b15 (517 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b09ec8
//
// 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 12:27:55 +0000
//
float __fastcall UIOptionsLayer::getValue(__int64 a1, int a2, __int64 a3)
{
__int64 v3; // rsi
float result; // xmm0_4
__int64 v5; // rdi
__int64 v6; // rax
v3 = (unsigned int)(a2 + 28);
switch ( v3 )
{
case 0LL:
return (float)*(char *)(*(_QWORD *)(a1 + 1024) + 387LL);
case 1LL:
return (float)*(char *)(*(_QWORD *)(a1 + 1016) + 387LL);
case 2LL:
GameManager::sharedState(a1, v3, a3);
return (float)(unsigned __int8)GameManager::getGameVariable(v6, "0113");
case 3LL:
return (float)*(char *)(*(_QWORD *)(a1 + 1024) + 382LL);
case 4LL:
return (float)*(char *)(*(_QWORD *)(a1 + 1016) + 382LL);
case 5LL:
return (float)*(char *)(a1 + 1012);
case 6LL:
return *(float *)(*(_QWORD *)(a1 + 1024) + 376LL);
case 7LL:
return *(float *)(*(_QWORD *)(a1 + 1016) + 376LL);
case 8LL:
return *(float *)(*(_QWORD *)(a1 + 1024) + 372LL);
case 9LL:
return *(float *)(*(_QWORD *)(a1 + 1016) + 372LL);
case 10LL:
return (float)*(char *)(*(_QWORD *)(a1 + 1024) + 381LL);
case 11LL:
return (float)*(char *)(*(_QWORD *)(a1 + 1016) + 381LL);
case 12LL:
v5 = *(_QWORD *)(a1 + 1040);
goto LABEL_22;
case 13LL:
v5 = *(_QWORD *)(a1 + 1032);
goto LABEL_22;
case 14LL:
v5 = *(_QWORD *)(a1 + 1024);
goto LABEL_22;
case 15LL:
v5 = *(_QWORD *)(a1 + 1016);
LABEL_22:
result = (float)(unsigned __int8)GJUINode::getOpacity(v5) / 255.0;
break;
case 16LL:
GJUINode::getButtonScale(*(_QWORD *)(a1 + 1040));
break;
case 17LL:
GJUINode::getButtonScale(*(_QWORD *)(a1 + 1032));
break;
case 18LL:
GJUINode::getButtonScale(*(_QWORD *)(a1 + 1024));
break;
case 19LL:
GJUINode::getButtonScale(*(_QWORD *)(a1 + 1016));
break;
case 20LL:
result = *(float *)(*(_QWORD *)(a1 + 1040) + 348LL);
break;
case 21LL:
result = *(float *)(*(_QWORD *)(a1 + 1032) + 348LL);
break;
case 22LL:
result = *(float *)(*(_QWORD *)(a1 + 1024) + 348LL);
break;
case 23LL:
result = *(float *)(*(_QWORD *)(a1 + 1016) + 348LL);
break;
case 24LL:
result = *(float *)(*(_QWORD *)(a1 + 1040) + 344LL);
break;
case 25LL:
result = *(float *)(*(_QWORD *)(a1 + 1032) + 344LL);
break;
case 26LL:
result = *(float *)(*(_QWORD *)(a1 + 1024) + 344LL);
break;
case 27LL:
result = *(float *)(*(_QWORD *)(a1 + 1016) + 344LL);
break;
default:
result = 0.0;
break;
}
return result;
}