//
// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0xccdc2c to 0xccdd58 (300 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0xccdd5c
// > ??> @ 0x82540
// > ??> @ 0x14fee60
//
// 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:25 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFailed(EditorSoundConfigInfoLayer *this, int a2)
{
__int64 v3; // x0
cocos2d::CCNode **v5; // x0
__int64 v6; // x0
_QWORD v7[2]; // [xsp+20h] [xbp+20h] BYREF
void *v8; // [xsp+30h] [xbp+30h]
v3 = *((_QWORD *)this + 136);
if ( !v3 || *(_DWORD *)(v3 + 316) == a2 )
{
v5 = *((cocos2d::CCNode ***)this + 139);
*((_BYTE *)this + 1120) = 0;
*((_BYTE *)this + 1121) = 0;
if ( v5 )
LoadingCircle::fadeAndRemove(v5);
*((_QWORD *)this + 139) = 0;
EditorSoundConfigInfoLayer::refreshActionButtons(this);
v7[0] = 65;
v8 = (void *)operator new(0x40u);
v7[1] = 52;
strcpy((char *)v8, "Could not download this sound pack. Try again later.");
v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Download Failed", (char *)v7, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
}
return _stack_chk_guard;
}