//
// GJGameLevel::getSessionBest from 0x1000d0b50 to 0x1000d0bd4 (132 bytes)
//
// 1 xrefs:
// > PlayLayer::resetLevel @ 0x10014bd0c
//
// 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 10:58:53 +0000
//
__int64 __fastcall GJGameLevel::getSessionBest(__int64 a1)
{
__int64 v1; // x19
unsigned __int64 v2; // x8
int *v3; // x9
unsigned int v4; // w10
int v5; // t1
__int64 v6; // x1
int *v8; // [xsp+8h] [xbp-28h] BYREF
int *v9; // [xsp+10h] [xbp-20h]
__int64 v10; // [xsp+18h] [xbp-18h]
v8 = nullptr;
v9 = nullptr;
v10 = 0;
GJGameLevel::dtExpandOrder((std::string *)(a1 + 1592), (__int64)&v8);
v1 = 0;
if ( v9 != v8 )
{
v2 = v9 - v8;
if ( v2 <= 1 )
v2 = 1;
v3 = v8;
do
{
v5 = *v3++;
v4 = v5;
if ( v5 <= (int)v1 )
v1 = (unsigned int)v1;
else
v1 = v4;
--v2;
}
while ( v2 );
goto LABEL_11;
}
v6 = 0;
if ( v8 )
{
LABEL_11:
v9 = v8;
operator delete(v8);
return v1;
}
return v6;
}