//
// GJLevelList::orderForLevel from 0x3cdccc to 0x3cdcec (32 bytes)
//
// 2 xrefs:
// > GJLevelList::reorderLevelStep @ 0x3d7ea0
// > LevelListLayer::cellPerformedAction @ 0x592368
//
// 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_finish; // r2
int *m_start; // r3
int result; // r0
int v5; // r4
m_finish = a1->m_levels.m_finish;
m_start = a1->m_levels.m_start;
for ( result = 0; m_start != m_finish; ++result )
{
v5 = *m_start++;
if ( v5 == a2 )
break;
}
return result;
}