//
// GauntletLayer::loadLevelsFailed from 0x100233910 to 0x1002339b8 (168 bytes)
//
// 2 xrefs:
// > sub_1002339D8 @ 0x1002339dc
// > ??> @ 0x1007c6de8
//
// 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 GauntletLayer::loadLevelsFailed(GauntletLayer *a1, const char *a2, int a3)
{
bool v5; // w0
bool v6; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v8; // [xsp+17h] [xbp-29h]
void *v9[2]; // [xsp+18h] [xbp-28h] BYREF
char v10; // [xsp+2Fh] [xbp-11h]
GameLevelManager::sharedState();
GameLevelManager::getGauntletSearchKey(a1->m_gauntletType, v9);
sub_100009900(__p, (char *)a2);
v5 = sub_1000045BC(v9, __p);
v6 = v5;
if ( v8 < 0 )
{
operator delete(__p[0]);
if ( !v6 )
goto LABEL_6;
goto LABEL_5;
}
if ( v5 )
{
LABEL_5:
((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);
((void (__fastcall *)(TextArea *, __int64))a1->m_tryAgainText->setVisible)(a1->m_tryAgainText, 1);
}
LABEL_6:
if ( v10 < 0 )
operator delete(v9[0]);
}