//
// cocos2d::CCNode::CCNode from 0x180002680 to 0x180002825 (421 bytes)
//
// 21 xrefs:
// > cocos2d::CCNodeRGBA::CCNodeRGBA @ 0x180002839
// > cocos2d::CCNode::create @ 0x1800031bd
// > ObjectDecoder::ObjectDecoder @ 0x180016fc9
// > cocos2d::CCLayer::CCLayer @ 0x18005085d
// > cocos2d::CCScene::CCScene @ 0x1800537bd
// > cocos2d::CCClippingNode::CCClippingNode @ 0x18005e029
// > cocos2d::CCClippingNode::create @ 0x18005e177
// > cocos2d::CCClippingNode::create @ 0x18005e250
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0x1800613e9
// > ObjectDecoder::sharedDecoder @ 0x18006332c
// > cocos2d::CCParticleBatchNode::CCParticleBatchNode @ 0x180063399
// > cocos2d::CCParticleBatchNode::create @ 0x18006373e
// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x18006382e
// > cocos2d::CCParticleSystem::CCParticleSystem @ 0x180067887
// > cocos2d::CCSpriteBatchNode::CCSpriteBatchNode @ 0x180090eb9
// > cocos2d::CCSpriteBatchNode::create @ 0x1800914ae
// > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x18009155e
// > cocos2d::CCParallaxNode::CCParallaxNode @ 0x1800ae092
// > cocos2d::CCTMXTiledMap::CCTMXTiledMap @ 0x1800b14fd
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b71b0
//
// This function is hookable on this platform (idp: pc, 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 11:21:17 +0000
//
// Hidden C++ exception states: #wind=2
cocos2d::CCNode *__fastcall cocos2d::CCNode::CCNode(cocos2d::CCNode *this)
{
__int64 v2; // rsi
__int64 Identity; // rax
__int64 v4; // xmm0_8
struct cocos2d::CCDirector *v5; // rbx
cocos2d::CCObject *v6; // rax
cocos2d::CCObject *v7; // rax
__int64 v8; // rcx
int v9; // eax
cocos2d::CCComponentContainer *v10; // rax
_BYTE v12[40]; // [rsp+20h] [rbp-28h] BYREF
cocos2d::CCObject::CCObject(this);
*(_QWORD *)this = &cocos2d::CCNode::`vftable';
v2 = 0;
*((_QWORD *)this + 7) = 0;
*((_DWORD *)this + 16) = 1065353216;
*(_QWORD *)((char *)this + 68) = 1065353216;
cocos2d::cc_timeval::operator=((char *)this + 76, &unk_1801B2300);
*(_QWORD *)((char *)this + 84) = 0;
cocos2d::cc_timeval::operator=((char *)this + 92, &unk_1801B2300);
cocos2d::cc_timeval::operator=((char *)this + 100, &unk_1801B2300);
cocos2d::cc_timeval::operator=((char *)this + 108, &unk_1801B2308);
Identity = cocos2d::CCAffineTransformMakeIdentity(v12);
v4 = *(_QWORD *)(Identity + 16);
*(_OWORD *)((char *)this + 116) = *(_OWORD *)Identity;
*(_QWORD *)((char *)this + 132) = v4;
*((_QWORD *)this + 24) = 0;
*((_QWORD *)this + 25) = 0;
*((_QWORD *)this + 26) = 0;
*((_QWORD *)this + 27) = 0;
*((_QWORD *)this + 28) = 0;
*((_QWORD *)this + 29) = 0;
*((_QWORD *)this + 30) = 0;
*((_DWORD *)this + 62) = 0;
*((_WORD *)this + 136) = 256;
*((_BYTE *)this + 274) = 0;
*((_DWORD *)this + 71) = 65537;
*((_BYTE *)this + 288) = 0;
*(_QWORD *)((char *)this + 292) = 0;
*((_QWORD *)this + 38) = 0;
*((_WORD *)this + 156) = 0;
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v5 + 128LL))(v5);
*((_QWORD *)this + 33) = v6;
cocos2d::CCObject::retain(v6);
v7 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v5 + 112LL))(v5);
*((_QWORD *)this + 32) = v7;
cocos2d::CCObject::retain(v7);
v8 = *(_QWORD *)cocos2d::CCScriptEngineManager::sharedManager();
if ( v8 )
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 8LL))(v8);
else
v9 = 0;
*((_DWORD *)this + 75) = v9;
v10 = (cocos2d::CCComponentContainer *)sub_1800E4AC0(0x18u);
if ( v10 )
v2 = cocos2d::CCComponentContainer::CCComponentContainer(v10, this);
*((_QWORD *)this + 38) = v2;
return this;
}