{"type": "func", "start": 7086744, "end": 7087228, "name": "CCTextInputNode::rightClick", "pseudocode": "// \n// CCTextInputNode::rightClick from 0x6c2298 to 0x6c247c (484 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::rightClick @ 0x6c2480\n// > <???> @ 0xe1430\n// > <???> @ 0x141ff48\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:51:19 +0000\n// \n\n__int64 __fastcall CCTextInputNode::rightClick(CCTextInputNode *this, float a2, float a3)\n{\n  char isVisibleInTree; // w0\n  float v5; // s0\n  unsigned int v6; // w19\n  const void *i; // x19\n  void *v9; // x0\n  unsigned __int8 v10; // w0\n  __int64 v11; // x0\n  float v13; // [xsp+40h] [xbp+40h]\n  float v15; // [xsp+50h] [xbp+50h]\n  _BYTE v16[8]; // [xsp+68h] [xbp+68h] BYREF\n  float v17; // [xsp+70h] [xbp+70h] BYREF\n  _BYTE v18[16]; // [xsp+78h] [xbp+78h] BYREF\n\n  isVisibleInTree = CCTextInputNode::isVisibleInTree(this);\n  v5 = a2;\n  if ( !isVisibleInTree )\n    return 0;\n  v13 = a3;\n  v15 = v5;\n  if ( !(*(unsigned __int8 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 992LL))(this) )\n    return 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v15, v13);\n  for ( i = (const void *)(*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 512LL))(this);\n        i;\n        i = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)i + 512LL))(i) )\n  {\n    v9 = _dynamic_cast(\n           i,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper,\n           -2);\n    if ( v9 )\n    {\n      if ( !(*(unsigned __int8 (__fastcall **)(void *, _BYTE *))(*(_QWORD *)v9 + 16LL))(v9, v16) )\n        return 0;\n    }\n  }\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (const cocos2d::CCPoint *)v16);\n  v10 = CCTextInputNode::containsTouchPoint((__int64)this, (const cocos2d::CCPoint *)v18);\n  v6 = v10;\n  if ( !v10 )\n    return 0;\n  if ( CCTextInputNode::isCoveredByPopup(this) )\n    return 0;\n  v11 = *((_QWORD *)this + 73);\n  if ( v11 )\n  {\n    if ( !(*(unsigned __int8 (__fastcall **)(__int64, CCTextInputNode *))(*(_QWORD *)v11 + 40LL))(v11, this) )\n      return 0;\n  }\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, (const cocos2d::CCPoint *)v16);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, (const cocos2d::CCRect *)&unk_155C0E8);\n  CCTextInputNode::updateCursorPosition((__int64)this, &v17);\n  if ( !*((_BYTE *)this + 460) )\n    (*(void (__fastcall **)(CCTextInputNode *, __int64))(*(_QWORD *)this + 1160LL))(this, 1);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (const cocos2d::CCPoint *)v16);\n  CCTextInputNode::openEditMenu(this, (const cocos2d::CCPoint *)v18);\n  return v6;\n}", "assembly": "; \n; CCTextInputNode::rightClick from 0x6c2298 to 0x6c247c (484 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::rightClick @ 0x6c2480\n; > <???> @ 0xe1430\n; > <???> @ 0x141ff48\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:51:19 +0000\n; \nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x6c2298\nMOV             X29, SP                                                ; +0x4, 0x6c229c\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x8, 0x6c22a0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c22a4\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x10, 0x6c22a8\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x14, 0x6c22ac\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x6c22b0\nMOV             X21, X0                                                ; +0x1c, 0x6c22b4\nSTR             Q0, [X29,#0x90+var_50]                                 ; +0x20, 0x6c22b8\nSTR             Q1, [X29,#0x90+var_40]                                 ; +0x24, 0x6c22bc\nLDR             X1, [X1]                                               ; +0x28, 0x6c22c0\nSTR             X1, [X29,#0x90+var_8]                                  ; +0x2c, 0x6c22c4\nBL              _ZN15CCTextInputNode15isVisibleInTreeEv; CCTextInputNode::isVisibleInTree(void) ; +0x30, 0x6c22c8\nUXTB            W0, W0                                                 ; +0x34, 0x6c22cc\nLDR             Q1, [X29,#0x90+var_40]                                 ; +0x38, 0x6c22d0\nLDR             Q0, [X29,#0x90+var_50]                                 ; +0x3c, 0x6c22d4\nCBNZ            W0, loc_6C230C                                         ; +0x40, 0x6c22d8\nMOV             W19, #0                                                ; +0x44, 0x6c22dc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x48, 0x6c22e0\nMOV             W0, W19                                                ; +0x4c, 0x6c22e4\nLDR             X2, [X29,#0x90+var_8]                                  ; +0x50, 0x6c22e8\nLDR             X1, [X20]                                              ; +0x54, 0x6c22ec\nCMP             X2, X1                                                 ; +0x58, 0x6c22f0\nB.NE            loc_6C2474                                             ; +0x5c, 0x6c22f4\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x60, 0x6c22f8\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x64, 0x6c22fc\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x68, 0x6c2300\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x6c, 0x6c2304\nRET                                                                    ; +0x70, 0x6c2308\nLDR             X1, [X21]                                              ; +0x74, 0x6c230c\nMOV             X0, X21                                                ; +0x78, 0x6c2310\nSTR             Q1, [X29,#0x90+var_50]                                 ; +0x7c, 0x6c2314\nSTR             Q0, [X29,#0x90+var_40]                                 ; +0x80, 0x6c2318\nLDR             X1, [X1,#0x3E0]                                        ; +0x84, 0x6c231c\nBLR             X1                                                     ; +0x88, 0x6c2320\nUXTB            W0, W0                                                 ; +0x8c, 0x6c2324\nLDR             Q0, [X29,#0x90+var_40]; float                          ; +0x90, 0x6c2328\nLDR             Q1, [X29,#0x90+var_50]; float                          ; +0x94, 0x6c232c\nCBZ             W0, loc_6C22DC                                         ; +0x98, 0x6c2330\nADD             X22, X29, #0x90+var_28                                 ; +0x9c, 0x6c2334\nMOV             X0, X22; this                                          ; +0xa0, 0x6c2338\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa4, 0x6c233c\nLDR             X1, [X21]                                              ; +0xa8, 0x6c2340\nMOV             X0, X21                                                ; +0xac, 0x6c2344\nLDR             X1, [X1,#0x200]                                        ; +0xb0, 0x6c2348\nBLR             X1                                                     ; +0xb4, 0x6c234c\nMOV             X19, X0                                                ; +0xb8, 0x6c2350\nCBZ             X0, loc_6C23B0                                         ; +0xbc, 0x6c2354\nADRP            X24, #_ZTIN7cocos2d6CCNodeE_ptr@PAGE                   ; +0xc0, 0x6c2358\nADRP            X23, #_ZTIN7cocos2d14CCTouchClipperE_ptr@PAGE          ; +0xc4, 0x6c235c\nB               loc_6C237C                                             ; +0xc8, 0x6c2360\nLDR             X1, [X19]                                              ; +0xcc, 0x6c2364\nMOV             X0, X19                                                ; +0xd0, 0x6c2368\nLDR             X1, [X1,#0x200]                                        ; +0xd4, 0x6c236c\nBLR             X1                                                     ; +0xd8, 0x6c2370\nMOV             X19, X0                                                ; +0xdc, 0x6c2374\nCBZ             X0, loc_6C23B0                                         ; +0xe0, 0x6c2378\nLDR             X1, [X24,#_ZTIN7cocos2d6CCNodeE_ptr@PAGEOFF]; lpstype  ; +0xe4, 0x6c237c\nMOV             X0, X19; lpsrc                                         ; +0xe8, 0x6c2380\nLDR             X2, [X23,#_ZTIN7cocos2d14CCTouchClipperE_ptr@PAGEOFF]; lpdtype ; +0xec, 0x6c2384\nMOV             X3, #0xFFFFFFFFFFFFFFFE; s2d                           ; +0xf0, 0x6c2388\nBL              __dynamic_cast                                         ; +0xf4, 0x6c238c\nCBZ             X0, loc_6C2364                                         ; +0xf8, 0x6c2390\nLDR             X2, [X0]                                               ; +0xfc, 0x6c2394\nMOV             X1, X22                                                ; +0x100, 0x6c2398\nLDR             X2, [X2,#0x10]                                         ; +0x104, 0x6c239c\nBLR             X2                                                     ; +0x108, 0x6c23a0\nUXTB            W0, W0                                                 ; +0x10c, 0x6c23a4\nCBNZ            W0, loc_6C2364                                         ; +0x110, 0x6c23a8\nB               loc_6C22DC                                             ; +0x114, 0x6c23ac\nADD             X23, X29, #0x90+var_18                                 ; +0x118, 0x6c23b0\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x11c, 0x6c23b4\nMOV             X0, X23; this                                          ; +0x120, 0x6c23b8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x124, 0x6c23bc\nMOV             X0, X21                                                ; +0x128, 0x6c23c0\nMOV             X1, X23                                                ; +0x12c, 0x6c23c4\nBL              _ZN15CCTextInputNode18containsTouchPointEN7cocos2d7CCPointE; CCTextInputNode::containsTouchPoint(cocos2d::CCPoint) ; +0x130, 0x6c23c8\nUXTB            W19, W0                                                ; +0x134, 0x6c23cc\nCBZ             W19, loc_6C22DC                                        ; +0x138, 0x6c23d0\nMOV             X0, X21; this                                          ; +0x13c, 0x6c23d4\nBL              _ZN15CCTextInputNode16isCoveredByPopupEv; CCTextInputNode::isCoveredByPopup(void) ; +0x140, 0x6c23d8\nUXTB            W0, W0                                                 ; +0x144, 0x6c23dc\nCBNZ            W0, loc_6C22DC                                         ; +0x148, 0x6c23e0\nLDR             X0, [X21,#0x248]                                       ; +0x14c, 0x6c23e4\nCBZ             X0, loc_6C2404                                         ; +0x150, 0x6c23e8\nLDR             X2, [X0]                                               ; +0x154, 0x6c23ec\nMOV             X1, X21                                                ; +0x158, 0x6c23f0\nLDR             X2, [X2,#0x28]                                         ; +0x15c, 0x6c23f4\nBLR             X2                                                     ; +0x160, 0x6c23f8\nUXTB            W0, W0                                                 ; +0x164, 0x6c23fc\nCBZ             W0, loc_6C22DC                                         ; +0x168, 0x6c2400\nADD             X24, X29, #0x90+var_20                                 ; +0x16c, 0x6c2404\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x170, 0x6c2408\nMOV             X0, X24; this                                          ; +0x174, 0x6c240c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x178, 0x6c2410\nADRP            X1, #unk_155C0E0@PAGE                                  ; +0x17c, 0x6c2414\nMOV             X0, X23; this                                          ; +0x180, 0x6c2418\nADD             X1, X1, #unk_155C0E0@PAGEOFF                           ; +0x184, 0x6c241c\nADD             X1, X1, #8; cocos2d::CCRect *                          ; +0x188, 0x6c2420\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x18c, 0x6c2424\nMOV             X0, X21                                                ; +0x190, 0x6c2428\nMOV             X1, X24                                                ; +0x194, 0x6c242c\nMOV             X2, X23                                                ; +0x198, 0x6c2430\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0x19c, 0x6c2434\nLDRB            W0, [X21,#0x1CC]                                       ; +0x1a0, 0x6c2438\nCBZ             W0, loc_6C245C                                         ; +0x1a4, 0x6c243c\nMOV             X0, X23; this                                          ; +0x1a8, 0x6c2440\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x1ac, 0x6c2444\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1b0, 0x6c2448\nMOV             X0, X21                                                ; +0x1b4, 0x6c244c\nMOV             X1, X23                                                ; +0x1b8, 0x6c2450\nBL              _ZN15CCTextInputNode12openEditMenuEN7cocos2d7CCPointE; CCTextInputNode::openEditMenu(cocos2d::CCPoint) ; +0x1bc, 0x6c2454\nB               loc_6C22E0                                             ; +0x1c0, 0x6c2458\nLDR             X2, [X21]                                              ; +0x1c4, 0x6c245c\nMOV             X0, X21                                                ; +0x1c8, 0x6c2460\nMOV             W1, #1                                                 ; +0x1cc, 0x6c2464\nLDR             X2, [X2,#0x488]                                        ; +0x1d0, 0x6c2468\nBLR             X2                                                     ; +0x1d4, 0x6c246c\nB               loc_6C2440                                             ; +0x1d8, 0x6c2470\nBL              .__stack_chk_fail                                      ; +0x1dc, 0x6c2474\nBL              _Unwind_Resume                                         ; +0x1e0, 0x6c2478", "xrefs": ["`non-virtual thunk to'CCTextInputNode::rightClick @ 0x6c2480", "<???> @ 0xe1430", "<???> @ 0x141ff48"], "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"}