//
// MenuLayer::dMenuLayer from 0x10037a980 to 0x10037aa66 (230 bytes)
//
// 4 xrefs:
// > sub_10037AAC0 @ 0x10037aac5
// > sub_10037AAD0 @ 0x10037aadc
// > sub_10037AAF0 @ 0x10037aaf9
// > sub_10037AB10 @ 0x10037ab23
//
// 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:29:06 +0000
//
__int64 __fastcall MenuLayer::dMenuLayer(_QWORD *a1)
{
_QWORD *v2; // rsi
__int64 v3; // rdi
*a1 = off_100B279A8;
a1[40] = off_100B27E50;
a1[41] = &off_100B27EC0;
a1[42] = off_100B27ED8;
a1[43] = off_100B27EF8;
a1[44] = off_100B27F20;
a1[51] = &off_100B27F50;
a1[52] = &off_100B27F68;
a1[53] = off_100B27F80;
v2 = a1 + 53;
v3 = MusicDownloadManager::sharedState(a1);
MusicDownloadManager::removeMusicDownloadDelegate(v3, v2);
*(_QWORD *)(GameManager::sharedState() + 576) = 0;
if ( *(_QWORD **)(GooglePlayManager::sharedState(v3) + 320) == a1 + 52 )
*(_QWORD *)(GooglePlayManager::sharedState(v3) + 320) = 0;
*(_BYTE *)(GameManager::sharedState() + 584) = 0;
return sub_1004A9420(a1);
}