{"type": "func", "start": 5370468880, "end": 5370469264, "name": "EditorUI::clickOnPosition", "pseudocode": "// \n// EditorUI::clickOnPosition from 0x1401ada10 to 0x1401adb90 (384 bytes)\n// \n// 8 xrefs:\n// > EditorUI::startFreeMoveTouch @ 0x1401bfbf8\n// > EditorUI::startFreeMoveTouch @ 0x1401bfcb4\n// > EditorUI::swipeToPosition @ 0x1401bfe55\n// > EditorUI::ccTouchEnded @ 0x1401c18ae\n// > <???> @ 0x1408a110c\n// > <???> @ 0x1408a1124\n// > <???> @ 0x1408a1134\n// > <???> @ 0x140919d3c\n// \n// This function is hookable on this platform (idp: pc, 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:27:54 +0000\n// \n\nvoid __fastcall EditorUI::clickOnPosition(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rax\n  int v4; // eax\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  __int64 v9; // rbx\n  __int64 v10; // rax\n  __int64 v11; // rax\n  __int64 v12; // rbx\n  __int64 v13; // rdx\n  __int64 v14; // rax\n  char v15; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( *(float *)(a1 + 904) <= *(float *)(a2 + 4) )\n  {\n    cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL), &v15, a2);\n    cocos2d::CCPoint::operator=(a1 + 1560, v3);\n    v4 = *(_DWORD *)(a1 + 1508);\n    if ( v4 == 1 )\n    {\n      EditorUI::onDelete(a1);\n      EditorUI::updateButtons(a1);\n    }\n    else\n    {\n      if ( v4 == 2 )\n      {\n        if ( !(unsigned __int8)EditorUI::onCreate(a1) && !*(_BYTE *)(a1 + 908) )\n        {\n          v5 = *(_QWORD *)(a1 + 1512);\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const struct cocos2d::CCPoint *)(a1 + 1560));\n          v7 = LevelEditorLayer::objectAtPosition(v5, v6);\n          if ( v7 )\n          {\n            LOBYTE(v8) = 1;\n            *(_DWORD *)(a1 + 1392) = *(_DWORD *)(v7 + 1036);\n            EditorUI::updateCreateMenu(a1, v8);\n          }\n        }\n      }\n      else if ( v4 == 3 )\n      {\n        v9 = *(_QWORD *)(a1 + 1512);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const struct cocos2d::CCPoint *)(a1 + 1560));\n        v11 = LevelEditorLayer::objectAtPosition(v9, v10);\n        v12 = v11;\n        if ( v11 )\n        {\n          v13 = *(_QWORD *)(a1 + 1568);\n          if ( !v13 || *(_DWORD *)(v13 + 924) != *(_DWORD *)(v11 + 924) )\n          {\n            EditorUI::createUndoSelectObject(a1, 0);\n            EditorUI::selectObject(a1, v12, 0);\n            v14 = EditorSFXManager::sharedState();\n            EditorSFXManager::playAction(v14, 121);\n          }\n        }\n        EditorUI::updateEditMenu(a1);\n        EditorUI::updateSpecialUIElements(a1);\n      }\n      EditorUI::updateButtons(a1);\n    }\n  }\n}", "assembly": "; \n; EditorUI::clickOnPosition from 0x1401ada10 to 0x1401adb90 (384 bytes)\n; \n; 8 xrefs:\n; > EditorUI::startFreeMoveTouch @ 0x1401bfbf8\n; > EditorUI::startFreeMoveTouch @ 0x1401bfcb4\n; > EditorUI::swipeToPosition @ 0x1401bfe55\n; > EditorUI::ccTouchEnded @ 0x1401c18ae\n; > <???> @ 0x1408a110c\n; > <???> @ 0x1408a1124\n; > <???> @ 0x1408a1134\n; > <???> @ 0x140919d3c\n; \n; This function is hookable on this platform (idp: pc, 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:27:54 +0000\n; \npush    rdi                                                            ; +0x0, 0x1401ada10\nsub     rsp, 20h                                                       ; +0x2, 0x1401ada12\nmovss   xmm0, dword ptr [rcx+388h]                                     ; +0x6, 0x1401ada16\nmov     rdi, rcx                                                       ; +0xe, 0x1401ada1e\ncomiss  xmm0, dword ptr [rdx+4]                                        ; +0x11, 0x1401ada21\nja      loc_1401ADB8A                                                  ; +0x15, 0x1401ada25\nmov     rcx, [rcx+5E8h]                                                ; +0x1b, 0x1401ada2b\nmov     r8, rdx                                                        ; +0x22, 0x1401ada32\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x25, 0x1401ada35\nmov     [rsp+28h+arg_10], rsi                                          ; +0x2a, 0x1401ada3a\nmov     rcx, [rcx+10C8h]                                               ; +0x2f, 0x1401ada3f\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x36, 0x1401ada46\nmov     rdx, rax                                                       ; +0x3c, 0x1401ada4c\nlea     rcx, [rdi+618h]                                                ; +0x3f, 0x1401ada4f\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x46, 0x1401ada56\nmov     eax, [rdi+5E4h]                                                ; +0x4c, 0x1401ada5c\ncmp     eax, 1                                                         ; +0x52, 0x1401ada62\njnz     short loc_1401ADA81                                            ; +0x55, 0x1401ada65\nmov     rcx, rdi                                                       ; +0x57, 0x1401ada67\ncall    EditorUI__onDelete                                             ; +0x5a, 0x1401ada6a\nmov     rcx, rdi                                                       ; +0x5f, 0x1401ada6f\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x62, 0x1401ada72\nadd     rsp, 20h                                                       ; +0x67, 0x1401ada77\npop     rdi                                                            ; +0x6b, 0x1401ada7b\njmp     EditorUI__updateButtons                                        ; +0x6c, 0x1401ada7c\nmov     [rsp+28h+arg_8], rbx                                           ; +0x71, 0x1401ada81\ncmp     eax, 2                                                         ; +0x76, 0x1401ada86\njnz     short loc_1401ADAEF                                            ; +0x79, 0x1401ada89\nmov     rcx, rdi                                                       ; +0x7b, 0x1401ada8b\ncall    EditorUI__onCreate                                             ; +0x7e, 0x1401ada8e\ntest    al, al                                                         ; +0x83, 0x1401ada93\njnz     loc_1401ADB78                                                  ; +0x85, 0x1401ada95\ncmp     [rdi+38Ch], al                                                 ; +0x8b, 0x1401ada9b\njnz     loc_1401ADB78                                                  ; +0x91, 0x1401adaa1\nmov     rbx, [rdi+5E8h]                                                ; +0x97, 0x1401adaa7\nlea     rdx, [rdi+618h]                                                ; +0x9e, 0x1401adaae\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xa5, 0x1401adab5\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xaa, 0x1401adaba\nmov     rdx, rax                                                       ; +0xb0, 0x1401adac0\nmov     rcx, rbx                                                       ; +0xb3, 0x1401adac3\ncall    LevelEditorLayer__objectAtPosition                             ; +0xb6, 0x1401adac6\ntest    rax, rax                                                       ; +0xbb, 0x1401adacb\njz      loc_1401ADB78                                                  ; +0xbe, 0x1401adace\nmov     eax, [rax+40Ch]                                                ; +0xc4, 0x1401adad4\nmov     dl, 1                                                          ; +0xca, 0x1401adada\nmov     rcx, rdi                                                       ; +0xcc, 0x1401adadc\nmov     [rdi+570h], eax                                                ; +0xcf, 0x1401adadf\ncall    EditorUI__updateCreateMenu                                     ; +0xd5, 0x1401adae5\njmp     loc_1401ADB78                                                  ; +0xda, 0x1401adaea\ncmp     eax, 3                                                         ; +0xdf, 0x1401adaef\njnz     loc_1401ADB78                                                  ; +0xe2, 0x1401adaf2\nmov     rbx, [rdi+5E8h]                                                ; +0xe8, 0x1401adaf8\nlea     rdx, [rdi+618h]                                                ; +0xef, 0x1401adaff\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xf6, 0x1401adb06\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xfb, 0x1401adb0b\nmov     rdx, rax                                                       ; +0x101, 0x1401adb11\nmov     rcx, rbx                                                       ; +0x104, 0x1401adb14\ncall    LevelEditorLayer__objectAtPosition                             ; +0x107, 0x1401adb17\nmov     rbx, rax                                                       ; +0x10c, 0x1401adb1c\ntest    rax, rax                                                       ; +0x10f, 0x1401adb1f\njz      short loc_1401ADB68                                            ; +0x112, 0x1401adb22\nmov     rdx, [rdi+620h]                                                ; +0x114, 0x1401adb24\ntest    rdx, rdx                                                       ; +0x11b, 0x1401adb2b\njz      short loc_1401ADB3E                                            ; +0x11e, 0x1401adb2e\nmov     ecx, [rax+39Ch]                                                ; +0x120, 0x1401adb30\ncmp     [rdx+39Ch], ecx                                                ; +0x126, 0x1401adb36\njz      short loc_1401ADB68                                            ; +0x12c, 0x1401adb3c\nxor     edx, edx                                                       ; +0x12e, 0x1401adb3e\nmov     rcx, rdi                                                       ; +0x130, 0x1401adb40\ncall    EditorUI__createUndoSelectObject                               ; +0x133, 0x1401adb43\nxor     r8d, r8d                                                       ; +0x138, 0x1401adb48\nmov     rdx, rbx                                                       ; +0x13b, 0x1401adb4b\nmov     rcx, rdi                                                       ; +0x13e, 0x1401adb4e\ncall    EditorUI__selectObject                                         ; +0x141, 0x1401adb51\ncall    EditorSFXManager__sharedState                                  ; +0x146, 0x1401adb56\nmov     rcx, rax                                                       ; +0x14b, 0x1401adb5b\nmov     edx, 79h ; 'y'                                                 ; +0x14e, 0x1401adb5e\ncall    EditorSFXManager__playAction                                   ; +0x153, 0x1401adb63\nmov     rcx, rdi                                                       ; +0x158, 0x1401adb68\ncall    EditorUI__updateEditMenu                                       ; +0x15b, 0x1401adb6b\nmov     rcx, rdi                                                       ; +0x160, 0x1401adb70\ncall    EditorUI__updateSpecialUIElements                              ; +0x163, 0x1401adb73\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x168, 0x1401adb78\nmov     rcx, rdi                                                       ; +0x16d, 0x1401adb7d\ncall    EditorUI__updateButtons                                        ; +0x170, 0x1401adb80\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x175, 0x1401adb85\nadd     rsp, 20h                                                       ; +0x17a, 0x1401adb8a\npop     rdi                                                            ; +0x17e, 0x1401adb8e\nretn                                                                   ; +0x17f, 0x1401adb8f", "xrefs": ["EditorUI::startFreeMoveTouch @ 0x1401bfbf8", "EditorUI::startFreeMoveTouch @ 0x1401bfcb4", "EditorUI::swipeToPosition @ 0x1401bfe55", "EditorUI::ccTouchEnded @ 0x1401c18ae", "<???> @ 0x1408a110c", "<???> @ 0x1408a1124", "<???> @ 0x1408a1134", "<???> @ 0x140919d3c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}