// // GameManager::getPracticeMusicFile from 0x718e70 to 0x718fe8 (376 bytes) // // 2 xrefs: // > PlayLayer::playPracticeMusic @ 0x6f7028 // > @ 0x6feb0 // // 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:52:17 +0000 // unsigned __int64 *__usercall GameManager::getPracticeMusicFile@( unsigned __int64 *__return_ptr a1@, GameManager *this@) { MusicDownloadManager *v4; // x0 MusicDownloadManager *v5; // x0 MusicDownloadManager *v6; // x0 const char *v7; // x23 size_t v8; // x0 size_t v9; // x21 char *v10; // x3 unsigned __int64 v12; // x22 __int64 v13[2]; // [xsp+40h] [xbp+40h] BYREF void *v14; // [xsp+50h] [xbp+50h] if ( *((int *)this + 286) <= 0 ) goto LABEL_12; v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(_stack_chk_guard); if ( !(unsigned __int8)MusicDownloadManager::isSongDownloaded(v4, *((_DWORD *)this + 286)) ) { *((_DWORD *)this + 286) = 0; goto LABEL_12; } v5 = (MusicDownloadManager *)*((unsigned int *)this + 286); if ( (int)v5 <= 0 ) { LABEL_12: *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init((__int64 *)a1, "StayInsideMe.mp3", 0x10u); return a1; } v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v5); v7 = (char *)v13 + 1; MusicDownloadManager::pathForSong(v13, v6, *((_DWORD *)this + 286)); if ( (v13[0] & 1) != 0 ) v7 = (const char *)v14; *a1 = 0; a1[1] = 0; a1[2] = 0; v8 = strlen(v7); v9 = v8; if ( v8 > 0xFFFFFFFFFFFFFFEFLL ) sub_62BE7C(); if ( v8 > 0x16 ) { v12 = (v8 + 16) & 0xFFFFFFFFFFFFFFF0LL; v10 = (char *)operator new(v12); a1[2] = (unsigned __int64)v10; a1[1] = v9; *a1 = v12 | 1; } else { *(_BYTE *)a1 = 2 * v8; v10 = (char *)a1 + 1; if ( !v8 ) goto LABEL_9; } v10 = (char *)memcpy(v10, v7, v9); LABEL_9: v10[v9] = 0; if ( (v13[0] & 1) != 0 ) operator delete(v14); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source