// // GJGameLevel::getSongName from 0x7020f0 to 0x70227c (396 bytes) // // 4 xrefs: // > LevelCell::loadLocalLevelCell @ 0x60f6bc // > LevelCell::loadCustomLevelCell @ 0x6102e8 // > EditLevelLayer::setupLevelInfo @ 0x6df4d4 // > @ 0x903c0 // // 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 // __int64 *__usercall GJGameLevel::getSongName@(__int64 *__return_ptr a1@, GJGameLevel *this@) { int v4; // w1 __int64 v5; // x0 void *v6; // x0 unsigned int *v8; // x2 int v9; // w1 __int64 v10; // [xsp+48h] [xbp+48h] BYREF __int64 v11; // [xsp+50h] [xbp+50h] BYREF if ( this->m_songID ) { sub_D153B8((int)&v10, &byte_F288A0); v5 = SongInfoObject::create((SongInfoObject *)(unsigned int)this->m_songID, v4); if ( !v5 || *(_BYTE *)(v5 + 392) ) { sub_D1798C(&v10, "Unknown", 7); } else { sub_D18D28(&v11, v5 + 320); sub_D163D4(&v10, &v11); v6 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v11 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v6); } } *a1 = v10; } else { LevelTools::getAudioTitle((LevelTools *)(unsigned int)this->m_audioTrack, (__int64)a1); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source