//
// GJGameLevel::getLengthKey from 0x100583ed0 to 0x100583f05 (53 bytes)
//
// 2 xrefs:
// > sub_1000C6520 @ 0x1000c6681
// > EditorPauseLayer::init @ 0x10027cf78
//
// This function is hookable on this platform (idp: pc, 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:32:21 +0000
//
unsigned __int64 __fastcall GJGameLevel::getLengthKey(unsigned int a1, int a2)
{
unsigned __int64 result; // rax
result = 5;
if ( !a2 )
{
result = 0;
if ( (int)a1 >= 10 )
{
result = 1;
if ( a1 >= 0x1E )
{
result = 2;
if ( a1 >= 0x3C )
return ((a1 | 0x400000000uLL) - 120) >> 32;
}
}
}
return result;
}