//
// GJGameLevel::getLengthKey from 0x10055bc60 to 0x10055bc95 (53 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::init @ 0x100291688
// > EditorPauseLayer::saveLevel @ 0x100294a41
//
// 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 __fastcall GJGameLevel::getLengthKey(int a1, bool a2)
{
int result; // eax
result = 5;
if ( !a2 )
{
result = 0;
if ( a1 >= 10 )
{
result = 1;
if ( (unsigned int)a1 >= 0x1E )
{
result = 2;
if ( (unsigned int)a1 >= 0x3C )
return (((unsigned int)a1 | 0x400000000uLL) - 120) >> 32;
}
}
}
return result;
}