{"type": "func", "start": 4300056736, "end": 4300057032, "name": "EditorWindowPopup::ccTouchCancelled", "pseudocode": "// \n// EditorWindowPopup::ccTouchCancelled from 0x1004da8a0 to 0x1004da9c8 (296 bytes)\n// \n// 7 xrefs:\n// > sub_1004DA9C8 @ 0x1004da9cc\n// > <???> @ 0x1009860b0\n// > <???> @ 0x10098b9a8\n// > <???> @ 0x10098c1f0\n// > <???> @ 0x100990cc8\n// > <???> @ 0x1009920f8\n// > <???> @ 0x1009a7650\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 11:06:33 +0000\n// \n\n__int64 __fastcall EditorWindowPopup::ccTouchCancelled(__int64 result, __int64 a2, __int64 a3)\n{\n  __int64 v5; // x20\n  __int64 v6; // x0\n  __int64 v7; // [xsp+0h] [xbp-30h] BYREF\n  __int64 v8; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( *(_DWORD *)(a2 + 56) == *(_DWORD *)(result + 1076) )\n  {\n    v5 = result;\n    *(_DWORD *)(result + 1076) = -1;\n    if ( *(_BYTE *)(result + 1093) == 1 )\n    {\n      *(_BYTE *)(result + 1093) = 0;\n      return (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(result + 552) + 920LL))(\n               *(_QWORD *)(result + 552),\n               a2,\n               a3);\n    }\n    else\n    {\n      *(_BYTE *)(result + 1080) = 0;\n      if ( *(_DWORD *)(result + 1096) )\n      {\n        *(_DWORD *)(result + 1096) = 0;\n        sub_1000262F4(&v7, (double *)(result + 1068));\n        EditorWindowPopup::clampWindowCenter(v5, (__int64)&v7, &v8);\n        sub_10002630C((_QWORD *)(v5 + 1068), (double *)&v8);\n        EditorWindowPopup::layoutWindow(v5);\n      }\n      if ( *(_BYTE *)(v5 + 1094) == 1 )\n      {\n        *(_BYTE *)(v5 + 1094) = 0;\n        v6 = *(_QWORD *)(v5 + 1032);\n        if ( v6 )\n          (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL))(v6, 255);\n      }\n      result = *(_QWORD *)(v5 + 1040);\n      if ( result )\n        result = sub_100525990(result, a2);\n      if ( *(_BYTE *)(v5 + 1092) == 1 )\n      {\n        result = *(_QWORD *)(v5 + 1048);\n        if ( result )\n        {\n          result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)result + 920LL))(result, a2, a3);\n          *(_BYTE *)(v5 + 1092) = 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::ccTouchCancelled from 0x1004da8a0 to 0x1004da9c8 (296 bytes)\n; \n; 7 xrefs:\n; > sub_1004DA9C8 @ 0x1004da9cc\n; > <???> @ 0x1009860b0\n; > <???> @ 0x10098b9a8\n; > <???> @ 0x10098c1f0\n; > <???> @ 0x100990cc8\n; > <???> @ 0x1009920f8\n; > <???> @ 0x1009a7650\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 11:06:33 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1004da8a0\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1004da8a4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1004da8a8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1004da8ac\nADD             X29, SP, #0x30                                         ; +0x10, 0x1004da8b0\nLDR             W8, [X1,#0x38]                                         ; +0x14, 0x1004da8b4\nLDR             W9, [X0,#0x434]                                        ; +0x18, 0x1004da8b8\nCMP             W8, W9                                                 ; +0x1c, 0x1004da8bc\nB.NE            loc_1004DA9B4                                          ; +0x20, 0x1004da8c0\nMOV             X19, X2                                                ; +0x24, 0x1004da8c4\nMOV             X21, X1                                                ; +0x28, 0x1004da8c8\nMOV             X20, X0                                                ; +0x2c, 0x1004da8cc\nMOV             W8, #0xFFFFFFFF                                        ; +0x30, 0x1004da8d0\nSTR             W8, [X0,#0x434]                                        ; +0x34, 0x1004da8d4\nLDRB            W8, [X0,#0x445]                                        ; +0x38, 0x1004da8d8\nCMP             W8, #1                                                 ; +0x3c, 0x1004da8dc\nB.NE            loc_1004DA910                                          ; +0x40, 0x1004da8e0\nSTRB            WZR, [X20,#0x445]                                      ; +0x44, 0x1004da8e4\nLDR             X0, [X20,#0x228]                                       ; +0x48, 0x1004da8e8\nLDR             X8, [X0]                                               ; +0x4c, 0x1004da8ec\nLDR             X3, [X8,#0x398]                                        ; +0x50, 0x1004da8f0\nMOV             X1, X21                                                ; +0x54, 0x1004da8f4\nMOV             X2, X19                                                ; +0x58, 0x1004da8f8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x1004da8fc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x1004da900\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x64, 0x1004da904\nADD             SP, SP, #0x40 ; '@'                                    ; +0x68, 0x1004da908\nBR              X3                                                     ; +0x6c, 0x1004da90c\nSTRB            WZR, [X20,#0x438]                                      ; +0x70, 0x1004da910\nLDR             W8, [X20,#0x448]                                       ; +0x74, 0x1004da914\nCBZ             W8, loc_1004DA950                                      ; +0x78, 0x1004da918\nSTR             WZR, [X20,#0x448]                                      ; +0x7c, 0x1004da91c\nMOV             X0, SP                                                 ; +0x80, 0x1004da920\nADD             X1, X20, #0x42C                                        ; +0x84, 0x1004da924\nBL              sub_1000262F4                                          ; +0x88, 0x1004da928\nADD             X8, SP, #0x30+var_28                                   ; +0x8c, 0x1004da92c\nMOV             X1, SP                                                 ; +0x90, 0x1004da930\nMOV             X0, X20                                                ; +0x94, 0x1004da934\nBL              EditorWindowPopup__clampWindowCenter                   ; +0x98, 0x1004da938\nADD             X0, X20, #0x42C                                        ; +0x9c, 0x1004da93c\nADD             X1, SP, #0x30+var_28                                   ; +0xa0, 0x1004da940\nBL              sub_10002630C                                          ; +0xa4, 0x1004da944\nMOV             X0, X20                                                ; +0xa8, 0x1004da948\nBL              EditorWindowPopup__layoutWindow                        ; +0xac, 0x1004da94c\nLDRB            W8, [X20,#0x446]                                       ; +0xb0, 0x1004da950\nCMP             W8, #1                                                 ; +0xb4, 0x1004da954\nB.NE            loc_1004DA978                                          ; +0xb8, 0x1004da958\nSTRB            WZR, [X20,#0x446]                                      ; +0xbc, 0x1004da95c\nLDR             X0, [X20,#0x408]                                       ; +0xc0, 0x1004da960\nCBZ             X0, loc_1004DA978                                      ; +0xc4, 0x1004da964\nLDR             X8, [X0]                                               ; +0xc8, 0x1004da968\nLDR             X8, [X8,#0x390]                                        ; +0xcc, 0x1004da96c\nMOV             W1, #0xFF                                              ; +0xd0, 0x1004da970\nBLR             X8                                                     ; +0xd4, 0x1004da974\nLDR             X0, [X20,#0x410]                                       ; +0xd8, 0x1004da978\nCBZ             X0, loc_1004DA988                                      ; +0xdc, 0x1004da97c\nMOV             X1, X21                                                ; +0xe0, 0x1004da980\nBL              sub_100525990                                          ; +0xe4, 0x1004da984\nLDRB            W8, [X20,#0x444]                                       ; +0xe8, 0x1004da988\nCMP             W8, #1                                                 ; +0xec, 0x1004da98c\nB.NE            loc_1004DA9B4                                          ; +0xf0, 0x1004da990\nLDR             X0, [X20,#0x418]                                       ; +0xf4, 0x1004da994\nCBZ             X0, loc_1004DA9B4                                      ; +0xf8, 0x1004da998\nLDR             X8, [X0]                                               ; +0xfc, 0x1004da99c\nLDR             X8, [X8,#0x398]                                        ; +0x100, 0x1004da9a0\nMOV             X1, X21                                                ; +0x104, 0x1004da9a4\nMOV             X2, X19                                                ; +0x108, 0x1004da9a8\nBLR             X8                                                     ; +0x10c, 0x1004da9ac\nSTRB            WZR, [X20,#0x444]                                      ; +0x110, 0x1004da9b0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x114, 0x1004da9b4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x118, 0x1004da9b8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x11c, 0x1004da9bc\nADD             SP, SP, #0x40 ; '@'                                    ; +0x120, 0x1004da9c0\nRET                                                                    ; +0x124, 0x1004da9c4", "xrefs": ["sub_1004DA9C8 @ 0x1004da9cc", "<???> @ 0x1009860b0", "<???> @ 0x10098b9a8", "<???> @ 0x10098c1f0", "<???> @ 0x100990cc8", "<???> @ 0x1009920f8", "<???> @ 0x1009a7650"], "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"}