//
// cocos2d::CCTextureAtlas::createWithTexture from 0x8001b4 to 0x8001ea (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:19 +0000
//
cocos2d::CCTextureAtlas *__fastcall cocos2d::CCTextureAtlas::createWithTexture(
cocos2d::CCTextureAtlas *this,
cocos2d::CCTexture2D *a2,
unsigned int a3)
{
cocos2d::CCTextureAtlas *v5; // r4
v5 = (cocos2d::CCTextureAtlas *)operator new(0x58u);
cocos2d::CCTextureAtlas::CCTextureAtlas(v5);
if ( cocos2d::CCTextureAtlas::initWithTexture(v5, this, (unsigned int)a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
else
{
(*(void (__fastcall **)(cocos2d::CCTextureAtlas *))(*(_DWORD *)v5 + 8))(v5);
return nullptr;
}
}