//
// sub_100144FDC from 0x100144fdc to 0x100145068 (140 bytes)
//
// 3 xrefs:
// > PlayLayer::processCreateObjectsFromSetup @ 0x10013efcc
// > LevelEditorLayer::createObjectsFromSetup @ 0x1003f7a94
// > LevelEditorLayer::createObjectsFromString @ 0x1003f96c0
//
// 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 10:59:33 +0000
//
void __fastcall sub_100144FDC(_QWORD *a1, unsigned __int64 a2)
{
void **v3; // x20
unsigned __int64 v4; // x8
bool v5; // cf
unsigned __int64 v6; // x8
__int64 v7; // x21
int v8; // w8
v3 = (void **)a1[1];
v4 = 0xAAAAAAAAAAAAAAABLL * (((__int64)v3 - *a1) >> 3);
v5 = a2 >= v4;
v6 = a2 - v4;
if ( v6 != 0 && v5 )
{
sub_100151660(a1, v6);
}
else if ( !v5 )
{
v7 = *a1 + 24 * a2;
while ( v3 != (void **)v7 )
{
v8 = *((char *)v3 - 1);
v3 -= 3;
if ( v8 < 0 )
operator delete(*v3);
}
a1[1] = v7;
}
}