//
// sub_1001FABE8 from 0x1001fabe8 to 0x1001facdc (244 bytes)
//
// 6 xrefs:
// > CCTextInputNode::dCCTextInputNode @ 0x1001fad40
// > sub_1001FAD44 @ 0x1001fad48
// > sub_1001FAD4C @ 0x1001fad50
// > sub_1001FAD54 @ 0x1001fad5c
// > sub_1001FAD68 @ 0x1001fad74
// > sub_1001FAD80 @ 0x1001fad8c
//
// 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:00:42 +0000
//
__int64 __fastcall sub_1001FABE8(_QWORD *a1)
{
void *v2; // x0
*a1 = off_1008F50F8;
a1[40] = off_1008F55D8;
a1[41] = &off_1008F5648;
a1[42] = off_1008F5660;
a1[43] = &off_1008F5680;
a1[44] = off_1008F56A8;
a1[51] = off_1008F56D8;
a1[52] = off_1008F5768;
*((_BYTE *)a1 + 697) = 0;
if ( *((_BYTE *)a1 + 696) == 1 )
{
*((_BYTE *)a1 + 696) = 0;
cocos2d::CCNode::unschedule(a1, sub_1001FF490, 0);
}
sub_1001FACE0(a1);
if ( *((_BYTE *)a1 + 460) == 1 )
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1160LL))(a1, 0);
if ( (_QWORD *)qword_100A0F8F8 == a1 )
qword_100A0F8F8 = 0;
v2 = (void *)a1[64];
if ( v2 )
{
a1[65] = v2;
operator delete(v2);
}
if ( *((char *)a1 + 495) < 0 )
operator delete((void *)a1[59]);
if ( *((char *)a1 + 455) < 0 )
operator delete((void *)a1[54]);
cocos2d::CCIMEDelegate::dCCIMEDelegate(a1 + 51);
return cocos2d::CCLayer::dCCLayer(a1);
}