//
// GJGameLoadingLayer::init from 0x1002093a4 to 0x10020949c (248 bytes)
//
// 1 xrefs:
// > GJGameLoadingLayer::create @ 0x1002092c0
//
// 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 __fastcall GJGameLoadingLayer::init(GJGameLoadingLayer *a1, GJGameLevel *a2, bool a3)
{
_BOOL4 v6; // w19
cocos2d::CCDirector *v7; // x0
cocos2d::CCLabelBMFont *v8; // x21
__n128 v9; // q0
__n128 v10; // q1
__n128 v11; // q0
__n128 v12; // q1
_DWORD v14[4]; // [xsp+0h] [xbp-30h] BYREF
v6 = cocos2d::CCLayer::init(a1);
if ( v6 )
{
if ( a2 )
{
a1->m_level = a2;
cocos2d::CCObject::retain(a2);
}
a1->m_editor = a3;
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v7);
v8 = cocos2d::CCLabelBMFont::create_1("Loading...", "bigFont.fnt");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v8->setScale)(v8, 0.7);
v9 = ((__n128 (__fastcall *)(GJGameLoadingLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v8, 1);
v9.n128_u32[0] = 1.0;
v10.n128_u32[0] = 0;
sub_100022980(v9, v10, v14);
v11 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v8->setAnchorPoint)(v8, v14);
v11.n128_f32[0] = *(float *)&v14[2] + -20.0;
v12.n128_u32[0] = 20.0;
sub_100022980(v11, v12, v14);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v8->setPosition)(v8, v14);
}
return v6;
}