//
// sub_100586BD0 from 0x100586bd0 to 0x100586c5f (143 bytes)
//
// 1 xrefs:
// > PlayLayer::tryShowDeathMarkers @ 0x10096184c
//
// 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:32:22 +0000
//
__int64 __fastcall sub_100586BD0(__int64 *a1, int a2, int a3, int a4, float *a5, int *a6)
{
__int64 result; // rax
unsigned __int64 v7; // rdi
unsigned int v8; // ecx
int v9; // r11d
float v10; // xmm0_4
unsigned __int64 i; // r10
int v12; // ebx
int v13; // r14d
int v14; // ebx
result = *a1;
v7 = (a1[1] - *a1) >> 2;
if ( v7 >= 9 )
{
v8 = a4 * a4;
v9 = *a6;
v10 = *a5;
for ( i = 9; i <= v7; i += 9LL )
{
while ( 1 )
{
v12 = *(_DWORD *)(result + 4 * i - 36) - a2;
v13 = *(_DWORD *)(result + 4 * i - 32) - a3;
if ( v12 * v12 + v13 * v13 <= v8 )
{
v14 = *(_DWORD *)(result + 4 * i - 28);
v10 = v10 + fsqrt((float)v14);
*a5 = v10;
if ( v14 > v9 )
break;
}
i += 9LL;
if ( i > v7 )
return result;
}
*a6 = v14;
v9 = v14;
}
}
return result;
}