{"type": "func", "start": 7915368, "end": 7915574, "name": "EditorWindowPopup::ccTouchCancelled", "pseudocode": "// \n// EditorWindowPopup::ccTouchCancelled from 0x78c768 to 0x78c836 (206 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorWindowPopup::ccTouchCancelled @ 0x78c840\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:59:37 +0000\n// \n\nint __fastcall EditorWindowPopup::ccTouchCancelled(int a1, cocos2d::CCTouch *a2, int a3)\n{\n  int result; // r0\n  int v7; // r3\n  int v8; // r0\n  int v9; // r2\n  int v10; // r0\n  _BYTE v11[8]; // [sp+4h] [bp-18h] BYREF\n  float v12[2]; // [sp+Ch] [bp-10h] BYREF\n\n  result = *(_DWORD *)(a1 + 752);\n  if ( *((_DWORD *)a2 + 13) == result )\n  {\n    *(_DWORD *)(a1 + 752) = -1;\n    v7 = *(unsigned __int8 *)(a1 + 769);\n    if ( *(_BYTE *)(a1 + 769) )\n    {\n      v8 = *(_DWORD *)(a1 + 444);\n      *(_BYTE *)(a1 + 769) = 0;\n      return (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 460))(v8);\n    }\n    else\n    {\n      v9 = *(_DWORD *)(a1 + 772);\n      *(_BYTE *)(a1 + 756) = v7;\n      if ( v9 )\n      {\n        *(_DWORD *)(a1 + 772) = v7;\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)(a1 + 744));\n        EditorWindowPopup::clampWindowCenter((cocos2d::CCDirector *)v11, a1, v12);\n        EditorWindowPopup::moveWindowTo((EditorWindowPopup *)a1, (int)v11);\n      }\n      if ( *(_BYTE *)(a1 + 770) )\n      {\n        v10 = *(_DWORD *)(a1 + 720);\n        *(_BYTE *)(a1 + 770) = 0;\n        if ( v10 )\n          (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 456))(v10, 255);\n      }\n      result = *(_DWORD *)(a1 + 724);\n      if ( result )\n        result = ScrollableContentLayer::handleTouchCancelled(result, a2);\n      if ( *(_BYTE *)(a1 + 768) )\n      {\n        result = *(_DWORD *)(a1 + 728);\n        if ( result )\n        {\n          result = (*(int (__fastcall **)(int, cocos2d::CCTouch *, int))(*(_DWORD *)result + 460))(result, a2, a3);\n          *(_BYTE *)(a1 + 768) = 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::ccTouchCancelled from 0x78c768 to 0x78c836 (206 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorWindowPopup::ccTouchCancelled @ 0x78c840\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:59:37 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x78C772)                ; +0x0, 0x78c768\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x78c76a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x78c76e\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x78c770\nMOV             R4, R0                                                 ; +0xa, 0x78c772\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x78c774\nLDR             R0, [R3]                                               ; +0xe, 0x78c776\nMOV             R6, R1                                                 ; +0x10, 0x78c778\nLDR             R5, [R1,#0x34]                                         ; +0x12, 0x78c77a\nMOV             R7, R2                                                 ; +0x14, 0x78c77c\nSTR             R0, [SP,#0x1C+var_8]                                   ; +0x16, 0x78c77e\nLDR.W           R0, [R4,#0x2F0]                                        ; +0x18, 0x78c780\nCMP             R5, R0                                                 ; +0x1c, 0x78c784\nMOV             R5, R3                                                 ; +0x1e, 0x78c786\nBNE             loc_78C824                                             ; +0x20, 0x78c788\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x22, 0x78c78a\nSTR.W           R3, [R4,#0x2F0]                                        ; +0x26, 0x78c78e\nLDRB.W          R3, [R4,#0x301]                                        ; +0x2a, 0x78c792\nCBZ             R3, loc_78C7AC                                         ; +0x2e, 0x78c796\nLDR.W           R0, [R4,#0x1BC]                                        ; +0x30, 0x78c798\nMOVS            R3, #0                                                 ; +0x34, 0x78c79c\nSTRB.W          R3, [R4,#0x301]                                        ; +0x36, 0x78c79e\nLDR             R3, [R0]                                               ; +0x3a, 0x78c7a2\nLDR.W           R3, [R3,#0x1CC]                                        ; +0x3c, 0x78c7a4\nBLX             R3                                                     ; +0x40, 0x78c7a8\nB               loc_78C824                                             ; +0x42, 0x78c7aa\nLDR.W           R2, [R4,#0x304]                                        ; +0x44, 0x78c7ac\nSTRB.W          R3, [R4,#0x2F4]                                        ; +0x48, 0x78c7b0\nCBZ             R2, loc_78C7DE                                         ; +0x4c, 0x78c7b4\nADD.W           R9, SP, #0x1C+var_10                                   ; +0x4e, 0x78c7b6\nADD.W           R8, SP, #0x1C+var_18                                   ; +0x52, 0x78c7ba\nSTR.W           R3, [R4,#0x304]                                        ; +0x56, 0x78c7be\nADD.W           R1, R4, #0x2E8; cocos2d::CCPoint *                     ; +0x5a, 0x78c7c2\nMOV             R0, R9; this                                           ; +0x5e, 0x78c7c6\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x60, 0x78c7c8\nMOV             R0, R8                                                 ; +0x64, 0x78c7cc\nMOV             R1, R4                                                 ; +0x66, 0x78c7ce\nMOV             R2, R9                                                 ; +0x68, 0x78c7d0\nBL              _ZNK17EditorWindowPopup17clampWindowCenterEN7cocos2d7CCPointE; EditorWindowPopup::clampWindowCenter(cocos2d::CCPoint) ; +0x6a, 0x78c7d2\nMOV             R0, R4                                                 ; +0x6e, 0x78c7d6\nMOV             R1, R8                                                 ; +0x70, 0x78c7d8\nBL              _ZN17EditorWindowPopup12moveWindowToEN7cocos2d7CCPointE; EditorWindowPopup::moveWindowTo(cocos2d::CCPoint) ; +0x72, 0x78c7da\nLDRB.W          R3, [R4,#0x302]                                        ; +0x76, 0x78c7de\nCBZ             R3, loc_78C7FA                                         ; +0x7a, 0x78c7e2\nLDR.W           R0, [R4,#0x2D0]                                        ; +0x7c, 0x78c7e4\nMOVS            R3, #0                                                 ; +0x80, 0x78c7e8\nSTRB.W          R3, [R4,#0x302]                                        ; +0x82, 0x78c7ea\nCBZ             R0, loc_78C7FA                                         ; +0x86, 0x78c7ee\nLDR             R3, [R0]                                               ; +0x88, 0x78c7f0\nMOVS            R1, #0xFF                                              ; +0x8a, 0x78c7f2\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x8c, 0x78c7f4\nBLX             R3                                                     ; +0x90, 0x78c7f8\nLDR.W           R0, [R4,#0x2D4]; this                                  ; +0x92, 0x78c7fa\nCBZ             R0, loc_78C806                                         ; +0x96, 0x78c7fe\nMOV             R1, R6; cocos2d::CCTouch *                             ; +0x98, 0x78c800\nBL              _ZN22ScrollableContentLayer20handleTouchCancelledEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchCancelled(cocos2d::CCTouch *) ; +0x9a, 0x78c802\nLDRB.W          R3, [R4,#0x300]                                        ; +0x9e, 0x78c806\nCBZ             R3, loc_78C824                                         ; +0xa2, 0x78c80a\nLDR.W           R0, [R4,#0x2D8]                                        ; +0xa4, 0x78c80c\nCBZ             R0, loc_78C824                                         ; +0xa8, 0x78c810\nLDR             R3, [R0]                                               ; +0xaa, 0x78c812\nMOV             R1, R6                                                 ; +0xac, 0x78c814\nMOV             R2, R7                                                 ; +0xae, 0x78c816\nLDR.W           R3, [R3,#0x1CC]                                        ; +0xb0, 0x78c818\nBLX             R3                                                     ; +0xb4, 0x78c81c\nMOVS            R3, #0                                                 ; +0xb6, 0x78c81e\nSTRB.W          R3, [R4,#0x300]                                        ; +0xb8, 0x78c820\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xbc, 0x78c824\nLDR             R3, [R5]                                               ; +0xbe, 0x78c826\nCMP             R2, R3                                                 ; +0xc0, 0x78c828\nBEQ             loc_78C830                                             ; +0xc2, 0x78c82a\nBLX             __stack_chk_fail                                       ; +0xc4, 0x78c82c\nADD             SP, SP, #0x1C                                          ; +0xc8, 0x78c830\nPOP.W           {R4-R9,PC}                                             ; +0xca, 0x78c832", "xrefs": ["`non-virtual thunk to'EditorWindowPopup::ccTouchCancelled @ 0x78c840"], "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"}