//
// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1401904b0 to 0x140190559 (169 bytes)
//
// 4 xrefs:
// > ??> @ 0x14074c230
// > ??> @ 0x14089f540
// > ??> @ 0x14089f550
// > ??> @ 0x1409192a4
//
// 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 11:27:42 +0000
//
void __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(_QWORD *a1, _BYTE *a2)
{
__int64 v3; // rax
const void *v4; // rcx
size_t v5; // r8
__int64 v6; // rcx
cocos2d::CCObject *v7; // rax
if ( a2 )
{
v3 = -1;
do
++v3;
while ( a2[v3] );
v4 = a1 + 17;
if ( a1[20] > 0xFu )
v4 = (const void *)a1[17];
v5 = a1[19];
if ( v5 == v3 && (!v5 || !memcmp(v4, a2, v5)) )
{
v6 = a1[10];
if ( v6 )
{
LoadingCircle::fadeAndRemove(v6);
a1[10] = 0;
}
v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);
EditorSoundBrowserLayer::layoutCells(
(__int64)(a1 - 125),
v7,
"Could not load sound packs.\nPress refresh to retry.");
EditorSoundBrowserLayer::updatePageLabel((__int64)(a1 - 125));
}
}
}