//
// sub_1008CD270 from 0x1008cd270 to 0x1008cd2dd (109 bytes)
//
// 1 xrefs:
// > DeathTrackerPopup::init @ 0x1008caf52
//
// This function is hookable on this platform (idp: pc, 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 12:37:35 +0000
//
__int64 __fastcall sub_1008CD270(__int64 a1)
{
signed int v2; // eax
if ( *(_BYTE *)(a1 + 732) == 1 )
{
if ( *(_QWORD *)(a1 + 752) != *(_QWORD *)(a1 + 760) )
{
*(_BYTE *)(a1 + 732) = 0;
*(_DWORD *)(a1 + 736) = 0;
return sub_1008CDF10(a1);
}
}
else
{
v2 = *(_DWORD *)(a1 + 736);
if ( v2 < (int)(((*(_QWORD *)(a1 + 760) - *(_QWORD *)(a1 + 752)) >> 6) - 1) )
{
*(_DWORD *)(a1 + 736) = v2 + 1;
return sub_1008CDF10(a1);
}
*(_BYTE *)(a1 + 732) = 1;
}
return sub_1008CDF10(a1);
}