//
// GJBaseGameLayer::applyLevelSettings from 0x5962ae to 0x5962e8 (58 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x46e328
// > GJBaseGameLayer::loadLevelSettings @ 0x5963c6
//
// 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:53:09 +0000
//
int __fastcall GJBaseGameLayer::applyLevelSettings(int this, GameObject *a2)
{
int v2; // r5
v2 = this;
if ( *(_BYTE *)(this + 1436) )
{
*((_BYTE *)a2 + 736) = 1;
}
else
{
this = GameObject::canRotateFree(a2);
*((_BYTE *)a2 + 736) = this;
}
if ( *((unsigned __int8 *)a2 + 737) != *(unsigned __int8 *)(v2 + 1437) )
*((_BYTE *)a2 + 732) = 1;
*((_BYTE *)a2 + 737) = *(_BYTE *)(v2 + 1437);
return this;
}