//
// SetupSmartBlockLayer::onAllowRotation from 0xb13fa8 to 0xb13fe4 (60 bytes)
//
// 3 xrefs:
// > ??> @ 0x4e190
// > SetupSmartBlockLayer::init @ 0xb15488
// > ??> @ 0x15419b0
//
// 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:30 +0000
//
__int64 __fastcall SetupSmartBlockLayer::onAllowRotation(SetupSmartBlockLayer *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
GameLevelManager *v4; // x0
__int64 result; // x0
v3 = (GameLevelManager *)(*((unsigned __int8 *)this + 673) ^ 1u);
*((_BYTE *)this + 673) = (_BYTE)v3;
v4 = (GameLevelManager *)GameLevelManager::sharedState(v3);
result = GameLevelManager::getActiveSmartTemplate(v4);
if ( result )
*(_BYTE *)(result + 138) = *((_BYTE *)this + 673);
return result;
}