//
// LoadingLayer::create from 0x3fbad4 to 0x3fbb6e (154 bytes)
//
// 1 xrefs:
// > LoadingLayer::scene @ 0x3fbb80
//
// 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:47:21 +0000
//
cocos2d::CCLayer *__fastcall LoadingLayer::create(LoadingLayer *this, bool a2)
{
char v2; // r5
cocos2d::CCLayer *v3; // r4
int v4; // r3
int *v5; // r0
v2 = (char)this;
v3 = (cocos2d::CCLayer *)operator new(0x15Cu);
cocos2d::CCLayer::CCLayer(v3);
*(_DWORD *)v3 = &off_C8D350;
*((_DWORD *)v3 + 66) = &off_C8D598;
*((_DWORD *)v3 + 67) = &off_C8D5D0;
*((_DWORD *)v3 + 68) = &off_C8D5DC;
*((_DWORD *)v3 + 69) = &off_C8D5EC;
*((_DWORD *)v3 + 70) = &off_C8D600;
*((_DWORD *)v3 + 84) = 0;
*((_BYTE *)v3 + 316) = 0;
*((_BYTE *)v3 + 317) = 0;
*((_DWORD *)v3 + 80) = 0;
*((_DWORD *)v3 + 81) = 0;
*((_DWORD *)v3 + 82) = 0;
*((_DWORD *)v3 + 83) = 0;
*((_DWORD *)v3 + 85) = 0;
*((_BYTE *)v3 + 344) = 0;
if ( LoadingLayer::init(v3, v2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}