//
// cocos2d::CCTileMapAtlas::setTile from 0xdb0ea4 to 0xdb0fcc (296 bytes)
//
// 1 xrefs:
// > ??> @ 0xeba38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:39 +0000
//
__int64 __fastcall cocos2d::CCTileMapAtlas::setTile(__int64 a1, unsigned __int8 *a2, float *a3)
{
__int64 v5; // x1
int v7; // w0
__int64 v8; // x1
float v9; // s0
_BYTE *v10; // x3
__int64 v12; // x24
cocos2d::CCObject *v13; // x0
char *CString; // x0
size_t v15; // x0
__int64 v16; // x23
char *v17; // [xsp+48h] [xbp+48h]
__int64 v18[2]; // [xsp+50h] [xbp+50h] BYREF
void *v19; // [xsp+60h] [xbp+60h]
v5 = *(_QWORD *)(a1 + 408);
v7 = *(__int16 *)(v5 + 6);
v8 = *(_QWORD *)(v5 + 16);
v9 = *a3 + (float)(a3[1] * (float)v7);
v10 = (_BYTE *)(v8 + 3LL * (unsigned int)v9);
if ( *v10 )
{
*(_WORD *)(v8 + 3LL * (unsigned int)v9) = *(_WORD *)a2;
v10[2] = a2[2];
v12 = *(_QWORD *)(a1 + 416);
v13 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%ld,%ld", (__int64)*a3, (__int64)a3[1]);
CString = cocos2d::CCString::getCString(v13);
v18[0] = 0;
v17 = CString;
v18[1] = 0;
v19 = nullptr;
v15 = strlen(CString);
std::string::__init(v18, v17, v15);
v16 = cocos2d::CCDictionary::objectForKey(v12, (__int64)v18);
if ( (v18[0] & 1) != 0 )
operator delete(v19);
cocos2d::CCTileMapAtlas::updateAtlasValueAt(a1, a3, a2, *(_DWORD *)(v16 + 56));
}
return _stack_chk_guard;
}