; ; EditorUI::getNeighbor from 0x1401187e0 to 0x1401188ab (203 bytes) ; ; 14 xrefs: ; > EditorUI::processSmartObjectsFromType @ 0x1401184dd ; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012deff ; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df25 ; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df4b ; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df71 ; > EditorUI::createOutlines @ 0x14012f0b7 ; > EditorUI::createOutlines @ 0x14012f0f1 ; > EditorUI::createOutlines @ 0x14012f12b ; > EditorUI::createOutlines @ 0x14012f165 ; > EditorUI::createOutlines @ 0x14012f19f ; > EditorUI::createOutlines @ 0x14012f1d9 ; > EditorUI::createOutlines @ 0x14012f213 ; > EditorUI::createOutlines @ 0x14012f24a ; > @ 0x1406c93a8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x1401187e0 mov [rsp+arg_10], rbp ; +0x5, 0x1401187e5 mov [rsp+arg_18], rsi ; +0xa, 0x1401187ea mov [rsp+arg_0], rcx ; +0xf, 0x1401187ef push rdi ; +0x14, 0x1401187f4 push r14 ; +0x15, 0x1401187f5 push r15 ; +0x17, 0x1401187f7 sub rsp, 30h ; +0x19, 0x1401187f9 mov rbx, r8 ; +0x1d, 0x1401187fd lea rcx, [rsp+48h+var_28] ; +0x20, 0x140118800 mov r8d, edx ; +0x25, 0x140118805 mov edx, r9d ; +0x28, 0x140118808 call GJSmartTemplate__offsetForDir ; +0x2b, 0x14011880b mov r8, rax ; +0x30, 0x140118810 lea rdx, [rsp+48h+arg_0] ; +0x33, 0x140118813 mov rcx, rbx ; +0x38, 0x140118818 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x3b, 0x14011881b mov rbp, [rsp+48h+arg_20] ; +0x41, 0x140118821 xor edi, edi ; +0x46, 0x140118826 cvttss2si r15d, dword ptr [rsp+48h+arg_0] ; +0x48, 0x140118828 mov rcx, rbp ; +0x4f, 0x14011882f cvttss2si r14d, dword ptr [rsp+48h+arg_0+4] ; +0x52, 0x140118832 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x140118839 test eax, eax ; +0x5f, 0x14011883f jz short loc_14011888B ; +0x61, 0x140118841 mov edx, edi ; +0x63, 0x140118843 mov rcx, rbp ; +0x65, 0x140118845 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x140118848 mov rcx, rax ; +0x6e, 0x14011884e mov rsi, rax ; +0x71, 0x140118851 mov rdx, [rax] ; +0x74, 0x140118854 call qword ptr [rdx+0C8h] ; +0x77, 0x140118857 mov rdx, [rsi] ; +0x7d, 0x14011885d mov rcx, rsi ; +0x80, 0x140118860 cvttss2si ebx, dword ptr [rax] ; +0x83, 0x140118863 call qword ptr [rdx+0C8h] ; +0x87, 0x140118867 cvttss2si ecx, dword ptr [rax+4] ; +0x8d, 0x14011886d cmp r15d, ebx ; +0x92, 0x140118872 jnz short loc_14011887C ; +0x95, 0x140118875 cmp r14d, ecx ; +0x97, 0x140118877 jz short loc_1401188A6 ; +0x9a, 0x14011887a mov rcx, rbp ; +0x9c, 0x14011887c inc edi ; +0x9f, 0x14011887f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x140118881 cmp edi, eax ; +0xa7, 0x140118887 jb short loc_140118843 ; +0xa9, 0x140118889 xor eax, eax ; +0xab, 0x14011888b mov rbx, [rsp+48h+arg_8] ; +0xad, 0x14011888d mov rbp, [rsp+48h+arg_10] ; +0xb2, 0x140118892 mov rsi, [rsp+48h+arg_18] ; +0xb7, 0x140118897 add rsp, 30h ; +0xbc, 0x14011889c pop r15 ; +0xc0, 0x1401188a0 pop r14 ; +0xc2, 0x1401188a2 pop rdi ; +0xc4, 0x1401188a4 retn ; +0xc5, 0x1401188a5 mov rax, rsi ; +0xc6, 0x1401188a6 jmp short loc_14011888D ; +0xc9, 0x1401188a9