//
// GameSettingsLayer::dropDownLayerWillClose from 0xc04a60 to 0xc04a94 (52 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GameSettingsLayer::dropDownLayerWillClose @ 0xc04a98
// > ??> @ 0xe0ea8
// > ??> @ 0x14e36e8
//
// This function is hookable on this platform (idp: arm, 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 13:03:50 +0000
//
__int64 __fastcall GameSettingsLayer::dropDownLayerWillClose(GameSettingsLayer *this, GJDropDownLayer *a2)
{
__int64 result; // x0
GameManager *v3; // x0
result = *(_QWORD *)(GameManager::sharedState(this) + 544);
if ( !result )
{
result = *(_QWORD *)(GameManager::sharedState(nullptr) + 552);
if ( !result )
{
v3 = (GameManager *)GameManager::sharedState(nullptr);
return GameManager::fadeInMenuMusic(v3);
}
}
return result;
}