//
// sub_1005D2E04 from 0x1005d2e04 to 0x1005d2e30 (44 bytes)
//
// 4 xrefs:
// > sub_10053FCA8 @ 0x10053fd3c
// > sub_1005D3CB8 @ 0x1005d3cbc
// > sub_1005D4B44 @ 0x1005d4bb4
// > sub_1005D4B44 @ 0x1005d4ca4
//
// 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_1005D2E04(__int64 a1)
{
int v1; // w0
int v2; // w8
v1 = sub_1005AAC20(*(_QWORD *)(a1 + 8));
v2 = v1 + 7;
if ( v1 + 7 < 0 )
v2 = v1 + 14;
return (unsigned int)(v2 >> 3);
}