//
// UploadListPopup::listUploadFinished from 0x14030b710 to 0x14030b8db (459 bytes)
//
// 2 xrefs:
// > ??> @ 0x14058a1c0
// > ??> @ 0x1406d4688
//
// 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::listUploadFinished(UploadListPopup *a1, GJLevelList *a2)
{
struct cocos2d::CCSprite *v3; // rdi
cocos2d::CCSprite_vtbl *v4; // rbx
__int64 v5; // rax
TextArea *v6; // rcx
__int64 v7; // rcx
cocos2d::CCDirector *v8; // rax
ButtonSprite *v9; // rax
CCMenuItemSpriteExtra *v10; // rdi
float v11; // xmm0_4
CCMenuItemSpriteExtra_vtbl *v12; // rbx
struct cocos2d::CCPoint v13; // rax
char v14[16]; // [rsp+40h] [rbp-38h] BYREF
__int64 v15; // [rsp+50h] [rbp-28h]
__int64 v16; // [rsp+58h] [rbp-20h]
float v17; // [rsp+80h] [rbp+8h]
struct cocos2d::CCPoint v18; // [rsp+98h] [rbp+20h] BYREF
v3 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
((void (__fastcall *)(struct cocos2d::CCSprite *))v3->setScale_0)(v3);
v4 = v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)&a1->m_uAutoReleaseCount + 544LL) + 200LL))(*(_QWORD *)(*(_QWORD *)&a1->m_uAutoReleaseCount + 544LL));
v4->setPosition_0(v3, (const cocos2d::CCPoint *)v5);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)&a1[-1].m_controlConnected + 448LL))(
*(_QWORD *)&a1[-1].m_controlConnected,
v3);
LoadingCircle::fadeAndRemove(*(LoadingCircle **)&a1->m_uAutoReleaseCount);
v6 = *(TextArea **)&a1->m_nTag;
v15 = 15;
v16 = 15;
strcpy(v14, "Upload Complete");
TextArea::setString(v6, (__int64)v14);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(v8);
v9 = ButtonSprite::create_1("Back", 0, 0, 1.0, 0, "goldFont.fnt", "GJ_button_01.png", 0.0);
v10 = CCMenuItemSpriteExtra::create(
v9,
nullptr,
(UploadListPopup *)((char *)a1 - 632),
(cocos2d::SEL_MenuHandler *)UploadListPopup::onReturnToList);
v11 = (*(float (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)&a1[-1].m_ZOrder + 448LL))(
*(_QWORD *)&a1[-1].m_ZOrder,
v10);
v12 = v10->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v11, v17 * 0.5);
v13 = cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)&a1[-1].m_ZOrder, &v18);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v12->setPosition_0)(v10, v13);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uIndexInArray + 320LL))(
*(_QWORD *)&a1->m_uIndexInArray,
0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uIndexInArray + 920LL))(
*(_QWORD *)&a1->m_uIndexInArray,
0);
}