//
// GJWorldNode::create from 0x1003c3680 to 0x1003c3727 (167 bytes)
//
// 1 xrefs:
// > WorldSelectLayer::setupWorlds @ 0x1003c2749
//
// 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
//
GJWorldNode *__fastcall GJWorldNode::create(int a1, WorldSelectLayer *a2)
{
_OWORD *v2; // rbx
v2 = operator new(0x180u);
cocos2d::CCNode::CCNode((__int64)v2);
*(_QWORD *)v2 = off_10092DFC0;
v2[20] = 0;
v2[21] = 0;
*((_BYTE *)v2 + 352) = 0;
sub_10028CC30((_OWORD *)((char *)v2 + 356));
*((_DWORD *)v2 + 92) = 0;
*((_BYTE *)v2 + 372) = 0;
*((_QWORD *)v2 + 47) = 0;
if ( GJWorldNode::init((GJWorldNode *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (GJWorldNode *)v2;
}