{"type": "func", "start": 4050020, "end": 4050178, "name": "CCTextInputNode::ccTouchMoved", "pseudocode": "// \n// CCTextInputNode::ccTouchMoved from 0x3dcc64 to 0x3dcd02 (158 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchMoved @ 0x3dcd10\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:46:48 +0000\n// \n\nScrollableContentLayer *__fastcall CCTextInputNode::ccTouchMoved(int a1, cocos2d::CCTouch *a2)\n{\n  const cocos2d::CCPoint *v4; // r2\n  float v5; // s16\n  float v6; // r1\n  ScrollableContentLayer *result; // r0\n  _DWORD v8[2]; // [sp+4h] [bp-10h] BYREF\n\n  if ( *(_BYTE *)(a1 + 500) )\n  {\n    cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v8);\n    v5 = COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v8, (const cocos2d::CCPoint *)(a1 + 492), v4));\n    if ( v5 > COERCE_FLOAT(GameToolbox::touchUnitsForMM((GameToolbox *)0x40000000, v6)) )\n      CCTextInputNode::disarmHold(a1);\n  }\n  result = *(ScrollableContentLayer **)(a1 + 452);\n  if ( result )\n  {\n    result = (ScrollableContentLayer *)ScrollableContentLayer::handleTouchMoved(result, a2);\n    if ( *(_BYTE *)(*(_DWORD *)(a1 + 452) + 376) )\n    {\n      v8[0] = CCTextInputNode::showHoldMenu;\n      v8[1] = 0;\n      cocos2d::CCNode::unschedule(a1, CCTextInputNode::showHoldMenu, 0);\n      return (ScrollableContentLayer *)CCTextInputNode::closeEditMenu(a1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::ccTouchMoved from 0x3dcc64 to 0x3dcd02 (158 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchMoved @ 0x3dcd10\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:46:48 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3dcc64\nMOV             R4, R0                                                 ; +0x2, 0x3dcc66\nVPUSH           {D8}                                                   ; +0x4, 0x3dcc68\nMOV             R7, R1                                                 ; +0x8, 0x3dcc6c\nLDR             R3, =(__stack_chk_guard_ptr - 0x3DCC74)                ; +0xa, 0x3dcc6e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3dcc70\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x3dcc72\nSUB             SP, SP, #0x14                                          ; +0x10, 0x3dcc74\nLDR             R2, [R3]                                               ; +0x12, 0x3dcc76\nMOV             R5, R3                                                 ; +0x14, 0x3dcc78\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x16, 0x3dcc7a\nLDRB.W          R2, [R0,#0x1F4]                                        ; +0x18, 0x3dcc7c\nCBZ             R2, loc_3DCCB4                                         ; +0x1c, 0x3dcc80\nADD             R6, SP, #0x14+var_10                                   ; +0x1e, 0x3dcc82\nMOV             R0, R6; this                                           ; +0x20, 0x3dcc84\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x22, 0x3dcc86\nMOV             R0, R6; this                                           ; +0x26, 0x3dcc8a\nADD.W           R1, R4, #0x1EC; cocos2d::CCPoint *                     ; +0x28, 0x3dcc8c\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x2c, 0x3dcc90\nVMOV            S16, R0                                                ; +0x30, 0x3dcc94\nMOV.W           R0, #0x40000000; this                                  ; +0x34, 0x3dcc98\nBL              _ZN11GameToolbox15touchUnitsForMMEf; GameToolbox::touchUnitsForMM(float) ; +0x38, 0x3dcc9c\nVMOV            S15, R0                                                ; +0x3c, 0x3dcca0\nVCMPE.F32       S16, S15                                               ; +0x40, 0x3dcca4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x44, 0x3dcca8\nBLE             loc_3DCCB4                                             ; +0x48, 0x3dccac\nMOV             R0, R4; this                                           ; +0x4a, 0x3dccae\nBL              _ZN15CCTextInputNode10disarmHoldEv; CCTextInputNode::disarmHold(void) ; +0x4c, 0x3dccb0\nLDR.W           R0, [R4,#0x1C4]; this                                  ; +0x50, 0x3dccb4\nCBZ             R0, loc_3DCCEE                                         ; +0x54, 0x3dccb8\nMOV             R1, R7; cocos2d::CCTouch *                             ; +0x56, 0x3dccba\nBL              _ZN22ScrollableContentLayer16handleTouchMovedEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchMoved(cocos2d::CCTouch *) ; +0x58, 0x3dccbc\nLDR.W           R3, [R4,#0x1C4]                                        ; +0x5c, 0x3dccc0\nLDRB.W          R3, [R3,#0x178]                                        ; +0x60, 0x3dccc4\nCBZ             R3, loc_3DCCEE                                         ; +0x64, 0x3dccc8\nLDR             R3, =(_ZN15CCTextInputNode12showHoldMenuEf_ptr - 0x3DCCD2) ; +0x66, 0x3dccca\nMOV             R0, R4                                                 ; +0x68, 0x3dcccc\nADD             R3, PC; _ZN15CCTextInputNode12showHoldMenuEf_ptr       ; +0x6a, 0x3dccce\nLDR             R3, [R3]; CCTextInputNode::showHoldMenu(float)         ; +0x6c, 0x3dccd0\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x6e, 0x3dccd2\nMOVS            R3, #0                                                 ; +0x70, 0x3dccd4\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x72, 0x3dccd6\nADD             R3, SP, #0x14+var_10                                   ; +0x74, 0x3dccd8\nLDM.W           R3, {R1,R2}                                            ; +0x76, 0x3dccda\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x7a, 0x3dccde\nMOV             R0, R4; this                                           ; +0x7e, 0x3dcce2\nBL              _ZN15CCTextInputNode13closeEditMenuEv; CCTextInputNode::closeEditMenu(void) ; +0x80, 0x3dcce4\nB               loc_3DCCEE                                             ; +0x84, 0x3dcce8\nBL              __cxa_end_cleanup                                      ; +0x86, 0x3dccea\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x8a, 0x3dccee\nLDR             R3, [R5]                                               ; +0x8c, 0x3dccf0\nCMP             R2, R3                                                 ; +0x8e, 0x3dccf2\nBEQ             loc_3DCCFA                                             ; +0x90, 0x3dccf4\nBLX             __stack_chk_fail                                       ; +0x92, 0x3dccf6\nADD             SP, SP, #0x14                                          ; +0x96, 0x3dccfa\nVPOP            {D8}                                                   ; +0x98, 0x3dccfc\nPOP             {R4-R7,PC}                                             ; +0x9c, 0x3dcd00", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchMoved @ 0x3dcd10"], "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"}