//
// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0xcc8ddc to 0xcc8e74 (152 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0xcc8e78
// > ??> @ 0xe2e40
// > ??> @ 0x14fde40
//
// 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 13:06:22 +0000
//
__int64 __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(__int64 this, char *a2)
{
__int64 v2; // x19
size_t v3; // x4
cocos2d::CCNode **v4; // x0
cocos2d::CCArray *v5; // x0
if ( a2 )
{
v2 = this;
this = strlen(a2);
v3 = *(_BYTE *)(v2 + 1144) >> 1;
if ( (*(_BYTE *)(v2 + 1144) & 1) != 0 )
v3 = *(_QWORD *)(v2 + 1152);
if ( v3 == this )
{
this = std::string::compare(v2 + 1144, 0, 0xFFFFFFFFFFFFFFFFLL, a2, v3);
if ( !(_DWORD)this )
{
v4 = EditorSoundBrowserLayer::showLoading((EditorSoundBrowserLayer *)v2, 0);
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v4);
EditorSoundBrowserLayer::layoutCells(
(EditorSoundBrowserLayer *)v2,
v5,
(cocos2d::CCLabelBMFont *)"Could not load sound packs.\nPress refresh to retry.");
return EditorSoundBrowserLayer::updatePageLabel((EditorSoundBrowserLayer *)v2);
}
}
}
return this;
}