//
// GJBaseGameLayer::applyLevelSettings from 0x8666dc to 0x86673c (96 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x6704b4
// > GJBaseGameLayer::loadLevelSettings @ 0x866824
// > ??> @ 0x7cea8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::applyLevelSettings(GJBaseGameLayer *a1, GameObject *a2)
{
_BOOL4 m_fixNegativeScale; // w0
bool canRotateFree; // w0
GameObject *v5; // [xsp+28h] [xbp+28h]
if ( a1->m_allowStaticRotate )
{
a2->m_canRotateFree = 1;
}
else
{
v5 = a2;
canRotateFree = GameObject::canRotateFree(a2);
a2 = v5;
v5->m_canRotateFree = canRotateFree;
}
m_fixNegativeScale = a1->m_fixNegativeScale;
if ( a2->m_isMirroredByScale != m_fixNegativeScale )
a2->m_isObjectRectDirty = 1;
a2->m_isMirroredByScale = m_fixNegativeScale;
}