//
// GJBaseGameLayer::applyLevelSettings from 0x100138240 to 0x100138288 (72 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1000af4e5
//
// 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 12:24:51 +0000
//
__int64 __fastcall GJBaseGameLayer::applyLevelSettings(__int64 a1, _BYTE *a2)
{
char canRotateFree; // al
__int64 result; // rax
canRotateFree = 1;
if ( !*(_BYTE *)(a1 + 1980) )
canRotateFree = GameObject::canRotateFree(a2);
a2[868] = canRotateFree;
result = *(unsigned __int8 *)(a1 + 1981);
if ( a2[869] != (_BYTE)result )
a2[864] = 1;
a2[869] = result;
return result;
}