//
// GauntletSelectLayer::loadLevelsFailed from 0x1002552e4 to 0x100255398 (180 bytes)
//
// 2 xrefs:
// > sub_1002553B4 @ 0x1002553b8
// > ??> @ 0x10090e350
//
// 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::loadLevelsFailed(_QWORD **a1, char *a2)
{
bool v3; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v5; // [xsp+17h] [xbp-29h]
void *v6[2]; // [xsp+18h] [xbp-28h] BYREF
char v7; // [xsp+2Fh] [xbp-11h]
sub_100009900(v6, a2);
sub_100009900(__p, "get_gauntlets");
v3 = sub_1000045BC(v6, __p);
if ( v5 < 0 )
operator delete(__p[0]);
if ( v7 < 0 )
{
operator delete(v6[0]);
if ( !v3 )
return;
}
else if ( !v3 )
{
return;
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[61] + 344LL))(a1[61], 0);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[60] + 344LL))(a1[60], 1);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[58] + 344LL))(a1[58], 1);
}