//
// EditorSoundConfigInfoLayer::downloadMissingSFX from 0x140196a30 to 0x140196bb6 (390 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::musicActionFinished @ 0x140196bdc
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198835
// > ??> @ 0x14091952c
//
// 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:45 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall EditorSoundConfigInfoLayer::downloadMissingSFX(__int64 *a1)
{
unsigned __int64 v2; // rbx
__int64 v3; // rdx
__int64 i; // rdi
__int64 v5; // rcx
cocos2d::CCString *v6; // rax
const char *CString; // rax
size_t v8; // r8
__int64 v9; // rbx
__int64 v10; // rdx
__int64 v11; // r8
__int64 v12; // rax
__int64 v13; // [rsp+30h] [rbp-68h] BYREF
__int64 v14; // [rsp+38h] [rbp-60h]
__int128 v15; // [rsp+48h] [rbp-50h] BYREF
__int64 v16; // [rsp+58h] [rbp-40h]
__int64 v17; // [rsp+60h] [rbp-38h]
__int128 v18; // [rsp+68h] [rbp-30h] BYREF
__int64 v19; // [rsp+78h] [rbp-20h]
__int64 v20; // [rsp+80h] [rbp-18h]
void *v21; // [rsp+A8h] [rbp+10h]
EditorSoundConfigInfoLayer::missingSFXIDs((__int64)a1, (__int64)&v13);
v2 = 0;
v3 = v14;
for ( i = v13; v2 < (v14 - v13) >> 2; i = v13 )
{
v5 = qword_14090C070;
if ( !qword_14090C070 )
{
v21 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v21);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v5 = qword_14090C070;
}
MusicDownloadManager::downloadSFX(v5, *(unsigned int *)(i + 4 * v2++));
v3 = v14;
}
v6 = cocos2d::CCString::createWithFormat("Downloading %i SFX", (v3 - i) >> 2);
CString = cocos2d::CCString::getCString(v6);
v15 = 0;
v16 = 0;
v17 = 15;
LOBYTE(v15) = 0;
v18 = 0;
v19 = 0;
v20 = 0;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(&v18, CString, v8);
v9 = *a1;
v12 = TextAlertPopup::create(&v18, v10, v11, 150, &v15);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v9 + 456))(a1, v12, 100);
sub_140069730((__int64)&v13);
}