//
// sub_10052E7F0 from 0x10052e7f0 to 0x10052e8bc (204 bytes)
//
// 1 xrefs:
// > TouchControlEditLayer::onEnter @ 0x10052e7ec
//
// 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:19 +0000
//
__int64 __fastcall sub_10052E7F0(__int64 *a1)
{
__int64 result; // x0
__int64 v3; // x20
_QWORD *v4; // x0
unsigned int v5; // w21
__int64 v6; // x0
__int64 v7; // x22
result = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 512))(a1);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 488LL))(result);
if ( result )
{
v3 = result;
if ( !a1[160] )
{
v4 = sub_1002E736C();
a1[160] = (__int64)v4;
cocos2d::CCObject::retain((__int64)v4);
}
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(v3, v5);
if ( (__int64 *)v6 != a1 && v5 )
{
v7 = v6;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 352LL))(v6) )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
sub_1002E74E0(a1[160]);
}
}
++v5;
result = sub_1002E757C(v3);
}
while ( v5 < (unsigned int)result );
}
}
}
return result;
}