//
// GauntletSelectLayer::loadLevelsFailed from 0x1001bf79c to 0x1001bf850 (180 bytes)
//
// 2 xrefs:
// > sub_1001BF86C @ 0x1001bf870
// > ??> @ 0x1007b69e8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GauntletSelectLayer::loadLevelsFailed(GauntletSelectLayer *a1, const char *a2, int a3)
{
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, (char *)a2);
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 *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);
((void (__fastcall *)(TextArea *, __int64))a1->m_tryAgainText->setVisible)(a1->m_tryAgainText, 1);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_refreshButton->setVisible)(a1->m_refreshButton, 1);
}