//
// EditorSoundConfigInfoLayer::downloadEditorSoundFinished from 0x786250 to 0x78634a (250 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x786360
//
// 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:32 +0000
//
void __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFinished(
EditorSoundConfigInfoLayer *this,
GJEditorSoundConfig *a2)
{
void *v2; // r2
int v5; // r3
cocos2d::CCNode **v6; // r0
int *v7; // r0
GJEditorSoundConfig *v8; // r0
EditorSFXManager *v9; // r0
int v10; // r3
EditorSFXManager *v11; // r0
cocos2d::CCArray **v12; // r0
GJEditorSoundConfig *FavoriteConfig; // r0
int v14[3]; // [sp+8h] [bp-14h] BYREF
v2 = &_stack_chk_guard;
if ( !a2 || (v5 = *((_DWORD *)this + 187)) == 0 || (v2 = *((void **)a2 + 66), v2 == *(void **)(v5 + 264)) )
{
v6 = *((cocos2d::CCNode ***)this + 190);
*((_BYTE *)this + 764) = 0;
if ( v6 )
LoadingCircle::fadeAndRemove(v6, (int)a2, (int)v2);
*((_DWORD *)this + 190) = 0;
if ( a2 )
{
v8 = *((GJEditorSoundConfig **)this + 187);
if ( v8 )
{
v9 = (EditorSFXManager *)GJEditorSoundConfig::copyServerFields(v8, a2);
v10 = *((_DWORD *)this + 187);
if ( *(_BYTE *)(v10 + 272) )
*(_DWORD *)(v10 + 280) = *(_DWORD *)(v10 + 276);
v11 = (EditorSFXManager *)EditorSFXManager::sharedState(v9);
if ( v11 )
{
v12 = (cocos2d::CCArray **)EditorSFXManager::sharedState(v11);
FavoriteConfig = (GJEditorSoundConfig *)EditorSFXManager::getFavoriteConfig(
v12,
*(_DWORD *)(*((_DWORD *)this + 187) + 264));
if ( FavoriteConfig )
{
if ( FavoriteConfig != *((GJEditorSoundConfig **)this + 187) )
GJEditorSoundConfig::copyServerFields(FavoriteConfig, a2);
}
}
}
EditorSoundConfigInfoLayer::refreshActionButtons(this);
EditorSoundConfigInfoLayer::buildSummary(this);
if ( *((_BYTE *)this + 765) )
{
*((_BYTE *)this + 765) = 0;
EditorSoundConfigInfoLayer::onFavorite(this, nullptr);
}
}
else
{
memset(v14, 0, sizeof(v14));
std::string::__init(v14, "Download failed.", 0x10u);
v7 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v14, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(int *))(*v7 + 656))(v7);
std::string::~string((int)v14);
EditorSoundConfigInfoLayer::refreshActionButtons(this);
}
}
}