//
// sub_1004938C0 from 0x1004938c0 to 0x1004939ce (270 bytes)
//
// 4 xrefs:
// > sub_1004939E0 @ 0x1004939e5
// > sub_1004939F0 @ 0x1004939fc
// > sub_100493A10 @ 0x100493a19
// > sub_100493A30 @ 0x100493a43
//
// 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
//
__int64 __fastcall sub_1004938C0(__int64 a1)
{
__int64 v1; // rax
*(_QWORD *)a1 = off_1009437F0;
*(_QWORD *)(a1 + 320) = off_100943CD0;
*(_QWORD *)(a1 + 328) = &off_100943D40;
*(_QWORD *)(a1 + 336) = off_100943D58;
*(_QWORD *)(a1 + 344) = off_100943D78;
*(_QWORD *)(a1 + 352) = off_100943D98;
*(_QWORD *)(a1 + 408) = &off_100943DC0;
*(_QWORD *)(a1 + 416) = &off_100943DF0;
*(_QWORD *)(a1 + 424) = off_100943E08;
*(_QWORD *)(a1 + 432) = &off_100943E28;
*(_QWORD *)(a1 + 440) = off_100943E40;
if ( GJMultiplayerManager::sharedState()->m_mpDelegate == (GJMPDelegate *)(a1 + 408) )
GJMultiplayerManager::sharedState()->m_mpDelegate = nullptr;
if ( GJMultiplayerManager::sharedState()->m_uploadDelegate == (UploadActionDelegate *)(a1 + 424) )
GJMultiplayerManager::sharedState()->m_uploadDelegate = nullptr;
v1 = *(_QWORD *)(a1 + 464);
if ( v1 )
*(_QWORD *)(v1 + 632) = 0;
return cocos2d::CCLayer::dCCLayer(a1);
}