//
// GJGameLoadingLayer::init from 0x100165680 to 0x100165774 (244 bytes)
//
// 2 xrefs:
// > GJGameLoadingLayer::transitionToLoadingLayer @ 0x1001652a3
// > GJGameLoadingLayer::create @ 0x1001653b1
//
// 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)
{
bool result; // al
bool v5; // r12
cocos2d::CCLabelBMFont *v6; // r14
float v7; // [rsp+0h] [rbp-30h] BYREF
_BYTE v8[40]; // [rsp+8h] [rbp-28h] BYREF
result = cocos2d::CCLayer::init(a1);
if ( result )
{
v5 = result;
if ( a2 )
{
a1->m_level = a2;
cocos2d::CCObject::retain(a2);
}
a1->m_editor = a3;
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v7);
v6 = cocos2d::CCLabelBMFont::create_3("Loading...", "bigFont.fnt");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v6->setScale)(v6, 0.69999999);
((void (__fastcall *)(GJGameLoadingLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v6, 1);
sub_10028CBE0(v8, 1.0, 0.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v6->setAnchorPoint)(v6, v8);
sub_10028CBE0(v8, v7 + -20.0, 20.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v6->setPosition)(v6, v8);
return v5;
}
return result;
}