//
// LabelGameObject::setupCustomSprites from 0x1001a17d0 to 0x1001a1869 (153 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac8bf0
//
// 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:25:59 +0000
//
void __fastcall LabelGameObject::setupCustomSprites(__int64 a1, __int128 *a2)
{
__int16 v2; // [rsp+8h] [rbp-48h] BYREF
char v3; // [rsp+Ah] [rbp-46h]
void *v4; // [rsp+18h] [rbp-38h]
__int128 v5; // [rsp+20h] [rbp-30h] BYREF
void *__p; // [rsp+30h] [rbp-20h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v5, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v5 = *a2;
}
GameObject::setupCustomSprites(a1, &v5);
if ( (v5 & 1) != 0 )
operator delete(__p);
if ( *(_DWORD *)(a1 + 1028) == 1615 )
{
*(_BYTE *)(a1 + 559) = 1;
v2 = 12290;
v3 = 0;
LabelGameObject::createLabel(a1, &v2);
if ( (v2 & 1) != 0 )
operator delete(v4);
}
}