//
// cocos2d::CCTileMapAtlas::setTile from 0x5fa388 to 0x5fa444 (188 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
//
void cocos2d::CCTileMapAtlas::setTile(
cocos2d::CCTileMapAtlas *a1,
const cocos2d::ccColor3B *a2,
const cocos2d::CCPoint *a3)
{
cocos2d::sImageTGA *m_pTGAInfo; // r1
int width; // r3
unsigned __int8 *imageData; // r1
unsigned int v9; // r3
unsigned __int8 *v10; // r0
int b; // r3
cocos2d::CCDictionary *m_pPosToAtlasIndex; // r9
cocos2d::CCString *v13; // r0
char *CString; // r0
int v15; // r9
const char *v16; // [sp+8h] [bp-Ch] BYREF
m_pTGAInfo = a1->m_pTGAInfo;
width = m_pTGAInfo->width;
imageData = m_pTGAInfo->imageData;
v9 = 3 * (unsigned int)(float)(a3->x + (float)((float)width * a3->y));
v10 = &imageData[v9];
if ( imageData[v9] )
{
*(_WORD *)&imageData[v9] = *(_WORD *)&a2->r;
b = a2->b;
v10[2] = b;
m_pPosToAtlasIndex = a1->m_pPosToAtlasIndex;
v13 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%ld,%ld", (const char *)(int)a3->x, (int)a3->y, b);
CString = (char *)cocos2d::CCString::getCString(v13);
sub_776584((int)&v16, CString);
v15 = cocos2d::CCDictionary::objectForKey((int)m_pPosToAtlasIndex, &v16);
sub_774008(&v16);
cocos2d::CCTileMapAtlas::updateAtlasValueAt(a1, a3, a2, *(_DWORD *)(v15 + 52));
}
}