//
// EditorSoundsLayer::onBrowse from 0x78a31c to 0x78a39a (126 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:36 +0000
//
int __fastcall EditorSoundsLayer::onBrowse(EditorSoundsLayer *this, cocos2d::CCObject *a2, int a3, int a4)
{
GameManager *v5; // r0
GameManager *v6; // r0
GameManager *v7; // r0
int result; // r0
int v9; // r0
int v10; // r2
int v11; // r3
int v12; // r6
EditorSoundsLayer *v13; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v14; // [sp+4h] [bp-Ch]
int v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v13 = this;
v14 = a2;
v15 = a3;
v16 = a4;
v5 = (GameManager *)GameManager::sharedState(this);
v6 = (GameManager *)GameManager::offlineModeEnabled(v5);
if ( v6 )
{
v7 = (GameManager *)GameManager::sharedState(v6);
return GameManager::showParentalRestrictedAlert(v7);
}
else
{
v9 = *((_DWORD *)this + 189);
if ( v9 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 580))(v9, 0);
v13 = nullptr;
v14 = nullptr;
v15 = 0;
std::string::__init((int *)&v13, &unk_B6B226, 0);
v12 = EditorSoundBrowserLayer::create((int)&v13, (int)this, v10, v11);
result = std::string::~string((int)&v13);
if ( v12 )
return (*(int (__fastcall **)(int))(*(_DWORD *)v12 + 656))(v12);
}
return result;
}