//
// GJSmartTemplate::rotateBlockType from 0xb0cb04 to 0xb0cb44 (64 bytes)
//
// 10 xrefs:
// > GJSmartTemplate::rotateKey @ 0xb0e6d8
// > GJSmartTemplate::rotateKey @ 0xb0e6e8
// > GJSmartTemplate::rotateKey @ 0xb0e6f8
// > GJSmartTemplate::rotateKey @ 0xb0e70c
// > GJSmartTemplate::rotateKey @ 0xb0e720
// > GJSmartTemplate::rotateKey @ 0xb0e734
// > GJSmartTemplate::rotateKey @ 0xb0e748
// > GJSmartTemplate::rotateKey @ 0xb0e75c
// > GJSmartTemplate::rotateKey @ 0xb0e770
// > ??> @ 0x53260
//
// 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::rotateBlockType(__int64 result, int a2)
{
int v2; // w19
v2 = a2;
if ( (unsigned int)(result - 48) > 1 && a2 )
{
while ( v2 > 0 )
{
v2 -= 90;
result = GJSmartTemplate::rotateBlockType90(result);
}
}
return result;
}