//
// CCTextInputNode::holdTimerFired from 0x6c2188 to 0x6c2294 (268 bytes)
//
// 5 xrefs:
// > ??> @ 0x54970
// > CCTextInputNode::armHold @ 0x6b86fc
// > CCTextInputNode::armHold @ 0x6b8704
// > CCTextInputNode::disarmHold @ 0x6b8744
// > ??> @ 0x1541db8
//
// 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 12:51:19 +0000
//
__int64 __fastcall CCTextInputNode::holdTimerFired(CCTextInputNode *this, float a2)
{
int v3; // w0
__int64 v4; // x0
float v6; // [xsp+40h] [xbp+40h] BYREF
_BYTE v7[16]; // [xsp+48h] [xbp+48h] BYREF
v3 = *((unsigned __int8 *)this + 460);
*((_BYTE *)this + 696) = 0;
*((_BYTE *)this + 697) = 1;
if ( v3 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, (CCTextInputNode *)((char *)this + 688));
CCTextInputNode::openEditMenu(this, (const cocos2d::CCPoint *)v7);
}
else
{
v4 = *((_QWORD *)this + 73);
if ( !v4
|| (*(unsigned __int8 (__fastcall **)(__int64, CCTextInputNode *, float))(*(_QWORD *)v4 + 40LL))(v4, this, a2) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (CCTextInputNode *)((char *)this + 688));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, (const cocos2d::CCRect *)&unk_155C0E8);
CCTextInputNode::updateCursorPosition((__int64)this, &v6);
(*(void (__fastcall **)(CCTextInputNode *, __int64))(*(_QWORD *)this + 1160LL))(this, 1);
cocos2d::CCNode::scheduleOnce(this, CCTextInputNode::showHoldMenu, 0, 0.35);
}
}
return _stack_chk_guard;
}