//
// sub_1000D0BF0 from 0x1000d0bf0 to 0x1000d0c6c (124 bytes)
//
// 1 xrefs:
// > PlayLayer::tryShowDeathMarkers @ 0x10051e0a8
//
// 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 10:58:54 +0000
//
_QWORD *__fastcall sub_1000D0BF0(_QWORD *result, int a2, int a3, int a4, float *a5, int *a6)
{
unsigned __int64 v6; // x8
int *v7; // x10
int v8; // w12
float v9; // s0
unsigned __int64 i; // x11
int v11; // w13
v6 = (__int64)(result[1] - *result) >> 2;
if ( v6 >= 9 )
{
v7 = (int *)(*result + 8LL);
v8 = *a6;
v9 = *a5;
for ( i = 9; i <= v6; i += 9LL )
{
if ( (*(v7 - 2) - a2) * (*(v7 - 2) - a2) + (*(v7 - 1) - a3) * (*(v7 - 1) - a3) <= (unsigned int)(a4 * a4) )
{
v11 = *v7;
v9 = v9 + sqrtf((float)*v7);
*a5 = v9;
if ( v11 > v8 )
{
*a6 = v11;
v8 = v11;
}
}
v7 += 9;
}
}
return result;
}