//
// GJSmartTemplate::flipBlockType from 0x53af32 to 0x53af58 (38 bytes)
//
// 9 xrefs:
// > GJSmartTemplate::flipKey @ 0x53b194
// > GJSmartTemplate::flipKey @ 0x53b1a4
// > GJSmartTemplate::flipKey @ 0x53b1b2
// > GJSmartTemplate::flipKey @ 0x53b1be
// > GJSmartTemplate::flipKey @ 0x53b1ca
// > GJSmartTemplate::flipKey @ 0x53b1d6
// > GJSmartTemplate::flipKey @ 0x53b1e2
// > GJSmartTemplate::flipKey @ 0x53b1ee
// > GJSmartTemplate::flipKey @ 0x53b1fa
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SmartBlockType GJSmartTemplate::flipBlockType(SmartBlockType a1, bool a2, bool a3)
{
_BOOL4 v3; // r4
SmartBlockType v4; // r3
v3 = a3;
v4 = a1;
if ( (unsigned int)(a1 - 48) <= 1 )
return v4;
if ( a2 )
v4 = GJSmartTemplate::flipBlockTypeX(a1);
if ( v3 )
return GJSmartTemplate::flipBlockTypeY(v4);
else
return v4;
}