//
// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x7820f8 to 0x782156 (94 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x782160
//
// 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:29 +0000
//
unsigned __int8 *__fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(unsigned __int8 *this, char *a2)
{
EditorSoundBrowserLayer *v2; // r4
unsigned __int8 *v4; // r6
int v5; // r2
int v6; // r2
int v7; // r2
cocos2d::CCNode **v8; // r0
cocos2d::CCArray *v9; // r0
v2 = (EditorSoundBrowserLayer *)this;
if ( a2 )
{
v4 = this + 780;
this = (unsigned __int8 *)strlen(a2);
v5 = *((unsigned __int8 *)v2 + 780);
if ( (v5 & 1) != 0 )
v6 = *((_DWORD *)v2 + 196);
else
v6 = v5 >> 1;
if ( this == (unsigned __int8 *)v6 )
{
this = (unsigned __int8 *)std::string::compare(v4, 0, 0xFFFFFFFF, a2, (size_t)this);
if ( !this )
{
v8 = EditorSoundBrowserLayer::showLoading(v2, 0, v7);
v9 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v8);
EditorSoundBrowserLayer::layoutCells(
v2,
v9,
(cocos2d::CCLabelBMFont *)"Could not load sound packs.\nPress refresh to retry.");
return (unsigned __int8 *)EditorSoundBrowserLayer::updatePageLabel(v2);
}
}
}
return this;
}