//
// cocos2d::CCLabelAtlas::create from 0x100799180 to 0x100799264 (228 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCLabelAtlas *__fastcall cocos2d::CCLabelAtlas::create(
const char *a1,
const char *a2,
unsigned int a3,
unsigned int a4,
unsigned int a5)
{
cocos2d::CCLabelAtlas *v7; // rbx
cocos2d::CCTextureCache *v8; // rax
cocos2d::CCTexture2D *v9; // r15
unsigned int v10; // eax
v7 = (cocos2d::CCLabelAtlas *)operator new(0x1C0u);
cocos2d::CCAtlasNode::CCAtlasNode((__int64)v7);
v7->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLabelAtlas_vtbl *)off_10098E160;
v7->cocos2d::CCAtlasNode::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10098E5A8;
v7->cocos2d::CCAtlasNode::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10098E628;
v7->cocos2d::CCLabelProtocol::__vftable = (cocos2d::CCLabelProtocol_vtbl *)off_10098E658;
*(_WORD *)&v7->m_sString.m_data.m_short.sizex2 = 0;
v8 = cocos2d::CCTextureCache::sharedTextureCache();
v9 = cocos2d::CCTextureCache::addImage(v8, a2, 0);
v10 = strlen(a1);
if ( cocos2d::CCAtlasNode::initWithTexture(v7, v9, a3, a4, v10) )
{
v7->m_uMapStartChar = a5;
((void (__fastcall *)(cocos2d::CCLabelAtlas *, const char *))v7->setString)(v7, a1);
cocos2d::CCObject::autorelease(v7);
}
else
{
((void (__fastcall *)(cocos2d::CCLabelAtlas *))v7->~CCLabelAtlas_0)(v7);
return nullptr;
}
return v7;
}