{"type": "func", "start": 4300056332, "end": 4300056728, "name": "EditorWindowPopup::ccTouchEnded", "pseudocode": "// \n// EditorWindowPopup::ccTouchEnded from 0x1004da70c to 0x1004da898 (396 bytes)\n// \n// 7 xrefs:\n// > sub_1004DA898 @ 0x1004da89c\n// > <???> @ 0x1009860a8\n// > <???> @ 0x10098b9a0\n// > <???> @ 0x10098c1e8\n// > <???> @ 0x100990cc0\n// > <???> @ 0x1009920f0\n// > <???> @ 0x1009a7648\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::ccTouchEnded(__int64 result, float32x2_t *a2, __int64 a3)\n{\n  __int64 v4; // x19\n  __int64 v5; // x0\n  int v6; // w22\n  __int64 v7; // x8\n  __int64 v8; // [xsp+0h] [xbp-30h] BYREF\n  __int64 v9; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( a2[7].i32[0] == *(_DWORD *)(result + 1076) )\n  {\n    v4 = result;\n    *(_DWORD *)(result + 1076) = -1;\n    if ( *(_BYTE *)(result + 1093) == 1 )\n    {\n      *(_BYTE *)(result + 1093) = 0;\n      return (*(__int64 (__fastcall **)(_QWORD, float32x2_t *, __int64))(**(_QWORD **)(result + 552) + 912LL))(\n               *(_QWORD *)(result + 552),\n               a2,\n               a3);\n    }\n    else if ( *(_BYTE *)(result + 1094) == 1 )\n    {\n      *(_BYTE *)(result + 1094) = 0;\n      v5 = *(_QWORD *)(result + 1032);\n      if ( v5 )\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 912LL))(v5, 255);\n      cocos2d::CCTouch::getLocation(a2, (float *)&v9);\n      result = EditorWindowPopup::isInCloseButton(v4, (float *)&v9);\n      if ( (_DWORD)result )\n        return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1368LL))(v4, 0);\n    }\n    else if ( *(_DWORD *)(result + 1096) )\n    {\n      *(_DWORD *)(result + 1096) = 0;\n      sub_1000262F4(&v8, (double *)(result + 1068));\n      EditorWindowPopup::clampWindowCenter(v4, (__int64)&v8, &v9);\n      sub_10002630C((_QWORD *)(v4 + 1068), (double *)&v9);\n      return EditorWindowPopup::layoutWindow(v4);\n    }\n    else if ( *(_BYTE *)(result + 1080) == 1 )\n    {\n      *(_BYTE *)(result + 1080) = 0;\n    }\n    else\n    {\n      result = *(_QWORD *)(result + 1040);\n      if ( result )\n      {\n        v6 = *(unsigned __int8 *)(result + 480);\n        result = sub_100525820(result, a2);\n        v7 = 912;\n        if ( v6 )\n          v7 = 920;\n      }\n      else\n      {\n        v7 = 912;\n      }\n      if ( *(_BYTE *)(v4 + 1092) == 1 )\n      {\n        result = *(_QWORD *)(v4 + 1048);\n        if ( result )\n        {\n          result = (*(__int64 (**)(void))(*(_QWORD *)result + v7))();\n          *(_BYTE *)(v4 + 1092) = 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::ccTouchEnded from 0x1004da70c to 0x1004da898 (396 bytes)\n; \n; 7 xrefs:\n; > sub_1004DA898 @ 0x1004da89c\n; > <???> @ 0x1009860a8\n; > <???> @ 0x10098b9a0\n; > <???> @ 0x10098c1e8\n; > <???> @ 0x100990cc0\n; > <???> @ 0x1009920f0\n; > <???> @ 0x1009a7648\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, 0x1004da70c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1004da710\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1004da714\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1004da718\nADD             X29, SP, #0x30                                         ; +0x10, 0x1004da71c\nLDR             W8, [X1,#0x38]                                         ; +0x14, 0x1004da720\nLDR             W9, [X0,#0x434]                                        ; +0x18, 0x1004da724\nCMP             W8, W9                                                 ; +0x1c, 0x1004da728\nB.NE            loc_1004DA884                                          ; +0x20, 0x1004da72c\nMOV             X21, X2                                                ; +0x24, 0x1004da730\nMOV             X20, X1                                                ; +0x28, 0x1004da734\nMOV             X19, X0                                                ; +0x2c, 0x1004da738\nMOV             W8, #0xFFFFFFFF                                        ; +0x30, 0x1004da73c\nSTR             W8, [X0,#0x434]                                        ; +0x34, 0x1004da740\nLDRB            W8, [X0,#0x445]                                        ; +0x38, 0x1004da744\nCMP             W8, #1                                                 ; +0x3c, 0x1004da748\nB.NE            loc_1004DA77C                                          ; +0x40, 0x1004da74c\nSTRB            WZR, [X19,#0x445]                                      ; +0x44, 0x1004da750\nLDR             X0, [X19,#0x228]                                       ; +0x48, 0x1004da754\nLDR             X8, [X0]                                               ; +0x4c, 0x1004da758\nLDR             X3, [X8,#0x390]                                        ; +0x50, 0x1004da75c\nMOV             X1, X20                                                ; +0x54, 0x1004da760\nMOV             X2, X21                                                ; +0x58, 0x1004da764\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x1004da768\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x1004da76c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x64, 0x1004da770\nADD             SP, SP, #0x40 ; '@'                                    ; +0x68, 0x1004da774\nBR              X3                                                     ; +0x6c, 0x1004da778\nLDRB            W8, [X19,#0x446]                                       ; +0x70, 0x1004da77c\nCMP             W8, #1                                                 ; +0x74, 0x1004da780\nB.NE            loc_1004DA7D8                                          ; +0x78, 0x1004da784\nSTRB            WZR, [X19,#0x446]                                      ; +0x7c, 0x1004da788\nLDR             X0, [X19,#0x408]                                       ; +0x80, 0x1004da78c\nCBZ             X0, loc_1004DA7A4                                      ; +0x84, 0x1004da790\nLDR             X8, [X0]                                               ; +0x88, 0x1004da794\nLDR             X8, [X8,#0x390]                                        ; +0x8c, 0x1004da798\nMOV             W1, #0xFF                                              ; +0x90, 0x1004da79c\nBLR             X8                                                     ; +0x94, 0x1004da7a0\nADD             X8, SP, #0x30+var_28                                   ; +0x98, 0x1004da7a4\nMOV             X0, X20                                                ; +0x9c, 0x1004da7a8\nBL              cocos2d__CCTouch__getLocation                          ; +0xa0, 0x1004da7ac\nADD             X1, SP, #0x30+var_28                                   ; +0xa4, 0x1004da7b0\nMOV             X0, X19                                                ; +0xa8, 0x1004da7b4\nBL              EditorWindowPopup__isInCloseButton                     ; +0xac, 0x1004da7b8\nCBZ             W0, loc_1004DA884                                      ; +0xb0, 0x1004da7bc\nLDR             X8, [X19]                                              ; +0xb4, 0x1004da7c0\nLDR             X8, [X8,#0x558]                                        ; +0xb8, 0x1004da7c4\nMOV             X0, X19                                                ; +0xbc, 0x1004da7c8\nMOV             X1, #0                                                 ; +0xc0, 0x1004da7cc\nBLR             X8                                                     ; +0xc4, 0x1004da7d0\nB               loc_1004DA884                                          ; +0xc8, 0x1004da7d4\nLDR             W8, [X19,#0x448]                                       ; +0xcc, 0x1004da7d8\nCBZ             W8, loc_1004DA818                                      ; +0xd0, 0x1004da7dc\nSTR             WZR, [X19,#0x448]                                      ; +0xd4, 0x1004da7e0\nMOV             X0, SP                                                 ; +0xd8, 0x1004da7e4\nADD             X1, X19, #0x42C                                        ; +0xdc, 0x1004da7e8\nBL              sub_1000262F4                                          ; +0xe0, 0x1004da7ec\nADD             X8, SP, #0x30+var_28                                   ; +0xe4, 0x1004da7f0\nMOV             X1, SP                                                 ; +0xe8, 0x1004da7f4\nMOV             X0, X19                                                ; +0xec, 0x1004da7f8\nBL              EditorWindowPopup__clampWindowCenter                   ; +0xf0, 0x1004da7fc\nADD             X0, X19, #0x42C                                        ; +0xf4, 0x1004da800\nADD             X1, SP, #0x30+var_28                                   ; +0xf8, 0x1004da804\nBL              sub_10002630C                                          ; +0xfc, 0x1004da808\nMOV             X0, X19                                                ; +0x100, 0x1004da80c\nBL              EditorWindowPopup__layoutWindow                        ; +0x104, 0x1004da810\nB               loc_1004DA884                                          ; +0x108, 0x1004da814\nLDRB            W8, [X19,#0x438]                                       ; +0x10c, 0x1004da818\nCMP             W8, #1                                                 ; +0x110, 0x1004da81c\nB.NE            loc_1004DA82C                                          ; +0x114, 0x1004da820\nSTRB            WZR, [X19,#0x438]                                      ; +0x118, 0x1004da824\nB               loc_1004DA884                                          ; +0x11c, 0x1004da828\nLDR             X0, [X19,#0x410]                                       ; +0x120, 0x1004da82c\nCBZ             X0, loc_1004DA854                                      ; +0x124, 0x1004da830\nLDRB            W22, [X0,#0x1E0]                                       ; +0x128, 0x1004da834\nMOV             X1, X20                                                ; +0x12c, 0x1004da838\nBL              sub_100525820                                          ; +0x130, 0x1004da83c\nCMP             W22, #0                                                ; +0x134, 0x1004da840\nMOV             W8, #0x390                                             ; +0x138, 0x1004da844\nMOV             W9, #0x398                                             ; +0x13c, 0x1004da848\nCSEL            X8, X9, X8, NE                                         ; +0x140, 0x1004da84c\nB               loc_1004DA858                                          ; +0x144, 0x1004da850\nMOV             W8, #0x390                                             ; +0x148, 0x1004da854\nLDRB            W9, [X19,#0x444]                                       ; +0x14c, 0x1004da858\nCMP             W9, #1                                                 ; +0x150, 0x1004da85c\nB.NE            loc_1004DA884                                          ; +0x154, 0x1004da860\nLDR             X0, [X19,#0x418]                                       ; +0x158, 0x1004da864\nCBZ             X0, loc_1004DA884                                      ; +0x15c, 0x1004da868\nLDR             X9, [X0]                                               ; +0x160, 0x1004da86c\nLDR             X8, [X9,X8]                                            ; +0x164, 0x1004da870\nMOV             X1, X20                                                ; +0x168, 0x1004da874\nMOV             X2, X21                                                ; +0x16c, 0x1004da878\nBLR             X8                                                     ; +0x170, 0x1004da87c\nSTRB            WZR, [X19,#0x444]                                      ; +0x174, 0x1004da880\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x178, 0x1004da884\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x17c, 0x1004da888\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x180, 0x1004da88c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x184, 0x1004da890\nRET                                                                    ; +0x188, 0x1004da894", "xrefs": ["sub_1004DA898 @ 0x1004da89c", "<???> @ 0x1009860a8", "<???> @ 0x10098b9a0", "<???> @ 0x10098c1e8", "<???> @ 0x100990cc0", "<???> @ 0x1009920f0", "<???> @ 0x1009a7648"], "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"}