// // GJLevelList::reorderLevel from 0x736750 to 0x736838 (232 bytes) // // 3 xrefs: // > GJLevelList::reorderLevelStep @ 0x73687c // > LevelListLayer::setIDPopupClosed @ 0xa77bf0 // > @ 0x3fdc8 // // 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 GJLevelList::reorderLevel(GJLevelList *a1, int a2, int a3) { unsigned __int64 v4; // x21 int *v5; // x0 int *m_finish; // x3 const void *v7; // x1 int *v8; // x3 __int64 v9; // x1 int *m_start; // x2 unsigned __int64 v11; // x3 int v12; // [xsp+3Ch] [xbp+3Ch] BYREF int v13; // [xsp+44h] [xbp+44h] BYREF v12 = a2; v4 = a3; v5 = std::__find_if<__gnu_cxx::__normal_iterator>,__gnu_cxx::__ops::_Iter_equals_val>( a1->m_levels.m_start, (__int64)a1->m_levels.m_finish, &v12); m_finish = a1->m_levels.m_finish; if ( m_finish != v5 ) { v7 = v5 + 1; v13 = *v5; if ( m_finish != v5 + 1 && ((char *)m_finish - (_BYTE *)v7) >> 2 ) { memmove(v5, v7, (char *)m_finish - (_BYTE *)v7); m_finish = a1->m_levels.m_finish; } v8 = m_finish - 1; a1->m_levels.m_finish = v8; v9 = 0; m_start = a1->m_levels.m_start; if ( (v4 & 0x80000000) == 0 ) { v9 = v4; v11 = v8 - m_start; if ( v4 > v11 ) v9 = (int)v11; } std::vector::insert((__int64)&a1->m_levels, (char *)&m_start[v9], &v13); } GJLevelList::updateLevelsString(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source