//
// UploadListPopup::listUploadFailed from 0x58f8bc to 0x58fa3a (382 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UploadListPopup::listUploadFailed @ 0x58fa60
//
// 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 UploadListPopup::listUploadFailed(UploadListPopup *a1, GJLevelList *a2, int a3)
{
cocos2d::CCSprite *v5; // r5
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
const cocos2d::CCPoint *v7; // r0
TextArea *m_textArea; // r9
cocos2d::CCDirector *v9; // r0
const char *v10; // r1
ButtonSprite *v11; // r0
CCMenuItemSpriteExtra *v12; // r9
cocos2d::CCMenu *m_buttonMenu; // r11
void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
_BYTE v15[4]; // [sp+8h] [bp-2Ch] BYREF
cocos2d::CCSize v16; // [sp+Ch] [bp-28h] BYREF
cocos2d::CCPoint v17; // [sp+14h] [bp-20h] BYREF
cocos2d::CCPoint v18; // [sp+1Ch] [bp-18h] BYREF
void (*v19)(UploadListPopup *, cocos2d::CCObject *); // [sp+24h] [bp-10h]
int v20; // [sp+28h] [bp-Ch]
v5 = cocos2d::CCSprite::createWithSpriteFrameName("exMark_001.png");
setPosition = v5->setPosition;
v7 = a1->m_loadingCircle->m_sprite->getPosition(a1->m_loadingCircle->m_sprite);
setPosition(v5, v7);
a1->m_mainLayer->addChild(a1->m_mainLayer, v5);
LoadingCircle::fadeAndRemove(a1->m_loadingCircle);
sub_776584((int)v15, "Upload Failed. Please try again later.");
if ( a3 < -1 )
{
sub_774544((int)v15, " (");
GameToolbox::intToString((GameToolbox *)&v17, a3);
sub_77441C(v15, &v17);
sub_774008(&v17);
sub_774544((int)v15, ")");
}
m_textArea = a1->m_textArea;
sub_775C20(&v18);
TextArea::setString((int)m_textArea, &v18);
sub_774008(&v18);
v9 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v16, v9);
v11 = ButtonSprite::create((ButtonSprite *)"Close", v10);
v20 = 0;
v19 = UploadListPopup::onClose;
v12 = CCMenuItemSpriteExtra::create(
v11,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(UploadListPopup::onClose, (unsigned int)a1));
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v12);
m_buttonMenu = a1->m_buttonMenu;
v14 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v17, v16.width * 0.5, (float)((float)(v16.height * 0.5) - 150.0) + 25.0);
cocos2d::CCNode::convertToNodeSpace(&v18, m_buttonMenu, &v17);
v14(v12, &v18);
a1->m_backButton->setVisible(a1->m_backButton, 0);
a1->m_backButton->setEnabled(a1->m_backButton, 0);
sub_774008(v15);
}