//
// cocos2d::CCAtlasNode::create from 0x1800019c0 to 0x180001a71 (177 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad0cc
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCAtlasNode *__fastcall cocos2d::CCAtlasNode::create(
const char *a1,
unsigned int a2,
unsigned int a3,
unsigned int a4)
{
cocos2d::CCAtlasNode *v8; // rax
cocos2d::CCAtlasNode *v9; // rbx
cocos2d::CCTextureCache *v10; // rax
struct cocos2d::CCTexture2D *v11; // rax
v8 = (cocos2d::CCAtlasNode *)operator new(0x198u);
if ( v8 )
v9 = cocos2d::CCAtlasNode::CCAtlasNode(v8);
else
v9 = nullptr;
v10 = cocos2d::CCTextureCache::sharedTextureCache();
v11 = cocos2d::CCTextureCache::addImage(v10, a1, 0);
if ( cocos2d::CCAtlasNode::initWithTexture(v9, v11, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v9);
return v9;
}
else
{
if ( v9 )
((void (__fastcall *)(cocos2d::CCAtlasNode *, __int64))v9->~CCAtlasNode)(v9, 1);
return nullptr;
}
}