//
// AudioAssetsBrowser::onInfo from 0x1008999a0 to 0x100899f3e (1438 bytes)
//
// 1 xrefs:
// > AudioAssetsBrowser::init @ 0x100899831
//
// 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 12:37:08 +0000
//
void __fastcall AudioAssetsBrowser::onInfo(_QWORD *a1)
{
unsigned int *v1; // r12
unsigned int *v2; // r15
unsigned int v3; // ebx
__int64 v4; // rax
const std::string::value_type *v5; // rsi
std::string::size_type v6; // rdx
const std::string::value_type *data; // rsi
std::string::size_type size; // rdx
unsigned int *v9; // r15
unsigned int *v10; // r14
unsigned int v11; // r13d
__int64 v12; // rax
const std::string::value_type *v13; // rsi
std::string::size_type v14; // rdx
const std::string::value_type *v15; // rsi
std::string::size_type v16; // rdx
const std::string::value_type *v17; // rsi
std::string::size_type v18; // rdx
const std::string::value_type *v19; // rsi
std::string::size_type v20; // rdx
const std::string::value_type *v21; // rsi
std::string::size_type v22; // rdx
const std::string::value_type *v23; // rsi
std::string::size_type v24; // rdx
char v25; // al
char *v26; // rbx
__int128 v27; // [rsp+10h] [rbp-C0h] BYREF
void *v28; // [rsp+20h] [rbp-B0h]
std::string v29; // [rsp+30h] [rbp-A0h] BYREF
std::string v30; // [rsp+48h] [rbp-88h] BYREF
std::string v31; // [rsp+60h] [rbp-70h] BYREF
std::string v32; // [rsp+78h] [rbp-58h] BYREF
std::string __s[2]; // [rsp+90h] [rbp-40h] BYREF
*(_WORD *)&v31.__r_.__value_.__l.0 = 0;
*(_WORD *)&v29.__r_.__value_.__l.0 = 0;
*(_WORD *)&v32.__r_.__value_.__l.0 = 0;
*(_WORD *)&v30.__r_.__value_.__l.0 = 0;
v1 = (unsigned int *)a1[88];
v2 = (unsigned int *)a1[89];
if ( v1 != v2 )
{
while ( 1 )
{
v3 = *v1;
v4 = MusicDownloadManager::sharedState();
if ( !(unsigned __int8)MusicDownloadManager::isSongDownloaded(v4, v3) )
{
if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v29.__r_.__value_.__l.__size_ )
goto LABEL_17;
LABEL_16:
std::string::append(&v29, ", ");
}
else if ( *(_BYTE *)&v29.__r_.__value_.__l.0 >> 1 )
{
goto LABEL_16;
}
LABEL_17:
GameToolbox::intToString((size_t *)__s, v3);
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
{
data = __s[0].__r_.__value_.__l.__data_;
size = __s[0].__r_.__value_.__l.__size_;
}
else
{
size = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1;
data = __s[0].__r_.__value_.__s.__data_;
}
std::string::append(&v29, data, size);
goto LABEL_23;
}
if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 )
break;
if ( *(_BYTE *)&v31.__r_.__value_.__l.0 >> 1 )
goto LABEL_12;
LABEL_13:
GameToolbox::intToString((size_t *)__s, v3);
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
{
v5 = __s[0].__r_.__value_.__l.__data_;
v6 = __s[0].__r_.__value_.__l.__size_;
}
else
{
v6 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1;
v5 = __s[0].__r_.__value_.__s.__data_;
}
std::string::append(&v31, v5, v6);
LABEL_23:
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s[0].__r_.__value_.__l.__data_);
if ( ++v1 == v2 )
goto LABEL_25;
}
if ( !v31.__r_.__value_.__l.__size_ )
goto LABEL_13;
LABEL_12:
std::string::append(&v31, ", ");
goto LABEL_13;
}
LABEL_25:
v9 = (unsigned int *)a1[91];
v10 = (unsigned int *)a1[92];
if ( v9 != v10 )
{
while ( 1 )
{
v11 = *v9;
v12 = MusicDownloadManager::sharedState();
if ( !(unsigned __int8)MusicDownloadManager::isSFXDownloaded(v12, v11) )
{
if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v30.__r_.__value_.__l.__size_ )
goto LABEL_41;
LABEL_40:
std::string::append(&v30, ", ");
}
else if ( *(_BYTE *)&v30.__r_.__value_.__l.0 >> 1 )
{
goto LABEL_40;
}
LABEL_41:
GameToolbox::intToString((size_t *)__s, v11);
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
{
v15 = __s[0].__r_.__value_.__l.__data_;
v16 = __s[0].__r_.__value_.__l.__size_;
}
else
{
v16 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1;
v15 = __s[0].__r_.__value_.__s.__data_;
}
std::string::append(&v30, v15, v16);
goto LABEL_47;
}
if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 )
break;
if ( *(_BYTE *)&v32.__r_.__value_.__l.0 >> 1 )
goto LABEL_36;
LABEL_37:
GameToolbox::intToString((size_t *)__s, v11);
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
{
v13 = __s[0].__r_.__value_.__l.__data_;
v14 = __s[0].__r_.__value_.__l.__size_;
}
else
{
v14 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1;
v13 = __s[0].__r_.__value_.__s.__data_;
}
std::string::append(&v32, v13, v14);
LABEL_47:
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s[0].__r_.__value_.__l.__data_);
if ( ++v9 == v10 )
goto LABEL_49;
}
if ( !v32.__r_.__value_.__l.__size_ )
goto LABEL_37;
LABEL_36:
std::string::append(&v32, ", ");
goto LABEL_37;
}
LABEL_49:
*(_WORD *)&__s[0].__r_.__value_.__l.0 = 0;
if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v31.__r_.__value_.__l.__size_ )
goto LABEL_57;
}
else if ( !(*(_BYTE *)&v31.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_57;
}
std::string::append(__s, "Songs: ");
if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 )
{
v17 = v31.__r_.__value_.__l.__data_;
v18 = v31.__r_.__value_.__l.__size_;
}
else
{
v17 = v31.__r_.__value_.__s.__data_;
v18 = *(_BYTE *)&v31.__r_.__value_.__l.0 >> 1;
}
std::string::append(__s, v17, v18);
std::string::append(__s, "\n");
LABEL_57:
if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v29.__r_.__value_.__l.__size_ )
goto LABEL_65;
}
else if ( !(*(_BYTE *)&v29.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_65;
}
std::string::append(__s, "Missing Songs: ");
if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 )
{
v19 = v29.__r_.__value_.__l.__data_;
v20 = v29.__r_.__value_.__l.__size_;
}
else
{
v19 = v29.__r_.__value_.__s.__data_;
v20 = *(_BYTE *)&v29.__r_.__value_.__l.0 >> 1;
}
std::string::append(__s, v19, v20);
std::string::append(__s, "\n");
LABEL_65:
if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v32.__r_.__value_.__l.__size_ )
goto LABEL_73;
}
else if ( !(*(_BYTE *)&v32.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_73;
}
std::string::append(__s, "SFX: ");
if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 )
{
v21 = v32.__r_.__value_.__l.__data_;
v22 = v32.__r_.__value_.__l.__size_;
}
else
{
v21 = v32.__r_.__value_.__s.__data_;
v22 = *(_BYTE *)&v32.__r_.__value_.__l.0 >> 1;
}
std::string::append(__s, v21, v22);
std::string::append(__s, "\n");
LABEL_73:
if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v30.__r_.__value_.__l.__size_ )
goto LABEL_81;
}
else if ( !(*(_BYTE *)&v30.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_81;
}
std::string::append(__s, "Missing SFX: ");
if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )
{
v23 = v30.__r_.__value_.__l.__data_;
v24 = v30.__r_.__value_.__l.__size_;
}
else
{
v23 = v30.__r_.__value_.__s.__data_;
v24 = *(_BYTE *)&v30.__r_.__value_.__l.0 >> 1;
}
std::string::append(__s, v23, v24);
std::string::append(__s, "");
LABEL_81:
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v27, __s[0].__r_.__value_.__l.__data_, __s[0].__r_.__value_.__l.__size_);
v25 = *(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1;
}
else
{
v28 = __s[0].__r_.__value_.__l.__data_;
v27 = *(_OWORD *)&__s[0].__r_.__value_.__l.0;
v25 = 0;
}
v26 = FLAlertLayer::create(
0,
(int)"Audio Assets",
&v27,
(int)"OK",
0,
v25 & (__s[0].__r_.__value_.__l.__size_ >= 0x191),
430.0,
0.0,
1.0);
if ( (v27 & 1) != 0 )
operator delete(v28);
(*(void (__fastcall **)(char *))(*(_QWORD *)v26 + 1312LL))(v26);
if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(__s[0].__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_88:
if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_89;
goto LABEL_95;
}
}
else if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) == 0 )
{
goto LABEL_88;
}
operator delete(v30.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_89:
if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_90;
goto LABEL_96;
}
LABEL_95:
operator delete(v32.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_90:
if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) == 0 )
return;
goto LABEL_91;
}
LABEL_96:
operator delete(v29.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) == 0 )
return;
LABEL_91:
operator delete(v31.__r_.__value_.__l.__data_);
}