// // CCTextInputNode::openEditMenu from 0x140059440 to 0x1400595c0 (384 bytes) // // 4 xrefs: // > CCTextInputNode::holdTimerFired @ 0x140059083 // > CCTextInputNode::showHoldMenu @ 0x14005913a // > CCTextInputNode::rightClick @ 0x14005932b // > @ 0x140910544 // // 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 11:25:41 +0000 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCObject *__fastcall CCTextInputNode::openEditMenu(_QWORD *a1, const struct cocos2d::CCPoint *a2) { const struct cocos2d::CCPoint *v2; // rdi cocos2d::CCObject *v4; // rbx __int64 *v5; // r14 const struct cocos2d::CCPoint *v6; // rax const struct cocos2d::CCPoint *v7; // rbx _QWORD *v8; // rdi float *v9; // rax struct cocos2d::CCObject *result; // rax __int64 v11; // rbx int v12; // eax char v13; // [rsp+40h] [rbp+8h] BYREF _QWORD *v14; // [rsp+50h] [rbp+18h] BYREF v2 = a2; v4 = (cocos2d::CCObject *)a1[87]; if ( v4 ) { a1[87] = 0; LOBYTE(a2) = 1; (*(void (__fastcall **)(cocos2d::CCObject *, const struct cocos2d::CCPoint *))(*(_QWORD *)v4 + 520LL))(v4, a2); cocos2d::CCObject::release(v4); } v5 = *(__int64 **)(cocos2d::CCDirector::sharedDirector() + 272); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, v2); v7 = v6; v8 = operator new(0x1B0u); v14 = v8; memset(v8, 0, 0x1B0u); cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v8); *v8 = &CCTextInputMenu::`vftable'; v8[40] = &CCTextInputMenu::`vftable'; v8[41] = &CCTextInputMenu::`vftable'; v8[42] = &CCTextInputMenu::`vftable'; v8[43] = &CCTextInputMenu::`vftable'; v8[44] = &CCTextInputMenu::`vftable'; v8[51] = 0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v8 + 52)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v7); if ( !CCTextInputMenu::init((cocos2d::CCLayer *)v8, a1, v9) ) return (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*v8 + 8LL))(v8, 1); result = cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8); if ( v8 ) { if ( v5 ) { a1[87] = v8; cocos2d::CCObject::retain((cocos2d::CCObject *)v8); v11 = *v5; v12 = GameToolbox::highestChildZ(v5); return (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64 *, _QWORD, _QWORD))(v11 + 456))( v5, a1[87], (unsigned int)(v12 + 1)); } } return result; }