//
// sub_10048BC30 from 0x10048bc30 to 0x10048bcbe (142 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b4e1f0
//
// 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 sub_10048BC30(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // r14
_BYTE *v6; // rax
char *v7; // rax
result = UploadActionPopup::closePopup(a2);
v4 = *(_QWORD *)(a1 + 48);
if ( v4 == a2 )
{
if ( *(_BYTE *)(a2 + 696) == 1 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == 1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 416) + 1072LL))(a1 - 416, 0);
v5 = cocos2d::CCDirector::sharedDirector();
v6 = MultiplayerLayer::scene(a1 - 416, 0);
v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5);
cocos2d::CCDirector::replaceScene(v5, v7);
}
result = *(_QWORD *)(a1 + 48);
*(_QWORD *)(result + 664) = 0;
*(_QWORD *)(a1 + 48) = 0;
}
return result;
}