//
// PlayLayer::scene from 0x100079530 to 0x1000795b2 (130 bytes)
//
// 8 xrefs:
// > GJGameLoadingLayer::loadLevel @ 0x100144e63
// > EditLevelLayer::playStep3 @ 0x1001e0732
// > sub_1001E09D0 @ 0x1001e0b99
// > LevelAreaInnerLayer::playStep1 @ 0x1002680e7
// > LevelInfoLayer::playStep3 @ 0x1002b0f45
// > sub_1003AE2B0 @ 0x1003ae32e
// > LevelPage::playStep3 @ 0x10042508e
// > SecretLayer2::onSecretLevel @ 0x100498d6c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:19:59 +0000
//
_DWORD *__fastcall PlayLayer::scene(__int64 a1, __int64 a2)
{
_DWORD *v2; // rbx
void *v3; // r14
v2 = (_DWORD *)cocos2d::CCScene::create();
*(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;
v3 = operator new(0x3A38u);
sub_10008E130(v3);
if ( (unsigned __int8)PlayLayer::init(v3, a1, (unsigned __int8)a2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 16LL))(v3);
v3 = nullptr;
}
(*(void (__fastcall **)(_DWORD *, void *))(*(_QWORD *)v2 + 456LL))(v2, v3);
v2[7] = 5;
return v2;
}