//
// GJGameLoadingLayer::init from 0x59b67c to 0x59b730 (180 bytes)
//
// 1 xrefs:
// > GJGameLoadingLayer::create @ 0x59b798
//
// 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:53:12 +0000
//
cocos2d::CCDirector *__fastcall GJGameLoadingLayer::init(GJGameLoadingLayer *this, GJGameLevel *a2, bool a3)
{
cocos2d::CCDirector *v6; // r0
cocos2d::CCDirector *v7; // r7
const char *v8; // r2
int v9; // r4
void (__fastcall *v10)(int, _BYTE *); // r8
void (__fastcall *v11)(int, _BYTE *); // r8
float v13[2]; // [sp+4h] [bp-14h] BYREF
_BYTE v14[8]; // [sp+Ch] [bp-Ch] BYREF
v6 = (cocos2d::CCDirector *)cocos2d::CCLayer::init(this);
v7 = v6;
if ( v6 )
{
if ( a2 )
{
*((_DWORD *)this + 79) = a2;
v6 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2);
}
*((_BYTE *)this + 320) = a3;
cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13);
v9 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Loading...", "bigFont.fnt", v8);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, 1060320051);
(*(void (__fastcall **)(GJGameLoadingLayer *, int, int))(*(_DWORD *)this + 232))(this, v9, 1);
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 1.0, 0.0);
v10(v9, v14);
v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v13[0] - 20.0, 20.0);
v11(v9, v14);
}
return v7;
}