//
// GJLevelList::orderForLevel from 0x7193d4 to 0x719420 (76 bytes)
//
// 3 xrefs:
// > GJLevelList::reorderLevelStep @ 0x736854
// > LevelListLayer::cellPerformedAction @ 0xa78b78
// > ??> @ 0x81eb8
//
// 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
//
int GJLevelList::orderForLevel(GJLevelList *a1, int a2)
{
int *m_start; // x2
int *m_finish; // x4
int *v4; // x2
int result; // w0
int v6; // t1
m_start = a1->m_levels.m_start;
m_finish = a1->m_levels.m_finish;
if ( m_start == m_finish || *m_start == a2 )
return 0;
v4 = m_start + 1;
result = 0;
do
{
++result;
if ( m_finish == v4 )
break;
v6 = *v4++;
}
while ( v6 != a2 );
return result;
}