//
// GJSmartTemplate::rotateBlockType from 0x66ee70 to 0x66ee8e (30 bytes)
//
// 9 xrefs:
// > GJSmartTemplate::rotateKey @ 0x66ff4c
// > GJSmartTemplate::rotateKey @ 0x66ff58
// > GJSmartTemplate::rotateKey @ 0x66ff64
// > GJSmartTemplate::rotateKey @ 0x66ff6e
// > GJSmartTemplate::rotateKey @ 0x66ff78
// > GJSmartTemplate::rotateKey @ 0x66ff82
// > GJSmartTemplate::rotateKey @ 0x66ff8c
// > GJSmartTemplate::rotateKey @ 0x66ff96
// > GJSmartTemplate::rotateKey @ 0x66ffa0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:49 +0000
//
int __fastcall GJSmartTemplate::rotateBlockType(int result, int a2)
{
int v2; // r4
v2 = a2;
if ( (unsigned int)(result - 48) > 1 && a2 )
{
while ( v2 > 0 )
{
v2 -= 90;
result = GJSmartTemplate::rotateBlockType90(result);
}
}
return result;
}