//
// GauntletLayer::loadLevelsFailed from 0x60e15c to 0x60e1f0 (148 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GauntletLayer::loadLevelsFailed @ 0x60e1f8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:49 +0000
//
int __fastcall GauntletLayer::loadLevelsFailed(const char **this, const char *a2, int a3)
{
int v5; // r0
size_t v6; // r0
_BOOL4 v7; // r8
unsigned __int8 v9[12]; // [sp+4h] [bp-Ch] BYREF
int v10[3]; // [sp+10h] [bp+0h] BYREF
v5 = GameLevelManager::sharedState((GameLevelManager *)this);
GameLevelManager::getGauntletSearchKey((GameLevelManager *)v9, v5, *(this + 82));
memset(v10, 0, sizeof(v10));
v6 = strlen(a2);
std::string::__init(v10, a2, v6);
v7 = sub_60DA42(v9, (unsigned __int8 *)v10);
std::string::~string((int)v10);
if ( v7 )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 81) + 172))(*(this + 81), 0);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 87) + 172))(*(this + 87), 1);
}
return std::string::~string((int)v9);
}