//
// CreatorLayer::create from 0x7dd838 to 0x7dd928 (240 bytes)
//
// 2 xrefs:
// > CreatorLayer::scene @ 0x7dd944
// > ??> @ 0x4b670
//
// 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 12:54:24 +0000
//
cocos2d::CCLayer *__fastcall CreatorLayer::create(CreatorLayer *this)
{
cocos2d::CCLayer *v1; // x19
v1 = (cocos2d::CCLayer *)operator new(0x1E8u);
cocos2d::CCLayer::CCLayer(v1);
*((_QWORD *)v1 + 54) = 0;
*(_QWORD *)v1 = &off_1439950;
*((_QWORD *)v1 + 53) = &off_1439F28;
*((_QWORD *)v1 + 40) = off_1439DF8;
*((_QWORD *)v1 + 41) = &off_1439E68;
*((_QWORD *)v1 + 42) = off_1439E80;
*((_QWORD *)v1 + 43) = off_1439EA0;
*((_QWORD *)v1 + 44) = off_1439EC8;
*((_QWORD *)v1 + 51) = &off_1439EF8;
*((_QWORD *)v1 + 52) = &off_1439F10;
*((_QWORD *)v1 + 55) = 0;
*((_QWORD *)v1 + 56) = 0;
*((_QWORD *)v1 + 57) = 0;
*((_QWORD *)v1 + 58) = 0;
*((_QWORD *)v1 + 59) = 0;
*((_QWORD *)v1 + 60) = 0xFFFFFFFFLL;
if ( (unsigned __int8)CreatorLayer::init(v1) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
}