//
// LevelPickerPopup::loadLevelsFailed from 0xc71154 to 0xc711fc (168 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelPickerPopup::loadLevelsFailed @ 0xc71200
// > ??> @ 0xbb8d0
// > ??> @ 0x14eeae8
//
// 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 13:05:30 +0000
//
__int64 __fastcall LevelPickerPopup::loadLevelsFailed(__int64 this, char *a2)
{
__int64 v3; // x19
size_t v4; // x4
if ( *(_BYTE *)(this + 808) )
{
v3 = this;
if ( !a2 )
goto LABEL_8;
this = strlen(a2);
v4 = *(_BYTE *)(v3 + 840) >> 1;
if ( (*(_BYTE *)(v3 + 840) & 1) != 0 )
v4 = *(_QWORD *)(v3 + 848);
if ( v4 == this )
{
this = std::string::compare(v3 + 840, 0, 0xFFFFFFFFFFFFFFFFLL, a2, v4);
if ( !(_DWORD)this )
{
LABEL_8:
PagedListPopup::fadeLoading((PagedListPopup *)v3);
if ( *(_BYTE *)(v3 + 809) )
return PagedListPopup::showStatus((PagedListPopup *)v3, (cocos2d::CCLabelBMFont *)"No lists found");
else
return PagedListPopup::showStatus((PagedListPopup *)v3, (cocos2d::CCLabelBMFont *)"No levels found");
}
}
}
return this;
}