; ; EditorUI::convertKeyBasedOnNeighbors from 0x14012deb0 to 0x14012e31c (1132 bytes) ; ; 3 xrefs: ; > EditorUI::processSmartObjectsFromType @ 0x140118551 ; > EditorUI::processSmartObjectsFromType @ 0x14011864a ; > @ 0x1406c9d68 ; ; 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, 0x14012deb0 mov [rsp+arg_10], rbp ; +0x5, 0x14012deb5 mov [rsp+arg_0], rcx ; +0xa, 0x14012deba push rsi ; +0xf, 0x14012debf push rdi ; +0x10, 0x14012dec0 push r12 ; +0x11, 0x14012dec1 push r14 ; +0x13, 0x14012dec3 push r15 ; +0x15, 0x14012dec5 sub rsp, 30h ; +0x17, 0x14012dec7 mov rdi, r9 ; +0x1b, 0x14012decb mov esi, r8d ; +0x1e, 0x14012dece call EditorUI__convertToBaseKey ; +0x21, 0x14012ded1 mov rdx, r9 ; +0x26, 0x14012ded6 lea rcx, [rsp+58h+arg_0] ; +0x29, 0x14012ded9 mov r12d, eax ; +0x2e, 0x14012dede call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x31, 0x14012dee1 mov rbx, [rsp+58h+arg_20] ; +0x37, 0x14012dee7 mov r9d, 1 ; +0x3f, 0x14012deef mov r8, rax ; +0x45, 0x14012def5 mov [rsp+58h+var_38], rbx ; +0x48, 0x14012def8 mov edx, esi ; +0x4d, 0x14012defd call EditorUI__getNeighbor ; +0x4f, 0x14012deff mov rdx, rdi ; +0x54, 0x14012df04 lea rcx, [rsp+58h+arg_0] ; +0x57, 0x14012df07 mov r15, rax ; +0x5c, 0x14012df0c call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x5f, 0x14012df0f mov r9d, 2 ; +0x65, 0x14012df15 mov [rsp+58h+var_38], rbx ; +0x6b, 0x14012df1b mov r8, rax ; +0x70, 0x14012df20 mov edx, esi ; +0x73, 0x14012df23 call EditorUI__getNeighbor ; +0x75, 0x14012df25 mov rdx, rdi ; +0x7a, 0x14012df2a lea rcx, [rsp+58h+arg_0] ; +0x7d, 0x14012df2d mov r14, rax ; +0x82, 0x14012df32 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x85, 0x14012df35 mov r9d, 3 ; +0x8b, 0x14012df3b mov [rsp+58h+var_38], rbx ; +0x91, 0x14012df41 mov r8, rax ; +0x96, 0x14012df46 mov edx, esi ; +0x99, 0x14012df49 call EditorUI__getNeighbor ; +0x9b, 0x14012df4b mov rdx, rdi ; +0xa0, 0x14012df50 lea rcx, [rsp+58h+arg_0] ; +0xa3, 0x14012df53 mov rbp, rax ; +0xa8, 0x14012df58 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xab, 0x14012df5b mov r9d, 4 ; +0xb1, 0x14012df61 mov [rsp+58h+var_38], rbx ; +0xb7, 0x14012df67 mov r8, rax ; +0xbc, 0x14012df6c mov edx, esi ; +0xbf, 0x14012df6f call EditorUI__getNeighbor ; +0xc1, 0x14012df71 mov rdx, rax ; +0xc6, 0x14012df76 cmp r12d, 0B16h ; +0xc9, 0x14012df79 jg loc_14012E26E ; +0xd0, 0x14012df80 jz loc_14012E235 ; +0xd6, 0x14012df86 mov eax, r12d ; +0xdc, 0x14012df8c sub eax, 365h ; +0xdf, 0x14012df8f jz loc_14012E16E ; +0xe4, 0x14012df94 sub eax, 72Ah ; +0xea, 0x14012df9a jz loc_14012E08B ; +0xef, 0x14012df9f cmp eax, 1 ; +0xf5, 0x14012dfa5 jnz loc_14012E302 ; +0xf8, 0x14012dfa8 test r15, r15 ; +0xfe, 0x14012dfae jnz short loc_14012E022 ; +0x101, 0x14012dfb1 test r14, r14 ; +0x103, 0x14012dfb3 jz short loc_14012DFEF ; +0x106, 0x14012dfb6 test rbp, rbp ; +0x108, 0x14012dfb8 jz short loc_14012DFD6 ; +0x10b, 0x14012dfbb test rdx, rdx ; +0x10d, 0x14012dfbd jz short loc_14012DFCC ; +0x110, 0x14012dfc0 mov eax, 0B07h ; +0x112, 0x14012dfc2 jmp loc_14012E305 ; +0x117, 0x14012dfc7 mov eax, 0B0Eh ; +0x11c, 0x14012dfcc jmp loc_14012E305 ; +0x121, 0x14012dfd1 test rdx, rdx ; +0x126, 0x14012dfd6 jz short loc_14012DFE5 ; +0x129, 0x14012dfd9 mov eax, 0B0Dh ; +0x12b, 0x14012dfdb jmp loc_14012E305 ; +0x130, 0x14012dfe0 mov eax, 0B11h ; +0x135, 0x14012dfe5 jmp loc_14012E305 ; +0x13a, 0x14012dfea test rbp, rbp ; +0x13f, 0x14012dfef jz short loc_14012E00D ; +0x142, 0x14012dff2 test rdx, rdx ; +0x144, 0x14012dff4 jz short loc_14012E003 ; +0x147, 0x14012dff7 mov eax, 0B0Ch ; +0x149, 0x14012dff9 jmp loc_14012E305 ; +0x14e, 0x14012dffe mov eax, 0B14h ; +0x153, 0x14012e003 jmp loc_14012E305 ; +0x158, 0x14012e008 test rdx, rdx ; +0x15d, 0x14012e00d mov eax, 0B15h ; +0x160, 0x14012e010 mov ecx, 0B13h ; +0x165, 0x14012e015 cmovnz eax, ecx ; +0x16a, 0x14012e01a jmp loc_14012E305 ; +0x16d, 0x14012e01d test r14, r14 ; +0x172, 0x14012e022 jnz short loc_14012E05E ; +0x175, 0x14012e025 test rbp, rbp ; +0x177, 0x14012e027 jz short loc_14012E045 ; +0x17a, 0x14012e02a test rdx, rdx ; +0x17c, 0x14012e02c jz short loc_14012E03B ; +0x17f, 0x14012e02f mov eax, 0B08h ; +0x181, 0x14012e031 jmp loc_14012E305 ; +0x186, 0x14012e036 mov eax, 0B10h ; +0x18b, 0x14012e03b jmp loc_14012E305 ; +0x190, 0x14012e040 test rdx, rdx ; +0x195, 0x14012e045 jz short loc_14012E054 ; +0x198, 0x14012e048 mov eax, 0B0Fh ; +0x19a, 0x14012e04a jmp loc_14012E305 ; +0x19f, 0x14012e04f mov eax, 0B12h ; +0x1a4, 0x14012e054 jmp loc_14012E305 ; +0x1a9, 0x14012e059 test rbp, rbp ; +0x1ae, 0x14012e05e jnz short loc_14012E078 ; +0x1b1, 0x14012e061 test rdx, rdx ; +0x1b3, 0x14012e063 mov eax, 0B0Bh ; +0x1b6, 0x14012e066 mov ecx, 0B09h ; +0x1bb, 0x14012e06b cmovnz eax, ecx ; +0x1c0, 0x14012e070 jmp loc_14012E305 ; +0x1c3, 0x14012e073 test rdx, rdx ; +0x1c8, 0x14012e078 jnz loc_14012E302 ; +0x1cb, 0x14012e07b mov eax, 0B0Ah ; +0x1d1, 0x14012e081 jmp loc_14012E305 ; +0x1d6, 0x14012e086 test r15, r15 ; +0x1db, 0x14012e08b jnz short loc_14012E0FF ; +0x1de, 0x14012e08e test r14, r14 ; +0x1e0, 0x14012e090 jz short loc_14012E0CC ; +0x1e3, 0x14012e093 test rbp, rbp ; +0x1e5, 0x14012e095 jz short loc_14012E0B3 ; +0x1e8, 0x14012e098 test rdx, rdx ; +0x1ea, 0x14012e09a jz short loc_14012E0A9 ; +0x1ed, 0x14012e09d mov eax, 0AF8h ; +0x1ef, 0x14012e09f jmp loc_14012E305 ; +0x1f4, 0x14012e0a4 mov eax, 0AFFh ; +0x1f9, 0x14012e0a9 jmp loc_14012E305 ; +0x1fe, 0x14012e0ae test rdx, rdx ; +0x203, 0x14012e0b3 jz short loc_14012E0C2 ; +0x206, 0x14012e0b6 mov eax, 0AFEh ; +0x208, 0x14012e0b8 jmp loc_14012E305 ; +0x20d, 0x14012e0bd mov eax, 0B02h ; +0x212, 0x14012e0c2 jmp loc_14012E305 ; +0x217, 0x14012e0c7 test rbp, rbp ; +0x21c, 0x14012e0cc jz short loc_14012E0EA ; +0x21f, 0x14012e0cf test rdx, rdx ; +0x221, 0x14012e0d1 jz short loc_14012E0E0 ; +0x224, 0x14012e0d4 mov eax, 0AFDh ; +0x226, 0x14012e0d6 jmp loc_14012E305 ; +0x22b, 0x14012e0db mov eax, 0B05h ; +0x230, 0x14012e0e0 jmp loc_14012E305 ; +0x235, 0x14012e0e5 test rdx, rdx ; +0x23a, 0x14012e0ea mov eax, 0B06h ; +0x23d, 0x14012e0ed mov ecx, 0B04h ; +0x242, 0x14012e0f2 cmovnz eax, ecx ; +0x247, 0x14012e0f7 jmp loc_14012E305 ; +0x24a, 0x14012e0fa test r14, r14 ; +0x24f, 0x14012e0ff jnz short loc_14012E13B ; +0x252, 0x14012e102 test rbp, rbp ; +0x254, 0x14012e104 jz short loc_14012E122 ; +0x257, 0x14012e107 test rdx, rdx ; +0x259, 0x14012e109 jz short loc_14012E118 ; +0x25c, 0x14012e10c mov eax, 0AF9h ; +0x25e, 0x14012e10e jmp loc_14012E305 ; +0x263, 0x14012e113 mov eax, 0B01h ; +0x268, 0x14012e118 jmp loc_14012E305 ; +0x26d, 0x14012e11d test rdx, rdx ; +0x272, 0x14012e122 jz short loc_14012E131 ; +0x275, 0x14012e125 mov eax, 0B00h ; +0x277, 0x14012e127 jmp loc_14012E305 ; +0x27c, 0x14012e12c mov eax, 0B03h ; +0x281, 0x14012e131 jmp loc_14012E305 ; +0x286, 0x14012e136 test rbp, rbp ; +0x28b, 0x14012e13b jnz short loc_14012E155 ; +0x28e, 0x14012e13e test rdx, rdx ; +0x290, 0x14012e140 mov eax, 0AFCh ; +0x293, 0x14012e143 mov ecx, 0AFAh ; +0x298, 0x14012e148 cmovnz eax, ecx ; +0x29d, 0x14012e14d jmp loc_14012E305 ; +0x2a0, 0x14012e150 test rdx, rdx ; +0x2a5, 0x14012e155 jnz short loc_14012E164 ; +0x2a8, 0x14012e158 mov eax, 0AFBh ; +0x2aa, 0x14012e15a jmp loc_14012E305 ; +0x2af, 0x14012e15f mov eax, 0A8Fh ; +0x2b4, 0x14012e164 jmp loc_14012E305 ; +0x2b9, 0x14012e169 imul rax, cs:qword_1406C2EB8, 343FDh ; +0x2be, 0x14012e16e add rax, 269EC3h ; +0x2c9, 0x14012e179 mov cs:qword_1406C2EB8, rax ; +0x2cf, 0x14012e17f shr rax, 10h ; +0x2d6, 0x14012e186 and eax, 7FFFh ; +0x2da, 0x14012e18a movd xmm0, eax ; +0x2df, 0x14012e18f cvtdq2ps xmm0, xmm0 ; +0x2e3, 0x14012e193 divss xmm0, cs:dword_140623644 ; +0x2e6, 0x14012e196 comiss xmm0, cs:dword_140622B08 ; +0x2ee, 0x14012e19e setnbe cl ; +0x2f5, 0x14012e1a5 test r15, r15 ; +0x2f8, 0x14012e1a8 jz short loc_14012E1D4 ; +0x2fb, 0x14012e1ab test r14, r14 ; +0x2fd, 0x14012e1ad jz short loc_14012E1F3 ; +0x300, 0x14012e1b0 test rbp, rbp ; +0x302, 0x14012e1b2 jz short loc_14012E1F8 ; +0x305, 0x14012e1b5 test rdx, rdx ; +0x307, 0x14012e1b7 jnz loc_14012E302 ; +0x30a, 0x14012e1ba test cl, cl ; +0x310, 0x14012e1c0 mov eax, 4F3h ; +0x312, 0x14012e1c2 mov edx, 368h ; +0x317, 0x14012e1c7 cmovnz eax, edx ; +0x31c, 0x14012e1cc jmp loc_14012E305 ; +0x31f, 0x14012e1cf test r14, r14 ; +0x324, 0x14012e1d4 jnz short loc_14012E1F3 ; +0x327, 0x14012e1d7 test rbp, rbp ; +0x329, 0x14012e1d9 jnz short loc_14012E20C ; +0x32c, 0x14012e1dc test rdx, rdx ; +0x32e, 0x14012e1de jnz short loc_14012E1F8 ; +0x331, 0x14012e1e1 movzx eax, cl ; +0x333, 0x14012e1e3 xor eax, 1 ; +0x336, 0x14012e1e6 add eax, 363h ; +0x339, 0x14012e1e9 jmp loc_14012E305 ; +0x33e, 0x14012e1ee test rbp, rbp ; +0x343, 0x14012e1f3 jnz short loc_14012E20C ; +0x346, 0x14012e1f6 test cl, cl ; +0x348, 0x14012e1f8 mov eax, 4F2h ; +0x34a, 0x14012e1fa mov edx, 367h ; +0x34f, 0x14012e1ff cmovnz eax, edx ; +0x354, 0x14012e204 jmp loc_14012E305 ; +0x357, 0x14012e207 test rdx, rdx ; +0x35c, 0x14012e20c jnz short loc_14012E225 ; +0x35f, 0x14012e20f test cl, cl ; +0x361, 0x14012e211 mov eax, 4F3h ; +0x363, 0x14012e213 mov edx, 368h ; +0x368, 0x14012e218 cmovnz eax, edx ; +0x36d, 0x14012e21d jmp loc_14012E305 ; +0x370, 0x14012e220 movzx eax, cl ; +0x375, 0x14012e225 xor eax, 1 ; +0x378, 0x14012e228 add eax, 365h ; +0x37b, 0x14012e22b jmp loc_14012E305 ; +0x380, 0x14012e230 test r15, r15 ; +0x385, 0x14012e235 jz short loc_14012E243 ; +0x388, 0x14012e238 test r14, r14 ; +0x38a, 0x14012e23a jnz loc_14012E302 ; +0x38d, 0x14012e23d test rbp, rbp ; +0x393, 0x14012e243 jnz loc_14012E302 ; +0x396, 0x14012e246 test r15, r15 ; +0x39c, 0x14012e24c jnz short loc_14012E25B ; +0x39f, 0x14012e24f mov eax, 0B1Ah ; +0x3a1, 0x14012e251 jmp loc_14012E305 ; +0x3a6, 0x14012e256 test r14, r14 ; +0x3ab, 0x14012e25b jnz loc_14012E302 ; +0x3ae, 0x14012e25e mov eax, 0B1Eh ; +0x3b4, 0x14012e264 jmp loc_14012E305 ; +0x3b9, 0x14012e269 mov ecx, r12d ; +0x3be, 0x14012e26e sub ecx, 0B17h ; +0x3c1, 0x14012e271 jz short loc_14012E2D6 ; +0x3c7, 0x14012e277 sub ecx, 1 ; +0x3c9, 0x14012e279 jz short loc_14012E2AF ; +0x3cc, 0x14012e27c cmp ecx, 1 ; +0x3ce, 0x14012e27e jnz short loc_14012E302 ; +0x3d1, 0x14012e281 test r15, r15 ; +0x3d3, 0x14012e283 jz short loc_14012E292 ; +0x3d6, 0x14012e286 test r14, r14 ; +0x3d8, 0x14012e288 jz short loc_14012E292 ; +0x3db, 0x14012e28b test rbp, rbp ; +0x3dd, 0x14012e28d jnz short loc_14012E302 ; +0x3e0, 0x14012e290 test rdx, rdx ; +0x3e2, 0x14012e292 jnz short loc_14012E302 ; +0x3e5, 0x14012e295 test r15, r15 ; +0x3e7, 0x14012e297 jnz short loc_14012E2A3 ; +0x3ea, 0x14012e29a mov eax, 0B1Dh ; +0x3ec, 0x14012e29c jmp short loc_14012E305 ; +0x3f1, 0x14012e2a1 test r14, r14 ; +0x3f3, 0x14012e2a3 jnz short loc_14012E302 ; +0x3f6, 0x14012e2a6 mov eax, 0B21h ; +0x3f8, 0x14012e2a8 jmp short loc_14012E305 ; +0x3fd, 0x14012e2ad test r15, r15 ; +0x3ff, 0x14012e2af jz short loc_14012E2B9 ; +0x402, 0x14012e2b2 test r14, r14 ; +0x404, 0x14012e2b4 jnz short loc_14012E302 ; +0x407, 0x14012e2b7 test rbp, rbp ; +0x409, 0x14012e2b9 jnz short loc_14012E302 ; +0x40c, 0x14012e2bc test r15, r15 ; +0x40e, 0x14012e2be jnz short loc_14012E2CA ; +0x411, 0x14012e2c1 mov eax, 0B1Ch ; +0x413, 0x14012e2c3 jmp short loc_14012E305 ; +0x418, 0x14012e2c8 test r14, r14 ; +0x41a, 0x14012e2ca jnz short loc_14012E302 ; +0x41d, 0x14012e2cd mov eax, 0B20h ; +0x41f, 0x14012e2cf jmp short loc_14012E305 ; +0x424, 0x14012e2d4 test r15, r15 ; +0x426, 0x14012e2d6 jz short loc_14012E2E5 ; +0x429, 0x14012e2d9 test r14, r14 ; +0x42b, 0x14012e2db jz short loc_14012E2E5 ; +0x42e, 0x14012e2de test rbp, rbp ; +0x430, 0x14012e2e0 jnz short loc_14012E302 ; +0x433, 0x14012e2e3 test rdx, rdx ; +0x435, 0x14012e2e5 jnz short loc_14012E302 ; +0x438, 0x14012e2e8 test r15, r15 ; +0x43a, 0x14012e2ea jnz short loc_14012E2F6 ; +0x43d, 0x14012e2ed mov eax, 0B1Bh ; +0x43f, 0x14012e2ef jmp short loc_14012E305 ; +0x444, 0x14012e2f4 test r14, r14 ; +0x446, 0x14012e2f6 mov eax, 0B1Fh ; +0x449, 0x14012e2f9 cmovz r12d, eax ; +0x44e, 0x14012e2fe mov eax, r12d ; +0x452, 0x14012e302 mov rbx, [rsp+58h+arg_8] ; +0x455, 0x14012e305 mov rbp, [rsp+58h+arg_10] ; +0x45a, 0x14012e30a add rsp, 30h ; +0x45f, 0x14012e30f pop r15 ; +0x463, 0x14012e313 pop r14 ; +0x465, 0x14012e315 pop r12 ; +0x467, 0x14012e317 pop rdi ; +0x469, 0x14012e319 pop rsi ; +0x46a, 0x14012e31a retn ; +0x46b, 0x14012e31b