//
// GJSmartTemplate::flipBlockType from 0xb0cccc to 0xb0cd34 (104 bytes)
//
// 10 xrefs:
// > GJSmartTemplate::flipKey @ 0xb0e9c0
// > GJSmartTemplate::flipKey @ 0xb0e9dc
// > GJSmartTemplate::flipKey @ 0xb0e9f4
// > GJSmartTemplate::flipKey @ 0xb0ea08
// > GJSmartTemplate::flipKey @ 0xb0ea20
// > GJSmartTemplate::flipKey @ 0xb0ea38
// > GJSmartTemplate::flipKey @ 0xb0ea50
// > GJSmartTemplate::flipKey @ 0xb0ea68
// > GJSmartTemplate::flipKey @ 0xb0ea80
// > ??> @ 0x44e90
//
// This function is hookable on this platform (idp: arm, 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 13:01:26 +0000
//
__int64 __fastcall GJSmartTemplate::flipBlockType(int a1, unsigned __int8 a2, unsigned __int8 a3)
{
unsigned int v3; // w3
int v4; // w19
v3 = a1;
v4 = a3;
if ( (unsigned int)(a1 - 48) <= 1 || a2 < (a3 ^ 1u) )
return v3;
if ( a2 )
{
v3 = GJSmartTemplate::flipBlockTypeX(a1);
if ( !v4 )
return v3;
}
else if ( !a3 )
{
return v3;
}
return GJSmartTemplate::flipBlockTypeY(v3);
}