{"type": "func", "start": 4295050848, "end": 4295051096, "name": "EditorUI::deleteSmartBlocksFromObjects", "pseudocode": "// \n// EditorUI::deleteSmartBlocksFromObjects from 0x100014660 to 0x100014758 (248 bytes)\n// \n// 3 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x10001436a\n// > EditorUI::createPrefab @ 0x100014cae\n// > EditorUI::spriteFromObjectString @ 0x100638a81\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:18:54 +0000\n// \n\n__int64 __fastcall EditorUI::deleteSmartBlocksFromObjects(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  unsigned int v4; // r15d\n  __int64 v5; // rax\n  __int64 v6; // r12\n  __int64 v7; // rsi\n  __int64 StickyGroup; // rax\n\n  result = sub_1007FEF90(a2);\n  if ( (_DWORD)result )\n  {\n    v4 = 0;\n    do\n    {\n      while ( 1 )\n      {\n        v5 = sub_1007FEFE0(a2, v4);\n        if ( *(_DWORD *)(v5 + 1248) == 5 )\n          break;\n        ++v4;\n        result = sub_1007FEF90(a2);\n        if ( v4 >= (unsigned int)result )\n          return result;\n      }\n      v6 = v5;\n      v7 = *(unsigned int *)(v5 + 872);\n      if ( (int)v7 > 0 )\n      {\n        StickyGroup = GJBaseGameLayer::getStickyGroup(*(_QWORD *)(a1 + 1440), v7);\n        if ( StickyGroup )\n          sub_1007FF140(StickyGroup, v6, 1);\n      }\n      *(_BYTE *)(v6 + 1132) = *(_BYTE *)(v6 + 1133);\n      EditorUI::deselectObject(a1, v6);\n      LevelEditorLayer::removeObject(*(_QWORD *)(a1 + 1440), v6, 1);\n      EditorUI::deactivateRotationControl(a1);\n      EditorUI::deactivateScaleControl(a1);\n      sub_100611790(a1);\n      sub_1007FF150(a2, v4, 1);\n      result = sub_1007FEF90(a2);\n    }\n    while ( v4 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deleteSmartBlocksFromObjects from 0x100014660 to 0x100014758 (248 bytes)\n; \n; 3 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x10001436a\n; > EditorUI::createPrefab @ 0x100014cae\n; > EditorUI::spriteFromObjectString @ 0x100638a81\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:18:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x100014660\nmov     rbp, rsp                                                       ; +0x1, 0x100014661\npush    r15                                                            ; +0x4, 0x100014664\npush    r14                                                            ; +0x6, 0x100014666\npush    r12                                                            ; +0x8, 0x100014668\npush    rbx                                                            ; +0xa, 0x10001466a\nmov     rbx, rsi                                                       ; +0xb, 0x10001466b\nmov     r14, rdi                                                       ; +0xe, 0x10001466e\nmov     rdi, rsi                                                       ; +0x11, 0x100014671\ncall    sub_1007FEF90                                                  ; +0x14, 0x100014674\ntest    eax, eax                                                       ; +0x19, 0x100014679\njz      loc_10001474F                                                  ; +0x1b, 0x10001467b\nxor     r15d, r15d                                                     ; +0x21, 0x100014681\njmp     short loc_1000146A4                                            ; +0x24, 0x100014684\nalign 10h                                                              ; +0x26, 0x100014686\ninc     r15d                                                           ; +0x30, 0x100014690\nmov     rdi, rbx                                                       ; +0x33, 0x100014693\ncall    sub_1007FEF90                                                  ; +0x36, 0x100014696\ncmp     r15d, eax                                                      ; +0x3b, 0x10001469b\njnb     loc_10001474F                                                  ; +0x3e, 0x10001469e\nmov     rdi, rbx                                                       ; +0x44, 0x1000146a4\nmov     esi, r15d                                                      ; +0x47, 0x1000146a7\ncall    sub_1007FEFE0                                                  ; +0x4a, 0x1000146aa\ncmp     dword ptr [rax+4E0h], 5                                        ; +0x4f, 0x1000146af\njnz     short loc_100014690                                            ; +0x56, 0x1000146b6\nmov     r12, rax                                                       ; +0x58, 0x1000146b8\nmov     esi, [rax+368h]                                                ; +0x5b, 0x1000146bb\ntest    esi, esi                                                       ; +0x61, 0x1000146c1\njle     short loc_1000146E6                                            ; +0x63, 0x1000146c3\nmov     rdi, [r14+5A0h]                                                ; +0x65, 0x1000146c5\ncall    GJBaseGameLayer__getStickyGroup                                ; +0x6c, 0x1000146cc\ntest    rax, rax                                                       ; +0x71, 0x1000146d1\njz      short loc_1000146E6                                            ; +0x74, 0x1000146d4\nmov     rdi, rax                                                       ; +0x76, 0x1000146d6\nmov     rsi, r12                                                       ; +0x79, 0x1000146d9\nmov     edx, 1                                                         ; +0x7c, 0x1000146dc\ncall    sub_1007FF140                                                  ; +0x81, 0x1000146e1\nmovzx   eax, byte ptr [r12+46Dh]                                       ; +0x86, 0x1000146e6\nmov     [r12+46Ch], al                                                 ; +0x8f, 0x1000146ef\nmov     rdi, r14                                                       ; +0x97, 0x1000146f7\nmov     rsi, r12                                                       ; +0x9a, 0x1000146fa\ncall    EditorUI__deselectObject                                       ; +0x9d, 0x1000146fd\nmov     rdi, [r14+5A0h]                                                ; +0xa2, 0x100014702\nmov     rsi, r12                                                       ; +0xa9, 0x100014709\nmov     edx, 1                                                         ; +0xac, 0x10001470c\ncall    LevelEditorLayer__removeObject                                 ; +0xb1, 0x100014711\nmov     rdi, r14                                                       ; +0xb6, 0x100014716\ncall    EditorUI__deactivateRotationControl                            ; +0xb9, 0x100014719\nmov     rdi, r14                                                       ; +0xbe, 0x10001471e\ncall    EditorUI__deactivateScaleControl                               ; +0xc1, 0x100014721\nmov     rdi, r14                                                       ; +0xc6, 0x100014726\ncall    sub_100611790                                                  ; +0xc9, 0x100014729\nmov     rdi, rbx                                                       ; +0xce, 0x10001472e\nmov     esi, r15d                                                      ; +0xd1, 0x100014731\nmov     edx, 1                                                         ; +0xd4, 0x100014734\ncall    sub_1007FF150                                                  ; +0xd9, 0x100014739\nmov     rdi, rbx                                                       ; +0xde, 0x10001473e\ncall    sub_1007FEF90                                                  ; +0xe1, 0x100014741\ncmp     r15d, eax                                                      ; +0xe6, 0x100014746\njb      loc_1000146A4                                                  ; +0xe9, 0x100014749\npop     rbx                                                            ; +0xef, 0x10001474f\npop     r12                                                            ; +0xf0, 0x100014750\npop     r14                                                            ; +0xf2, 0x100014752\npop     r15                                                            ; +0xf4, 0x100014754\npop     rbp                                                            ; +0xf6, 0x100014756\nretn                                                                   ; +0xf7, 0x100014757", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x10001436a", "EditorUI::createPrefab @ 0x100014cae", "EditorUI::spriteFromObjectString @ 0x100638a81"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}