//
// LevelInfoLayer::scene from 0x14041bc20 to 0x14041be84 (612 bytes)
//
// 4 xrefs:
// > GameLevelManager::gotoLevelPage @ 0x140221504
// > GameLevelManager::gotoLevelPage @ 0x140221536
// > GameManager::returnToLastScene @ 0x140287402
// > ??> @ 0x140926708
//
// 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 11:32:06 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall LevelInfoLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // rsi
__int64 v6; // rcx
char *v7; // rdi
v5 = cocos2d::CCScene::create(a1, a2, a3, a4);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5;
v7 = (char *)operator new(0x2F0u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v7);
*(_QWORD *)v7 = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 40) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 41) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 42) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 43) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 44) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 51) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 52) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 53) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 54) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 55) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 56) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 57) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 58) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 59) = &LevelInfoLayer::`vftable';
*((_QWORD *)v7 + 60) = &LevelInfoLayer::`vftable';
v7[488] = 0;
*((_QWORD *)v7 + 62) = 0;
*((_QWORD *)v7 + 63) = 0;
*((_QWORD *)v7 + 64) = 0;
*((_QWORD *)v7 + 65) = 0;
*((_QWORD *)v7 + 66) = 0;
*((_QWORD *)v7 + 67) = 0;
*((_QWORD *)v7 + 68) = 0;
*((_QWORD *)v7 + 69) = 0;
*((_QWORD *)v7 + 70) = 0;
*((_QWORD *)v7 + 71) = 0;
*((_QWORD *)v7 + 72) = 0;
*((_QWORD *)v7 + 73) = 0;
*((_QWORD *)v7 + 75) = 0;
*((_QWORD *)v7 + 76) = 0;
*((_QWORD *)v7 + 77) = 0;
*((_QWORD *)v7 + 78) = 0;
*((_QWORD *)v7 + 79) = 0;
*((_DWORD *)v7 + 160) = 0;
*((_WORD *)v7 + 322) = 0;
*((_QWORD *)v7 + 81) = 0;
*((_QWORD *)v7 + 82) = 0;
*((_QWORD *)v7 + 83) = 0;
*((_QWORD *)v7 + 84) = 0;
*((_QWORD *)v7 + 85) = 0;
*((_DWORD *)v7 + 172) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v7 + 692));
v7[704] = 0;
*((_QWORD *)v7 + 89) = 0;
*((_QWORD *)v7 + 90) = 0;
*((_QWORD *)v7 + 91) = 0;
*((_QWORD *)v7 + 92) = 0;
v7[744] = 0;
if ( (unsigned __int8)LevelInfoLayer::init(v7, a1, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);
v7 = nullptr;
}
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 464LL))(v5, v7);
return v5;
}