//
// UploadListPopup::listUploadFailed from 0x6d9c68 to 0x6d9dfe (406 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UploadListPopup::listUploadFailed @ 0x6d9e24
//
// 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:57:10 +0000
//
int __fastcall UploadListPopup::listUploadFailed(UploadListPopup *this, GJLevelList *a2, int a3)
{
int v5; // r5
void (__fastcall *v6)(int, int); // r6
int v7; // r0
int v8; // r1
int v9; // r2
int v10; // r8
char *v11; // r1
size_t v12; // r2
cocos2d::CCDirector *v13; // r0
const char *v14; // r1
ButtonSprite *v15; // r0
int v16; // r6
const cocos2d::CCPoint *v17; // r11
void (__fastcall *v18)(int, _BYTE *); // r10
float v20[2]; // [sp+8h] [bp-4Ch] BYREF
_BYTE v21[8]; // [sp+10h] [bp-44h] BYREF
_BYTE v22[8]; // [sp+18h] [bp-3Ch] BYREF
int (__fastcall *v23)(UploadListPopup *, cocos2d::CCObject *); // [sp+20h] [bp-34h]
int v24; // [sp+24h] [bp-30h]
int v25[3]; // [sp+28h] [bp-2Ch] BYREF
unsigned __int8 v26; // [sp+34h] [bp-20h] BYREF
char v27; // [sp+35h] [bp-1Fh] BYREF
size_t v28; // [sp+38h] [bp-1Ch]
char *v29; // [sp+3Ch] [bp-18h]
int v30[3]; // [sp+40h] [bp-14h] BYREF
v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"exMark_001.png", (const char *)a2);
v6 = *(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 92);
v7 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 133) + 440) + 96))(*(_DWORD *)(*((_DWORD *)this + 133) + 440));
v6(v5, v7);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v5);
LoadingCircle::fadeAndRemove(*((cocos2d::CCNode ***)this + 133), v8, v9);
memset(v25, 0, sizeof(v25));
std::string::__init(v25, "Upload Failed. Please try again later.", 0x26u);
if ( a3 < -1 )
{
std::string::append(v25, " (");
GameToolbox::intToString((GameToolbox *)&v26, a3);
if ( (v26 & 1) != 0 )
{
v11 = v29;
v12 = v28;
}
else
{
v12 = (int)v26 >> 1;
v11 = &v27;
}
std::string::append(v25, v11, v12);
std::string::~string((int)&v26);
std::string::append(v25, ")");
}
v10 = *((_DWORD *)this + 132);
std::string::basic_string(v30, (int)v25);
TextArea::setString(v10, v30);
v13 = (cocos2d::CCDirector *)std::string::~string((int)v30);
cocos2d::CCDirector::sharedDirector(v13);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20);
v15 = ButtonSprite::create((ButtonSprite *)"Close", v14);
v24 = 0;
v23 = UploadListPopup::onClose;
v16 = CCMenuItemSpriteExtra::create((int)v15, 0, (int)this, (int)UploadListPopup::onClose, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v16);
v17 = *((const cocos2d::CCPoint **)this + 111);
v18 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v20[0] * 0.5, (float)((float)(v20[1] * 0.5) - 150.0) + 25.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v22, v17);
v18(v16, v22);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 528))(*((_DWORD *)this + 134), 0);
return std::string::~string((int)v25);
}