//
// GJLevelList::orderForLevel from 0x4ac28a to 0x4ac2aa (32 bytes)
//
// 2 xrefs:
// > GJLevelList::reorderLevelStep @ 0x4d8ef4
// > LevelListLayer::cellPerformedAction @ 0x6d5c9c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:59 +0000
//
int __fastcall GJLevelList::orderForLevel(GJLevelList *this, int a2)
{
int *v2; // r2
int *v3; // r3
int result; // r0
int v5; // r4
v2 = *((int **)this + 67);
v3 = *((int **)this + 66);
for ( result = 0; v3 != v2; ++result )
{
v5 = *v3++;
if ( v5 == a2 )
break;
}
return result;
}