//
// cocos2d::CCTextureAtlas::createWithTexture from 0x1004acf40 to 0x1004acfbe (126 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::CCTextureAtlas *__fastcall cocos2d::CCTextureAtlas::createWithTexture(
cocos2d::CCTexture2D *a1,
unsigned int a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x70u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = off_100948088;
*((_QWORD *)v2 + 7) = 0;
v2[76] = 0;
*(_OWORD *)(v2 + 88) = 0;
*((_DWORD *)v2 + 26) = 0;
if ( cocos2d::CCTextureAtlas::initWithTexture((cocos2d::CCTextureAtlas *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (cocos2d::CCTextureAtlas *)v2;
}