//
// DeathMarkerLayer::setFlipped from 0x140119180 to 0x1401192b4 (308 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::syncDeathMarkerFlip @ 0x14032ec66
// > GJBaseGameLayer::syncDeathMarkerFlip @ 0x14032ec84
// > ??> @ 0x140896f84
// > ??> @ 0x140896fbc
// > ??> @ 0x140916028
//
// 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:26:53 +0000
//
void __fastcall DeathMarkerLayer::setFlipped(__int64 a1, char a2)
{
__int64 v3; // rcx
_QWORD *v4; // rdi
__int64 v5; // rbx
unsigned __int64 i; // rbx
if ( *(_BYTE *)(a1 + 473) != a2 )
{
*(_BYTE *)(a1 + 473) = a2;
v3 = *(_QWORD *)(a1 + 440);
if ( v3 )
{
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 480LL))(v3) )
{
if ( (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 480LL))(*(_QWORD *)(a1 + 440)) )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 480LL))(*(_QWORD *)(a1 + 440))
+ 56) )
{
v4 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 480LL))(*(_QWORD *)(a1 + 440))
+ 56)
+ 16LL);
v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 480LL))(*(_QWORD *)(a1 + 440))
+ 56)
+ 16LL);
for ( i = v5
+ 8LL
* **(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 480LL))(*(_QWORD *)(a1 + 440))
+ 56)
- 8; (unsigned __int64)v4 <= i; ++v4 )
{
if ( !*v4 )
break;
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v4 + 120LL))(*v4);
}
}
}
}
}
}
}