//
// UploadPopup::levelUploadFinished from 0x4a2a04 to 0x4a2b42 (318 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UploadPopup::levelUploadFinished @ 0x4a2b60
//
// 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:49:52 +0000
//
int __fastcall UploadPopup::levelUploadFinished(UploadPopup *this, GJGameLevel *a2)
{
int v3; // r5
void (__fastcall *v4)(int, int); // r6
int v5; // r0
int v6; // r1
int v7; // r2
int v8; // r6
cocos2d::CCDirector *v9; // r0
const char *v10; // r1
ButtonSprite *v11; // r0
int v12; // r8
const cocos2d::CCPoint *v13; // r11
void (__fastcall *v14)(int, _BYTE *); // r10
float v16[2]; // [sp+8h] [bp-34h] BYREF
_BYTE v17[8]; // [sp+10h] [bp-2Ch] BYREF
_BYTE v18[8]; // [sp+18h] [bp-24h] BYREF
int (__fastcall *v19)(EditLevelLayer **, cocos2d::CCObject *); // [sp+20h] [bp-1Ch]
int v20; // [sp+24h] [bp-18h]
int v21[3]; // [sp+28h] [bp-14h] BYREF
v3 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", (const char *)a2);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 80))(v3, 1069547520);
v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 92);
v5 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 133) + 440) + 96))(*(_DWORD *)(*((_DWORD *)this + 133) + 440));
v4(v3, v5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v3);
LoadingCircle::fadeAndRemove(*((cocos2d::CCNode ***)this + 133), v6, v7);
v8 = *((_DWORD *)this + 132);
memset(v21, 0, sizeof(v21));
std::string::__init(v21, "Upload Complete", 0xFu);
TextArea::setString(v8, v21);
v9 = (cocos2d::CCDirector *)std::string::~string((int)v21);
cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v16);
v11 = ButtonSprite::create((ButtonSprite *)"Back", v10);
v19 = UploadPopup::onReturnToLevel;
v20 = 0;
v12 = CCMenuItemSpriteExtra::create((int)v11, 0, (int)this, (int)UploadPopup::onReturnToLevel, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v12);
v13 = *((const cocos2d::CCPoint **)this + 111);
v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v16[0] * 0.5, (float)((float)(v16[1] * 0.5) - 150.0) + 25.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v18, v13);
v14(v12, v18);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 528))(*((_DWORD *)this + 134), 0);
}