//
// TouchControlEditLayer::getValue from 0xd0445c to 0xd0456c (272 bytes)
//
// 2 xrefs:
// > ??> @ 0xcd798
// > ??> @ 0x1508df8
//
// 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:06:55 +0000
//
float __fastcall TouchControlEditLayer::getValue(TouchControlEditLayer *this, int a2)
{
unsigned __int8 *active; // x0
float result; // s0
__int64 v5; // x0
GameManager *v6; // x0
active = (unsigned __int8 *)TouchControlEditLayer::activeNode(this);
switch ( a2 )
{
case 1:
if ( !active )
goto LABEL_18;
result = (float)(unsigned __int8)GJUINode::getOpacity((GJUINode *)active) / 255.0;
break;
case 2:
if ( active )
GJUINode::getButtonScale((GJUINode *)active);
else
LABEL_18:
result = 1.0;
break;
case 3:
if ( !active )
goto LABEL_2;
result = (float)active[381];
break;
case 4:
if ( !active )
goto LABEL_2;
result = (float)active[382];
break;
case 5:
if ( !active )
goto LABEL_2;
result = (float)active[387];
break;
case 6:
v5 = *((_QWORD *)this + 127);
if ( v5 )
{
result = (float)*(int *)(v5 + 68);
}
else
{
v6 = (GameManager *)GameManager::sharedState(nullptr);
result = (float)(unsigned __int8)GameManager::getGameVariable(v6, "0113");
}
break;
case 7:
result = (float)*((unsigned __int8 *)this + 1012);
break;
default:
LABEL_2:
result = 0.0;
break;
}
return result;
}