{"type": "func", "start": 4295411952, "end": 4295412139, "name": "CCTextInputNode::openEditMenu", "pseudocode": "// \n// CCTextInputNode::openEditMenu from 0x10006c8f0 to 0x10006c9ab (187 bytes)\n// \n// 3 xrefs:\n// > sub_10006C760 @ 0x10006c790\n// > CCTextInputNode::holdTimerFired @ 0x10006c869\n// > CCTextInputNode::rightClick @ 0x10006cc47\n// \n// This function is hookable on this platform (idp: pc, 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:19:45 +0000\n// \n\n__int64 __fastcall CCTextInputNode::openEditMenu(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r15\n  __int64 v3; // rbx\n  __int64 v4; // r14\n  __int64 v5; // r14\n  __int64 result; // rax\n  __int64 v7; // rbx\n  int v8; // eax\n  _BYTE v9[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  v2 = a2;\n  v3 = a1;\n  v4 = *(_QWORD *)(a1 + 680);\n  if ( v4 )\n  {\n    *(_QWORD *)(a1 + 680) = 0;\n    a2 = 1;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 528LL))(v4, 1);\n    a1 = v4;\n    cocos2d::CCObject::release(v4);\n  }\n  v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 272);\n  sub_1002782D0(v9, v2);\n  result = CCTextInputMenu::create(v3, v9);\n  if ( result != 0 && v5 != 0 )\n  {\n    *(_QWORD *)(v3 + 680) = result;\n    cocos2d::CCObject::retain(result);\n    v7 = *(_QWORD *)(v3 + 680);\n    v8 = sub_1004EAB70(v5);\n    return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v5 + 464LL))(v5, v7, (unsigned int)(v8 + 1));\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::openEditMenu from 0x10006c8f0 to 0x10006c9ab (187 bytes)\n; \n; 3 xrefs:\n; > sub_10006C760 @ 0x10006c790\n; > CCTextInputNode::holdTimerFired @ 0x10006c869\n; > CCTextInputNode::rightClick @ 0x10006cc47\n; \n; This function is hookable on this platform (idp: pc, 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:19:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x10006c8f0\nmov     rbp, rsp                                                       ; +0x1, 0x10006c8f1\npush    r15                                                            ; +0x4, 0x10006c8f4\npush    r14                                                            ; +0x6, 0x10006c8f6\npush    r12                                                            ; +0x8, 0x10006c8f8\npush    rbx                                                            ; +0xa, 0x10006c8fa\nsub     rsp, 10h                                                       ; +0xb, 0x10006c8fb\nmov     r15, rsi                                                       ; +0xf, 0x10006c8ff\nmov     rbx, rdi                                                       ; +0x12, 0x10006c902\nmov     r14, [rdi+2A8h]                                                ; +0x15, 0x10006c905\ntest    r14, r14                                                       ; +0x1c, 0x10006c90c\njz      short loc_10006C935                                            ; +0x1f, 0x10006c90f\nmov     qword ptr [rbx+2A8h], 0                                        ; +0x21, 0x10006c911\nmov     rax, [r14]                                                     ; +0x2c, 0x10006c91c\nmov     rdi, r14                                                       ; +0x2f, 0x10006c91f\nmov     esi, 1                                                         ; +0x32, 0x10006c922\ncall    qword ptr [rax+210h]                                           ; +0x37, 0x10006c927\nmov     rdi, r14                                                       ; +0x3d, 0x10006c92d\ncall    cocos2d__CCObject__release                                     ; +0x40, 0x10006c930\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x45, 0x10006c935\nmov     r14, [rax+110h]                                                ; +0x4a, 0x10006c93a\nlea     r12, [rbp+var_28]                                              ; +0x51, 0x10006c941\nmov     rdi, r12                                                       ; +0x55, 0x10006c945\nmov     rsi, r15                                                       ; +0x58, 0x10006c948\ncall    sub_1002782D0                                                  ; +0x5b, 0x10006c94b\nmov     rdi, rbx                                                       ; +0x60, 0x10006c950\nmov     rsi, r12                                                       ; +0x63, 0x10006c953\ncall    CCTextInputMenu__create                                        ; +0x66, 0x10006c956\ntest    rax, rax                                                       ; +0x6b, 0x10006c95b\nsetnz   cl                                                             ; +0x6e, 0x10006c95e\ntest    r14, r14                                                       ; +0x71, 0x10006c961\nsetnz   dl                                                             ; +0x74, 0x10006c964\nand     dl, cl                                                         ; +0x77, 0x10006c967\ncmp     dl, 1                                                          ; +0x79, 0x10006c969\njnz     short loc_10006C99E                                            ; +0x7c, 0x10006c96c\nmov     [rbx+2A8h], rax                                                ; +0x7e, 0x10006c96e\nmov     rdi, rax                                                       ; +0x85, 0x10006c975\ncall    cocos2d__CCObject__retain                                      ; +0x88, 0x10006c978\nmov     rbx, [rbx+2A8h]                                                ; +0x8d, 0x10006c97d\nmov     rdi, r14                                                       ; +0x94, 0x10006c984\ncall    sub_1004EAB70                                                  ; +0x97, 0x10006c987\nlea     edx, [rax+1]                                                   ; +0x9c, 0x10006c98c\nmov     rax, [r14]                                                     ; +0x9f, 0x10006c98f\nmov     rdi, r14                                                       ; +0xa2, 0x10006c992\nmov     rsi, rbx                                                       ; +0xa5, 0x10006c995\ncall    qword ptr [rax+1D0h]                                           ; +0xa8, 0x10006c998\nadd     rsp, 10h                                                       ; +0xae, 0x10006c99e\npop     rbx                                                            ; +0xb2, 0x10006c9a2\npop     r12                                                            ; +0xb3, 0x10006c9a3\npop     r14                                                            ; +0xb5, 0x10006c9a5\npop     r15                                                            ; +0xb7, 0x10006c9a7\npop     rbp                                                            ; +0xb9, 0x10006c9a9\nretn                                                                   ; +0xba, 0x10006c9aa", "xrefs": ["sub_10006C760 @ 0x10006c790", "CCTextInputNode::holdTimerFired @ 0x10006c869", "CCTextInputNode::rightClick @ 0x10006cc47"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}