//
// cocos2d::CCAtlasNode::create from 0x100316120 to 0x1003161f4 (212 bytes)
//
// 0 xrefs:
//
// 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 12:28:40 +0000
//
_QWORD *__fastcall cocos2d::CCAtlasNode::create(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4)
{
_QWORD *v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
v6 = operator new(0x198u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v6);
*v6 = off_100B1C890;
v6[40] = off_100B1CCD8;
v6[43] = off_100B1CD58;
v6[47] = 0;
*((_BYTE *)v6 + 384) = 0;
*((_OWORD *)v6 + 22) = 0;
*(_QWORD *)((char *)v6 + 396) = 0;
*((_BYTE *)v6 + 404) = 0;
v7 = cocos2d::CCTextureCache::sharedTextureCache(v6);
v8 = cocos2d::CCTextureCache::addImage(v7, a1, 0);
if ( (unsigned __int8)cocos2d::CCAtlasNode::initWithTexture(v6, v8, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 16LL))(v6);
return nullptr;
}
return v6;
}