//
// sub_10052E8E0 from 0x10052e8e0 to 0x10052e974 (148 bytes)
//
// 1 xrefs:
// > TouchControlEditLayer::onExit @ 0x10052e8cc
//
// 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_10052E8E0(__int64 a1)
{
__int64 result; // x0
unsigned int *v3; // x9
__int64 v4; // x8
_QWORD *v5; // x21
unsigned __int64 v6; // x22
__int64 v7; // x20
result = *(_QWORD *)(a1 + 1280);
if ( result )
{
v3 = *(unsigned int **)(result + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((_QWORD **)v3 + 2);
v6 = (unsigned __int64)&v5[v4 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 512LL))(*v5) )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 344LL))(v7, 1);
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
result = *(_QWORD *)(a1 + 1280);
}
return sub_1002E7674(result);
}
return result;
}