//
// CCTextInputNode::holdTimerFired from 0x10006c830 to 0x10006c8ea (186 bytes)
//
// 7 xrefs:
// > CCTextInputNode::dCCTextInputNode @ 0x10006571d
// > CCTextInputNode::disarmHold @ 0x10006580b
// > CCTextInputNode::ccTouchEnded @ 0x10006c4f6
// > CCTextInputNode::ccTouchCancelled @ 0x10006c5d1
// > sub_10006C610 @ 0x10006c638
// > CCTextInputNode::ccTouchMoved @ 0x10006c6dd
// > CCTextInputNode::onExit @ 0x10006c7e0
//
// 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:19:45 +0000
//
__int64 __fastcall CCTextInputNode::holdTimerFired(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
float v4; // [rsp+8h] [rbp-28h] BYREF
_BYTE v5[32]; // [rsp+10h] [rbp-20h] BYREF
*(_WORD *)(a1 + 696) = 256;
if ( *(_BYTE *)(a1 + 460) == 1 )
{
sub_1002782D0(v5, a1 + 688);
return CCTextInputNode::openEditMenu(a1, v5);
}
else
{
v3 = *(_QWORD *)(a1 + 584);
if ( !v3 || (result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 40LL))(v3, a1), (_BYTE)result) )
{
sub_1002782D0(&v4, a1 + 688);
sub_1002787F0(v5, &unk_100BE1030);
CCTextInputNode::updateCursorPosition(a1, &v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);
return cocos2d::CCNode::scheduleOnce(a1, sub_10006C760, 0, 0.34999999);
}
}
return result;
}