//
// PlayLayer::scene from 0x40cc20 to 0x40cc4e (46 bytes)
//
// 8 xrefs:
// > LevelInfoLayer::playStep3 @ 0x499b4a
// > EditLevelLayer::playStep3 @ 0x49f4f6
// > EditLevelLayer::onTest @ 0x49f842
// > LevelPage::playStep3 @ 0x514dfa
// > GJGameLoadingLayer::loadLevel @ 0x58b7c4
// > SecretLayer2::onSecretLevel @ 0x61b9e6
// > GJWorldNode::playStep3 @ 0x62f8a0
// > LevelAreaInnerLayer::playStep1 @ 0x6a49ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:33 +0000
//
AppDelegate *__fastcall PlayLayer::scene(PlayLayer *this, GJGameLevel *a2, bool a3)
{
AppDelegate *v5; // r4
bool v6; // r2
int *v7; // r0
v5 = (AppDelegate *)cocos2d::CCScene::create(this);
*(_DWORD *)(AppDelegate::get(v5) + 12) = v5;
v7 = PlayLayer::create(this, a2, v6);
(*(void (__fastcall **)(AppDelegate *, int *))(*(_DWORD *)v5 + 228))(v5, v7);
*((_DWORD *)v5 + 6) = 5;
return v5;
}