//
// sub_140265B70 from 0x140265b70 to 0x140265bd9 (105 bytes)
//
// 4 xrefs:
// > PlayLayer::tryShowDeathMarkers @ 0x14051fb1b
// > ??> @ 0x1408ac110
// > ??> @ 0x1408ac120
// > ??> @ 0x14091c958
//
// 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 11:28:49 +0000
//
__int64 __fastcall sub_140265B70(int **a1, int a2, int a3)
{
int *v3; // r10
unsigned int v4; // r9d
unsigned __int64 v6; // r11
unsigned __int64 i; // rbx
int v8; // eax
unsigned int v9; // ecx
int v10; // edx
v3 = *a1;
v4 = 0;
v6 = a1[1] - *a1;
if ( v6 >= 2 )
{
for ( i = 2; i <= v6; i += 2LL )
{
v8 = *v3;
v9 = v4 + 1;
v10 = v3[1];
v3 += 2;
if ( (v8 - a2) * (v8 - a2) + (v10 - a3) * (v10 - a3) > 64 )
v9 = v4;
v4 = v9;
}
}
return v4;
}