//
// LevelOptionsLayer2::init from 0xa39cbc to 0xa39dbc (256 bytes)
//
// 2 xrefs:
// > LevelOptionsLayer2::create @ 0xa3a038
// > ??> @ 0x5eab8
//
// 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
//
bool LevelOptionsLayer2::init(LevelOptionsLayer2 *a1, LevelSettingsObject *a2)
{
bool v3; // w20
cocos2d::CCDirector *v4; // x0
cocos2d::CCLabelBMFont *v5; // x21
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
float v8; // [xsp+58h] [xbp+58h]
float v9; // [xsp+5Ch] [xbp+5Ch]
cocos2d::CCPoint v10; // [xsp+60h] [xbp+60h] BYREF
v3 = LevelOptionsLayer::init(a1, a2);
if ( v3 )
{
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4);
v5 = cocos2d::CCLabelBMFont::create();
v5->setScale(v5, 0.7);
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v10, v8 * 0.5, (float)((float)(a1->m_height * 0.5) + (float)(v9 * 0.5)) - 20.0);
setPosition(v5, &v10);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 1);
}
return v3;
}