{"type": "func", "start": 4073504, "end": 4073722, "name": "CCTextInputNode::rightClick", "pseudocode": "// \n// CCTextInputNode::rightClick from 0x3e2820 to 0x3e28fa (218 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::rightClick @ 0x3e2908\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:47:02 +0000\n// \n\ncocos2d::CCTouchHandler *__fastcall CCTextInputNode::rightClick(CCTextInputNode *this, float a2, float a3)\n{\n  cocos2d::CCTouchHandler *v6; // r8\n  int v8; // r0\n  int v9; // r2\n  int v10; // r3\n  _BYTE v12[8]; // [sp+4h] [bp-28h] BYREF\n  float v13[2]; // [sp+Ch] [bp-20h] BYREF\n  _BYTE v14[16]; // [sp+14h] [bp-18h] BYREF\n\n  if ( !CCTextInputNode::isVisibleInTree(this) )\n    return nullptr;\n  v6 = (cocos2d::CCTouchHandler *)(*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)this + 496))(this);\n  if ( !v6 )\n    return nullptr;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2, a3);\n  if ( cocos2d::ccTouchClippedByAncestor(this, (int)v12) )\n    return nullptr;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)v12);\n  if ( CCTextInputNode::containsTouchPoint((int)this) ? CCTextInputNode::isCoveredByPopup(this) : v6 )\n    return nullptr;\n  v8 = *((_DWORD *)this + 105);\n  if ( v8 )\n  {\n    if ( !(*(int (__fastcall **)(int, CCTextInputNode *))(*(_DWORD *)v8 + 20))(v8, this) )\n      return nullptr;\n  }\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, (const cocos2d::CCRect *)&unk_D2B360);\n  CCTextInputNode::updateCursorPosition((int)this, v13);\n  if ( !*((_BYTE *)this + 344) )\n    (*(void (__fastcall **)(CCTextInputNode *, int))(*(_DWORD *)this + 580))(this, 1);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)v12);\n  CCTextInputNode::openEditMenu(this, (const cocos2d::CCPoint *)v14, v9, v10);\n  return v6;\n}", "assembly": "; \n; CCTextInputNode::rightClick from 0x3e2820 to 0x3e28fa (218 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::rightClick @ 0x3e2908\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:47:02 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3e2820\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x3e2824\nLDR             R6, =(__stack_chk_guard_ptr - 0x3E2832)                ; +0x6, 0x3e2826\nMOV             R4, R0                                                 ; +0x8, 0x3e2828\nMOV             R9, R1                                                 ; +0xa, 0x3e282a\nMOV             R5, R2                                                 ; +0xc, 0x3e282c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3e282e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x3e2830\nLDR             R3, [R6]                                               ; +0x12, 0x3e2832\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x14, 0x3e2834\nBL              _ZN15CCTextInputNode15isVisibleInTreeEv; CCTextInputNode::isVisibleInTree(void) ; +0x16, 0x3e2836\nCBNZ            R0, loc_3E2842                                         ; +0x1a, 0x3e283a\nMOV.W           R8, #0                                                 ; +0x1c, 0x3e283c\nB               loc_3E28E2                                             ; +0x20, 0x3e2840\nLDR             R3, [R4]                                               ; +0x22, 0x3e2842\nMOV             R0, R4                                                 ; +0x24, 0x3e2844\nLDR.W           R3, [R3,#0x1F0]                                        ; +0x26, 0x3e2846\nBLX             R3                                                     ; +0x2a, 0x3e284a\nMOV             R8, R0                                                 ; +0x2c, 0x3e284c\nCMP             R0, #0                                                 ; +0x2e, 0x3e284e\nBEQ             loc_3E283C                                             ; +0x30, 0x3e2850\nADD             R7, SP, #0x2C+var_28                                   ; +0x32, 0x3e2852\nMOV             R1, R9; float                                          ; +0x34, 0x3e2854\nMOV             R2, R5; float                                          ; +0x36, 0x3e2856\nMOV             R0, R7; this                                           ; +0x38, 0x3e2858\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x3a, 0x3e285a\nMOV             R0, R4; lpsrc                                          ; +0x3e, 0x3e285e\nMOV             R1, R7                                                 ; +0x40, 0x3e2860\nBL              _ZN7cocos2d24ccTouchClippedByAncestorEPNS_6CCNodeERKNS_7CCPointE; cocos2d::ccTouchClippedByAncestor(cocos2d::CCNode *,cocos2d::CCPoint const&) ; +0x42, 0x3e2862\nCMP             R0, #0                                                 ; +0x46, 0x3e2866\nBNE             loc_3E283C                                             ; +0x48, 0x3e2868\nADD             R5, SP, #0x2C+var_18                                   ; +0x4a, 0x3e286a\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x4c, 0x3e286c\nMOV             R0, R5; this                                           ; +0x4e, 0x3e286e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x50, 0x3e2870\nMOV             R0, R4                                                 ; +0x54, 0x3e2874\nMOV             R1, R5                                                 ; +0x56, 0x3e2876\nBL              _ZN15CCTextInputNode18containsTouchPointEN7cocos2d7CCPointE; CCTextInputNode::containsTouchPoint(cocos2d::CCPoint) ; +0x58, 0x3e2878\nCBZ             R0, loc_3E2886                                         ; +0x5c, 0x3e287c\nMOV             R0, R4; this                                           ; +0x5e, 0x3e287e\nBL              _ZN15CCTextInputNode16isCoveredByPopupEv; CCTextInputNode::isCoveredByPopup(void) ; +0x60, 0x3e2880\nB               loc_3E2888                                             ; +0x64, 0x3e2884\nMOV             R0, R8                                                 ; +0x66, 0x3e2886\nCMP             R0, #0                                                 ; +0x68, 0x3e2888\nBNE             loc_3E283C                                             ; +0x6a, 0x3e288a\nLDR.W           R0, [R4,#0x1A4]                                        ; +0x6c, 0x3e288c\nCBZ             R0, loc_3E289E                                         ; +0x70, 0x3e2890\nLDR             R3, [R0]                                               ; +0x72, 0x3e2892\nMOV             R1, R4                                                 ; +0x74, 0x3e2894\nLDR             R3, [R3,#0x14]                                         ; +0x76, 0x3e2896\nBLX             R3                                                     ; +0x78, 0x3e2898\nCMP             R0, #0                                                 ; +0x7a, 0x3e289a\nBEQ             loc_3E283C                                             ; +0x7c, 0x3e289c\nADD.W           R9, SP, #0x2C+var_20                                   ; +0x7e, 0x3e289e\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x82, 0x3e28a2\nMOV             R0, R9; this                                           ; +0x84, 0x3e28a4\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x86, 0x3e28a6\nLDR             R1, =(unk_D2B358 - 0x3E28B2)                           ; +0x8a, 0x3e28aa\nMOV             R0, R5; this                                           ; +0x8c, 0x3e28ac\nADD             R1, PC; unk_D2B358                                     ; +0x8e, 0x3e28ae\nADDS            R1, #(unk_D2B360 - 0xD2B358); cocos2d::CCRect *        ; +0x90, 0x3e28b0\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x92, 0x3e28b2\nMOV             R0, R4                                                 ; +0x96, 0x3e28b6\nMOV             R1, R9                                                 ; +0x98, 0x3e28b8\nMOV             R2, R5                                                 ; +0x9a, 0x3e28ba\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0x9c, 0x3e28bc\nLDRB.W          R3, [R4,#0x158]                                        ; +0xa0, 0x3e28c0\nCBNZ            R3, loc_3E28D2                                         ; +0xa4, 0x3e28c4\nLDR             R3, [R4]                                               ; +0xa6, 0x3e28c6\nMOV             R0, R4                                                 ; +0xa8, 0x3e28c8\nMOVS            R1, #1                                                 ; +0xaa, 0x3e28ca\nLDR.W           R3, [R3,#0x244]                                        ; +0xac, 0x3e28cc\nBLX             R3                                                     ; +0xb0, 0x3e28d0\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0xb2, 0x3e28d2\nMOV             R0, R5; this                                           ; +0xb4, 0x3e28d4\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xb6, 0x3e28d6\nMOV             R0, R4                                                 ; +0xba, 0x3e28da\nMOV             R1, R5                                                 ; +0xbc, 0x3e28dc\nBL              _ZN15CCTextInputNode12openEditMenuEN7cocos2d7CCPointE; CCTextInputNode::openEditMenu(cocos2d::CCPoint) ; +0xbe, 0x3e28de\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xc2, 0x3e28e2\nMOV             R0, R8                                                 ; +0xc4, 0x3e28e4\nLDR             R3, [R6]                                               ; +0xc6, 0x3e28e6\nCMP             R2, R3                                                 ; +0xc8, 0x3e28e8\nBEQ             loc_3E28F4                                             ; +0xca, 0x3e28ea\nBLX             __stack_chk_fail                                       ; +0xcc, 0x3e28ec\nBL              __cxa_end_cleanup                                      ; +0xd0, 0x3e28f0\nADD             SP, SP, #0x2C ; ','                                    ; +0xd4, 0x3e28f4\nPOP.W           {R4-R9,PC}                                             ; +0xd6, 0x3e28f6", "xrefs": ["`non-virtual thunk to'CCTextInputNode::rightClick @ 0x3e2908"], "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"}