//
// sub_4AB5B0 from 0x4ab5b0 to 0x4ab62c (124 bytes)
//
// 2 xrefs:
// > sub_4AB62C @ 0x4ab646
// > GameLevelManager::getPlatformerSaveStats @ 0x4ab6de
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:58 +0000
//
int __fastcall sub_4AB5B0(int result, GJGameLevel *this)
{
int v2; // r5
int v4; // r3
int v5; // r3
int v6; // r3
_DWORD **v7; // r2
int v8; // r3
int *v9; // r1
bool v10; // nf
int v11; // r3
_DWORD *v12; // r2
int v13; // r3
v2 = result;
if ( this )
{
result = GJGameLevel::isPlatformer(this);
if ( result )
{
v4 = **(_DWORD **)v2;
if ( v4 )
{
if ( v4 == 2 && !*((_BYTE *)this + 736) )
return result;
}
else if ( *((_BYTE *)this + 736) )
{
return result;
}
v5 = *((unsigned __int8 *)this + 1148);
if ( (v5 & 1) != 0 )
v6 = *((_DWORD *)this + 288);
else
v6 = v5 >> 1;
if ( v6 )
{
v7 = *(_DWORD ***)(v2 + 4);
++**v7;
v8 = *((unsigned __int8 *)this + 1148);
v9 = v7[1];
v10 = (v8 & 1) != 0;
if ( (v8 & 1) == 0 )
v8 >>= 1;
result = *v9;
if ( v10 )
v8 = *((_DWORD *)this + 288);
*v9 = v8 + result;
v11 = *((unsigned __int8 *)this + 1160);
v12 = v7[1];
if ( (v11 & 1) != 0 )
v13 = *((_DWORD *)this + 291);
else
v13 = v11 >> 1;
*v12 += v13;
}
}
}
return result;
}