{"type": "func", "start": 7086216, "end": 7086464, "name": "CCTextInputNode::ccTouchEnded", "pseudocode": "// \n// CCTextInputNode::ccTouchEnded from 0x6c2088 to 0x6c2180 (248 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x6c2184\n// > <???> @ 0x831a0\n// > <???> @ 0x141fe10\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::ccTouchEnded(__int64 a1, cocos2d::CCTouch *a2)\n{\n  int v4; // w21\n  __int64 v5; // x2\n  unsigned int v6; // w23\n  __int64 v7; // x0\n  __int64 v9; // [xsp+50h] [xbp+50h] BYREF\n  _BYTE v10[16]; // [xsp+58h] [xbp+58h] BYREF\n\n  v4 = *(unsigned __int8 *)(a1 + 697);\n  CCTextInputNode::disarmHold(a1);\n  v5 = *(_QWORD *)(a1 + 640);\n  if ( v5 )\n  {\n    v6 = *(unsigned __int8 *)(v5 + 480);\n    ScrollableContentLayer::handleTouchEnded(*(ScrollableContentLayer **)(a1 + 640), a2);\n    if ( v6 < (v4 ^ 1u) )\n    {\n      v7 = *(_QWORD *)(a1 + 584);\n      if ( !v7 || (*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 40LL))(v7, a1) )\n      {\n        cocos2d::CCTouch::getLocation(&v9, a2);\n        cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, (const cocos2d::CCRect *)&unk_155C0E8);\n        CCTextInputNode::updateCursorPosition(a1, (float *)&v9);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);\n      }\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCTextInputNode::ccTouchEnded from 0x6c2088 to 0x6c2180 (248 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x6c2184\n; > <???> @ 0x831a0\n; > <???> @ 0x141fe10\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_70]!                                ; +0x0, 0x6c2088\nMOV             X29, SP                                                ; +0x4, 0x6c208c\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x6c2090\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c2094\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x10, 0x6c2098\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x6c209c\nMOV             X22, X1                                                ; +0x18, 0x6c20a0\nMOV             X20, X0                                                ; +0x1c, 0x6c20a4\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6c20a8\nLDRB            W21, [X0,#0x2B9]                                       ; +0x24, 0x6c20ac\nLDR             X1, [X1]                                               ; +0x28, 0x6c20b0\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x2c, 0x6c20b4\nBL              _ZN15CCTextInputNode10disarmHoldEv; CCTextInputNode::disarmHold(void) ; +0x30, 0x6c20b8\nLDR             X2, [X20,#0x280]                                       ; +0x34, 0x6c20bc\nCBZ             X2, loc_6C2100                                         ; +0x38, 0x6c20c0\nMOV             X0, X2; this                                           ; +0x3c, 0x6c20c4\nMOV             X1, X22; cocos2d::CCTouch *                            ; +0x40, 0x6c20c8\nLDRB            W23, [X2,#0x1E0]                                       ; +0x44, 0x6c20cc\nEOR             W21, W21, #1                                           ; +0x48, 0x6c20d0\nBL              _ZN22ScrollableContentLayer16handleTouchEndedEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchEnded(cocos2d::CCTouch *) ; +0x4c, 0x6c20d4\nCMP             W23, W21                                               ; +0x50, 0x6c20d8\nB.CS            loc_6C2100                                             ; +0x54, 0x6c20dc\nLDR             X0, [X20,#0x248]                                       ; +0x58, 0x6c20e0\nCBZ             X0, loc_6C2128                                         ; +0x5c, 0x6c20e4\nLDR             X2, [X0]                                               ; +0x60, 0x6c20e8\nMOV             X1, X20                                                ; +0x64, 0x6c20ec\nLDR             X2, [X2,#0x28]                                         ; +0x68, 0x6c20f0\nBLR             X2                                                     ; +0x6c, 0x6c20f4\nUXTB            W0, W0                                                 ; +0x70, 0x6c20f8\nCBNZ            W0, loc_6C2128                                         ; +0x74, 0x6c20fc\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x78, 0x6c2100\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x7c, 0x6c2104\nLDR             X0, [X19]                                              ; +0x80, 0x6c2108\nCMP             X1, X0                                                 ; +0x84, 0x6c210c\nB.NE            loc_6C217C                                             ; +0x88, 0x6c2110\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x8c, 0x6c2114\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x90, 0x6c2118\nLDR             X23, [SP,#0x70+var_40]                                 ; +0x94, 0x6c211c\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x98, 0x6c2120\nRET                                                                    ; +0x9c, 0x6c2124\nADD             X21, X29, #0x70+var_20                                 ; +0xa0, 0x6c2128\nMOV             X0, X22; this                                          ; +0xa4, 0x6c212c\nMOV             X8, X21                                                ; +0xa8, 0x6c2130\nADD             X22, X29, #0x70+var_18                                 ; +0xac, 0x6c2134\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0xb0, 0x6c2138\nSTR             X22, [X29,#0x70+var_28]                                ; +0xb4, 0x6c213c\nADRP            X1, #unk_155C0E0@PAGE                                  ; +0xb8, 0x6c2140\nMOV             X0, X22; this                                          ; +0xbc, 0x6c2144\nADD             X1, X1, #unk_155C0E0@PAGEOFF                           ; +0xc0, 0x6c2148\nADD             X1, X1, #8; cocos2d::CCRect *                          ; +0xc4, 0x6c214c\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0xc8, 0x6c2150\nLDR             X2, [X29,#0x70+var_28]                                 ; +0xcc, 0x6c2154\nMOV             X0, X20                                                ; +0xd0, 0x6c2158\nMOV             X1, X21                                                ; +0xd4, 0x6c215c\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0xd8, 0x6c2160\nLDR             X2, [X20]                                              ; +0xdc, 0x6c2164\nMOV             X0, X20                                                ; +0xe0, 0x6c2168\nMOV             W1, #1                                                 ; +0xe4, 0x6c216c\nLDR             X2, [X2,#0x488]                                        ; +0xe8, 0x6c2170\nBLR             X2                                                     ; +0xec, 0x6c2174\nB               loc_6C2100                                             ; +0xf0, 0x6c2178\nBL              .__stack_chk_fail                                      ; +0xf4, 0x6c217c", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x6c2184", "<???> @ 0x831a0", "<???> @ 0x141fe10"], "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"}