//
// cocos2d::CCLabelAtlas::create from 0x100879940 to 0x100879a24 (228 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:36:54 +0000
//
_DWORD *__fastcall cocos2d::CCLabelAtlas::create(char *__s, const char *a2, int a3, int a4, int a5)
{
_DWORD *v7; // rbx
_QWORD *v8; // rax
_DWORD *v9; // r15
unsigned int v10; // eax
v7 = operator new(0x1C0u);
cocos2d::CCAtlasNode::CCAtlasNode((__int64)v7);
*(_QWORD *)v7 = off_100BA2748;
*((_QWORD *)v7 + 40) = off_100BA2BA0;
*((_QWORD *)v7 + 43) = off_100BA2C20;
*((_QWORD *)v7 + 51) = off_100BA2C50;
*((_WORD *)v7 + 208) = 0;
v8 = cocos2d::CCTextureCache::sharedTextureCache();
v9 = cocos2d::CCTextureCache::addImage((__int64)v8, a2, 0);
v10 = strlen(__s);
if ( cocos2d::CCAtlasNode::initWithTexture(v7, (__int64)v9, a3, a4, v10) )
{
v7[110] = a5;
(*(void (__fastcall **)(_DWORD *, char *))(*(_QWORD *)v7 + 1080LL))(v7, __s);
cocos2d::CCObject::autorelease((__int64)v7);
}
else
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return v7;
}