//
// LevelInfoLayer::levelDownloadFailed from 0x6d6230 to 0x6d636c (316 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::levelDownloadFailed @ 0x6d6374
// > ??> @ 0x32430
// > ??> @ 0x115b6b8
//
// 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 LevelInfoLayer::levelDownloadFailed(LevelInfoLayer *a1, int a2)
{
FLAlertLayer *v2; // x20
void *v3; // x0
AppDelegate *v4; // x0
FLAlertLayer_vtbl *v5; // x1
unsigned int *v6; // x2
int v7; // w1
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
a1->m_circle->setVisible(a1->m_circle, 0);
sub_D153B8((int)&v8, "Level download failed, please try again later.");
v2 = FLAlertLayer::create(0, (__int64)"Error", (__int64)&v8);
v3 = (void *)(v8 - 24);
if ( (__int64 *)(v8 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)(v8 - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *(_DWORD *)(v8 - 8);
*(_DWORD *)(v8 - 8) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v3);
}
v4 = AppDelegate::get();
v5 = v2->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v2->m_scene = (cocos2d::CCNode *)v4->cocos2d::CCSceneDelegate::__vftable;
v5->show(v2);
}