{"type": "func", "start": 4050196, "end": 4050298, "name": "CCTextInputNode::openEditMenu", "pseudocode": "// \n// CCTextInputNode::openEditMenu from 0x3dcd14 to 0x3dcd7a (102 bytes)\n// \n// 3 xrefs:\n// > CCTextInputNode::showHoldMenu @ 0x3dcda6\n// > CCTextInputNode::holdTimerFired @ 0x3e27a0\n// > CCTextInputNode::rightClick @ 0x3e28de\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:48 +0000\n// \n\nint *__fastcall CCTextInputNode::openEditMenu(CCTextInputNode *a1, const cocos2d::CCPoint *a2, int a3, int a4)\n{\n  cocos2d::CCDirector *v6; // r0\n  int v7; // r5\n  float v8; // r2\n  float v9; // r3\n  int *result; // r0\n  int v11; // r6\n  int (__fastcall *v12)(int, int, int, int, CCTextInputNode *, const cocos2d::CCPoint *, int, int); // r7\n  int v13; // r0\n  int v14; // r3\n  const cocos2d::CCPoint *v16; // [sp+4h] [bp+0h] BYREF\n  int v17; // [sp+8h] [bp+4h]\n  int v18; // [sp+Ch] [bp+8h]\n\n  v16 = a2;\n  v17 = a3;\n  v18 = a4;\n  v6 = (cocos2d::CCDirector *)CCTextInputNode::closeEditMenu((int)a1);\n  v7 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 220);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, a2);\n  result = CCTextInputMenu::create(a1, (const cocos2d::CCPoint *)&v16, v8, v9);\n  if ( result )\n  {\n    if ( v7 )\n    {\n      *((_DWORD *)a1 + 122) = result;\n      cocos2d::CCObject::retain((cocos2d::CCObject *)result);\n      v11 = *((_DWORD *)a1 + 122);\n      v12 = *(int (__fastcall **)(int, int, int, int, CCTextInputNode *, const cocos2d::CCPoint *, int, int))(*(_DWORD *)v7 + 232);\n      v13 = GameToolbox::highestChildZ(v7);\n      return (int *)v12(v7, v11, v13 + 1, v14, a1, v16, v17, v18);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::openEditMenu from 0x3dcd14 to 0x3dcd7a (102 bytes)\n; \n; 3 xrefs:\n; > CCTextInputNode::showHoldMenu @ 0x3dcda6\n; > CCTextInputNode::holdTimerFired @ 0x3e27a0\n; > CCTextInputNode::rightClick @ 0x3e28de\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:48 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x3dcd14\nMOV             R6, R0                                                 ; +0x4, 0x3dcd18\nLDR             R4, =(__stack_chk_guard_ptr - 0x3DCD24)                ; +0x6, 0x3dcd1a\nMOV             R8, R1                                                 ; +0x8, 0x3dcd1c\nADD             R7, SP, #4                                             ; +0xa, 0x3dcd1e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3dcd20\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x3dcd22\nLDR             R3, [R4]                                               ; +0x10, 0x3dcd24\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x3dcd26\nBL              _ZN15CCTextInputNode13closeEditMenuEv; CCTextInputNode::closeEditMenu(void) ; +0x14, 0x3dcd28\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x3dcd2c\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x1c, 0x3dcd30\nLDR.W           R5, [R0,#0xDC]                                         ; +0x1e, 0x3dcd32\nMOV             R0, R7; this                                           ; +0x22, 0x3dcd36\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x24, 0x3dcd38\nMOV             R0, R6                                                 ; +0x28, 0x3dcd3c\nMOV             R1, R7                                                 ; +0x2a, 0x3dcd3e\nBL              _ZN15CCTextInputMenu6createEP15CCTextInputNodeN7cocos2d7CCPointE; CCTextInputMenu::create(CCTextInputNode *,cocos2d::CCPoint) ; +0x2c, 0x3dcd40\nCBZ             R0, loc_3DCD68                                         ; +0x30, 0x3dcd44\nCBZ             R5, loc_3DCD68                                         ; +0x32, 0x3dcd46\nSTR.W           R0, [R6,#0x1E8]                                        ; +0x34, 0x3dcd48\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x38, 0x3dcd4c\nLDR             R3, [R5]                                               ; +0x3c, 0x3dcd50\nMOV             R0, R5                                                 ; +0x3e, 0x3dcd52\nLDR.W           R6, [R6,#0x1E8]                                        ; +0x40, 0x3dcd54\nLDR.W           R7, [R3,#0xE8]                                         ; +0x44, 0x3dcd58\nBL              _ZN11GameToolbox13highestChildZEPN7cocos2d6CCNodeE; GameToolbox::highestChildZ(cocos2d::CCNode *) ; +0x48, 0x3dcd5c\nMOV             R1, R6                                                 ; +0x4c, 0x3dcd60\nADDS            R2, R0, #1                                             ; +0x4e, 0x3dcd62\nMOV             R0, R5                                                 ; +0x50, 0x3dcd64\nBLX             R7                                                     ; +0x52, 0x3dcd66\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x54, 0x3dcd68\nLDR             R3, [R4]                                               ; +0x56, 0x3dcd6a\nCMP             R2, R3                                                 ; +0x58, 0x3dcd6c\nBEQ             loc_3DCD74                                             ; +0x5a, 0x3dcd6e\nBLX             __stack_chk_fail                                       ; +0x5c, 0x3dcd70\nADD             SP, SP, #0x10                                          ; +0x60, 0x3dcd74\nPOP.W           {R4-R8,PC}                                             ; +0x62, 0x3dcd76", "xrefs": ["CCTextInputNode::showHoldMenu @ 0x3dcda6", "CCTextInputNode::holdTimerFired @ 0x3e27a0", "CCTextInputNode::rightClick @ 0x3e28de"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}