//
// sub_10052CB68 from 0x10052cb68 to 0x10052cbe8 (128 bytes)
//
// 4 xrefs:
// > sub_10052BC30 @ 0x10052bd08
// > TouchControlEditLayer::valueDidChange @ 0x10052d98c
// > TouchControlEditLayer::ccTouchBegan @ 0x10052e0e0
// > sub_10052E69C @ 0x10052e6dc
//
// 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
//
__int64 __fastcall sub_10052CB68(__int64 a1)
{
__int64 v2; // x8
char v3; // w8
__int64 *v4; // x8
v2 = *(_QWORD *)(a1 + 1248);
if ( v2 || (v4 = *(__int64 **)(a1 + 1224), v4 != *(__int64 **)(a1 + 1232)) && (v2 = *v4) != 0 )
v3 = *(_BYTE *)(v2 + 381) ^ 1;
else
v3 = 1;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, 1, v3 & 1);
return (*(__int64 (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1352LL))(
a1,
2,
(*(_BYTE *)(a1 + 1012) & 1) == 0);
}