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