{"type": "func", "start": 7047552, "end": 7047772, "name": "CCTextInputNode::ccTouchMoved", "pseudocode": "// \n// CCTextInputNode::ccTouchMoved from 0x6b8980 to 0x6b8a5c (220 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchMoved @ 0x6b8a60\n// > <???> @ 0xc8470\n// > <???> @ 0x141fe08\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:50:53 +0000\n// \n\n__int64 __fastcall CCTextInputNode::ccTouchMoved(__int64 a1, cocos2d::CCTouch *a2)\n{\n  ScrollableContentLayer *v4; // x0\n  const cocos2d::CCPoint *v6; // x2\n  GameToolbox *v7; // x0\n  float v8; // s0\n  __int64 v9; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( *(_BYTE *)(a1 + 696) )\n  {\n    cocos2d::CCTouch::getLocation(&v9, a2);\n    v7 = (GameToolbox *)cocos2d::ccpDistance((cocos2d *)&v9, (const cocos2d::CCPoint *)(a1 + 688), v6);\n    if ( v8 > GameToolbox::touchUnitsForMM(v7, 2.0) )\n      CCTextInputNode::disarmHold(a1);\n  }\n  v4 = *(ScrollableContentLayer **)(a1 + 640);\n  if ( v4 )\n  {\n    ScrollableContentLayer::handleTouchMoved(v4, a2);\n    if ( *(_BYTE *)(*(_QWORD *)(a1 + 640) + 480LL) )\n    {\n      cocos2d::CCNode::unschedule(a1, CCTextInputNode::showHoldMenu, 0);\n      CCTextInputNode::closeEditMenu(a1);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCTextInputNode::ccTouchMoved from 0x6b8980 to 0x6b8a5c (220 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchMoved @ 0x6b8a60\n; > <???> @ 0xc8470\n; > <???> @ 0x141fe08\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:50:53 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6b8980\nMOV             X29, SP                                                ; +0x4, 0x6b8984\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6b8988\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6b898c\nMOV             X20, X0                                                ; +0x10, 0x6b8990\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x6b8994\nMOV             X21, X1                                                ; +0x18, 0x6b8998\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6b899c\nSTR             D8, [SP,#0x50+var_20]                                  ; +0x20, 0x6b89a0\nLDRB            W0, [X0,#0x2B8]                                        ; +0x24, 0x6b89a4\nLDR             X1, [X1]                                               ; +0x28, 0x6b89a8\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x2c, 0x6b89ac\nCBNZ            W0, loc_6B8A18                                         ; +0x30, 0x6b89b0\nLDR             X0, [X20,#0x280]; this                                 ; +0x34, 0x6b89b4\nCBZ             X0, loc_6B89D0                                         ; +0x38, 0x6b89b8\nMOV             X1, X21; cocos2d::CCTouch *                            ; +0x3c, 0x6b89bc\nBL              _ZN22ScrollableContentLayer16handleTouchMovedEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchMoved(cocos2d::CCTouch *) ; +0x40, 0x6b89c0\nLDR             X0, [X20,#0x280]                                       ; +0x44, 0x6b89c4\nLDRB            W0, [X0,#0x1E0]                                        ; +0x48, 0x6b89c8\nCBNZ            W0, loc_6B89F8                                         ; +0x4c, 0x6b89cc\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x50, 0x6b89d0\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x54, 0x6b89d4\nLDR             X0, [X19]                                              ; +0x58, 0x6b89d8\nCMP             X1, X0                                                 ; +0x5c, 0x6b89dc\nB.NE            loc_6B8A54                                             ; +0x60, 0x6b89e0\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x64, 0x6b89e4\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x68, 0x6b89e8\nLDR             D8, [SP,#0x50+var_20]                                  ; +0x6c, 0x6b89ec\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x70, 0x6b89f0\nRET                                                                    ; +0x74, 0x6b89f4\nADRP            X1, #_ZN15CCTextInputNode12showHoldMenuEf_ptr@PAGE     ; +0x78, 0x6b89f8\nMOV             X0, X20                                                ; +0x7c, 0x6b89fc\nMOV             X2, #0                                                 ; +0x80, 0x6b8a00\nLDR             X1, [X1,#_ZN15CCTextInputNode12showHoldMenuEf_ptr@PAGEOFF]; CCTextInputNode::showHoldMenu(float) ... ; +0x84, 0x6b8a04\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x88, 0x6b8a08\nMOV             X0, X20; this                                          ; +0x8c, 0x6b8a0c\nBL              _ZN15CCTextInputNode13closeEditMenuEv; CCTextInputNode::closeEditMenu(void) ; +0x90, 0x6b8a10\nB               loc_6B89D0                                             ; +0x94, 0x6b8a14\nADD             X22, X29, #0x50+var_10                                 ; +0x98, 0x6b8a18\nMOV             X0, X21; this                                          ; +0x9c, 0x6b8a1c\nMOV             X8, X22                                                ; +0xa0, 0x6b8a20\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0xa4, 0x6b8a24\nMOV             X0, X22; this                                          ; +0xa8, 0x6b8a28\nADD             X1, X20, #0x2B0; cocos2d::CCPoint *                    ; +0xac, 0x6b8a2c\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0xb0, 0x6b8a30\nFMOV            S8, S0                                                 ; +0xb4, 0x6b8a34\nFMOV            S0, #2.0; float                                        ; +0xb8, 0x6b8a38\nBL              _ZN11GameToolbox15touchUnitsForMMEf; GameToolbox::touchUnitsForMM(float) ; +0xbc, 0x6b8a3c\nFCMPE           S8, S0                                                 ; +0xc0, 0x6b8a40\nB.LE            loc_6B89B4                                             ; +0xc4, 0x6b8a44\nMOV             X0, X20; this                                          ; +0xc8, 0x6b8a48\nBL              _ZN15CCTextInputNode10disarmHoldEv; CCTextInputNode::disarmHold(void) ; +0xcc, 0x6b8a4c\nB               loc_6B89B4                                             ; +0xd0, 0x6b8a50\nBL              .__stack_chk_fail                                      ; +0xd4, 0x6b8a54\nBL              _Unwind_Resume                                         ; +0xd8, 0x6b8a58", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchMoved @ 0x6b8a60", "<???> @ 0xc8470", "<???> @ 0x141fe08"], "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"}