//
// sub_100479A2C from 0x100479a2c to 0x100479ae8 (188 bytes)
//
// 1 xrefs:
// > EditorUI::spriteFromObjectString @ 0x100184d40
//
// This function is hookable on this platform (idp: arm, 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:05:43 +0000
//
__int64 __fastcall sub_100479A2C(__int64 a1, int a2, __int64 a3)
{
__int64 result; // x0
__int64 v7; // x22
__int64 v8; // x0
__n128 v9; // q0
__int64 v10; // x23
int v11; // w1
__int64 v12; // x0
result = sub_1002E757C(a3);
if ( (_DWORD)result )
{
v7 = 0;
do
{
v8 = sub_1002E75A0(a3, v7);
if ( *(_DWORD *)(v8 + 1028) == a2 )
{
v10 = v8;
v11 = *(_DWORD *)(v8 + 872);
if ( v11 >= 1 )
{
v9.n128_f64[0] = GJBaseGameLayer::getStickyGroup(*(_QWORD *)(a1 + 1440), v11);
if ( v12 )
sub_1002E765C(v12);
}
EditorUI::deleteObject(a1, v10, 1, v9);
sub_1002E7664(a3, v7, 1);
}
else
{
v7 = (unsigned int)(v7 + 1);
}
result = sub_1002E757C(a3);
}
while ( (unsigned int)v7 < (unsigned int)result );
}
return result;
}