//
// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1004ce1f0 to 0x1004ce2a8 (184 bytes)
//
// 2 xrefs:
// > sub_1004CE2B0 @ 0x1004ce2b4
// > ??> @ 0x100988178
//
// 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 11:06:27 +0000
//
void __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(__int64 a1, char *__s)
{
_QWORD *v4; // x21
size_t v5; // x0
__int64 v6; // x8
__int64 v7; // x0
_QWORD *v8; // x0
if ( __s )
{
v4 = (_QWORD *)(a1 + 1144);
v5 = strlen(__s);
v6 = *(char *)(a1 + 1167);
if ( v6 < 0 )
{
if ( v5 != *(_QWORD *)(a1 + 1152) )
return;
if ( v5 == -1 )
sub_100050040();
v4 = (_QWORD *)*v4;
}
else if ( v5 != v6 )
{
return;
}
if ( !memcmp(v4, __s, v5) )
{
v7 = *(_QWORD *)(a1 + 1096);
if ( v7 )
{
LoadingCircle::fadeAndRemove(v7);
*(_QWORD *)(a1 + 1096) = 0;
}
v8 = sub_1002E736C();
sub_1004CDAF0(a1, (__int64)v8, "Could not load sound packs.\nPress refresh to retry.");
sub_1004CDCDC(a1);
}
}
}