//
// LoadingLayer::scene from 0x1003a24b0 to 0x1003a259d (237 bytes)
//
// 2 xrefs:
// > GameManager::reloadAllStep5 @ 0x10038c6e2
// > AppDelegate::applicationDidFinishLaunching @ 0x10065c1e7
//
// 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
//
cocos2d::CCScene *__fastcall LoadingLayer::scene(bool a1)
{
cocos2d::CCScene *v1; // rbx
LoadingLayer *v2; // r14
v1 = cocos2d::CCScene::create();
v2 = (LoadingLayer *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v2);
v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LoadingLayer_vtbl *)off_100926520;
v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1009269A0;
v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100926A10;
v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100926A28;
v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100926A48;
v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100926A68;
*(_WORD *)&v2->m_unknown = 0;
v2->m_loadStep = 0;
*(_OWORD *)&v2->m_caption = 0;
*(_OWORD *)&v2->m_sliderBar = 0;
v2->m_fromRefresh = 0;
if ( LoadingLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(LoadingLayer *))v2->~LoadingLayer_0)(v2);
v2 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, LoadingLayer *))v1->addChild)(v1, v2);
return v1;
}