//
// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1008f19b0 to 0x1008f1a54 (164 bytes)
//
// 2 xrefs:
// > sub_1008F1A60 @ 0x1008f1a6c
// > ??> @ 0x100bb5170
//
// 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:37:56 +0000
//
void __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(__int64 a1, const char *a2)
{
size_t v3; // rax
unsigned int v4; // ecx
const void *v5; // rdi
__int64 v6; // rdi
void *v7; // rax
if ( a2 )
{
v3 = strlen(a2);
v4 = *(unsigned __int8 *)(a1 + 1144);
if ( (v4 & 1) != 0 )
{
if ( v3 != *(_QWORD *)(a1 + 1152) )
return;
if ( v3 == -1 )
sub_100056810();
v5 = *(const void **)(a1 + 1160);
}
else
{
if ( v3 != v4 >> 1 )
return;
v5 = (const void *)(a1 + 1145);
}
if ( !memcmp(v5, a2, v3) )
{
v6 = *(_QWORD *)(a1 + 1096);
if ( v6 )
{
LoadingCircle::fadeAndRemove(v6);
*(_QWORD *)(a1 + 1096) = 0;
}
v7 = sub_1007FE900();
sub_1008F1170(a1, (__int64)v7, (__int64)"Could not load sound packs.\nPress refresh to retry.");
sub_1008F13A0(a1);
}
}
}