//
// SetupSmartBlockLayer::onAllowRotation from 0x1405ed3f0 to 0x1405ed466 (118 bytes)
//
// 2 xrefs:
// > SetupSmartBlockLayer::init @ 0x1405ece4e
// > ??> @ 0x14092f078
//
// This function is hookable on this platform (idp: pc, 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 11:35:04 +0000
//
char __fastcall SetupSmartBlockLayer::onAllowRotation(__int64 a1)
{
char result; // al
__int64 v3; // rcx
__int64 v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
result = *(_BYTE *)(a1 + 673) == 0;
*(_BYTE *)(a1 + 673) = result;
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v5);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
v4 = *(_QWORD *)(v3 + 1664);
if ( v4 )
{
result = *(_BYTE *)(a1 + 673);
*(_BYTE *)(v4 + 130) = result;
}
return result;
}