//
// GauntletSelectLayer::loadLevelsFinished from 0x1002551cc to 0x1002552c0 (244 bytes)
//
// 2 xrefs:
// > sub_1002552DC @ 0x1002552e0
// > ??> @ 0x10090e348
//
// 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:01:33 +0000
//
void __fastcall GauntletSelectLayer::loadLevelsFinished(__int64 a1, int a2, char *__s)
{
bool v4; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v6; // [xsp+17h] [xbp-29h]
void *v7[2]; // [xsp+18h] [xbp-28h] BYREF
char v8; // [xsp+2Fh] [xbp-11h]
sub_100009900(v7, __s);
sub_100009900(__p, "get_gauntlets");
v4 = sub_1000045BC(v7, __p);
if ( v6 < 0 )
operator delete(__p[0]);
if ( v8 < 0 )
{
operator delete(v7[0]);
if ( !v4 )
return;
}
else if ( !v4 )
{
return;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 488) + 344LL))(*(_QWORD *)(a1 + 488), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 480) + 344LL))(*(_QWORD *)(a1 + 480), 0);
GauntletSelectLayer::setupGauntlets((__int64 *)a1);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 448) + 344LL))(
*(_QWORD *)(a1 + 448),
*(_QWORD *)(a1 + 440) != 0);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 456) + 344LL))(
*(_QWORD *)(a1 + 456),
*(_QWORD *)(a1 + 440) != 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 464) + 344LL))(*(_QWORD *)(a1 + 464), 1);
}