; ; EditorUI::processSmartObjectsFromType from 0x1401b7d50 to 0x1401b7fe6 (662 bytes) ; ; 6 xrefs: ; > EditorUI::createSmartObjectsFromType @ 0x1401b7ae9 ; > EditorUI::processSmartObjectsFromType @ 0x1401b7efb ; > EditorUI::processSmartObjectsFromType @ 0x1401b7fcb ; > @ 0x1408a1e30 ; > @ 0x1408a1e40 ; > @ 0x14091a2c4 ; ; 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:58 +0000 ; mov [rsp+arg_10], r8 ; +0x0, 0x1401b7d50 push rbx ; +0x5, 0x1401b7d55 push rbp ; +0x6, 0x1401b7d56 push rdi ; +0x7, 0x1401b7d57 push r12 ; +0x8, 0x1401b7d58 push r14 ; +0xa, 0x1401b7d5a push r15 ; +0xc, 0x1401b7d5c sub rsp, 68h ; +0xe, 0x1401b7d5e mov r14, r9 ; +0x12, 0x1401b7d62 mov rbp, r8 ; +0x15, 0x1401b7d65 mov edi, edx ; +0x18, 0x1401b7d68 mov r15, rcx ; +0x1a, 0x1401b7d6a cmp edx, 0A8Fh ; +0x1d, 0x1401b7d6d jz short loc_1401B7D89 ; +0x23, 0x1401b7d73 cmp edx, 0B16h ; +0x25, 0x1401b7d75 jz short loc_1401B7D89 ; +0x2b, 0x1401b7d7b cmp edx, 365h ; +0x2d, 0x1401b7d7d jz short loc_1401B7D89 ; +0x33, 0x1401b7d83 xor bl, bl ; +0x35, 0x1401b7d85 jmp short loc_1401B7D8B ; +0x37, 0x1401b7d87 mov bl, 1 ; +0x39, 0x1401b7d89 mov r12, [rsp+98h+arg_20] ; +0x3b, 0x1401b7d8b mov rcx, r12 ; +0x43, 0x1401b7d93 mov [rsp+98h+arg_8], bl ; +0x46, 0x1401b7d96 mov [rsp+98h+arg_0], rsi ; +0x4d, 0x1401b7d9d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x1401b7da5 test eax, eax ; +0x5b, 0x1401b7dab jz loc_1401B7F0A ; +0x5d, 0x1401b7dad xor edx, edx ; +0x63, 0x1401b7db3 mov [rsp+98h+var_38], r13 ; +0x65, 0x1401b7db5 mov rcx, r12 ; +0x6a, 0x1401b7dba call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x6d, 0x1401b7dbd lea rdx, [rsp+98h+var_60] ; +0x73, 0x1401b7dc3 mov r13, rax ; +0x78, 0x1401b7dc8 mov rcx, [rax] ; +0x7b, 0x1401b7dcb mov r8, [rcx+4B8h] ; +0x7e, 0x1401b7dce mov rcx, rax ; +0x85, 0x1401b7dd5 call r8 ; +0x88, 0x1401b7dd8 mov ebx, 1 ; +0x8b, 0x1401b7ddb lea rdx, [rsp+98h+var_60] ; +0x90, 0x1401b7de0 lea rcx, [rsp+98h+var_58] ; +0x95, 0x1401b7de5 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x9a, 0x1401b7dea mov r9d, ebx ; +0xa0, 0x1401b7df0 mov [rsp+98h+var_78], r14 ; +0xa3, 0x1401b7df3 mov r8, rax ; +0xa8, 0x1401b7df8 mov edx, edi ; +0xab, 0x1401b7dfb call EditorUI__getNeighbor ; +0xad, 0x1401b7dfd mov rsi, rax ; +0xb2, 0x1401b7e02 test rax, rax ; +0xb5, 0x1401b7e05 jz loc_1401B7EB3 ; +0xb8, 0x1401b7e08 mov edx, [r13+40Ch] ; +0xbe, 0x1401b7e0e call EditorUI__convertToBaseKey ; +0xc5, 0x1401b7e15 mov ecx, eax ; +0xca, 0x1401b7e1a mov edx, ebx ; +0xcc, 0x1401b7e1c call EditorUI__getSmartObjectKey ; +0xce, 0x1401b7e1e mov rcx, [rsi] ; +0xd3, 0x1401b7e23 mov ebp, eax ; +0xd6, 0x1401b7e26 mov rdx, [rcx+0C8h] ; +0xd8, 0x1401b7e28 mov rcx, rsi ; +0xdf, 0x1401b7e2f call rdx ; +0xe2, 0x1401b7e32 mov rdx, rax ; +0xe4, 0x1401b7e34 lea rcx, [rsp+98h+var_68] ; +0xe7, 0x1401b7e37 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xec, 0x1401b7e3c cmp [rsp+98h+arg_8], 0 ; +0xf2, 0x1401b7e42 jz short loc_1401B7E7B ; +0xfa, 0x1401b7e4a lea rdx, [rsp+98h+var_68] ; +0xfc, 0x1401b7e4c lea rcx, [rsp+98h+var_50] ; +0x101, 0x1401b7e51 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x106, 0x1401b7e56 mov r8d, edi ; +0x10c, 0x1401b7e5c mov edx, ebp ; +0x10f, 0x1401b7e5f mov r9, rax ; +0x111, 0x1401b7e61 mov rcx, r15 ; +0x114, 0x1401b7e64 mov rax, [rsp+98h+arg_10] ; +0x117, 0x1401b7e67 mov [rsp+98h+var_78], rax ; +0x11f, 0x1401b7e6f call EditorUI__convertKeyBasedOnNeighbors ; +0x124, 0x1401b7e74 mov ebp, eax ; +0x129, 0x1401b7e79 lea rdx, [rsp+98h+var_68] ; +0x12b, 0x1401b7e7b lea rcx, [rsp+98h+var_48] ; +0x130, 0x1401b7e80 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x135, 0x1401b7e85 mov edx, ebp ; +0x13b, 0x1401b7e8b mov rcx, r15 ; +0x13d, 0x1401b7e8d mov r8, rax ; +0x140, 0x1401b7e90 call EditorUI__createObject ; +0x143, 0x1401b7e93 mov rdx, rax ; +0x148, 0x1401b7e98 mov rcx, r12 ; +0x14b, 0x1401b7e9b call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x14e, 0x1401b7e9e mov r8b, 1 ; +0x154, 0x1401b7ea4 mov rdx, rsi ; +0x157, 0x1401b7ea7 mov rcx, r14 ; +0x15a, 0x1401b7eaa call cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x15d, 0x1401b7ead inc ebx ; +0x163, 0x1401b7eb3 cmp ebx, 8 ; +0x165, 0x1401b7eb5 jle loc_1401B7DE0 ; +0x168, 0x1401b7eb8 mov rbx, [rsp+98h+arg_28] ; +0x16e, 0x1401b7ebe mov rdx, r13 ; +0x176, 0x1401b7ec6 mov rcx, rbx ; +0x179, 0x1401b7ec9 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x17c, 0x1401b7ecc mov r8b, 1 ; +0x182, 0x1401b7ed2 mov rdx, r13 ; +0x185, 0x1401b7ed5 mov rcx, r12 ; +0x188, 0x1401b7ed8 call cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x18b, 0x1401b7edb mov r8, [rsp+98h+arg_10] ; +0x191, 0x1401b7ee1 mov r9, r14 ; +0x199, 0x1401b7ee9 mov edx, edi ; +0x19c, 0x1401b7eec mov [rsp+98h+var_70], rbx ; +0x19e, 0x1401b7eee mov rcx, r15 ; +0x1a3, 0x1401b7ef3 mov [rsp+98h+var_78], r12 ; +0x1a6, 0x1401b7ef6 call EditorUI__processSmartObjectsFromType ; +0x1ab, 0x1401b7efb mov r13, [rsp+98h+var_38] ; +0x1b0, 0x1401b7f00 jmp loc_1401B7FD0 ; +0x1b5, 0x1401b7f05 mov rcx, r14 ; +0x1ba, 0x1401b7f0a call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1bd, 0x1401b7f0d test eax, eax ; +0x1c3, 0x1401b7f13 jz loc_1401B7FD0 ; +0x1c5, 0x1401b7f15 xor edx, edx ; +0x1cb, 0x1401b7f1b mov rcx, r14 ; +0x1cd, 0x1401b7f1d call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1d0, 0x1401b7f20 mov rcx, [rax] ; +0x1d6, 0x1401b7f26 mov rdx, [rcx+0C8h] ; +0x1d9, 0x1401b7f29 mov rcx, rax ; +0x1e0, 0x1401b7f30 call rdx ; +0x1e3, 0x1401b7f33 mov rdx, rax ; +0x1e5, 0x1401b7f35 lea rcx, [rsp+98h+var_68] ; +0x1e8, 0x1401b7f38 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1ed, 0x1401b7f3d mov ecx, edi ; +0x1f3, 0x1401b7f43 call EditorUI__getRandomStartKey ; +0x1f5, 0x1401b7f45 mov esi, eax ; +0x1fa, 0x1401b7f4a test bl, bl ; +0x1fc, 0x1401b7f4c jz short loc_1401B7F77 ; +0x1fe, 0x1401b7f4e lea rdx, [rsp+98h+var_68] ; +0x200, 0x1401b7f50 lea rcx, [rsp+98h+var_48] ; +0x205, 0x1401b7f55 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x20a, 0x1401b7f5a mov r8d, edi ; +0x210, 0x1401b7f60 mov [rsp+98h+var_78], rbp ; +0x213, 0x1401b7f63 mov r9, rax ; +0x218, 0x1401b7f68 mov edx, esi ; +0x21b, 0x1401b7f6b mov rcx, r15 ; +0x21d, 0x1401b7f6d call EditorUI__convertKeyBasedOnNeighbors ; +0x220, 0x1401b7f70 mov esi, eax ; +0x225, 0x1401b7f75 lea rdx, [rsp+98h+var_68] ; +0x227, 0x1401b7f77 lea rcx, [rsp+98h+var_48] ; +0x22c, 0x1401b7f7c call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x231, 0x1401b7f81 mov edx, esi ; +0x237, 0x1401b7f87 mov rcx, r15 ; +0x239, 0x1401b7f89 mov r8, rax ; +0x23c, 0x1401b7f8c call EditorUI__createObject ; +0x23f, 0x1401b7f8f mov rdx, rax ; +0x244, 0x1401b7f94 mov rcx, r12 ; +0x247, 0x1401b7f97 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x24a, 0x1401b7f9a mov r8b, 1 ; +0x250, 0x1401b7fa0 xor edx, edx ; +0x253, 0x1401b7fa3 mov rcx, r14 ; +0x255, 0x1401b7fa5 call cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x258, 0x1401b7fa8 mov rax, [rsp+98h+arg_28] ; +0x25e, 0x1401b7fae mov r9, r14 ; +0x266, 0x1401b7fb6 mov [rsp+98h+var_70], rax ; +0x269, 0x1401b7fb9 mov r8, rbp ; +0x26e, 0x1401b7fbe mov edx, edi ; +0x271, 0x1401b7fc1 mov [rsp+98h+var_78], r12 ; +0x273, 0x1401b7fc3 mov rcx, r15 ; +0x278, 0x1401b7fc8 call EditorUI__processSmartObjectsFromType ; +0x27b, 0x1401b7fcb mov rsi, [rsp+98h+arg_0] ; +0x280, 0x1401b7fd0 add rsp, 68h ; +0x288, 0x1401b7fd8 pop r15 ; +0x28c, 0x1401b7fdc pop r14 ; +0x28e, 0x1401b7fde pop r12 ; +0x290, 0x1401b7fe0 pop rdi ; +0x292, 0x1401b7fe2 pop rbp ; +0x293, 0x1401b7fe3 pop rbx ; +0x294, 0x1401b7fe4 retn ; +0x295, 0x1401b7fe5