//
// GJSmartTemplate::rotateBlockType from 0x53ae24 to 0x53ae42 (30 bytes)
//
// 9 xrefs:
// > GJSmartTemplate::rotateKey @ 0x53b03e
// > GJSmartTemplate::rotateKey @ 0x53b04a
// > GJSmartTemplate::rotateKey @ 0x53b056
// > GJSmartTemplate::rotateKey @ 0x53b060
// > GJSmartTemplate::rotateKey @ 0x53b06a
// > GJSmartTemplate::rotateKey @ 0x53b074
// > GJSmartTemplate::rotateKey @ 0x53b07e
// > GJSmartTemplate::rotateKey @ 0x53b088
// > GJSmartTemplate::rotateKey @ 0x53b092
//
// 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; // r4
v2 = a2;
if ( (unsigned int)(a1 - 48) > 1 && a2 )
{
while ( v2 > 0 )
{
v2 -= 90;
a1 = GJSmartTemplate::rotateBlockType90(a1);
}
}
return a1;
}