// // AudioAssetsBrowser::onInfo from 0x1007b4480 to 0x1007b4a1e (1438 bytes) // // 1 xrefs: // > AudioAssetsBrowser::init @ 0x1007b4311 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall AudioAssetsBrowser::onInfo(AudioAssetsBrowser *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 std::__vector_base::pointer begin; // r12 std::__vector_base::pointer end; // r15 int v5; // ebx MusicDownloadManager *v6; // rax const std::string::value_type *v7; // rsi std::string::size_type v8; // rdx const std::string::value_type *data; // rsi std::string::size_type size; // rdx std::__vector_base::pointer v11; // r15 std::__vector_base::pointer v12; // r14 int v13; // r13d MusicDownloadManager *v14; // rax 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 const std::string::value_type *v25; // rsi std::string::size_type v26; // rdx char v27; // al char *v28; // rbx __int128 v29; // [rsp+10h] [rbp-C0h] BYREF void *v30; // [rsp+20h] [rbp-B0h] std::string v31; // [rsp+30h] [rbp-A0h] BYREF std::string v32; // [rsp+48h] [rbp-88h] BYREF std::string v33; // [rsp+60h] [rbp-70h] BYREF std::string v34; // [rsp+78h] [rbp-58h] BYREF std::string __s[2]; // [rsp+90h] [rbp-40h] BYREF *(_WORD *)&v33.__r_.__value_.__l.0 = 0; *(_WORD *)&v31.__r_.__value_.__l.0 = 0; *(_WORD *)&v34.__r_.__value_.__l.0 = 0; *(_WORD *)&v32.__r_.__value_.__l.0 = 0; begin = a1->m_songsIds.__begin_; end = a1->m_songsIds.__end_; if ( begin != end ) { while ( 1 ) { v5 = *begin; v6 = MusicDownloadManager::sharedState(); if ( !MusicDownloadManager::isSongDownloaded(v6, v5) ) { if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v31.__r_.__value_.__l.__size_ ) goto LABEL_17; LABEL_16: std::string::append(&v31, ", "); } else if ( *(_BYTE *)&v31.__r_.__value_.__l.0 >> 1 ) { goto LABEL_16; } LABEL_17: GameToolbox::intToString((size_t *)__s, v5, v2); 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(&v31, data, size); goto LABEL_23; } if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) break; if ( *(_BYTE *)&v33.__r_.__value_.__l.0 >> 1 ) goto LABEL_12; LABEL_13: GameToolbox::intToString((size_t *)__s, v5, v2); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { v7 = __s[0].__r_.__value_.__l.__data_; v8 = __s[0].__r_.__value_.__l.__size_; } else { v8 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; v7 = __s[0].__r_.__value_.__s.__data_; } std::string::append(&v33, v7, v8); LABEL_23: if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); if ( ++begin == end ) goto LABEL_25; } if ( !v33.__r_.__value_.__l.__size_ ) goto LABEL_13; LABEL_12: std::string::append(&v33, ", "); goto LABEL_13; } LABEL_25: v11 = a1->m_sfxIds.__begin_; v12 = a1->m_sfxIds.__end_; if ( v11 != v12 ) { while ( 1 ) { v13 = *v11; v14 = MusicDownloadManager::sharedState(); if ( !MusicDownloadManager::isSFXDownloaded(v14, v13) ) { if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v32.__r_.__value_.__l.__size_ ) goto LABEL_41; LABEL_40: std::string::append(&v32, ", "); } else if ( *(_BYTE *)&v32.__r_.__value_.__l.0 >> 1 ) { goto LABEL_40; } LABEL_41: GameToolbox::intToString((size_t *)__s, v13, v2); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { v17 = __s[0].__r_.__value_.__l.__data_; v18 = __s[0].__r_.__value_.__l.__size_; } else { v18 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; v17 = __s[0].__r_.__value_.__s.__data_; } std::string::append(&v32, v17, v18); goto LABEL_47; } if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) != 0 ) break; if ( *(_BYTE *)&v34.__r_.__value_.__l.0 >> 1 ) goto LABEL_36; LABEL_37: GameToolbox::intToString((size_t *)__s, v13, v2); 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(&v34, v15, v16); LABEL_47: if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); if ( ++v11 == v12 ) goto LABEL_49; } if ( !v34.__r_.__value_.__l.__size_ ) goto LABEL_37; LABEL_36: std::string::append(&v34, ", "); goto LABEL_37; } LABEL_49: *(_WORD *)&__s[0].__r_.__value_.__l.0 = 0; if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v33.__r_.__value_.__l.__size_ ) goto LABEL_57; } else if ( !(*(_BYTE *)&v33.__r_.__value_.__l.0 >> 1) ) { goto LABEL_57; } std::string::append(__s, "Songs: "); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) { v19 = v33.__r_.__value_.__l.__data_; v20 = v33.__r_.__value_.__l.__size_; } else { v19 = v33.__r_.__value_.__s.__data_; v20 = *(_BYTE *)&v33.__r_.__value_.__l.0 >> 1; } std::string::append(__s, v19, v20); std::string::append(__s, "\n"); LABEL_57: if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v31.__r_.__value_.__l.__size_ ) goto LABEL_65; } else if ( !(*(_BYTE *)&v31.__r_.__value_.__l.0 >> 1) ) { goto LABEL_65; } std::string::append(__s, "Missing Songs: "); if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) { v21 = v31.__r_.__value_.__l.__data_; v22 = v31.__r_.__value_.__l.__size_; } else { v21 = v31.__r_.__value_.__s.__data_; v22 = *(_BYTE *)&v31.__r_.__value_.__l.0 >> 1; } std::string::append(__s, v21, v22); std::string::append(__s, "\n"); LABEL_65: if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v34.__r_.__value_.__l.__size_ ) goto LABEL_73; } else if ( !(*(_BYTE *)&v34.__r_.__value_.__l.0 >> 1) ) { goto LABEL_73; } std::string::append(__s, "SFX: "); if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) != 0 ) { v23 = v34.__r_.__value_.__l.__data_; v24 = v34.__r_.__value_.__l.__size_; } else { v23 = v34.__r_.__value_.__s.__data_; v24 = *(_BYTE *)&v34.__r_.__value_.__l.0 >> 1; } std::string::append(__s, v23, v24); std::string::append(__s, "\n"); LABEL_73: if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v32.__r_.__value_.__l.__size_ ) goto LABEL_81; } else if ( !(*(_BYTE *)&v32.__r_.__value_.__l.0 >> 1) ) { goto LABEL_81; } std::string::append(__s, "Missing SFX: "); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) { v25 = v32.__r_.__value_.__l.__data_; v26 = v32.__r_.__value_.__l.__size_; } else { v25 = v32.__r_.__value_.__s.__data_; v26 = *(_BYTE *)&v32.__r_.__value_.__l.0 >> 1; } std::string::append(__s, v25, v26); std::string::append(__s, ""); LABEL_81: if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { sub_100006B70(&v29, __s[0].__r_.__value_.__l.__data_, __s[0].__r_.__value_.__l.__size_, v2); v27 = *(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1; } else { v30 = __s[0].__r_.__value_.__l.__data_; v29 = *(_OWORD *)&__s[0].__r_.__value_.__l.0; v27 = 0; } v28 = FLAlertLayer::create( 0, (int)"Audio Assets", &v29, (int)"OK", 0, v27 & (__s[0].__r_.__value_.__l.__size_ >= 0x191), 430.0, 0.0, 1.0); if ( (v29 & 1) != 0 ) operator delete(v30); (*(void (__fastcall **)(char *))(*(_QWORD *)v28 + 1288LL))(v28); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { operator delete(__s[0].__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_88: if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_89; goto LABEL_95; } } else if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_88; } operator delete(v32.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_89: if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_90; goto LABEL_96; } LABEL_95: operator delete(v34.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_90: if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_91; } LABEL_96: operator delete(v31.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) == 0 ) return; LABEL_91: operator delete(v33.__r_.__value_.__l.__data_); }