//
// MPLobbyLayer::onClosePopup from 0x10048bb90 to 0x10048bc23 (147 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b4e0a8
//
// 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:30:44 +0000
//
__int64 __fastcall MPLobbyLayer::onClosePopup(_QWORD *a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // r14
_BYTE *v6; // rax
char *v7; // rax
result = UploadActionPopup::closePopup(a2);
v4 = a1[58];
if ( v4 == a2 )
{
if ( *(_BYTE *)(a2 + 696) == 1 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == 1 )
{
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
v5 = cocos2d::CCDirector::sharedDirector();
v6 = MultiplayerLayer::scene((__int64)a1, 0);
v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5);
cocos2d::CCDirector::replaceScene(v5, v7);
}
result = a1[58];
*(_QWORD *)(result + 664) = 0;
a1[58] = 0;
}
return result;
}