//
// GJGameLoadingLayer::create from 0x59b740 to 0x59b7c0 (128 bytes)
//
// 1 xrefs:
// > GJGameLoadingLayer::transitionToLoadingLayer @ 0x59b7da
//
// 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::CCLayer *__fastcall GJGameLoadingLayer::create(GJGameLoadingLayer *this, GJGameLevel *a2, bool a3)
{
char v4; // r5
cocos2d::CCLayer *v5; // r4
int v6; // r3
int *v7; // r0
v4 = (char)a2;
v5 = (cocos2d::CCLayer *)operator new(0x144u);
cocos2d::CCLayer::CCLayer(v5);
*(_DWORD *)v5 = &off_CB4590;
*((_DWORD *)v5 + 66) = &off_CB47D8;
*((_DWORD *)v5 + 67) = &off_CB4810;
*((_DWORD *)v5 + 68) = &off_CB481C;
*((_DWORD *)v5 + 69) = &off_CB482C;
*((_DWORD *)v5 + 70) = &off_CB4840;
*((_DWORD *)v5 + 79) = 0;
*((_BYTE *)v5 + 320) = 0;
if ( GJGameLoadingLayer::init(v5, this, v4) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
v6 = *(_DWORD *)v5;
v7 = (int *)v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}