//
// GJGameLevel::getLengthKey from 0x805090 to 0x8050dc (76 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateLevelSaveInfo @ 0x7a499c
// > EditorPauseLayer::init @ 0x8b7508
// > ??> @ 0x731f8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:45 +0000
//
__int64 __fastcall GJGameLevel::getLengthKey(GJGameLevel *this, char a2)
{
int v2; // w2
__int64 result; // x0
v2 = (int)this;
result = 5;
if ( !a2 )
{
result = 0;
if ( v2 > 9 )
{
result = 1;
if ( v2 > 29 )
{
result = 2;
if ( v2 > 59 )
{
if ( v2 >= 120 )
return 4;
else
return 3;
}
}
}
}
return result;
}