{"type": "func", "start": 7047780, "end": 7047956, "name": "CCTextInputNode::openEditMenu", "pseudocode": "// \n// CCTextInputNode::openEditMenu from 0x6b8a64 to 0x6b8b14 (176 bytes)\n// \n// 4 xrefs:\n// > CCTextInputNode::showHoldMenu @ 0x6b8b58\n// > CCTextInputNode::holdTimerFired @ 0x6c2288\n// > CCTextInputNode::rightClick @ 0x6c2454\n// > <???> @ 0x84028\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:53 +0000\n// \n\n__int64 __fastcall CCTextInputNode::openEditMenu(CCTextInputNode *a1, const cocos2d::CCPoint *a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  __int64 v4; // x21\n  __int64 *v5; // x0\n  void (__fastcall *v6)(__int64, cocos2d::CCPoint *, _QWORD); // x20\n  int v7; // w0\n  cocos2d::CCPoint *v10; // [xsp+38h] [xbp+38h]\n  _BYTE v11[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  v3 = (cocos2d::CCDirector *)CCTextInputNode::closeEditMenu((__int64)a1);\n  v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v3) + 272);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, a2);\n  v5 = CCTextInputMenu::create(a1, (const cocos2d::CCPoint *)v11);\n  if ( v4 && v5 )\n  {\n    *((_QWORD *)a1 + 85) = v5;\n    cocos2d::CCObject::retain((cocos2d::CCObject *)v5);\n    v10 = *((cocos2d::CCPoint **)a1 + 85);\n    v6 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *, _QWORD))(*(_QWORD *)v4 + 464LL);\n    v7 = GameToolbox::highestChildZ(v4);\n    v6(v4, v10, (unsigned int)(v7 + 1));\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCTextInputNode::openEditMenu from 0x6b8a64 to 0x6b8b14 (176 bytes)\n; \n; 4 xrefs:\n; > CCTextInputNode::showHoldMenu @ 0x6b8b58\n; > CCTextInputNode::holdTimerFired @ 0x6c2288\n; > CCTextInputNode::rightClick @ 0x6c2454\n; > <???> @ 0x84028\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:53 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6b8a64\nMOV             X29, SP                                                ; +0x4, 0x6b8a68\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6b8a6c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6b8a70\nADD             X20, X29, #0x50+var_10                                 ; +0x10, 0x6b8a74\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x6b8a78\nSTR             X1, [X29,#0x50+var_18]                                 ; +0x18, 0x6b8a7c\nMOV             X22, X0                                                ; +0x1c, 0x6b8a80\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6b8a84\nLDR             X2, [X2]                                               ; +0x24, 0x6b8a88\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x28, 0x6b8a8c\nBL              _ZN15CCTextInputNode13closeEditMenuEv; CCTextInputNode::closeEditMenu(void) ; +0x2c, 0x6b8a90\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x6b8a94\nLDR             X21, [X0,#0x110]                                       ; +0x34, 0x6b8a98\nLDR             X1, [X29,#0x50+var_18]; cocos2d::CCPoint *             ; +0x38, 0x6b8a9c\nMOV             X0, X20; this                                          ; +0x3c, 0x6b8aa0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x40, 0x6b8aa4\nMOV             X0, X22                                                ; +0x44, 0x6b8aa8\nMOV             X1, X20                                                ; +0x48, 0x6b8aac\nBL              _ZN15CCTextInputMenu6createEP15CCTextInputNodeN7cocos2d7CCPointE; CCTextInputMenu::create(CCTextInputNode *,cocos2d::CCPoint) ; +0x4c, 0x6b8ab0\nCBZ             X21, loc_6B8AEC                                        ; +0x50, 0x6b8ab4\nCBZ             X0, loc_6B8AEC                                         ; +0x54, 0x6b8ab8\nSTR             X0, [X22,#0x2A8]                                       ; +0x58, 0x6b8abc\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x5c, 0x6b8ac0\nLDR             X2, [X21]                                              ; +0x60, 0x6b8ac4\nMOV             X0, X21                                                ; +0x64, 0x6b8ac8\nLDR             X1, [X22,#0x2A8]                                       ; +0x68, 0x6b8acc\nSTR             X1, [X29,#0x50+var_18]                                 ; +0x6c, 0x6b8ad0\nLDR             X20, [X2,#0x1D0]                                       ; +0x70, 0x6b8ad4\nBL              _ZN11GameToolbox13highestChildZEPN7cocos2d6CCNodeE; GameToolbox::highestChildZ(cocos2d::CCNode *) ; +0x74, 0x6b8ad8\nADD             W2, W0, #1                                             ; +0x78, 0x6b8adc\nLDR             X1, [X29,#0x50+var_18]                                 ; +0x7c, 0x6b8ae0\nMOV             X0, X21                                                ; +0x80, 0x6b8ae4\nBLR             X20                                                    ; +0x84, 0x6b8ae8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x6b8aec\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x8c, 0x6b8af0\nLDR             X0, [X19]                                              ; +0x90, 0x6b8af4\nCMP             X1, X0                                                 ; +0x94, 0x6b8af8\nB.NE            loc_6B8B10                                             ; +0x98, 0x6b8afc\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x9c, 0x6b8b00\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa0, 0x6b8b04\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa4, 0x6b8b08\nRET                                                                    ; +0xa8, 0x6b8b0c\nBL              .__stack_chk_fail                                      ; +0xac, 0x6b8b10", "xrefs": ["CCTextInputNode::showHoldMenu @ 0x6b8b58", "CCTextInputNode::holdTimerFired @ 0x6c2288", "CCTextInputNode::rightClick @ 0x6c2454", "<???> @ 0x84028"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}