// // MusicDownloadManager::splitIDString from 0x960b7c to 0x960d2c (432 bytes) // // 7 xrefs: // > MusicDownloadManager::dataLoaded @ 0x9795b4 // > MusicDownloadManager::dataLoaded @ 0x979744 // > MusicDownloadManager::dataLoaded @ 0x9798d4 // > MusicDownloadManager::dataLoaded @ 0x97a214 // > MusicBrowser::refreshLevelIDList @ 0xb84308 // > MusicBrowser::setupMusicBrowser @ 0xb85d24 // > @ 0xd37b0 // // 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:57:33 +0000 // __int64 __fastcall MusicDownloadManager::splitIDString(unsigned __int8 *a1, __int64 a2) { unsigned __int8 *v2; // x27 int v5; // w22 unsigned __int64 v6; // x20 int v7; // w28 unsigned __int64 v8; // x19 unsigned __int8 *v9; // x26 size_t v10; // x2 unsigned __int8 *v11; // x0 char *v12; // x0 char *v13; // x20 int v14; // w0 int *v15; // x1 int v17; // [xsp+7Ch] [xbp+7Ch] BYREF __int64 v18[2]; // [xsp+80h] [xbp+80h] BYREF char *v19; // [xsp+90h] [xbp+90h] v2 = a1 + 1; v5 = *a1; v6 = 0; v7 = v5 & 1; if ( (v5 & 1) == 0 ) goto LABEL_15; LABEL_2: v8 = *((_QWORD *)a1 + 1); if ( v6 < v8 ) { v9 = *((unsigned __int8 **)a1 + 2); v10 = v8 - v6; v11 = &v9[v6]; if ( v8 == v6 ) goto LABEL_6; LABEL_4: v12 = (char *)memchr(v11, 44, v10); if ( v12 ) { v8 = v12 - (char *)v9; if ( v12 - (char *)v9 != -1 ) { LABEL_6: std::string::basic_string(v18, (__int64)a1, v6, v8 - v6); if ( (v18[0] & 1) == 0 ) goto LABEL_18; LABEL_7: v13 = v19; v17 = atoi(v19); operator delete(v13); v14 = v17; goto LABEL_8; } } LODWORD(v8) = v5 >> 1; if ( v7 ) { v8 = *((_QWORD *)a1 + 1); goto LABEL_6; } while ( 1 ) { v8 = (int)v8; std::string::basic_string(v18, (__int64)a1, v6, (int)v8 - v6); if ( (v18[0] & 1) != 0 ) goto LABEL_7; LABEL_18: v14 = atoi((const char *)v18 + 1); v17 = v14; LABEL_8: if ( !v14 ) goto LABEL_13; v15 = *(int **)(a2 + 8); if ( v15 != *(int **)(a2 + 16) ) break; v6 = v8 + 1; std::vector::__push_back_slow_path(a2, &v17); LABEL_14: v5 = *a1; v7 = v5 & 1; if ( (v5 & 1) != 0 ) goto LABEL_2; LABEL_15: LODWORD(v8) = v5 >> 1; if ( v6 >= v5 >> 1 ) return _stack_chk_guard; v10 = (int)v8 - v6; v9 = v2; v11 = &v2[v6]; if ( v10 ) goto LABEL_4; } if ( v15 ) { *v15 = v14; v15 = *(int **)(a2 + 8); } *(_QWORD *)(a2 + 8) = v15 + 1; LABEL_13: v6 = v8 + 1; goto LABEL_14; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source