//
// cocos2d::CCTileMapAtlas::updateAtlasValues from 0x807a6c to 0x807ba0 (308 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:26 +0000
//
void __fastcall cocos2d::CCTileMapAtlas::updateAtlasValues(cocos2d::CCTileMapAtlas *this)
{
const char *v1; // r4
int v3; // r6
int i; // r5
int v5; // r3
int v6; // r3
__int16 v7; // r2
cocos2d::CCObject *v8; // r8
char *CString; // r0
size_t v10; // r0
cocos2d::CCObject *v11; // [sp+Ch] [bp-30h]
char *v12; // [sp+10h] [bp-2Ch]
int v13; // [sp+14h] [bp-28h]
__int16 v14; // [sp+1Ch] [bp-20h] BYREF
char v15; // [sp+1Eh] [bp-1Eh]
float v16[2]; // [sp+20h] [bp-1Ch] BYREF
int v17[2]; // [sp+28h] [bp-14h] BYREF
void *v18; // [sp+30h] [bp-Ch]
v1 = nullptr;
v3 = 0;
while ( (int)v1 < *(__int16 *)(*((_DWORD *)this + 83) + 6) )
{
for ( i = 0; ; ++i )
{
v5 = *((_DWORD *)this + 83);
if ( i >= *(__int16 *)(v5 + 8) )
break;
if ( v3 < *((_DWORD *)this + 85) )
{
v6 = *(_DWORD *)(v5 + 12) + 3 * (_DWORD)&v1[*(__int16 *)(v5 + 6) * i];
v7 = *(_WORD *)v6;
LOBYTE(v6) = *(_BYTE *)(v6 + 2);
v14 = v7;
v15 = v6;
if ( (_BYTE)v7 )
{
cocos2d::CCPoint::CCPoint(v16, (float)(int)v1, (float)i);
cocos2d::CCTileMapAtlas::updateAtlasValueAt((int)this, v16, (unsigned __int8 *)&v14, v3);
v11 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d,%d", v1, i);
v8 = (cocos2d::CCObject *)operator new(0x38u);
cocos2d::CCObject::CCObject(v8);
*((_DWORD *)v8 + 13) = v3;
*(_DWORD *)v8 = &off_C8DBE0;
cocos2d::CCObject::autorelease(v8);
v13 = *((_DWORD *)this + 84);
CString = cocos2d::CCString::getCString(v11);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
v12 = CString;
v10 = strlen(CString);
std::string::__init(v17, v12, v10);
cocos2d::CCDictionary::setObject(v13, v8, (int)v17);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
++v3;
}
}
}
++v1;
}
}