// // CustomSongWidget::downloadAssetFinished from 0x86da24 to 0x86dbb0 (396 bytes) // // 3 xrefs: // > CustomSongWidget::downloadSongFinished @ 0x86dc58 // > CustomSongWidget::downloadSFXFinished @ 0x86dca0 // > @ 0xbd658 // // 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 12:55:44 +0000 // __int64 __fastcall CustomSongWidget::downloadAssetFinished( CustomSongWidget *this, int a2, int a3, int a4, int a5, int a6, int a7, int a8, char a9) { char *v11; // x19 char *v12; // x2 char *v13; // x20 char *v14; // x0 __int64 v15; // x4 char v16; // w1 signed __int64 v17; // x20 char *v19; // [xsp+50h] [xbp+50h] BYREF v11 = *((char **)this + 75); v12 = *((char **)this + 76); if ( v11 != v12 ) { while ( *(_DWORD *)v11 != a2 || *((_DWORD *)v11 + 1) != a3 ) { v11 += 16; if ( v12 == v11 ) return _stack_chk_guard; } v13 = v11; if ( a3 == 1 ) { v19 = v11; *(_BYTE *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (__int64 **)this + 69, (int *)v11, (__int64)&unk_114B380, (_DWORD **)&v19) + 32) = 1; v12 = *((char **)this + 76); } else if ( a3 == 2 ) { v19 = v11; *(_BYTE *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (__int64 **)this + 72, (int *)v11, (__int64)&unk_114B380, (_DWORD **)&v19) + 32) = 1; v12 = *((char **)this + 76); } v14 = v11 + 16; if ( v11 + 16 != v12 ) { do { v15 = *(_QWORD *)v14; v14 += 16; *((_QWORD *)v14 - 4) = v15; v16 = *(v14 - 4); *((_DWORD *)v14 - 6) = *((_DWORD *)v14 - 2); *(v14 - 20) = v16; } while ( v14 != v12 ); v17 = v12 - (v11 + 32); v12 = *((char **)this + 76); v13 = &v11[(v17 & 0xFFFFFFFFFFFFFFF0LL) + 16]; } if ( v12 != v13 ) { v12 += 16 * ~((unsigned __int64)(v12 - 16 - v13) >> 4); *((_QWORD *)this + 76) = v12; } if ( *((char **)this + 75) != v12 ) CustomSongWidget::updateMultiAssetInfo(this, 0); CustomSongWidget::processNextMultiAsset(this); } return _stack_chk_guard; }