{"type": "func", "start": 4295052544, "end": 4295052796, "name": "EditorUI::deleteTypeFromObjects", "pseudocode": "// \n// EditorUI::deleteTypeFromObjects from 0x100014d00 to 0x100014dfc (252 bytes)\n// \n// 1 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x100638a91\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::deleteTypeFromObjects(__int64 a1, int a2, __int64 a3)\n{\n  __int64 result; // rax\n  unsigned int v6; // r12d\n  __int64 v7; // rax\n  __int64 v8; // r13\n  __int64 v9; // rsi\n  __int64 StickyGroup; // rax\n\n  result = sub_1007FEF90(a3);\n  if ( (_DWORD)result )\n  {\n    v6 = 0;\n    do\n    {\n      while ( 1 )\n      {\n        v7 = sub_1007FEFE0(a3, v6);\n        if ( *(_DWORD *)(v7 + 1028) == a2 )\n          break;\n        ++v6;\n        result = sub_1007FEF90(a3);\n        if ( v6 >= (unsigned int)result )\n          return result;\n      }\n      v8 = v7;\n      v9 = *(unsigned int *)(v7 + 872);\n      if ( (int)v9 > 0 )\n      {\n        StickyGroup = GJBaseGameLayer::getStickyGroup(*(_QWORD *)(a1 + 1440), v9);\n        if ( StickyGroup )\n          sub_1007FF140(StickyGroup, v8, 1);\n      }\n      *(_BYTE *)(v8 + 1132) = *(_BYTE *)(v8 + 1133);\n      EditorUI::deselectObject(a1, v8);\n      LevelEditorLayer::removeObject(*(_QWORD *)(a1 + 1440), v8, 1);\n      EditorUI::deactivateRotationControl(a1);\n      EditorUI::deactivateScaleControl(a1);\n      sub_100611790(a1);\n      sub_1007FF150(a3, v6, 1);\n      result = sub_1007FEF90(a3);\n    }\n    while ( v6 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deleteTypeFromObjects from 0x100014d00 to 0x100014dfc (252 bytes)\n; \n; 1 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x100638a91\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, 0x100014d00\nmov     rbp, rsp                                                       ; +0x1, 0x100014d01\npush    r15                                                            ; +0x4, 0x100014d04\npush    r14                                                            ; +0x6, 0x100014d06\npush    r13                                                            ; +0x8, 0x100014d08\npush    r12                                                            ; +0xa, 0x100014d0a\npush    rbx                                                            ; +0xc, 0x100014d0c\npush    rax                                                            ; +0xd, 0x100014d0d\nmov     rbx, rdx                                                       ; +0xe, 0x100014d0e\nmov     r14d, esi                                                      ; +0x11, 0x100014d11\nmov     r15, rdi                                                       ; +0x14, 0x100014d14\nmov     rdi, rdx                                                       ; +0x17, 0x100014d17\ncall    sub_1007FEF90                                                  ; +0x1a, 0x100014d1a\ntest    eax, eax                                                       ; +0x1f, 0x100014d1f\njz      loc_100014DED                                                  ; +0x21, 0x100014d21\nxor     r12d, r12d                                                     ; +0x27, 0x100014d27\njmp     short loc_100014D44                                            ; +0x2a, 0x100014d2a\nalign 10h                                                              ; +0x2c, 0x100014d2c\ninc     r12d                                                           ; +0x30, 0x100014d30\nmov     rdi, rbx                                                       ; +0x33, 0x100014d33\ncall    sub_1007FEF90                                                  ; +0x36, 0x100014d36\ncmp     r12d, eax                                                      ; +0x3b, 0x100014d3b\njnb     loc_100014DED                                                  ; +0x3e, 0x100014d3e\nmov     rdi, rbx                                                       ; +0x44, 0x100014d44\nmov     esi, r12d                                                      ; +0x47, 0x100014d47\ncall    sub_1007FEFE0                                                  ; +0x4a, 0x100014d4a\ncmp     [rax+404h], r14d                                               ; +0x4f, 0x100014d4f\njnz     short loc_100014D30                                            ; +0x56, 0x100014d56\nmov     r13, rax                                                       ; +0x58, 0x100014d58\nmov     esi, [rax+368h]                                                ; +0x5b, 0x100014d5b\ntest    esi, esi                                                       ; +0x61, 0x100014d61\njle     short loc_100014D86                                            ; +0x63, 0x100014d63\nmov     rdi, [r15+5A0h]                                                ; +0x65, 0x100014d65\ncall    GJBaseGameLayer__getStickyGroup                                ; +0x6c, 0x100014d6c\ntest    rax, rax                                                       ; +0x71, 0x100014d71\njz      short loc_100014D86                                            ; +0x74, 0x100014d74\nmov     rdi, rax                                                       ; +0x76, 0x100014d76\nmov     rsi, r13                                                       ; +0x79, 0x100014d79\nmov     edx, 1                                                         ; +0x7c, 0x100014d7c\ncall    sub_1007FF140                                                  ; +0x81, 0x100014d81\nmovzx   eax, byte ptr [r13+46Dh]                                       ; +0x86, 0x100014d86\nmov     [r13+46Ch], al                                                 ; +0x8e, 0x100014d8e\nmov     rdi, r15                                                       ; +0x95, 0x100014d95\nmov     rsi, r13                                                       ; +0x98, 0x100014d98\ncall    EditorUI__deselectObject                                       ; +0x9b, 0x100014d9b\nmov     rdi, [r15+5A0h]                                                ; +0xa0, 0x100014da0\nmov     rsi, r13                                                       ; +0xa7, 0x100014da7\nmov     edx, 1                                                         ; +0xaa, 0x100014daa\ncall    LevelEditorLayer__removeObject                                 ; +0xaf, 0x100014daf\nmov     rdi, r15                                                       ; +0xb4, 0x100014db4\ncall    EditorUI__deactivateRotationControl                            ; +0xb7, 0x100014db7\nmov     rdi, r15                                                       ; +0xbc, 0x100014dbc\ncall    EditorUI__deactivateScaleControl                               ; +0xbf, 0x100014dbf\nmov     rdi, r15                                                       ; +0xc4, 0x100014dc4\ncall    sub_100611790                                                  ; +0xc7, 0x100014dc7\nmov     rdi, rbx                                                       ; +0xcc, 0x100014dcc\nmov     esi, r12d                                                      ; +0xcf, 0x100014dcf\nmov     edx, 1                                                         ; +0xd2, 0x100014dd2\ncall    sub_1007FF150                                                  ; +0xd7, 0x100014dd7\nmov     rdi, rbx                                                       ; +0xdc, 0x100014ddc\ncall    sub_1007FEF90                                                  ; +0xdf, 0x100014ddf\ncmp     r12d, eax                                                      ; +0xe4, 0x100014de4\njb      loc_100014D44                                                  ; +0xe7, 0x100014de7\nadd     rsp, 8                                                         ; +0xed, 0x100014ded\npop     rbx                                                            ; +0xf1, 0x100014df1\npop     r12                                                            ; +0xf2, 0x100014df2\npop     r13                                                            ; +0xf4, 0x100014df4\npop     r14                                                            ; +0xf6, 0x100014df6\npop     r15                                                            ; +0xf8, 0x100014df8\npop     rbp                                                            ; +0xfa, 0x100014dfa\nretn                                                                   ; +0xfb, 0x100014dfb", "xrefs": ["EditorUI::spriteFromObjectString @ 0x100638a91"], "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"}