//
// GJLevelList::reorderLevelStep from 0x1000b1a34 to 0x1000b1a78 (68 bytes)
//
// 1 xrefs:
// > LevelListLayer::cellPerformedAction @ 0x1002465bc
//
// 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 __fastcall GJLevelList::reorderLevelStep(GJLevelList *a1, int a2, bool a3)
{
std::__vector_base::pointer begin; // x9
std::__vector_base::pointer end; // x10
int v5; // w8
int v6; // w2
begin = a1->m_levels.__begin_;
end = a1->m_levels.__end_;
if ( begin == end )
{
v5 = 0;
}
else
{
v5 = 0;
do
{
if ( *begin == a2 )
break;
++v5;
++begin;
}
while ( begin != end );
}
if ( a3 )
v6 = v5 - 1;
else
v6 = v5 + 1;
GJLevelList::reorderLevel(a1, a2, v6);
}