//
// TouchControlEditLayer::valueDidChange from 0x10052d880 to 0x10052da34 (436 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009a3730
//
// 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 11:07:18 +0000
//
float *__fastcall TouchControlEditLayer::valueDidChange(__int64 a1, int a2, float a3)
{
float *result; // x0
float **v6; // x8
__int64 v7; // x8
__int64 v8; // x0
result = *(float **)(a1 + 1248);
if ( !result )
{
v6 = *(float ***)(a1 + 1224);
if ( v6 == *(float ***)(a1 + 1232) )
result = nullptr;
else
result = *v6;
}
*(_BYTE *)(a1 + 1336) = 1;
if ( a2 <= 3 )
{
if ( a2 == 1 )
{
if ( result )
return (float *)sub_100053588((__int64)result, (unsigned int)(int)(float)(a3 * 255.0));
}
else
{
if ( a2 != 2 )
{
if ( a2 != 3 || !result )
return result;
sub_1000534B8((__int64)result, a3 != 0.0);
return (float *)sub_10052CB68(a1);
}
if ( result )
sub_100053518((__int64)result, a3);
return sub_10052C800((_QWORD *)a1);
}
}
else
{
if ( a2 <= 5 )
{
if ( a2 == 4 )
{
if ( result )
*((_BYTE *)result + 382) = a3 != 0.0;
}
else if ( result )
{
*((_BYTE *)result + 387) = a3 != 0.0;
return (float *)sub_100053690((__int64)result);
}
return result;
}
if ( a2 != 6 )
{
if ( a2 != 7 )
return result;
sub_10052DA34(a1);
*(_BYTE *)(a1 + 1012) = a3 != 0.0;
sub_10052CD54(a1);
sub_10052BD28(a1);
sub_10052C800((_QWORD *)a1);
sub_10052C944(a1);
sub_10052CA88(a1);
return (float *)sub_10052CB68(a1);
}
v7 = *(_QWORD *)(a1 + 1016);
if ( v7 )
{
*(_DWORD *)(v7 + 68) = *(_DWORD *)(v7 + 68) == 0;
}
else
{
v8 = GameManager::sharedState();
GameManager::toggleGameVariable(v8, "0113");
}
return (float *)sub_10052C944(a1);
}
return result;
}