//
// GJWorldNode::create from 0xaa794c to 0xaa7a2c (224 bytes)
//
// 2 xrefs:
// > WorldSelectLayer::setupWorlds @ 0xaa7ae4
// > ??> @ 0x1050a0
//
// 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 13:00:51 +0000
//
__int64 __fastcall GJWorldNode::create(GJWorldNode *this, WorldSelectLayer *a2, WorldSelectLayer *a3)
{
int v3; // w21
__int64 v5; // x19
v3 = (int)this;
v5 = operator new(0x180u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);
*(_QWORD *)(v5 + 320) = 0;
*(_QWORD *)(v5 + 328) = 0;
*(_QWORD *)v5 = &off_14A3400;
*(_QWORD *)(v5 + 336) = 0;
*(_QWORD *)(v5 + 344) = 0;
*(_BYTE *)(v5 + 352) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 356));
*(_DWORD *)(v5 + 368) = 0;
*(_BYTE *)(v5 + 372) = 0;
*(_QWORD *)(v5 + 376) = 0;
if ( (unsigned __int8)GJWorldNode::init((cocos2d::CCArray **)v5, v3, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return v5;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
return 0;
}
}