//
// LevelPage::create from 0x512540 to 0x5125e2 (162 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::init @ 0x5128f2
//
// 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:51:33 +0000
//
int *__fastcall LevelPage::create(LevelPage *this, GJGameLevel *a2)
{
int *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (int *)operator new(0x194u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v3);
*v3 = (int)&off_CA8338;
v3[66] = (int)&off_CA8584;
v3[67] = (int)&off_CA85BC;
v3[68] = (int)&off_CA85C8;
v3[69] = (int)&off_CA85D8;
v3[70] = (int)&off_CA85EC;
v3[79] = (int)&off_CA8604;
*((_BYTE *)v3 + 320) = 0;
v3[81] = 0;
v3[82] = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 93));
v3[99] = 0;
v3[100] = 0;
if ( LevelPage::init((cocos2d::CCObject **)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v4 = *v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}