//
// CCTextInputNode::ccTouchEnded from 0x1001ff1bc to 0x1001ff28c (208 bytes)
//
// 2 xrefs:
// > sub_1001FF28C @ 0x1001ff290
// > ??> @ 0x1008f5488
//
// 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:44 +0000
//
__int64 __fastcall CCTextInputNode::ccTouchEnded(__int64 a1, __int64 a2)
{
char v4; // w21
__int64 result; // x0
char v6; // w22
__int64 v7; // x0
__int64 v8; // [xsp+8h] [xbp-38h] BYREF
__int64 v9; // [xsp+18h] [xbp-28h] BYREF
v4 = *(_BYTE *)(a1 + 697);
*(_BYTE *)(a1 + 697) = 0;
if ( *(_BYTE *)(a1 + 696) == 1 )
{
*(_BYTE *)(a1 + 696) = 0;
cocos2d::CCNode::unschedule(a1, sub_1001FF490, 0);
}
result = *(_QWORD *)(a1 + 640);
if ( result )
{
v6 = *(_BYTE *)(result + 480);
result = sub_100525820();
if ( (v6 & 1) == 0 && (v4 & 1) == 0 )
{
v7 = *(_QWORD *)(a1 + 584);
if ( !v7
|| (result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 40LL))(v7, a1), (_DWORD)result) )
{
cocos2d::CCTouch::getLocation(&v9, a2);
sub_1000264D4(&v8, (__int64)&unk_1009F48A0);
CCTextInputNode::updateCursorPosition(a1, (float *)&v9);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);
}
}
}
return result;
}