//
// EditorUI::deleteTypeFromObjects from 0x100014d00 to 0x100014dfc (252 bytes)
//
// 1 xrefs:
// > EditorUI::spriteFromObjectString @ 0x100638a91
//
// 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 12:18:54 +0000
//
__int64 __fastcall EditorUI::deleteTypeFromObjects(__int64 a1, int a2, __int64 a3)
{
__int64 result; // rax
unsigned int v6; // r12d
__int64 v7; // rax
__int64 v8; // r13
__int64 v9; // rsi
__int64 StickyGroup; // rax
result = sub_1007FEF90(a3);
if ( (_DWORD)result )
{
v6 = 0;
do
{
while ( 1 )
{
v7 = sub_1007FEFE0(a3, v6);
if ( *(_DWORD *)(v7 + 1028) == a2 )
break;
++v6;
result = sub_1007FEF90(a3);
if ( v6 >= (unsigned int)result )
return result;
}
v8 = v7;
v9 = *(unsigned int *)(v7 + 872);
if ( (int)v9 > 0 )
{
StickyGroup = GJBaseGameLayer::getStickyGroup(*(_QWORD *)(a1 + 1440), v9);
if ( StickyGroup )
sub_1007FF140(StickyGroup, v8, 1);
}
*(_BYTE *)(v8 + 1132) = *(_BYTE *)(v8 + 1133);
EditorUI::deselectObject(a1, v8);
LevelEditorLayer::removeObject(*(_QWORD *)(a1 + 1440), v8, 1);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
sub_100611790(a1);
sub_1007FF150(a3, v6, 1);
result = sub_1007FEF90(a3);
}
while ( v6 < (unsigned int)result );
}
return result;
}