//
// UIOptionsLayer::getValue from 0x5d3bfc to 0x5d3d22 (294 bytes)
//
// 0 xrefs:
//
// 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:54:07 +0000
//
int __fastcall UIOptionsLayer::getValue(UIOptionsLayer *this, int a2)
{
int v2; // r3
float v3; // s15
int v4; // r3
GJUINode *v6; // r0
int v7; // r3
int v8; // r3
int v9; // r3
int v10; // r3
int v11; // r3
GameManager *v12; // r0
int GameVariable; // s15
int v14; // r3
switch ( a2 )
{
case -28:
v14 = *((_DWORD *)this + 180);
goto LABEL_37;
case -27:
v14 = *((_DWORD *)this + 179);
LABEL_37:
v10 = *(unsigned __int8 *)(v14 + 323);
goto LABEL_39;
case -26:
v12 = (GameManager *)GameManager::sharedState(this);
GameVariable = GameManager::getGameVariable(v12, "0113");
goto LABEL_40;
case -25:
v11 = *((_DWORD *)this + 180);
goto LABEL_33;
case -24:
v11 = *((_DWORD *)this + 179);
LABEL_33:
v10 = *(unsigned __int8 *)(v11 + 318);
goto LABEL_39;
case -23:
v10 = *((unsigned __int8 *)this + 712);
goto LABEL_39;
case -22:
v8 = *((_DWORD *)this + 180);
goto LABEL_27;
case -21:
v8 = *((_DWORD *)this + 179);
LABEL_27:
v3 = *(float *)(v8 + 312);
return LODWORD(v3);
case -20:
v7 = *((_DWORD *)this + 180);
goto LABEL_24;
case -19:
v7 = *((_DWORD *)this + 179);
LABEL_24:
v3 = *(float *)(v7 + 308);
return LODWORD(v3);
case -18:
v9 = *((_DWORD *)this + 180);
goto LABEL_30;
case -17:
v9 = *((_DWORD *)this + 179);
LABEL_30:
v10 = *(unsigned __int8 *)(v9 + 317);
LABEL_39:
GameVariable = v10;
LABEL_40:
v3 = (float)(unsigned int)GameVariable;
return LODWORD(v3);
case -16:
v6 = *((GJUINode **)this + 182);
goto LABEL_21;
case -15:
v6 = *((GJUINode **)this + 181);
goto LABEL_21;
case -14:
v6 = *((GJUINode **)this + 180);
goto LABEL_21;
case -13:
v6 = *((GJUINode **)this + 179);
LABEL_21:
v3 = (float)GJUINode::getOpacity(v6) / 255.0;
return LODWORD(v3);
case -12:
return GJUINode::getButtonScale(*((GJUINode **)this + 182));
case -11:
return GJUINode::getButtonScale(*((GJUINode **)this + 181));
case -10:
return GJUINode::getButtonScale(*((GJUINode **)this + 180));
case -9:
return GJUINode::getButtonScale(*((GJUINode **)this + 179));
case -8:
v4 = *((_DWORD *)this + 182);
goto LABEL_9;
case -7:
v4 = *((_DWORD *)this + 181);
goto LABEL_9;
case -6:
v4 = *((_DWORD *)this + 180);
goto LABEL_9;
case -5:
v4 = *((_DWORD *)this + 179);
LABEL_9:
v3 = *(float *)(v4 + 284);
return LODWORD(v3);
case -4:
v2 = *((_DWORD *)this + 182);
goto LABEL_4;
case -3:
v2 = *((_DWORD *)this + 181);
goto LABEL_4;
case -2:
v2 = *((_DWORD *)this + 180);
goto LABEL_4;
case -1:
v2 = *((_DWORD *)this + 179);
LABEL_4:
v3 = *(float *)(v2 + 280);
break;
default:
v3 = 0.0;
break;
}
return LODWORD(v3);
}