//
// GJSmartTemplate::flipBlockType from 0x100007b74 to 0x100007bbc (72 bytes)
//
// 9 xrefs:
// > GJSmartTemplate::flipKey @ 0x100006ef0
// > GJSmartTemplate::flipKey @ 0x100006f04
// > GJSmartTemplate::flipKey @ 0x100006f18
// > GJSmartTemplate::flipKey @ 0x100006f2c
// > GJSmartTemplate::flipKey @ 0x100006f40
// > GJSmartTemplate::flipKey @ 0x100006f54
// > GJSmartTemplate::flipKey @ 0x100006f68
// > GJSmartTemplate::flipKey @ 0x100006f7c
// > GJSmartTemplate::flipKey @ 0x100006f90
//
// 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 __fastcall GJSmartTemplate::flipBlockType(SmartBlockType a1, bool a2, bool a3)
{
_BOOL4 v4; // w19
if ( (a1 & 0xFFFFFFFE) != 0x30 && (a2 || a3) )
{
v4 = a3;
if ( a2 )
a1 = GJSmartTemplate::flipBlockTypeX(a1);
if ( v4 )
return GJSmartTemplate::flipBlockTypeY(a1);
}
return a1;
}