//
// UploadListPopup::listUploadFinished from 0xbaabe4 to 0xbaaddc (504 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UploadListPopup::listUploadFinished @ 0xbaade4
// > ??> @ 0x431f8
// > ??> @ 0x14dd640
//
// 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:51 +0000
//
__int64 __fastcall UploadListPopup::listUploadFinished(UploadListPopup *this, GJLevelList *a2)
{
__int64 v3; // x22
void (__fastcall *v4)(__int64, __int64); // x23
__int64 v5; // x0
__int64 *v6; // x22
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
const char *v9; // x1
__int64 v10; // x2
__int64 v11; // x3
bool v12; // w4
__int64 v13; // x5
const char *v14; // x6
__int64 v15; // x0
__int64 v16; // x23
cocos2d::CCNode *v17; // x24
void (__fastcall *v18)(__int64, __int64 *); // x22
__int64 v20; // [xsp+58h] [xbp+58h] BYREF
_BYTE v21[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v22; // [xsp+68h] [xbp+68h] BYREF
__int64 v23[2]; // [xsp+70h] [xbp+70h] BYREF
void *v24; // [xsp+80h] [xbp+80h]
v3 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", _stack_chk_guard);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, 1.5);
v4 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 184LL);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 86) + 544LL) + 192LL))(*(_QWORD *)(*((_QWORD *)this + 86) + 544LL));
v4(v3, v5);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v3);
LoadingCircle::fadeAndRemove(*((cocos2d::CCNode ***)this + 86));
v6 = *((__int64 **)this + 85);
v23[0] = 0;
v23[1] = 0;
v24 = nullptr;
std::string::__init(v23, "Upload Complete", 0xFu);
TextArea::setString(v6, (char *)v23);
v7 = (cocos2d::CCDirector *)LOBYTE(v23[0]);
if ( (v23[0] & 1) != 0 )
operator delete(v24);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v20, v8);
v15 = ButtonSprite::create((ButtonSprite *)"Back", v9, v10, v11, v12, v13, v14);
v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, (__int64)UploadListPopup::onReturnToList, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16);
v17 = *((cocos2d::CCNode **)this + 69);
v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v21,
*(float *)&v20 * 0.5,
(float)((float)(*((float *)&v20 + 1) * 0.5) + -150.0) + 25.0);
cocos2d::CCNode::convertToNodeSpace(&v22, v17, (const cocos2d::CCPoint *)v21);
v18(v16, &v22);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 344LL))(*((_QWORD *)this + 87), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 1056LL))(*((_QWORD *)this + 87), 0);
return _stack_chk_guard;
}