//
// GJGameLoadingLayer::init from 0x86c56c to 0x86c690 (292 bytes)
//
// 2 xrefs:
// > GJGameLoadingLayer::create @ 0x86c708
// > ??> @ 0x59520
//
// 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 GJGameLoadingLayer::init(GJGameLoadingLayer *a1, GJGameLevel *a2, bool a3)
{
bool v5; // w23
cocos2d::CCDirector *v6; // x0
cocos2d::CCLabelBMFont *v7; // x21
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
float v12; // [xsp+58h] [xbp+58h]
cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF
v5 = cocos2d::CCLayer::init(a1);
if ( v5 )
{
if ( a2 )
{
a1->m_level = a2;
cocos2d::CCObject::retain(a2);
}
a1->m_editor = a3;
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6);
v7 = cocos2d::CCLabelBMFont::create();
v7->setScale(v7, 0.7);
a1->addChild_0(a1, v7, 1);
setAnchorPoint = v7->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v13, 1.0, 0.0);
setAnchorPoint(v7, &v13);
setPosition = v7->setPosition;
cocos2d::CCPoint::CCPoint(&v13, v12 - 20.0, 20.0);
setPosition(v7, &v13);
}
return v5;
}