//
// CCTextInputNode::openEditMenu from 0x3dcd14 to 0x3dcd7a (102 bytes)
//
// 3 xrefs:
// > CCTextInputNode::showHoldMenu @ 0x3dcda6
// > CCTextInputNode::holdTimerFired @ 0x3e27a0
// > CCTextInputNode::rightClick @ 0x3e28de
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:48 +0000
//
int *__fastcall CCTextInputNode::openEditMenu(CCTextInputNode *a1, const cocos2d::CCPoint *a2, int a3, int a4)
{
cocos2d::CCDirector *v6; // r0
int v7; // r5
float v8; // r2
float v9; // r3
int *result; // r0
int v11; // r6
int (__fastcall *v12)(int, int, int, int, CCTextInputNode *, const cocos2d::CCPoint *, int, int); // r7
int v13; // r0
int v14; // r3
const cocos2d::CCPoint *v16; // [sp+4h] [bp+0h] BYREF
int v17; // [sp+8h] [bp+4h]
int v18; // [sp+Ch] [bp+8h]
v16 = a2;
v17 = a3;
v18 = a4;
v6 = (cocos2d::CCDirector *)CCTextInputNode::closeEditMenu((int)a1);
v7 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 220);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, a2);
result = CCTextInputMenu::create(a1, (const cocos2d::CCPoint *)&v16, v8, v9);
if ( result )
{
if ( v7 )
{
*((_DWORD *)a1 + 122) = result;
cocos2d::CCObject::retain((cocos2d::CCObject *)result);
v11 = *((_DWORD *)a1 + 122);
v12 = *(int (__fastcall **)(int, int, int, int, CCTextInputNode *, const cocos2d::CCPoint *, int, int))(*(_DWORD *)v7 + 232);
v13 = GameToolbox::highestChildZ(v7);
return (int *)v12(v7, v11, v13 + 1, v14, a1, v16, v17, v18);
}
}
return result;
}