//
// sub_1008C1AC0 from 0x1008c1ac0 to 0x1008c1bdc (284 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::syncDeathMarkerFlip @ 0x10011cae6
// > GJBaseGameLayer::syncDeathMarkerFlip @ 0x10011cb12
//
// 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:37:30 +0000
//
void __fastcall sub_1008C1AC0(__int64 a1, char a2)
{
__int64 v3; // rdi
_QWORD *v4; // r15
__int64 v5; // r12
unsigned __int64 v6; // r14
float v7; // xmm0_4
if ( *(_BYTE *)(a1 + 449) != a2 )
{
*(_BYTE *)(a1 + 449) = a2;
v3 = *(_QWORD *)(a1 + 416);
if ( v3 )
{
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3) )
{
if ( (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 488LL))(*(_QWORD *)(a1 + 416)) )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 488LL))(*(_QWORD *)(a1 + 416))
+ 56) )
{
v4 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 488LL))(*(_QWORD *)(a1 + 416))
+ 56)
+ 16LL);
v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 488LL))(*(_QWORD *)(a1 + 416))
+ 56)
+ 16LL);
v6 = v5
+ 8LL
* **(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 488LL))(*(_QWORD *)(a1 + 416))
+ 56)
- 8;
if ( (unsigned __int64)v4 <= v6 )
{
if ( a2 )
v7 = -0.5;
else
v7 = 0.5;
do
{
if ( !*v4 )
break;
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*v4 + 128LL))(*v4, v7);
++v4;
}
while ( (unsigned __int64)v4 <= v6 );
}
}
}
}
}
}
}