//
// LevelPage::create from 0x8c4f0c to 0x8c4ffc (240 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::init @ 0x8c5410
// > ??> @ 0x4c5e8
//
// This function is hookable on this platform (idp: arm, 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:56:33 +0000
//
__int64 __fastcall LevelPage::create(LevelPage *this, GJGameLevel *a2)
{
__int64 v3; // x19
v3 = operator new(0x240u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v3);
*(_BYTE *)(v3 + 416) = 0;
*(_QWORD *)v3 = &off_145CE80;
*(_QWORD *)(v3 + 320) = off_145D318;
*(_QWORD *)(v3 + 328) = &off_145D388;
*(_QWORD *)(v3 + 336) = off_145D3A0;
*(_QWORD *)(v3 + 344) = off_145D3C0;
*(_QWORD *)(v3 + 352) = off_145D3E8;
*(_QWORD *)(v3 + 408) = &off_145D418;
*(_QWORD *)(v3 + 424) = 0;
*(_QWORD *)(v3 + 432) = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 520));
*(_QWORD *)(v3 + 560) = 0;
*(_QWORD *)(v3 + 568) = 0;
if ( (unsigned __int8)LevelPage::init((cocos2d::CCObject **)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}