//
// sub_1001E5AD0 from 0x1001e5ad0 to 0x1001e5b87 (183 bytes)
//
// 2 xrefs:
// > cocos2d::CCKeyboardDispatcher::dCCKeyboardDispatcher @ 0x1001e5b95
// > sub_1001E5BA0 @ 0x1001e5ba9
//
// 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:26:29 +0000
//
__int64 __fastcall sub_1001E5AD0(_QWORD *a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
void *v4; // rdi
void *v5; // rdi
_QWORD *v6; // r14
void *v7; // rdi
_QWORD *v9; // r15
void *v10; // rdi
*a1 = off_100AE0118;
v2 = a1[7];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = a1[17];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (void *)a1[9];
if ( v4 )
sub_1007477A0(v4);
v5 = (void *)a1[10];
if ( v5 )
sub_1007477A0(v5);
v6 = (_QWORD *)a1[13];
if ( v6 )
{
do
{
v9 = (_QWORD *)*v6;
v10 = (void *)v6[3];
if ( v10 )
{
v6[4] = v10;
operator delete(v10);
}
operator delete(v6);
v6 = v9;
}
while ( v9 );
}
v7 = (void *)a1[11];
a1[11] = 0;
if ( v7 )
operator delete(v7);
return sub_10047FF60(a1);
}