//
// GJSmartTemplate::rotateBlockType from 0x9d4954 to 0x9d4994 (64 bytes)
//
// 10 xrefs:
// > GJSmartTemplate::rotateKey @ 0x9d4d1c
// > GJSmartTemplate::rotateKey @ 0x9d4d2c
// > GJSmartTemplate::rotateKey @ 0x9d4d3c
// > GJSmartTemplate::rotateKey @ 0x9d4d50
// > GJSmartTemplate::rotateKey @ 0x9d4d64
// > GJSmartTemplate::rotateKey @ 0x9d4d78
// > GJSmartTemplate::rotateKey @ 0x9d4d8c
// > GJSmartTemplate::rotateKey @ 0x9d4da0
// > GJSmartTemplate::rotateKey @ 0x9d4db4
// > ??> @ 0x39138
//
// 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::rotateBlockType(SmartBlockType a1, int a2)
{
int v2; // w19
v2 = a2;
if ( (unsigned int)(a1 - 48) > 1 && a2 )
{
while ( v2 > 0 )
{
v2 -= 90;
a1 = GJSmartTemplate::rotateBlockType90(a1);
}
}
return a1;
}