//
// sub_100144F30 from 0x100144f30 to 0x100144fff (207 bytes)
//
// 8 xrefs:
// > sub_1000EC8E0 @ 0x1000ece73
// > sub_1000EC8E0 @ 0x1000ecf4c
// > GJBaseGameLayer::resetActiveEnterEffects @ 0x1000fa384
// > GJBaseGameLayer::resetActiveEnterEffects @ 0x1000fa399
// > GJBaseGameLayer::resetLevelVariables @ 0x1001387b5
// > GJBaseGameLayer::resetLevelVariables @ 0x1001387c1
// > sub_1005CA540 @ 0x1005ca5f5
// > sub_1005CA540 @ 0x1005ca60e
//
// 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:24:57 +0000
//
void __fastcall sub_100144F30(_QWORD *a1)
{
_QWORD *v2; // r14
__int64 v3; // rsi
void *v4; // rdi
_QWORD *v5; // r12
__int64 v6; // r13
__int64 v7; // r15
_QWORD *v8; // rsi
void *v9; // rdi
if ( a1[3] )
{
v2 = (_QWORD *)a1[2];
if ( v2 )
{
do
{
v5 = (_QWORD *)*v2;
v6 = v2[3];
if ( v6 )
{
v7 = v2[4];
v4 = (void *)v2[3];
if ( v7 != v6 )
{
do
{
v9 = *(void **)(v7 - 32);
if ( v9 )
{
*(_QWORD *)(v7 - 24) = v9;
operator delete(v9);
}
v8 = *(_QWORD **)(v7 - 232);
v7 -= 240;
sub_10001ADF0(v7, v8);
}
while ( v7 != v6 );
v4 = (void *)v2[3];
}
v2[4] = v6;
operator delete(v4);
}
operator delete(v2);
v2 = v5;
}
while ( v5 );
}
a1[2] = 0;
v3 = a1[1];
if ( v3 )
__bzero(*a1, 8 * v3);
a1[3] = 0;
}
}