{"type": "func", "start": 12407604, "end": 12407852, "name": "EditorUI::finishTouchDelay", "pseudocode": "// \n// EditorUI::finishTouchDelay from 0xbd5334 to 0xbd542c (248 bytes)\n// \n// 4 xrefs:\n// > EditorUI::ccTouchEnded @ 0xbd60f4\n// > <???> @ 0x70810\n// > EditorUI::ccTouchBegan @ 0xbd575c\n// > <???> @ 0x1542cf8\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 13:03:39 +0000\n// \n\n__int64 __fastcall EditorUI::finishTouchDelay(EditorUI *this)\n{\n  int v2; // w2\n  _BYTE v4[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = *((_DWORD *)this + 176);\n  *((_BYTE *)this + 750) = 0;\n  if ( v2 != -1 && *(_DWORD *)(*((_QWORD *)this + 180) + 1972LL) != 1 )\n  {\n    if ( EditorUI::isFreeMoveTouch(this) )\n    {\n      EditorUI::startFreeMoveTouch(this);\n      if ( *((_BYTE *)this + 865) )\n        return _stack_chk_guard;\n    }\n    else if ( *((_BYTE *)this + 865) )\n    {\n      return _stack_chk_guard;\n    }\n    if ( !(unsigned __int8)cocos2d::CCPoint::equals((EditorUI *)((char *)this + 720), (EditorUI *)((char *)this + 1448)) )\n    {\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, (EditorUI *)((char *)this + 1448));\n      if ( (unsigned __int8)EditorUI::swipeToPosition((__int64)this, (const cocos2d::CCPoint *)v4) )\n      {\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, (EditorUI *)((char *)this + 720));\n        EditorUI::swipeToPosition((__int64)this, (const cocos2d::CCPoint *)v4);\n      }\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::finishTouchDelay from 0xbd5334 to 0xbd542c (248 bytes)\n; \n; 4 xrefs:\n; > EditorUI::ccTouchEnded @ 0xbd60f4\n; > <???> @ 0x70810\n; > EditorUI::ccTouchBegan @ 0xbd575c\n; > <???> @ 0x1542cf8\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 13:03:39 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xbd5334\nMOV             X29, SP                                                ; +0x4, 0xbd5338\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xbd533c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xbd5340\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x10, 0xbd5344\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0xbd5348\nMOV             X20, X0                                                ; +0x18, 0xbd534c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xbd5350\nLDR             W2, [X0,#0x2C0]                                        ; +0x20, 0xbd5354\nSTRB            WZR, [X0,#0x2EE]                                       ; +0x24, 0xbd5358\nLDR             X1, [X1]                                               ; +0x28, 0xbd535c\nCMN             W2, #1                                                 ; +0x2c, 0xbd5360\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x30, 0xbd5364\nB.EQ            loc_BD5390                                             ; +0x34, 0xbd5368\nLDR             X1, [X0,#0x5A0]                                        ; +0x38, 0xbd536c\nLDR             W1, [X1,#0x7B4]                                        ; +0x3c, 0xbd5370\nCMP             W1, #1                                                 ; +0x40, 0xbd5374\nB.EQ            loc_BD5390                                             ; +0x44, 0xbd5378\nBL              _ZN8EditorUI15isFreeMoveTouchEv; EditorUI::isFreeMoveTouch(void) ; +0x48, 0xbd537c\nUXTB            W0, W0                                                 ; +0x4c, 0xbd5380\nCBNZ            W0, loc_BD53B8                                         ; +0x50, 0xbd5384\nLDRB            W0, [X20,#0x361]                                       ; +0x54, 0xbd5388\nCBZ             W0, loc_BD53C8                                         ; +0x58, 0xbd538c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x5c, 0xbd5390\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x60, 0xbd5394\nLDR             X0, [X19]                                              ; +0x64, 0xbd5398\nCMP             X1, X0                                                 ; +0x68, 0xbd539c\nB.NE            loc_BD5424                                             ; +0x6c, 0xbd53a0\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x70, 0xbd53a4\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x74, 0xbd53a8\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x78, 0xbd53ac\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x7c, 0xbd53b0\nRET                                                                    ; +0x80, 0xbd53b4\nMOV             X0, X20; this                                          ; +0x84, 0xbd53b8\nBL              _ZN8EditorUI18startFreeMoveTouchEv; EditorUI::startFreeMoveTouch(void) ; +0x88, 0xbd53bc\nLDRB            W0, [X20,#0x361]                                       ; +0x8c, 0xbd53c0\nCBNZ            W0, loc_BD5390                                         ; +0x90, 0xbd53c4\nADD             X22, X20, #0x2D0                                       ; +0x94, 0xbd53c8\nADD             X23, X20, #0x5A8                                       ; +0x98, 0xbd53cc\nMOV             X0, X22; this                                          ; +0x9c, 0xbd53d0\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0xa0, 0xbd53d4\nBL              _ZNK7cocos2d7CCPoint6equalsERKS0_; cocos2d::CCPoint::equals(cocos2d::CCPoint const&) ; +0xa4, 0xbd53d8\nUXTB            W0, W0                                                 ; +0xa8, 0xbd53dc\nCBNZ            W0, loc_BD5390                                         ; +0xac, 0xbd53e0\nADD             X21, X29, #0x50+var_10                                 ; +0xb0, 0xbd53e4\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0xb4, 0xbd53e8\nMOV             X0, X21; this                                          ; +0xb8, 0xbd53ec\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xbc, 0xbd53f0\nMOV             X0, X20                                                ; +0xc0, 0xbd53f4\nMOV             X1, X21                                                ; +0xc4, 0xbd53f8\nBL              _ZN8EditorUI15swipeToPositionEN7cocos2d7CCPointE; EditorUI::swipeToPosition(cocos2d::CCPoint) ; +0xc8, 0xbd53fc\nUXTB            W0, W0                                                 ; +0xcc, 0xbd5400\nCBZ             W0, loc_BD5390                                         ; +0xd0, 0xbd5404\nMOV             X0, X21; this                                          ; +0xd4, 0xbd5408\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0xd8, 0xbd540c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xdc, 0xbd5410\nMOV             X0, X20                                                ; +0xe0, 0xbd5414\nMOV             X1, X21                                                ; +0xe4, 0xbd5418\nBL              _ZN8EditorUI15swipeToPositionEN7cocos2d7CCPointE; EditorUI::swipeToPosition(cocos2d::CCPoint) ; +0xe8, 0xbd541c\nB               loc_BD5390                                             ; +0xec, 0xbd5420\nBL              .__stack_chk_fail                                      ; +0xf0, 0xbd5424\nBL              _Unwind_Resume                                         ; +0xf4, 0xbd5428", "xrefs": ["EditorUI::ccTouchEnded @ 0xbd60f4", "<???> @ 0x70810", "EditorUI::ccTouchBegan @ 0xbd575c", "<???> @ 0x1542cf8"], "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"}