; ; EditorUI::findSnapObject from 0x1401bf400 to 0x1401bf4fd (253 bytes) ; ; 5 xrefs: ; > EditorUI::startFreeMoveTouch @ 0x1401bfbcb ; > EditorUI::startFreeMoveTouch @ 0x1401bfd0d ; > @ 0x1408a2590 ; > @ 0x1408a25a0 ; > @ 0x14091a5b8 ; ; 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:28:02 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401bf400 mov [rsp+arg_10], rbp ; +0x5, 0x1401bf405 mov [rsp+arg_18], rdi ; +0xa, 0x1401bf40a push r14 ; +0xf, 0x1401bf40f sub rsp, 60h ; +0x11, 0x1401bf411 mov rdi, rcx ; +0x15, 0x1401bf415 movaps [rsp+68h+var_18], xmm6 ; +0x18, 0x1401bf418 mov rcx, [rcx+3B0h] ; +0x1d, 0x1401bf41d movaps xmm6, xmm2 ; +0x24, 0x1401bf424 mov r14, rdx ; +0x27, 0x1401bf427 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2a, 0x1401bf42a test eax, eax ; +0x30, 0x1401bf430 jz loc_1401BF4D0 ; +0x32, 0x1401bf432 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x38, 0x1401bf438 mov rcx, [rdi+3B0h] ; +0x3e, 0x1401bf43e xor ebx, ebx ; +0x45, 0x1401bf445 mov rbp, rax ; +0x47, 0x1401bf447 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x1401bf44a test eax, eax ; +0x50, 0x1401bf450 jz loc_1401BF4D4 ; +0x52, 0x1401bf452 mov [rsp+68h+arg_0], rsi ; +0x58, 0x1401bf458 nop dword ptr [rax] ; +0x5d, 0x1401bf45d mov rcx, [rdi+3B0h] ; +0x60, 0x1401bf460 mov edx, ebx ; +0x67, 0x1401bf467 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1401bf469 mov rcx, [rdi+5E8h] ; +0x6f, 0x1401bf46f lea rdx, [rsp+68h+var_38] ; +0x76, 0x1401bf476 mov r8, rax ; +0x7b, 0x1401bf47b mov rsi, rax ; +0x7e, 0x1401bf47e call LevelEditorLayer__getObjectRect ; +0x81, 0x1401bf481 mov rcx, [rdi+5E8h] ; +0x86, 0x1401bf486 lea rdx, [rsp+68h+var_28] ; +0x8d, 0x1401bf48d mov r8, rsi ; +0x92, 0x1401bf492 call LevelEditorLayer__getObjectRect ; +0x95, 0x1401bf495 mov rcx, rax ; +0x9a, 0x1401bf49a mov rdx, r14 ; +0x9d, 0x1401bf49d call cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xa0, 0x1401bf4a0 test al, al ; +0xa6, 0x1401bf4a6 jz short loc_1401BF4B6 ; +0xa8, 0x1401bf4a8 mov rdx, rsi ; +0xaa, 0x1401bf4aa mov rcx, rbp ; +0xad, 0x1401bf4ad call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xb0, 0x1401bf4b0 mov rcx, [rdi+3B0h] ; +0xb6, 0x1401bf4b6 inc ebx ; +0xbd, 0x1401bf4bd call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbf, 0x1401bf4bf cmp ebx, eax ; +0xc5, 0x1401bf4c5 jb short loc_1401BF460 ; +0xc7, 0x1401bf4c7 mov rsi, [rsp+68h+arg_0] ; +0xc9, 0x1401bf4c9 jmp short loc_1401BF4D4 ; +0xce, 0x1401bf4ce xor ebx, ebx ; +0xd0, 0x1401bf4d0 mov ebp, ebx ; +0xd2, 0x1401bf4d2 movaps xmm2, xmm6 ; +0xd4, 0x1401bf4d4 mov rdx, rbp ; +0xd7, 0x1401bf4d7 mov rcx, rdi ; +0xda, 0x1401bf4da movaps xmm6, [rsp+68h+var_18] ; +0xdd, 0x1401bf4dd lea r11, [rsp+68h+var_8] ; +0xe2, 0x1401bf4e2 mov rbx, [r11+18h] ; +0xe7, 0x1401bf4e7 mov rbp, [r11+20h] ; +0xeb, 0x1401bf4eb mov rdi, [r11+28h] ; +0xef, 0x1401bf4ef mov rsp, r11 ; +0xf3, 0x1401bf4f3 pop r14 ; +0xf6, 0x1401bf4f6 jmp EditorUI__findSnapObject_1 ; +0xf8, 0x1401bf4f8