//
// GJGameLoadingLayer::init from 0x1002a64c4 to 0x1002a65bc (248 bytes)
//
// 1 xrefs:
// > GJGameLoadingLayer::create @ 0x1002a63e0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:02:15 +0000
//
bool __fastcall GJGameLoadingLayer::init(__int64 a1, __int64 a2, char a3)
{
_BOOL8 v6; // x19
__int64 v7; // x0
double WinSize; // d0
__int64 v9; // x21
float v11; // [xsp+0h] [xbp-30h] BYREF
__int64 v12; // [xsp+8h] [xbp-28h] BYREF
v6 = cocos2d::CCLayer::init((_WORD *)a1);
if ( v6 )
{
if ( a2 )
{
*(_QWORD *)(a1 + 408) = a2;
cocos2d::CCObject::retain(a2);
}
*(_BYTE *)(a1 + 416) = a3;
v7 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v7, &v12);
v9 = cocos2d::CCLabelBMFont::create_1("Loading...", "bigFont.fnt", WinSize);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, 0.7);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v9, 1);
sub_1000262BC(&v11, 1.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 296LL))(v9, &v11);
sub_1000262BC(&v11, *(float *)&v12 + -20.0, 20.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v11);
}
return v6;
}