//
// GJBaseGameLayer::removeGroundLayer from 0x46d26c to 0x46d296 (42 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::createGroundLayer @ 0x46d2a6
// > LevelSettingsLayer::selectArtClosed @ 0x56f9a0
//
// 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::removeGroundLayer(GJBaseGameLayer *a1)
{
GJGroundLayer *m_groundLayer; // r0
GJGroundLayer *m_groundLayer2; // r0
m_groundLayer = a1->m_groundLayer;
if ( m_groundLayer )
{
m_groundLayer->removeFromParent(m_groundLayer);
m_groundLayer2 = a1->m_groundLayer2;
a1->m_groundLayer = nullptr;
m_groundLayer2->removeFromParent(m_groundLayer2);
a1->m_groundLayer2 = nullptr;
}
}