//
// DeathMarkerLayer::setFlipped from 0x769fa4 to 0x76a056 (178 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::syncDeathMarkerFlip @ 0x592f4a
// > GJBaseGameLayer::syncDeathMarkerFlip @ 0x592f5a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:10 +0000
//
int __fastcall DeathMarkerLayer::setFlipped(int this, int a2)
{
int v2; // r4
int *v4; // r5
int v5; // r7
unsigned int v6; // r4
int v7; // t1
float v8; // r1
v2 = this;
if ( *(unsigned __int8 *)(this + 349) != a2 )
{
*(_BYTE *)(this + 349) = a2;
this = *(_DWORD *)(this + 320);
if ( this )
{
this = (*(int (__fastcall **)(int))(*(_DWORD *)this + 244))(this);
if ( this )
{
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 320) + 244))(*(_DWORD *)(v2 + 320));
if ( this )
{
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 320) + 244))(*(_DWORD *)(v2 + 320));
if ( **(_DWORD **)(this + 52) )
{
v4 = *(int **)(*(_DWORD *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 320) + 244))(*(_DWORD *)(v2 + 320))
+ 52)
+ 12);
v5 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 320) + 244))(*(_DWORD *)(v2 + 320))
+ 52)
+ 12);
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 320) + 244))(*(_DWORD *)(v2 + 320));
v6 = v5 + 4 * (**(_DWORD **)(this + 52) + 0x3FFFFFFF);
while ( (unsigned int)v4 <= v6 )
{
v7 = *v4++;
this = v7;
if ( !v7 )
break;
if ( a2 )
v8 = -0.5;
else
v8 = 0.5;
this = (*(int (__fastcall **)(int, float))(*(_DWORD *)this + 64))(this, COERCE_FLOAT(LODWORD(v8)));
}
}
}
}
}
}
return this;
}