//
// sub_1004BB3B0 from 0x1004bb3b0 to 0x1004bb400 (80 bytes)
//
// 2 xrefs:
// > DeathTrackerPopup::keyDown @ 0x1004c0c98
// > DeathTrackerPopup::init @ 0x1004ba044
//
// 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 11:06:17 +0000
//
__int64 __fastcall sub_1004BB3B0(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x9
int v3; // w8
int v4; // w8
bool v5; // vf
if ( *(_BYTE *)(a1 + 732) == 1 )
{
v1 = *(_QWORD *)(a1 + 752);
v2 = *(_QWORD *)(a1 + 760);
if ( v1 == v2 )
return sub_1004BBCDC(a1);
*(_BYTE *)(a1 + 732) = 0;
v3 = ((unsigned __int64)(v2 - v1) >> 6) - 1;
}
else
{
v4 = *(_DWORD *)(a1 + 736);
v5 = __OFSUB__(v4, 1);
v3 = v4 - 1;
if ( v3 < 0 != v5 )
{
*(_BYTE *)(a1 + 732) = 1;
return sub_1004BBCDC(a1);
}
}
*(_DWORD *)(a1 + 736) = v3;
return sub_1004BBCDC(a1);
}