; ; EditorUI::convertKeyBasedOnNeighbors from 0x1401f9920 to 0x1401f9de7 (1223 bytes) ; ; 3 xrefs: ; > EditorUI::processSmartObjectsFromType @ 0x1401b7e74 ; > EditorUI::processSmartObjectsFromType @ 0x1401b7f70 ; > @ 0x14091ab58 ; ; 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:10 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401f9920 mov [rsp+arg_10], rbp ; +0x5, 0x1401f9925 mov [rsp+arg_0], rcx ; +0xa, 0x1401f992a push rsi ; +0xf, 0x1401f992f push rdi ; +0x10, 0x1401f9930 push r12 ; +0x11, 0x1401f9931 push r14 ; +0x13, 0x1401f9933 push r15 ; +0x15, 0x1401f9935 sub rsp, 30h ; +0x17, 0x1401f9937 mov rdi, r9 ; +0x1b, 0x1401f993b mov esi, r8d ; +0x1e, 0x1401f993e call EditorUI__convertToBaseKey ; +0x21, 0x1401f9941 mov rdx, r9 ; +0x26, 0x1401f9946 lea rcx, [rsp+58h+arg_0] ; +0x29, 0x1401f9949 mov ebp, eax ; +0x2e, 0x1401f994e call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x30, 0x1401f9950 mov rbx, [rsp+58h+arg_20] ; +0x36, 0x1401f9956 mov r9d, 1 ; +0x3e, 0x1401f995e mov r8, rax ; +0x44, 0x1401f9964 mov [rsp+58h+var_38], rbx ; +0x47, 0x1401f9967 mov edx, esi ; +0x4c, 0x1401f996c call EditorUI__getNeighbor ; +0x4e, 0x1401f996e mov rdx, rdi ; +0x53, 0x1401f9973 lea rcx, [rsp+58h+arg_0] ; +0x56, 0x1401f9976 mov r12, rax ; +0x5b, 0x1401f997b call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x5e, 0x1401f997e mov r9d, 2 ; +0x64, 0x1401f9984 mov [rsp+58h+var_38], rbx ; +0x6a, 0x1401f998a mov r8, rax ; +0x6f, 0x1401f998f mov edx, esi ; +0x72, 0x1401f9992 call EditorUI__getNeighbor ; +0x74, 0x1401f9994 mov rdx, rdi ; +0x79, 0x1401f9999 lea rcx, [rsp+58h+arg_0] ; +0x7c, 0x1401f999c mov r15, rax ; +0x81, 0x1401f99a1 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x84, 0x1401f99a4 mov r9d, 3 ; +0x8a, 0x1401f99aa mov [rsp+58h+var_38], rbx ; +0x90, 0x1401f99b0 mov r8, rax ; +0x95, 0x1401f99b5 mov edx, esi ; +0x98, 0x1401f99b8 call EditorUI__getNeighbor ; +0x9a, 0x1401f99ba mov rdx, rdi ; +0x9f, 0x1401f99bf lea rcx, [rsp+58h+arg_0] ; +0xa2, 0x1401f99c2 mov r14, rax ; +0xa7, 0x1401f99c7 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xaa, 0x1401f99ca mov r9d, 4 ; +0xb0, 0x1401f99d0 mov [rsp+58h+var_38], rbx ; +0xb6, 0x1401f99d6 mov r8, rax ; +0xbb, 0x1401f99db mov edx, esi ; +0xbe, 0x1401f99de call EditorUI__getNeighbor ; +0xc0, 0x1401f99e0 mov rcx, rax ; +0xc5, 0x1401f99e5 mov eax, 0B16h ; +0xc8, 0x1401f99e8 cmp ebp, eax ; +0xcd, 0x1401f99ed jg loc_1401F9D1E ; +0xcf, 0x1401f99ef jz loc_1401F9CDE ; +0xd5, 0x1401f99f5 mov edx, ebp ; +0xdb, 0x1401f99fb sub edx, 365h ; +0xdd, 0x1401f99fd jz loc_1401F9C1E ; +0xe3, 0x1401f9a03 sub edx, 72Ah ; +0xe9, 0x1401f9a09 jz loc_1401F9B0E ; +0xef, 0x1401f9a0f cmp edx, 1 ; +0xf5, 0x1401f9a15 jnz loc_1401F9DCE ; +0xf8, 0x1401f9a18 test r12, r12 ; +0xfe, 0x1401f9a1e jnz loc_1401F9AA8 ; +0x101, 0x1401f9a21 test r15, r15 ; +0x107, 0x1401f9a27 jz short loc_1401F9A5B ; +0x10a, 0x1401f9a2a test r14, r14 ; +0x10c, 0x1401f9a2c jz short loc_1401F9A46 ; +0x10f, 0x1401f9a2f test rcx, rcx ; +0x111, 0x1401f9a31 mov eax, 0B0Eh ; +0x114, 0x1401f9a34 mov edx, 0B07h ; +0x119, 0x1401f9a39 cmovnz eax, edx ; +0x11e, 0x1401f9a3e jmp loc_1401F9DD0 ; +0x121, 0x1401f9a41 test rcx, rcx ; +0x126, 0x1401f9a46 mov eax, 0B11h ; +0x129, 0x1401f9a49 mov edx, 0B0Dh ; +0x12e, 0x1401f9a4e cmovnz eax, edx ; +0x133, 0x1401f9a53 jmp loc_1401F9DD0 ; +0x136, 0x1401f9a56 test r14, r14 ; +0x13b, 0x1401f9a5b jz short loc_1401F9A6F ; +0x13e, 0x1401f9a5e test rcx, rcx ; +0x140, 0x1401f9a60 jz short loc_1401F9A99 ; +0x143, 0x1401f9a63 mov eax, 0B0Ch ; +0x145, 0x1401f9a65 jmp loc_1401F9DD0 ; +0x14a, 0x1401f9a6a test rcx, rcx ; +0x14f, 0x1401f9a6f jz short loc_1401F9A7E ; +0x152, 0x1401f9a72 mov eax, 0B13h ; +0x154, 0x1401f9a74 jmp loc_1401F9DD0 ; +0x159, 0x1401f9a79 test r12, r12 ; +0x15e, 0x1401f9a7e jnz loc_1401F9DCE ; +0x161, 0x1401f9a81 test r15, r15 ; +0x167, 0x1401f9a87 jnz loc_1401F9DCE ; +0x16a, 0x1401f9a8a test rcx, rcx ; +0x170, 0x1401f9a90 jnz loc_1401F9DCE ; +0x173, 0x1401f9a93 neg r14 ; +0x179, 0x1401f9a99 sbb eax, eax ; +0x17c, 0x1401f9a9c add eax, 0B15h ; +0x17e, 0x1401f9a9e jmp loc_1401F9DD0 ; +0x183, 0x1401f9aa3 test r15, r15 ; +0x188, 0x1401f9aa8 jnz short loc_1401F9AE7 ; +0x18b, 0x1401f9aab test r14, r14 ; +0x18d, 0x1401f9aad jz short loc_1401F9ACE ; +0x190, 0x1401f9ab0 test rcx, rcx ; +0x192, 0x1401f9ab2 jz short loc_1401F9AC1 ; +0x195, 0x1401f9ab5 mov eax, 0B08h ; +0x197, 0x1401f9ab7 jmp loc_1401F9DD0 ; +0x19c, 0x1401f9abc mov eax, 0B10h ; +0x1a1, 0x1401f9ac1 test rcx, rcx ; +0x1a6, 0x1401f9ac6 jmp loc_1401F9DCB ; +0x1a9, 0x1401f9ac9 test rcx, rcx ; +0x1ae, 0x1401f9ace jz short loc_1401F9ADD ; +0x1b1, 0x1401f9ad1 mov eax, 0B0Fh ; +0x1b3, 0x1401f9ad3 jmp loc_1401F9DD0 ; +0x1b8, 0x1401f9ad8 mov eax, 0B12h ; +0x1bd, 0x1401f9add jmp loc_1401F9DD0 ; +0x1c2, 0x1401f9ae2 test r14, r14 ; +0x1c7, 0x1401f9ae7 jnz short loc_1401F9B01 ; +0x1ca, 0x1401f9aea test rcx, rcx ; +0x1cc, 0x1401f9aec mov eax, 0B0Bh ; +0x1cf, 0x1401f9aef mov edx, 0B09h ; +0x1d4, 0x1401f9af4 cmovnz eax, edx ; +0x1d9, 0x1401f9af9 jmp loc_1401F9DD0 ; +0x1dc, 0x1401f9afc mov eax, 0B0Ah ; +0x1e1, 0x1401f9b01 test rcx, rcx ; +0x1e6, 0x1401f9b06 jmp loc_1401F9DCB ; +0x1e9, 0x1401f9b09 test r12, r12 ; +0x1ee, 0x1401f9b0e jnz loc_1401F9BB6 ; +0x1f1, 0x1401f9b11 test r15, r15 ; +0x1f7, 0x1401f9b17 jz short loc_1401F9B4B ; +0x1fa, 0x1401f9b1a test r14, r14 ; +0x1fc, 0x1401f9b1c jz short loc_1401F9B36 ; +0x1ff, 0x1401f9b1f test rcx, rcx ; +0x201, 0x1401f9b21 mov eax, 0AFFh ; +0x204, 0x1401f9b24 mov edx, 0AF8h ; +0x209, 0x1401f9b29 cmovnz eax, edx ; +0x20e, 0x1401f9b2e jmp loc_1401F9DD0 ; +0x211, 0x1401f9b31 test rcx, rcx ; +0x216, 0x1401f9b36 mov eax, 0B02h ; +0x219, 0x1401f9b39 mov edx, 0AFEh ; +0x21e, 0x1401f9b3e cmovnz eax, edx ; +0x223, 0x1401f9b43 jmp loc_1401F9DD0 ; +0x226, 0x1401f9b46 test r14, r14 ; +0x22b, 0x1401f9b4b jz short loc_1401F9B5F ; +0x22e, 0x1401f9b4e test rcx, rcx ; +0x230, 0x1401f9b50 jz short loc_1401F9B85 ; +0x233, 0x1401f9b53 mov eax, 0AFDh ; +0x235, 0x1401f9b55 jmp loc_1401F9DD0 ; +0x23a, 0x1401f9b5a test rcx, rcx ; +0x23f, 0x1401f9b5f jz short loc_1401F9B6E ; +0x242, 0x1401f9b62 mov eax, 0B04h ; +0x244, 0x1401f9b64 jmp loc_1401F9DD0 ; +0x249, 0x1401f9b69 test r12, r12 ; +0x24e, 0x1401f9b6e jnz short loc_1401F9B94 ; +0x251, 0x1401f9b71 test r15, r15 ; +0x253, 0x1401f9b73 jnz loc_1401F9DCE ; +0x256, 0x1401f9b76 test rcx, rcx ; +0x25c, 0x1401f9b7c jnz loc_1401F9DCE ; +0x25f, 0x1401f9b7f neg r14 ; +0x265, 0x1401f9b85 sbb eax, eax ; +0x268, 0x1401f9b88 add eax, 0B06h ; +0x26a, 0x1401f9b8a jmp loc_1401F9DD0 ; +0x26f, 0x1401f9b8f test r15, r15 ; +0x274, 0x1401f9b94 jz loc_1401F9DCE ; +0x277, 0x1401f9b97 test r14, r14 ; +0x27d, 0x1401f9b9d jz loc_1401F9DCE ; +0x280, 0x1401f9ba0 mov eax, 0A8Fh ; +0x286, 0x1401f9ba6 test rcx, rcx ; +0x28b, 0x1401f9bab cmovnz ebp, eax ; +0x28e, 0x1401f9bae jmp loc_1401F9DCE ; +0x291, 0x1401f9bb1 test r15, r15 ; +0x296, 0x1401f9bb6 jnz short loc_1401F9BF5 ; +0x299, 0x1401f9bb9 test r14, r14 ; +0x29b, 0x1401f9bbb jz short loc_1401F9BDC ; +0x29e, 0x1401f9bbe test rcx, rcx ; +0x2a0, 0x1401f9bc0 jz short loc_1401F9BCF ; +0x2a3, 0x1401f9bc3 mov eax, 0AF9h ; +0x2a5, 0x1401f9bc5 jmp loc_1401F9DD0 ; +0x2aa, 0x1401f9bca mov eax, 0B01h ; +0x2af, 0x1401f9bcf test rcx, rcx ; +0x2b4, 0x1401f9bd4 jmp loc_1401F9DCB ; +0x2b7, 0x1401f9bd7 test rcx, rcx ; +0x2bc, 0x1401f9bdc jz short loc_1401F9BEB ; +0x2bf, 0x1401f9bdf mov eax, 0B00h ; +0x2c1, 0x1401f9be1 jmp loc_1401F9DD0 ; +0x2c6, 0x1401f9be6 mov eax, 0B03h ; +0x2cb, 0x1401f9beb jmp loc_1401F9DD0 ; +0x2d0, 0x1401f9bf0 test r14, r14 ; +0x2d5, 0x1401f9bf5 jnz short loc_1401F9C0F ; +0x2d8, 0x1401f9bf8 test rcx, rcx ; +0x2da, 0x1401f9bfa mov eax, 0AFCh ; +0x2dd, 0x1401f9bfd mov edx, 0AFAh ; +0x2e2, 0x1401f9c02 cmovnz eax, edx ; +0x2e7, 0x1401f9c07 jmp loc_1401F9DD0 ; +0x2ea, 0x1401f9c0a test rcx, rcx ; +0x2ef, 0x1401f9c0f jnz short loc_1401F9BA6 ; +0x2f2, 0x1401f9c12 mov eax, 0AFBh ; +0x2f4, 0x1401f9c14 jmp loc_1401F9DD0 ; +0x2f9, 0x1401f9c19 imul rax, cs:qword_14090BFA8, 343FDh ; +0x2fe, 0x1401f9c1e add rax, 269EC3h ; +0x309, 0x1401f9c29 mov cs:qword_14090BFA8, rax ; +0x30f, 0x1401f9c2f shr rax, 10h ; +0x316, 0x1401f9c36 and eax, 7FFFh ; +0x31a, 0x1401f9c3a movd xmm0, eax ; +0x31f, 0x1401f9c3f cvtdq2ps xmm0, xmm0 ; +0x323, 0x1401f9c43 divss xmm0, cs:dword_140835BDC ; +0x326, 0x1401f9c46 test r12, r12 ; +0x32e, 0x1401f9c4e jz short loc_1401F9C6C ; +0x331, 0x1401f9c51 test r15, r15 ; +0x333, 0x1401f9c53 jz short loc_1401F9C92 ; +0x336, 0x1401f9c56 test r14, r14 ; +0x338, 0x1401f9c58 jz short loc_1401F9C92 ; +0x33b, 0x1401f9c5b test rcx, rcx ; +0x33d, 0x1401f9c5d jz short loc_1401F9C92 ; +0x340, 0x1401f9c60 mov eax, 365h ; +0x342, 0x1401f9c62 jmp loc_1401F9DD0 ; +0x347, 0x1401f9c67 test r15, r15 ; +0x34c, 0x1401f9c6c jnz short loc_1401F9C92 ; +0x34f, 0x1401f9c6f test r14, r14 ; +0x351, 0x1401f9c71 jnz short loc_1401F9C92 ; +0x354, 0x1401f9c74 test rcx, rcx ; +0x356, 0x1401f9c76 jnz short loc_1401F9C92 ; +0x359, 0x1401f9c79 xor edx, edx ; +0x35b, 0x1401f9c7b comiss xmm0, cs:dword_140834F20 ; +0x35d, 0x1401f9c7d setbe dl ; +0x364, 0x1401f9c84 lea eax, [rdx+363h] ; +0x367, 0x1401f9c87 jmp loc_1401F9DD0 ; +0x36d, 0x1401f9c8d xor edx, edx ; +0x372, 0x1401f9c92 comiss xmm0, cs:dword_140834F20 ; +0x374, 0x1401f9c94 setnbe dl ; +0x37b, 0x1401f9c9b test r14, r14 ; +0x37e, 0x1401f9c9e jnz short loc_1401F9CB7 ; +0x381, 0x1401f9ca1 test edx, edx ; +0x383, 0x1401f9ca3 mov eax, 4F2h ; +0x385, 0x1401f9ca5 mov ecx, 367h ; +0x38a, 0x1401f9caa cmovnz eax, ecx ; +0x38f, 0x1401f9caf jmp loc_1401F9DD0 ; +0x392, 0x1401f9cb2 test rcx, rcx ; +0x397, 0x1401f9cb7 jnz short loc_1401F9CD0 ; +0x39a, 0x1401f9cba test edx, edx ; +0x39c, 0x1401f9cbc mov eax, 4F3h ; +0x39e, 0x1401f9cbe mov ecx, 368h ; +0x3a3, 0x1401f9cc3 cmovnz eax, ecx ; +0x3a8, 0x1401f9cc8 jmp loc_1401F9DD0 ; +0x3ab, 0x1401f9ccb xor edx, 1 ; +0x3b0, 0x1401f9cd0 lea eax, [rdx+365h] ; +0x3b3, 0x1401f9cd3 jmp loc_1401F9DD0 ; +0x3b9, 0x1401f9cd9 test r12, r12 ; +0x3be, 0x1401f9cde jz short loc_1401F9CFC ; +0x3c1, 0x1401f9ce1 test r15, r15 ; +0x3c3, 0x1401f9ce3 jz short loc_1401F9CFC ; +0x3c6, 0x1401f9ce6 test r14, r14 ; +0x3c8, 0x1401f9ce8 jz loc_1401F9DCE ; +0x3cb, 0x1401f9ceb test rcx, rcx ; +0x3d1, 0x1401f9cf1 cmovnz ebp, eax ; +0x3d4, 0x1401f9cf4 jmp loc_1401F9DCE ; +0x3d7, 0x1401f9cf7 test r14, r14 ; +0x3dc, 0x1401f9cfc jnz loc_1401F9DCE ; +0x3df, 0x1401f9cff test r12, r12 ; +0x3e5, 0x1401f9d05 jnz short loc_1401F9D14 ; +0x3e8, 0x1401f9d08 mov eax, 0B1Ah ; +0x3ea, 0x1401f9d0a jmp loc_1401F9DD0 ; +0x3ef, 0x1401f9d0f mov eax, 0B1Eh ; +0x3f4, 0x1401f9d14 jmp loc_1401F9DC8 ; +0x3f9, 0x1401f9d19 mov edx, ebp ; +0x3fe, 0x1401f9d1e mov eax, 0B17h ; +0x400, 0x1401f9d20 sub edx, eax ; +0x405, 0x1401f9d25 jz short loc_1401F9D9F ; +0x407, 0x1401f9d27 sub edx, 1 ; +0x409, 0x1401f9d29 jz short loc_1401F9D6B ; +0x40c, 0x1401f9d2c cmp edx, 1 ; +0x40e, 0x1401f9d2e jnz loc_1401F9DCE ; +0x411, 0x1401f9d31 test r12, r12 ; +0x417, 0x1401f9d37 jz short loc_1401F9D53 ; +0x41a, 0x1401f9d3a test r15, r15 ; +0x41c, 0x1401f9d3c jz short loc_1401F9D53 ; +0x41f, 0x1401f9d3f test r14, r14 ; +0x421, 0x1401f9d41 jz short loc_1401F9D53 ; +0x424, 0x1401f9d44 test rcx, rcx ; +0x426, 0x1401f9d46 mov eax, 0B19h ; +0x429, 0x1401f9d49 cmovnz ebp, eax ; +0x42e, 0x1401f9d4e jmp short loc_1401F9DCE ; +0x431, 0x1401f9d51 test rcx, rcx ; +0x433, 0x1401f9d53 jnz short loc_1401F9DCE ; +0x436, 0x1401f9d56 test r12, r12 ; +0x438, 0x1401f9d58 jnz short loc_1401F9D64 ; +0x43b, 0x1401f9d5b mov eax, 0B1Dh ; +0x43d, 0x1401f9d5d jmp short loc_1401F9DD0 ; +0x442, 0x1401f9d62 mov eax, 0B21h ; +0x444, 0x1401f9d64 jmp short loc_1401F9DC8 ; +0x449, 0x1401f9d69 test r12, r12 ; +0x44b, 0x1401f9d6b jz short loc_1401F9D87 ; +0x44e, 0x1401f9d6e test r15, r15 ; +0x450, 0x1401f9d70 jz short loc_1401F9D87 ; +0x453, 0x1401f9d73 test r14, r14 ; +0x455, 0x1401f9d75 jz short loc_1401F9DCE ; +0x458, 0x1401f9d78 test rcx, rcx ; +0x45a, 0x1401f9d7a mov eax, 0B18h ; +0x45d, 0x1401f9d7d cmovnz ebp, eax ; +0x462, 0x1401f9d82 jmp short loc_1401F9DCE ; +0x465, 0x1401f9d85 test r14, r14 ; +0x467, 0x1401f9d87 jnz short loc_1401F9DCE ; +0x46a, 0x1401f9d8a test r12, r12 ; +0x46c, 0x1401f9d8c jnz short loc_1401F9D98 ; +0x46f, 0x1401f9d8f mov eax, 0B1Ch ; +0x471, 0x1401f9d91 jmp short loc_1401F9DD0 ; +0x476, 0x1401f9d96 mov eax, 0B20h ; +0x478, 0x1401f9d98 jmp short loc_1401F9DC8 ; +0x47d, 0x1401f9d9d test r12, r12 ; +0x47f, 0x1401f9d9f jz short loc_1401F9DB2 ; +0x482, 0x1401f9da2 test r15, r15 ; +0x484, 0x1401f9da4 jz short loc_1401F9DB2 ; +0x487, 0x1401f9da7 test r14, r14 ; +0x489, 0x1401f9da9 jnz loc_1401F9BAB ; +0x48c, 0x1401f9dac test rcx, rcx ; +0x492, 0x1401f9db2 jnz short loc_1401F9DCE ; +0x495, 0x1401f9db5 test r12, r12 ; +0x497, 0x1401f9db7 jnz short loc_1401F9DC3 ; +0x49a, 0x1401f9dba mov eax, 0B1Bh ; +0x49c, 0x1401f9dbc jmp short loc_1401F9DD0 ; +0x4a1, 0x1401f9dc1 mov eax, 0B1Fh ; +0x4a3, 0x1401f9dc3 test r15, r15 ; +0x4a8, 0x1401f9dc8 cmovz ebp, eax ; +0x4ab, 0x1401f9dcb mov eax, ebp ; +0x4ae, 0x1401f9dce mov rbx, [rsp+58h+arg_8] ; +0x4b0, 0x1401f9dd0 mov rbp, [rsp+58h+arg_10] ; +0x4b5, 0x1401f9dd5 add rsp, 30h ; +0x4ba, 0x1401f9dda pop r15 ; +0x4be, 0x1401f9dde pop r14 ; +0x4c0, 0x1401f9de0 pop r12 ; +0x4c2, 0x1401f9de2 pop rdi ; +0x4c4, 0x1401f9de4 pop rsi ; +0x4c5, 0x1401f9de5 retn ; +0x4c6, 0x1401f9de6