{"type": "func", "start": 7085732, "end": 7086208, "name": "CCTextInputNode::ccTouchBegan", "pseudocode": "// \n// CCTextInputNode::ccTouchBegan from 0x6c1ea4 to 0x6c2080 (476 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x6c2084\n// > <???> @ 0xa5178\n// > <???> @ 0x141fe00\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::ccTouchBegan(__int64 a1, cocos2d::CCTouch *a2)\n{\n  unsigned __int8 isVisibleInTree; // w0\n  unsigned int v5; // w19\n  const void *i; // x19\n  void *v8; // x0\n  unsigned __int8 v9; // w0\n  ScrollableContentLayer *v10; // x0\n  __int64 v11; // x0\n  __int64 v12; // [xsp+58h] [xbp+58h] BYREF\n  float v13; // [xsp+60h] [xbp+60h] BYREF\n  _BYTE v14[16]; // [xsp+68h] [xbp+68h] BYREF\n\n  isVisibleInTree = CCTextInputNode::isVisibleInTree((CCTextInputNode *)a1);\n  v5 = isVisibleInTree;\n  if ( isVisibleInTree )\n  {\n    cocos2d::CCTouch::getLocation(&v12, a2);\n    if ( a1 )\n    {\n      for ( i = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);\n            i;\n            i = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)i + 512LL))(i) )\n      {\n        v8 = _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 ( v8 )\n        {\n          if ( !(*(unsigned __int8 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v8 + 16LL))(v8, &v12) )\n            return 0;\n        }\n      }\n    }\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)&v12);\n    v9 = CCTextInputNode::containsTouchPoint(a1, (const cocos2d::CCPoint *)v14);\n    v5 = v9;\n    if ( !v9 )\n    {\n      if ( *(_BYTE *)(a1 + 460) && *(_BYTE *)(a1 + 626) )\n      {\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1160LL))(a1, 0);\n        return v5;\n      }\n      return 0;\n    }\n    v10 = *(ScrollableContentLayer **)(a1 + 640);\n    if ( v10 )\n    {\n      ScrollableContentLayer::handleTouchBegan(v10, a2);\n    }\n    else\n    {\n      v11 = *(_QWORD *)(a1 + 584);\n      if ( v11 && !(*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 40LL))(v11, a1) )\n        return 0;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, (const cocos2d::CCPoint *)&v12);\n      cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, (const cocos2d::CCRect *)&unk_155C0E8);\n      CCTextInputNode::updateCursorPosition(a1, &v13);\n    }\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)&v12);\n    CCTextInputNode::armHold(a1, (__int64)v14);\n  }\n  return v5;\n}", "assembly": "; \n; CCTextInputNode::ccTouchBegan from 0x6c1ea4 to 0x6c2080 (476 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x6c2084\n; > <???> @ 0xa5178\n; > <???> @ 0x141fe00\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_80]!                                ; +0x0, 0x6c1ea4\nMOV             X29, SP                                                ; +0x4, 0x6c1ea8\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x6c1eac\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c1eb0\nSTR             X25, [SP,#0x80+var_40]                                 ; +0x10, 0x6c1eb4\nMOV             X25, X1                                                ; +0x14, 0x6c1eb8\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x18, 0x6c1ebc\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6c1ec0\nMOV             X24, X0                                                ; +0x20, 0x6c1ec4\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x24, 0x6c1ec8\nLDR             X1, [X1]                                               ; +0x28, 0x6c1ecc\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x2c, 0x6c1ed0\nBL              _ZN15CCTextInputNode15isVisibleInTreeEv; CCTextInputNode::isVisibleInTree(void) ; +0x30, 0x6c1ed4\nUXTB            W19, W0                                                ; +0x34, 0x6c1ed8\nCBNZ            W19, loc_6C1F10                                        ; +0x38, 0x6c1edc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x6c1ee0\nMOV             W0, W19                                                ; +0x40, 0x6c1ee4\nLDR             X2, [X29,#0x80+var_8]                                  ; +0x44, 0x6c1ee8\nLDR             X1, [X20]                                              ; +0x48, 0x6c1eec\nCMP             X2, X1                                                 ; +0x4c, 0x6c1ef0\nB.NE            loc_6C207C                                             ; +0x50, 0x6c1ef4\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x54, 0x6c1ef8\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x58, 0x6c1efc\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x5c, 0x6c1f00\nLDR             X25, [SP,#0x80+var_40]                                 ; +0x60, 0x6c1f04\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x64, 0x6c1f08\nRET                                                                    ; +0x68, 0x6c1f0c\nADD             X21, X29, #0x80+var_28                                 ; +0x6c, 0x6c1f10\nMOV             X0, X25; this                                          ; +0x70, 0x6c1f14\nMOV             X8, X21                                                ; +0x74, 0x6c1f18\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x78, 0x6c1f1c\nCBZ             X24, loc_6C1F98                                        ; +0x7c, 0x6c1f20\nLDR             X1, [X24]                                              ; +0x80, 0x6c1f24\nMOV             X0, X24                                                ; +0x84, 0x6c1f28\nLDR             X1, [X1,#0x200]                                        ; +0x88, 0x6c1f2c\nBLR             X1                                                     ; +0x8c, 0x6c1f30\nMOV             X19, X0                                                ; +0x90, 0x6c1f34\nCBZ             X0, loc_6C1F98                                         ; +0x94, 0x6c1f38\nADRP            X23, #_ZTIN7cocos2d6CCNodeE_ptr@PAGE                   ; +0x98, 0x6c1f3c\nADRP            X22, #_ZTIN7cocos2d14CCTouchClipperE_ptr@PAGE          ; +0x9c, 0x6c1f40\nB               loc_6C1F60                                             ; +0xa0, 0x6c1f44\nLDR             X1, [X19]                                              ; +0xa4, 0x6c1f48\nMOV             X0, X19                                                ; +0xa8, 0x6c1f4c\nLDR             X1, [X1,#0x200]                                        ; +0xac, 0x6c1f50\nBLR             X1                                                     ; +0xb0, 0x6c1f54\nMOV             X19, X0                                                ; +0xb4, 0x6c1f58\nCBZ             X0, loc_6C1F98                                         ; +0xb8, 0x6c1f5c\nLDR             X1, [X23,#_ZTIN7cocos2d6CCNodeE_ptr@PAGEOFF]; lpstype  ; +0xbc, 0x6c1f60\nMOV             X0, X19; lpsrc                                         ; +0xc0, 0x6c1f64\nLDR             X2, [X22,#_ZTIN7cocos2d14CCTouchClipperE_ptr@PAGEOFF]; lpdtype ; +0xc4, 0x6c1f68\nMOV             X3, #0xFFFFFFFFFFFFFFFE; s2d                           ; +0xc8, 0x6c1f6c\nBL              __dynamic_cast                                         ; +0xcc, 0x6c1f70\nCBZ             X0, loc_6C1F48                                         ; +0xd0, 0x6c1f74\nLDR             X2, [X0]                                               ; +0xd4, 0x6c1f78\nMOV             X1, X21                                                ; +0xd8, 0x6c1f7c\nLDR             X2, [X2,#0x10]                                         ; +0xdc, 0x6c1f80\nBLR             X2                                                     ; +0xe0, 0x6c1f84\nUXTB            W0, W0                                                 ; +0xe4, 0x6c1f88\nCBNZ            W0, loc_6C1F48                                         ; +0xe8, 0x6c1f8c\nMOV             W19, #0                                                ; +0xec, 0x6c1f90\nB               loc_6C1EE0                                             ; +0xf0, 0x6c1f94\nADD             X22, X29, #0x80+var_18                                 ; +0xf4, 0x6c1f98\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0xf8, 0x6c1f9c\nMOV             X0, X22; this                                          ; +0xfc, 0x6c1fa0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x100, 0x6c1fa4\nMOV             X0, X24                                                ; +0x104, 0x6c1fa8\nMOV             X1, X22                                                ; +0x108, 0x6c1fac\nBL              _ZN15CCTextInputNode18containsTouchPointEN7cocos2d7CCPointE; CCTextInputNode::containsTouchPoint(cocos2d::CCPoint) ; +0x10c, 0x6c1fb0\nUXTB            W19, W0                                                ; +0x110, 0x6c1fb4\nCBNZ            W19, loc_6C1FE4                                        ; +0x114, 0x6c1fb8\nLDRB            W0, [X24,#0x1CC]                                       ; +0x118, 0x6c1fbc\nCBZ             W0, loc_6C1F90                                         ; +0x11c, 0x6c1fc0\nLDRB            W0, [X24,#0x272]                                       ; +0x120, 0x6c1fc4\nCBZ             W0, loc_6C1F90                                         ; +0x124, 0x6c1fc8\nLDR             X2, [X24]                                              ; +0x128, 0x6c1fcc\nMOV             X0, X24                                                ; +0x12c, 0x6c1fd0\nMOV             W1, #0                                                 ; +0x130, 0x6c1fd4\nLDR             X2, [X2,#0x488]                                        ; +0x134, 0x6c1fd8\nBLR             X2                                                     ; +0x138, 0x6c1fdc\nB               loc_6C1EE0                                             ; +0x13c, 0x6c1fe0\nLDR             X0, [X24,#0x280]; this                                 ; +0x140, 0x6c1fe4\nCBZ             X0, loc_6C2010                                         ; +0x144, 0x6c1fe8\nMOV             X1, X25; cocos2d::CCTouch *                            ; +0x148, 0x6c1fec\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0x14c, 0x6c1ff0\nMOV             X0, X22; this                                          ; +0x150, 0x6c1ff4\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x154, 0x6c1ff8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x158, 0x6c1ffc\nMOV             X0, X24                                                ; +0x15c, 0x6c2000\nMOV             X1, X22                                                ; +0x160, 0x6c2004\nBL              _ZN15CCTextInputNode7armHoldEN7cocos2d7CCPointE; CCTextInputNode::armHold(cocos2d::CCPoint) ; +0x164, 0x6c2008\nB               loc_6C1EE0                                             ; +0x168, 0x6c200c\nLDR             X0, [X24,#0x248]                                       ; +0x16c, 0x6c2010\nCBZ             X0, loc_6C2030                                         ; +0x170, 0x6c2014\nLDR             X2, [X0]                                               ; +0x174, 0x6c2018\nMOV             X1, X24                                                ; +0x178, 0x6c201c\nLDR             X2, [X2,#0x28]                                         ; +0x17c, 0x6c2020\nBLR             X2                                                     ; +0x180, 0x6c2024\nUXTB            W0, W0                                                 ; +0x184, 0x6c2028\nCBZ             W0, loc_6C1F90                                         ; +0x188, 0x6c202c\nLDR             X2, [X24]                                              ; +0x18c, 0x6c2030\nMOV             X0, X24                                                ; +0x190, 0x6c2034\nMOV             W1, #1                                                 ; +0x194, 0x6c2038\nADD             X23, X29, #0x80+var_20                                 ; +0x198, 0x6c203c\nLDR             X2, [X2,#0x488]                                        ; +0x19c, 0x6c2040\nBLR             X2                                                     ; +0x1a0, 0x6c2044\nMOV             X0, X23; this                                          ; +0x1a4, 0x6c2048\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x1a8, 0x6c204c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1ac, 0x6c2050\nADRP            X1, #unk_155C0E0@PAGE                                  ; +0x1b0, 0x6c2054\nMOV             X0, X22; this                                          ; +0x1b4, 0x6c2058\nADD             X1, X1, #unk_155C0E0@PAGEOFF                           ; +0x1b8, 0x6c205c\nADD             X1, X1, #8; cocos2d::CCRect *                          ; +0x1bc, 0x6c2060\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x1c0, 0x6c2064\nMOV             X0, X24                                                ; +0x1c4, 0x6c2068\nMOV             X1, X23                                                ; +0x1c8, 0x6c206c\nMOV             X2, X22                                                ; +0x1cc, 0x6c2070\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0x1d0, 0x6c2074\nB               loc_6C1FF4                                             ; +0x1d4, 0x6c2078\nBL              .__stack_chk_fail                                      ; +0x1d8, 0x6c207c", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x6c2084", "<???> @ 0xa5178", "<???> @ 0x141fe00"], "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"}