//
// GJBaseGameLayer::createGroundLayer from 0x46d298 to 0x46d302 (106 bytes)
//
// 5 xrefs:
// > PlayLayer::setupHasCompleted @ 0x31bcb6
// > LevelEditorLayer::init @ 0x376b08
// > GJBaseGameLayer::asyncGLoaded @ 0x46dc38
// > GJBaseGameLayer::syncBGTextures @ 0x476f3c
// > LevelSettingsLayer::selectArtClosed @ 0x56fa0a
//
// 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::createGroundLayer(GJBaseGameLayer *a1, int a2, int a3)
{
GJGroundLayer *v6; // r0
GJGroundLayer_vtbl *v7; // r3
GJGroundLayer *v8; // r0
if ( a1->m_groundLayer )
GJBaseGameLayer::removeGroundLayer(a1);
if ( a2 >= 22 )
a2 = (int)&dword_14 + 2;
v6 = GJGroundLayer::create(a2, a3);
v7 = v6->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_groundLayer = v6;
v7->setTag(v6, a2);
a1->m_objectParent->addChild_0(a1->m_objectParent, a1->m_groundLayer, 40);
v8 = GJGroundLayer::create(a2, a3);
a1->m_groundLayer2 = v8;
a1->m_objectParent->addChild_0(a1->m_objectParent, v8, 40);
((void (__fastcall *)(GJGroundLayer *, int))a1->m_groundLayer2->setScaleY)(a1->m_groundLayer2, -1082130432);
}