//
// UploadListPopup::listUploadFailed from 0xbb09f0 to 0xbb0cdc (748 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UploadListPopup::listUploadFailed @ 0xbb0ce4
// > ??> @ 0x78988
// > ??> @ 0x14dd648
//
// 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:02:55 +0000
//
__int64 __fastcall UploadListPopup::listUploadFailed(UploadListPopup *this, GJLevelList *a2, int a3)
{
__int64 v5; // x21
void (__fastcall *v6)(__int64, __int64); // x24
__int64 v7; // x0
__int64 *v8; // x22
cocos2d::CCDirector *v9; // x0
cocos2d::CCDirector *v10; // x0
const char *v11; // x1
__int64 v12; // x2
__int64 v13; // x3
bool v14; // w4
__int64 v15; // x5
const char *v16; // x6
__int64 v17; // x0
__int64 v18; // x21
void (__fastcall *v19)(__int64, __int64 *); // x24
cocos2d::CCNode *v20; // x25
char *v22; // x1
size_t v23; // x2
__int64 v24; // [xsp+58h] [xbp+58h] BYREF
_BYTE v25[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v26; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCDirector *v27; // [xsp+70h] [xbp+70h] BYREF
size_t v28; // [xsp+78h] [xbp+78h]
void *v29; // [xsp+80h] [xbp+80h]
unsigned __int64 v30[2]; // [xsp+88h] [xbp+88h] BYREF
void *v31; // [xsp+98h] [xbp+98h]
cocos2d::CCDirector *v32; // [xsp+A0h] [xbp+A0h] BYREF
size_t v33; // [xsp+A8h] [xbp+A8h]
void *v34; // [xsp+B0h] [xbp+B0h]
v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"exMark_001.png", _stack_chk_guard);
v6 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 86) + 544LL) + 192LL))(*(_QWORD *)(*((_QWORD *)this + 86) + 544LL));
v6(v5, v7);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v5);
LoadingCircle::fadeAndRemove(*((cocos2d::CCNode ***)this + 86));
v27 = nullptr;
v28 = 0;
v29 = nullptr;
std::string::__init((__int64 *)&v27, "Upload Failed. Please try again later.", 0x26u);
if ( a3 < -1 )
{
std::string::append((__int64)&v27, " (", 2u);
GameToolbox::intToString(v30, (GameToolbox *)(unsigned int)a3);
if ( (v30[0] & 1) != 0 )
{
v22 = (char *)v31;
v23 = v30[1];
}
else
{
v23 = LOBYTE(v30[0]) >> 1;
v22 = (char *)v30 + 1;
}
std::string::append((__int64)&v27, v22, v23);
if ( (v30[0] & 1) != 0 )
operator delete(v31);
std::string::append((__int64)&v27, ")", 1u);
}
v32 = nullptr;
v33 = 0;
v34 = nullptr;
v8 = *((__int64 **)this + 85);
if ( ((unsigned __int8)v27 & 1) != 0 )
{
std::string::__init((__int64 *)&v32, v29, v28);
}
else
{
v32 = v27;
v33 = v28;
v34 = v29;
}
TextArea::setString(v8, (char *)&v32);
v9 = (cocos2d::CCDirector *)(unsigned __int8)v32;
if ( ((unsigned __int8)v32 & 1) != 0 )
operator delete(v34);
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize(&v24, v10);
v17 = ButtonSprite::create((ButtonSprite *)"Close", v11, v12, v13, v14, v15, v16);
v18 = CCMenuItemSpriteExtra::create(v17, 0, (__int64)this, (__int64)UploadListPopup::onClose, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v18);
v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
v20 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v25,
*(float *)&v24 * 0.5,
(float)((float)(*((float *)&v24 + 1) * 0.5) + -150.0) + 25.0);
cocos2d::CCNode::convertToNodeSpace(&v26, v20, (const cocos2d::CCPoint *)v25);
v19(v18, &v26);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 344LL))(*((_QWORD *)this + 87), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 1056LL))(*((_QWORD *)this + 87), 0);
if ( ((unsigned __int8)v27 & 1) != 0 )
operator delete(v29);
return _stack_chk_guard;
}