//
// TouchControlEditLayer::onExit from 0x10097bc10 to 0x10097bca1 (145 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bd1478
//
// This function is hookable on this platform (idp: pc, 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 12:38:57 +0000
//
unsigned int *__fastcall TouchControlEditLayer::onExit(__int64 a1)
{
__int64 v2; // rdi
unsigned int *v3; // rax
_QWORD *v4; // r15
unsigned __int64 v5; // r12
__int64 v6; // r14
v2 = *(_QWORD *)(a1 + 1280);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((_QWORD **)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
v6 = *v4;
if ( !*v4 )
break;
if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v6 + 512LL))(*v4) )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, 1);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
v2 = *(_QWORD *)(a1 + 1280);
}
sub_1007FF190(v2);
}
return cocos2d::CCLayer::onExit(a1);
}