//
// sub_62DE8 from 0x62de8 to 0x62e54 (108 bytes)
//
// 1 xrefs:
// > sub_6C05C @ 0x6c0a8
//
// 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
//
__int64 __fastcall sub_62DE8(__int64 a1, __int64 a2, int a3, _DWORD *a4)
{
__int64 result; // x0
int v8; // w21
__int64 v9; // x0
result = 31;
if ( (a3 & 0x80000000) == 0 && a4 )
{
v8 = a2;
v9 = sub_629A8(a1, a2);
if ( v9 )
{
if ( *(_DWORD *)v9 > a3 )
{
v8 = *(_DWORD *)(*(_QWORD *)(v9 + 8) + 4LL * a3);
LABEL_8:
*a4 = v8;
return 0;
}
}
else if ( !a3 )
{
goto LABEL_8;
}
return 31;
}
return result;
}