//
// GJBaseGameLayer::removeGroundLayer from 0x1001de394 to 0x1001de3dc (72 bytes)
//
// 1 xrefs:
// > LevelSettingsLayer::selectArtClosed @ 0x10017c1e4
//
// 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 __fastcall GJBaseGameLayer::removeGroundLayer(GJBaseGameLayer *a1)
{
GJGroundLayer *m_groundLayer; // x0
m_groundLayer = a1->m_groundLayer;
if ( m_groundLayer )
{
((void (__fastcall *)(GJGroundLayer *))m_groundLayer->removeFromParent)(m_groundLayer);
a1->m_groundLayer = nullptr;
((void (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->removeFromParent)(a1->m_groundLayer2);
a1->m_groundLayer2 = nullptr;
}
}