//
// cocos2d::CCTileMapAtlas::initWithTileFile from 0xb3df84 to 0xb3e090 (268 bytes)
//
// 2 xrefs:
// > cocos2d::CCTileMapAtlas::create @ 0xb3e0d8
// > ??> @ 0xa9788
//
// 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
//
bool cocos2d::CCTileMapAtlas::initWithTileFile(
cocos2d::CCTileMapAtlas *a1,
const char *a2,
const char *a3,
int a4,
int a5)
{
bool v7; // w21
cocos2d::CCDictionary *v8; // x23
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x22
cocos2d::CCSize v13; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCTileMapAtlas::loadTGAfile(a1, a3);
cocos2d::CCTileMapAtlas::calculateItemsToRender(a1);
v7 = cocos2d::CCAtlasNode::initWithTileFile(a1, a2, a4, a5, a1->m_nItemsToRender);
if ( v7 )
{
v8 = (cocos2d::CCDictionary *)operator new(0x48u);
cocos2d::CCDictionary::CCDictionary(v8);
a1->m_pPosToAtlasIndex = v8;
a1->updateAtlasValues(a1);
setContentSize = a1->setContentSize;
cocos2d::CCSize::CCSize(
&v13,
(float)(a1->m_pTGAInfo->width * a1->m_uItemWidth),
(float)(a1->m_pTGAInfo->height * a1->m_uItemHeight));
setContentSize(a1, &v13);
}
return v7;
}