//
// UploadPopup::onReturnToLevel from 0x10026ed90 to 0x10026ee0b (123 bytes)
//
// 1 xrefs:
// > UploadPopup::levelUploadFinished @ 0x10026ecbc
//
// This function is hookable on this platform (idp: pc, 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 12:27:36 +0000
//
void __fastcall UploadPopup::onReturnToLevel(__int64 *a1)
{
__int64 v1; // r14
__int64 v2; // rax
char *v3; // rsi
__int64 v4; // rdx
__int64 v5; // rdx
__int64 v6; // rax
double v7; // xmm0_8
__int64 v8; // rax
__int64 v9; // rax
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1072))(a1, 0);
v1 = cocos2d::CCDirector::sharedDirector(a1, 0);
v2 = EditLevelLayer::scene(a1[84], 0);
v3 = cocos2d::CCTransitionFade::create_1(v2, 0.5);
cocos2d::CCDirector::replaceScene(v1, v3);
GameManager::sharedState(v1, v3, v4);
if ( *(_DWORD *)(v6 + 660) == *(_DWORD *)(v6 + 664) )
{
*(_QWORD *)&v7 = GameManager::sharedState(v1, v3, v5).u64[0];
if ( !*(_BYTE *)(v8 + 656) )
{
v9 = GameLevelManager::sharedState(v7);
GameLevelManager::updateUserScore(v9);
}
}
}