//
// PlayLayer::scene from 0x1000ac0a0 to 0x1000ac124 (132 bytes)
//
// 9 xrefs:
// > GJGameLoadingLayer::loadLevel @ 0x1001657b5
// > EditLevelLayer::playStep3 @ 0x1001fe01c
// > EditLevelLayer::onTest @ 0x1001fe0b3
// > LevelAreaInnerLayer::playStep1 @ 0x10027bae9
// > LevelInfoLayer::playStep3 @ 0x1002c4317
// > LevelInfoLayer::onPlayReplay @ 0x1002c45b5
// > GJWorldNode::playStep3 @ 0x1003c4e80
// > LevelPage::playStep3 @ 0x1004375f0
// > SecretLayer2::onSecretLevel @ 0x10049fd9e
//
// 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
//
cocos2d::CCScene *__fastcall PlayLayer::scene(GJGameLevel *a1, bool a2, bool a3)
{
cocos2d::CCScene *v4; // rbx
PlayLayer *v5; // r14
v4 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v4;
v5 = (PlayLayer *)operator new(0x3840u);
PlayLayer::PlayLayer(v5);
if ( PlayLayer::init(v5, a1, 0, a3) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
((void (__fastcall *)(PlayLayer *))v5->~PlayLayer_0)(v5);
v5 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, PlayLayer *))v4->addChild)(v4, v5);
v4->m_eObjType = PlayLayerObjectType;
return v4;
}