//
// sub_1005B29F8 from 0x1005b29f8 to 0x1005b2a68 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d9790
//
// 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:09:11 +0000
//
__int64 __fastcall sub_1005B29F8(__int64 *a1)
{
__int64 v1; // x8
unsigned int v2; // w9
void *v3; // x0
v1 = *a1;
v2 = *(_DWORD *)(*a1 + 592);
if ( !v2 )
{
v2 = ((unsigned int)(float)((float)((float)(*(float *)(v1 + 536) / 1000.0)
* (float)*(int *)(*(_QWORD *)(v1 + 168) + 1744LL))
+ 0.5)
+ 7)
& 0xFFFFFFF8;
*(_DWORD *)(v1 + 592) = v2;
}
*(_DWORD *)(v1 + 600) = 0;
*(_DWORD *)(v1 + 596) = v2;
*(_DWORD *)(v1 + 608) = 0;
v3 = *(void **)(v1 + 568);
if ( v3 )
bzero(v3, *(unsigned int *)(v1 + 584));
return 0;
}