//
// EditorSoundBrowserLayer::onClose from 0x782164 to 0x7821d2 (110 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:29 +0000
//
int __fastcall EditorSoundBrowserLayer::onClose(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)
{
GameLevelManager *v4; // r0
EditorSoundBrowserLayer **v5; // r0
FLAlertLayer *v6; // r0
int v7; // r0
v4 = (GameLevelManager *)GameLevelManager::sharedState(this);
if ( v4 )
{
v5 = (EditorSoundBrowserLayer **)GameLevelManager::sharedState(v4);
if ( v5[218] == (EditorSoundBrowserLayer *)((char *)this + 712) )
*(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v5) + 872) = 0;
}
v6 = *((FLAlertLayer **)this + 202);
if ( v6 )
FLAlertLayer::requestRebuild(v6);
if ( !*((_BYTE *)this + 804) )
{
dword_D1E2CC = *((_DWORD *)this + 182);
std::string::operator=((unsigned __int8 *)&dword_D2E30C, (unsigned __int8 *)this + 768);
}
v7 = *((_DWORD *)this + 184);
if ( v7 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v7 + 268))(v7);
*((_DWORD *)this + 184) = 0;
}
return SetupTriggerPopup::onClose(this, a2);
}