//
// sub_100494D00 from 0x100494d00 to 0x100494d8e (142 bytes)
//
// 1 xrefs:
// > ??> @ 0x100943df0
//
// 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 __fastcall sub_100494D00(__int64 a1, UploadActionPopup *a2)
{
UploadActionPopup *v3; // rdi
cocos2d::CCDirector *v4; // r14
cocos2d::CCScene *v5; // rax
cocos2d::CCTransitionFade *v6; // rax
UploadActionPopup::closePopup(a2);
v3 = *(UploadActionPopup **)(a1 + 48);
if ( v3 == a2 )
{
if ( a2->m_succeeded && ((unsigned int (__fastcall *)(UploadActionPopup *))v3->getTag)(v3) == 1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 416) + 1056LL))(a1 - 416, 0);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = MultiplayerLayer::scene();
v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}
*(_QWORD *)(*(_QWORD *)(a1 + 48) + 632LL) = 0;
*(_QWORD *)(a1 + 48) = 0;
}
}