//
// PlayLayer::scene from 0x1403a5a50 to 0x1403a5afc (172 bytes)
//
// 7 xrefs:
// > EditLevelLayer::playStep3 @ 0x1400d814a
// > GJGameLoadingLayer::loadLevel @ 0x14024906e
// > LevelAreaInnerLayer::playStep1 @ 0x1402c8489
// > LevelInfoLayer::playStep3 @ 0x1402fd1ee
// > LevelPage::playStep3 @ 0x14031ddb0
// > SecretLayer2::onSecretLevel @ 0x1403e475c
// > ??> @ 0x1406d6b3c
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCScene *PlayLayer::scene(GJGameLevel *a1, bool a2, bool a3)
{
cocos2d::CCScene *v6; // rdi
__int64 v7; // rdx
__int64 v8; // rcx
PlayLayer *v9; // rax
cocos2d::CCObject *v10; // rbx
PlayLayer *v12; // [rsp+58h] [rbp+20h]
v6 = (cocos2d::CCScene *)cocos2d::CCScene::create(a1);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v8, v7) + 224) = v6;
v12 = (PlayLayer *)operator new(0x3A88u);
v9 = PlayLayer::PlayLayer(v12);
v10 = v9;
if ( v9 )
{
if ( PlayLayer::init(v9, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
((void (__fastcall *)(cocos2d::CCObject *, __int64))v10->~CCObject)(v10, 1);
v10 = nullptr;
}
}
v6->addChild_1(v6, (cocos2d::CCNode *)v10);
v6->m_eObjType = PlayLayerObjectType;
return v6;
}