; ; EditorUI::clickOnPosition from 0x1401ada10 to 0x1401adb90 (384 bytes) ; ; 8 xrefs: ; > EditorUI::startFreeMoveTouch @ 0x1401bfbf8 ; > EditorUI::startFreeMoveTouch @ 0x1401bfcb4 ; > EditorUI::swipeToPosition @ 0x1401bfe55 ; > EditorUI::ccTouchEnded @ 0x1401c18ae ; > @ 0x1408a110c ; > @ 0x1408a1124 ; > @ 0x1408a1134 ; > @ 0x140919d3c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:27:54 +0000 ; push rdi ; +0x0, 0x1401ada10 sub rsp, 20h ; +0x2, 0x1401ada12 movss xmm0, dword ptr [rcx+388h] ; +0x6, 0x1401ada16 mov rdi, rcx ; +0xe, 0x1401ada1e comiss xmm0, dword ptr [rdx+4] ; +0x11, 0x1401ada21 ja loc_1401ADB8A ; +0x15, 0x1401ada25 mov rcx, [rcx+5E8h] ; +0x1b, 0x1401ada2b mov r8, rdx ; +0x22, 0x1401ada32 lea rdx, [rsp+28h+arg_0] ; +0x25, 0x1401ada35 mov [rsp+28h+arg_10], rsi ; +0x2a, 0x1401ada3a mov rcx, [rcx+10C8h] ; +0x2f, 0x1401ada3f call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x36, 0x1401ada46 mov rdx, rax ; +0x3c, 0x1401ada4c lea rcx, [rdi+618h] ; +0x3f, 0x1401ada4f call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x46, 0x1401ada56 mov eax, [rdi+5E4h] ; +0x4c, 0x1401ada5c cmp eax, 1 ; +0x52, 0x1401ada62 jnz short loc_1401ADA81 ; +0x55, 0x1401ada65 mov rcx, rdi ; +0x57, 0x1401ada67 call EditorUI__onDelete ; +0x5a, 0x1401ada6a mov rcx, rdi ; +0x5f, 0x1401ada6f mov rsi, [rsp+28h+arg_10] ; +0x62, 0x1401ada72 add rsp, 20h ; +0x67, 0x1401ada77 pop rdi ; +0x6b, 0x1401ada7b jmp EditorUI__updateButtons ; +0x6c, 0x1401ada7c mov [rsp+28h+arg_8], rbx ; +0x71, 0x1401ada81 cmp eax, 2 ; +0x76, 0x1401ada86 jnz short loc_1401ADAEF ; +0x79, 0x1401ada89 mov rcx, rdi ; +0x7b, 0x1401ada8b call EditorUI__onCreate ; +0x7e, 0x1401ada8e test al, al ; +0x83, 0x1401ada93 jnz loc_1401ADB78 ; +0x85, 0x1401ada95 cmp [rdi+38Ch], al ; +0x8b, 0x1401ada9b jnz loc_1401ADB78 ; +0x91, 0x1401adaa1 mov rbx, [rdi+5E8h] ; +0x97, 0x1401adaa7 lea rdx, [rdi+618h] ; +0x9e, 0x1401adaae lea rcx, [rsp+28h+arg_0] ; +0xa5, 0x1401adab5 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xaa, 0x1401adaba mov rdx, rax ; +0xb0, 0x1401adac0 mov rcx, rbx ; +0xb3, 0x1401adac3 call LevelEditorLayer__objectAtPosition ; +0xb6, 0x1401adac6 test rax, rax ; +0xbb, 0x1401adacb jz loc_1401ADB78 ; +0xbe, 0x1401adace mov eax, [rax+40Ch] ; +0xc4, 0x1401adad4 mov dl, 1 ; +0xca, 0x1401adada mov rcx, rdi ; +0xcc, 0x1401adadc mov [rdi+570h], eax ; +0xcf, 0x1401adadf call EditorUI__updateCreateMenu ; +0xd5, 0x1401adae5 jmp loc_1401ADB78 ; +0xda, 0x1401adaea cmp eax, 3 ; +0xdf, 0x1401adaef jnz loc_1401ADB78 ; +0xe2, 0x1401adaf2 mov rbx, [rdi+5E8h] ; +0xe8, 0x1401adaf8 lea rdx, [rdi+618h] ; +0xef, 0x1401adaff lea rcx, [rsp+28h+arg_0] ; +0xf6, 0x1401adb06 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xfb, 0x1401adb0b mov rdx, rax ; +0x101, 0x1401adb11 mov rcx, rbx ; +0x104, 0x1401adb14 call LevelEditorLayer__objectAtPosition ; +0x107, 0x1401adb17 mov rbx, rax ; +0x10c, 0x1401adb1c test rax, rax ; +0x10f, 0x1401adb1f jz short loc_1401ADB68 ; +0x112, 0x1401adb22 mov rdx, [rdi+620h] ; +0x114, 0x1401adb24 test rdx, rdx ; +0x11b, 0x1401adb2b jz short loc_1401ADB3E ; +0x11e, 0x1401adb2e mov ecx, [rax+39Ch] ; +0x120, 0x1401adb30 cmp [rdx+39Ch], ecx ; +0x126, 0x1401adb36 jz short loc_1401ADB68 ; +0x12c, 0x1401adb3c xor edx, edx ; +0x12e, 0x1401adb3e mov rcx, rdi ; +0x130, 0x1401adb40 call EditorUI__createUndoSelectObject ; +0x133, 0x1401adb43 xor r8d, r8d ; +0x138, 0x1401adb48 mov rdx, rbx ; +0x13b, 0x1401adb4b mov rcx, rdi ; +0x13e, 0x1401adb4e call EditorUI__selectObject ; +0x141, 0x1401adb51 call EditorSFXManager__sharedState ; +0x146, 0x1401adb56 mov rcx, rax ; +0x14b, 0x1401adb5b mov edx, 79h ; 'y' ; +0x14e, 0x1401adb5e call EditorSFXManager__playAction ; +0x153, 0x1401adb63 mov rcx, rdi ; +0x158, 0x1401adb68 call EditorUI__updateEditMenu ; +0x15b, 0x1401adb6b mov rcx, rdi ; +0x160, 0x1401adb70 call EditorUI__updateSpecialUIElements ; +0x163, 0x1401adb73 mov rbx, [rsp+28h+arg_8] ; +0x168, 0x1401adb78 mov rcx, rdi ; +0x16d, 0x1401adb7d call EditorUI__updateButtons ; +0x170, 0x1401adb80 mov rsi, [rsp+28h+arg_10] ; +0x175, 0x1401adb85 add rsp, 20h ; +0x17a, 0x1401adb8a pop rdi ; +0x17e, 0x1401adb8e retn ; +0x17f, 0x1401adb8f