//
// LevelPage::create from 0x100432840 to 0x10043290d (205 bytes)
//
// 3 xrefs:
// > LevelSelectLayer::init @ 0x1004322af
// > LevelSelectLayer::init @ 0x1004322c1
// > LevelSelectLayer::init @ 0x1004322d3
//
// 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
//
LevelPage *__fastcall LevelPage::create(GJGameLevel *a1)
{
GJGameLevel *v1; // rsi
char *v2; // rbx
v2 = (char *)operator new(0x240u);
cocos2d::CCLayer::CCLayer(v2);
*(_QWORD *)v2 = off_100936CA8;
*((_QWORD *)v2 + 40) = off_100937130;
*((_QWORD *)v2 + 41) = &off_1009371A0;
*((_QWORD *)v2 + 42) = off_1009371B8;
*((_QWORD *)v2 + 43) = off_1009371D8;
*((_QWORD *)v2 + 44) = off_1009371F8;
*((_QWORD *)v2 + 51) = &off_100937220;
v2[416] = 0;
*(_OWORD *)(v2 + 424) = 0;
sub_10028CF90((_QWORD *)v2 + 65);
*((_OWORD *)v2 + 35) = 0;
if ( LevelPage::init((LevelPage *)v2, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (LevelPage *)v2;
}