//
// GJBaseGameLayer::reverseDirection from 0x14031f920 to 0x14031f97b (91 bytes)
//
// 4 xrefs:
// > ??> @ 0x14076b860
// > ??> @ 0x14078b2d8
// > ??> @ 0x1407d5ec0
// > ??> @ 0x14091ed4c
//
// 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:30:22 +0000
//
double __fastcall GJBaseGameLayer::reverseDirection(__int64 a1, __int64 a2)
{
__int64 v3; // rcx
double result; // xmm0_8
__int64 v5; // rcx
v3 = *(_QWORD *)(a1 + 3512);
if ( !*(_BYTE *)(v3 + 2936) )
{
LOBYTE(a2) = *(_BYTE *)(v3 + 2506) == 0;
result = PlayerObject::doReversePlayer(v3, a2);
}
if ( *(_BYTE *)(a1 + 1058) )
{
v5 = *(_QWORD *)(a1 + 3520);
if ( !*(_BYTE *)(v5 + 2936) )
{
LOBYTE(a2) = *(_BYTE *)(v5 + 2506) == 0;
return PlayerObject::doReversePlayer(v5, a2);
}
}
return result;
}