{"type": "func", "start": 4300054664, "end": 4300054824, "name": "EditorWindowPopup::ccTouchBegan", "pseudocode": "// \n// EditorWindowPopup::ccTouchBegan from 0x1004da088 to 0x1004da128 (160 bytes)\n// \n// 7 xrefs:\n// > sub_1004DA3F0 @ 0x1004da3f4\n// > EmotePickerPopup::ccTouchBegan @ 0x1004dbbd4\n// > <???> @ 0x100986098\n// > <???> @ 0x10098b990\n// > <???> @ 0x100990cb0\n// > <???> @ 0x1009920e0\n// > <???> @ 0x1009a7638\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::ccTouchBegan(float *a1, float32x2_t *a2, __int64 a3)\n{\n  __int64 result; // x0\n  double v7; // d0\n  float v8; // [xsp+8h] [xbp-38h] BYREF\n  float v9[4]; // [xsp+10h] [xbp-30h] BYREF\n\n  result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a1 + 352LL))(a1);\n  if ( (_DWORD)result )\n  {\n    v7 = EditorWindowPopup::syncWindowCenter((__int64)a1);\n    if ( *((_DWORD *)a1 + 269) == -1 )\n    {\n      result = sub_1004DA128(a1, a2, a3, v7);\n      if ( (_DWORD)result )\n      {\n        a1[269] = a2[7].f32[0];\n        return 1;\n      }\n    }\n    else\n    {\n      EditorWindowPopup::touchRect(a1, v9);\n      cocos2d::CCTouch::getLocation(a2, &v8);\n      return sub_1000265E4(v9, &v8);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::ccTouchBegan from 0x1004da088 to 0x1004da128 (160 bytes)\n; \n; 7 xrefs:\n; > sub_1004DA3F0 @ 0x1004da3f4\n; > EmotePickerPopup::ccTouchBegan @ 0x1004dbbd4\n; > <???> @ 0x100986098\n; > <???> @ 0x10098b990\n; > <???> @ 0x100990cb0\n; > <???> @ 0x1009920e0\n; > <???> @ 0x1009a7638\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, #0x50                                          ; +0x0, 0x1004da088\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1004da08c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1004da090\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1004da094\nADD             X29, SP, #0x40                                         ; +0x10, 0x1004da098\nMOV             X21, X2                                                ; +0x14, 0x1004da09c\nMOV             X19, X1                                                ; +0x18, 0x1004da0a0\nMOV             X20, X0                                                ; +0x1c, 0x1004da0a4\nLDR             X8, [X0]                                               ; +0x20, 0x1004da0a8\nLDR             X8, [X8,#0x160]                                        ; +0x24, 0x1004da0ac\nBLR             X8                                                     ; +0x28, 0x1004da0b0\nCBZ             W0, loc_1004DA114                                      ; +0x2c, 0x1004da0b4\nMOV             X0, X20                                                ; +0x30, 0x1004da0b8\nBL              EditorWindowPopup__syncWindowCenter                    ; +0x34, 0x1004da0bc\nLDR             W8, [X20,#0x434]                                       ; +0x38, 0x1004da0c0\nCMN             W8, #1                                                 ; +0x3c, 0x1004da0c4\nB.EQ            loc_1004DA0F4                                          ; +0x40, 0x1004da0c8\nADD             X8, SP, #0x40+var_30                                   ; +0x44, 0x1004da0cc\nMOV             X0, X20                                                ; +0x48, 0x1004da0d0\nBL              EditorWindowPopup__touchRect                           ; +0x4c, 0x1004da0d4\nADD             X8, SP, #0x40+var_38                                   ; +0x50, 0x1004da0d8\nMOV             X0, X19                                                ; +0x54, 0x1004da0dc\nBL              cocos2d__CCTouch__getLocation                          ; +0x58, 0x1004da0e0\nADD             X0, SP, #0x40+var_30                                   ; +0x5c, 0x1004da0e4\nADD             X1, SP, #0x40+var_38                                   ; +0x60, 0x1004da0e8\nBL              sub_1000265E4                                          ; +0x64, 0x1004da0ec\nB               loc_1004DA114                                          ; +0x68, 0x1004da0f0\nMOV             X0, X20                                                ; +0x6c, 0x1004da0f4\nMOV             X1, X19                                                ; +0x70, 0x1004da0f8\nMOV             X2, X21                                                ; +0x74, 0x1004da0fc\nBL              sub_1004DA128                                          ; +0x78, 0x1004da100\nCBZ             W0, loc_1004DA114                                      ; +0x7c, 0x1004da104\nLDR             W8, [X19,#0x38]                                        ; +0x80, 0x1004da108\nSTR             W8, [X20,#0x434]                                       ; +0x84, 0x1004da10c\nMOV             W0, #1                                                 ; +0x88, 0x1004da110\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8c, 0x1004da114\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x90, 0x1004da118\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x94, 0x1004da11c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x98, 0x1004da120\nRET                                                                    ; +0x9c, 0x1004da124", "xrefs": ["sub_1004DA3F0 @ 0x1004da3f4", "EmotePickerPopup::ccTouchBegan @ 0x1004dbbd4", "<???> @ 0x100986098", "<???> @ 0x10098b990", "<???> @ 0x100990cb0", "<???> @ 0x1009920e0", "<???> @ 0x1009a7638"], "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"}