//
// CCTextInputNode::openEditMenu from 0x6b8a64 to 0x6b8b14 (176 bytes)
//
// 4 xrefs:
// > CCTextInputNode::showHoldMenu @ 0x6b8b58
// > CCTextInputNode::holdTimerFired @ 0x6c2288
// > CCTextInputNode::rightClick @ 0x6c2454
// > ??> @ 0x84028
//
// 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:50:53 +0000
//
__int64 __fastcall CCTextInputNode::openEditMenu(CCTextInputNode *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCDirector *v3; // x0
__int64 v4; // x21
__int64 *v5; // x0
void (__fastcall *v6)(__int64, cocos2d::CCPoint *, _QWORD); // x20
int v7; // w0
cocos2d::CCPoint *v10; // [xsp+38h] [xbp+38h]
_BYTE v11[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = (cocos2d::CCDirector *)CCTextInputNode::closeEditMenu((__int64)a1);
v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v3) + 272);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, a2);
v5 = CCTextInputMenu::create(a1, (const cocos2d::CCPoint *)v11);
if ( v4 && v5 )
{
*((_QWORD *)a1 + 85) = v5;
cocos2d::CCObject::retain((cocos2d::CCObject *)v5);
v10 = *((cocos2d::CCPoint **)a1 + 85);
v6 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *, _QWORD))(*(_QWORD *)v4 + 464LL);
v7 = GameToolbox::highestChildZ(v4);
v6(v4, v10, (unsigned int)(v7 + 1));
}
return _stack_chk_guard;
}