//
// GJBaseGameLayer::removeMiddleground from 0x85725c to 0x857294 (56 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createMiddleground @ 0x8572b0
// > LevelSettingsLayer::selectArtClosed @ 0xa34694
// > ??> @ 0x93120
//
// 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::removeMiddleground(GJBaseGameLayer *a1)
{
GJMGLayer *m_middleground; // x1
m_middleground = a1->m_middleground;
if ( m_middleground )
{
m_middleground->removeFromParent(a1->m_middleground);
a1->m_middleground = nullptr;
}
}