; ; EditorUI::deleteSmartBlocksFromObjects from 0x1401b7740 to 0x1401b7864 (292 bytes) ; ; 6 xrefs: ; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6f1a ; > EditorUI::createPrefab @ 0x1401b76c6 ; > EditorUI::spriteFromObjectString @ 0x1401f0b11 ; > @ 0x1408a1d64 ; > @ 0x1408a1d74 ; > @ 0x14091a24c ; ; 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], rbp ; +0x0, 0x1401b7740 mov [rsp+arg_18], rsi ; +0x5, 0x1401b7745 push r14 ; +0xa, 0x1401b774a sub rsp, 20h ; +0xc, 0x1401b774c mov r14, rcx ; +0x10, 0x1401b7750 mov rbp, rdx ; +0x13, 0x1401b7753 mov rcx, rdx ; +0x16, 0x1401b7756 xor esi, esi ; +0x19, 0x1401b7759 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b, 0x1401b775b test eax, eax ; +0x21, 0x1401b7761 jz loc_1401B7853 ; +0x23, 0x1401b7763 mov [rsp+28h+arg_0], rbx ; +0x29, 0x1401b7769 mov [rsp+28h+arg_8], rdi ; +0x2e, 0x1401b776e mov edx, esi ; +0x33, 0x1401b7773 mov rcx, rbp ; +0x35, 0x1401b7775 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x1401b7778 mov rbx, rax ; +0x3e, 0x1401b777e cmp dword ptr [rax+4E8h], 5 ; +0x41, 0x1401b7781 jnz loc_1401B7836 ; +0x48, 0x1401b7788 movsxd rax, dword ptr [rax+370h] ; +0x4e, 0x1401b778e test eax, eax ; +0x55, 0x1401b7795 jle short loc_1401B77C4 ; +0x57, 0x1401b7797 mov rcx, [r14+5E8h] ; +0x59, 0x1401b7799 mov rdx, rax ; +0x60, 0x1401b77a0 mov rcx, [rcx+10A0h] ; +0x63, 0x1401b77a3 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x6a, 0x1401b77aa test rax, rax ; +0x70, 0x1401b77b0 jz short loc_1401B77C4 ; +0x73, 0x1401b77b3 mov r8b, 1 ; +0x75, 0x1401b77b5 mov rdx, rbx ; +0x78, 0x1401b77b8 mov rcx, rax ; +0x7b, 0x1401b77bb call cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x7e, 0x1401b77be movzx eax, byte ptr [rbx+475h] ; +0x84, 0x1401b77c4 mov rdx, rbx ; +0x8b, 0x1401b77cb mov rcx, r14 ; +0x8e, 0x1401b77ce mov [rbx+474h], al ; +0x91, 0x1401b77d1 call EditorUI__deselectObject ; +0x97, 0x1401b77d7 mov rax, [rbx] ; +0x9c, 0x1401b77dc mov dl, 1 ; +0x9f, 0x1401b77df mov rdi, [r14+5E8h] ; +0xa1, 0x1401b77e1 mov rcx, rbx ; +0xa8, 0x1401b77e8 call qword ptr [rax+488h] ; +0xab, 0x1401b77eb mov rdx, rbx ; +0xb1, 0x1401b77f1 mov rcx, rdi ; +0xb4, 0x1401b77f4 call GJBaseGameLayer__removeObjectFromSection ; +0xb7, 0x1401b77f7 mov rdx, rbx ; +0xbc, 0x1401b77fc mov rcx, rdi ; +0xbf, 0x1401b77ff call LevelEditorLayer__removeSpecial ; +0xc2, 0x1401b7802 mov rcx, r14 ; +0xc7, 0x1401b7807 mov byte ptr [rdi+3D32h], 1 ; +0xca, 0x1401b780a call EditorUI__deactivateRotationControl ; +0xd1, 0x1401b7811 mov rcx, r14 ; +0xd6, 0x1401b7816 call EditorUI__deactivateScaleControl ; +0xd9, 0x1401b7819 mov rcx, r14 ; +0xde, 0x1401b781e call EditorUI__deactivateTransformControl ; +0xe1, 0x1401b7821 mov r8b, 1 ; +0xe6, 0x1401b7826 mov edx, esi ; +0xe9, 0x1401b7829 mov rcx, rbp ; +0xeb, 0x1401b782b call cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xee, 0x1401b782e jmp short loc_1401B7838 ; +0xf4, 0x1401b7834 inc esi ; +0xf6, 0x1401b7836 mov rcx, rbp ; +0xf8, 0x1401b7838 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xfb, 0x1401b783b cmp esi, eax ; +0x101, 0x1401b7841 jb loc_1401B7773 ; +0x103, 0x1401b7843 mov rdi, [rsp+28h+arg_8] ; +0x109, 0x1401b7849 mov rbx, [rsp+28h+arg_0] ; +0x10e, 0x1401b784e mov rbp, [rsp+28h+arg_10] ; +0x113, 0x1401b7853 mov rsi, [rsp+28h+arg_18] ; +0x118, 0x1401b7858 add rsp, 20h ; +0x11d, 0x1401b785d pop r14 ; +0x121, 0x1401b7861 retn ; +0x123, 0x1401b7863