//
// sub_1001FF490 from 0x1001ff490 to 0x1001ff554 (196 bytes)
//
// 6 xrefs:
// > sub_1001FABE8 @ 0x1001fac44
// > CCTextInputNode::armHold @ 0x1001ff180
// > CCTextInputNode::ccTouchEnded @ 0x1001ff1f0
// > CCTextInputNode::ccTouchCancelled @ 0x1001ff2bc
// > CCTextInputNode::ccTouchMoved @ 0x1001ff364
// > CCTextInputNode::onExit @ 0x1001ff438
//
// 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:45 +0000
//
__int64 __fastcall sub_1001FF490(__int64 a1)
{
double v2; // d0
__int64 result; // x0
__int64 v4; // x0
_QWORD v5[2]; // [xsp+8h] [xbp-28h] BYREF
__int64 v6; // [xsp+18h] [xbp-18h] BYREF
*(_WORD *)(a1 + 696) = 256;
if ( *(_BYTE *)(a1 + 460) == 1 )
{
v2 = sub_1000262F4(v5, (double *)(a1 + 688));
return sub_1001FF554(a1, v2);
}
else
{
v4 = *(_QWORD *)(a1 + 584);
if ( !v4 || (result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 40LL))(v4, a1), (_DWORD)result) )
{
sub_1000262F4(&v6, (double *)(a1 + 688));
sub_1000264D4(v5, (__int64)&unk_1009F48A0);
CCTextInputNode::updateCursorPosition(a1, (float *)&v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);
return sub_1002D9610(a1, sub_1001FF3C8, 0, 0.35);
}
}
return result;
}