// // cocos2d::CCTileMapAtlas::updateAtlasValueAt from 0xdb0be8 to 0xdb0ea4 (700 bytes) // // 3 xrefs: // > cocos2d::CCTileMapAtlas::setTile @ 0xdb0fb4 // > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0xdb10ac // > @ 0x8ecc0 // // 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::updateAtlasValueAt( __int64 a1, float *a2, unsigned __int8 *a3, unsigned int a4) { __int64 v5; // x25 unsigned int v6; // w22 __int64 v7; // x19 unsigned int v8; // w21 unsigned int v9; // w27 int v10; // w23 int v11; // w24 __int64 v12; // x0 float v13; // s10 __int64 v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s11 float v17; // s8 cocos2d::CCDirector *v18; // x0 float v19; // s8 float v20; // s9 cocos2d::CCDirector *v21; // x0 cocos2d::CCDirector *v22; // x0 float v23; // s0 float v24; // s4 float v25; // s0 float v26; // s1 float v27; // s4 float v28; // s2 int v29; // w0 int v30; // w0 int v31; // w0 int v32; // w0 char v33; // w3 char v34; // w1 char v35; // w2 __int64 result; // x0 v5 = 96LL * a4; v6 = a4 + 1; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 88LL))(*(_QWORD *)(a1 + 376)); v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 112LL))(*(_QWORD *)(a1 + 376)) + v5; v8 = *(_DWORD *)(a1 + 352); v9 = *a3; v10 = (int)*a2; v11 = (int)a2[1]; v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 96LL))(*(_QWORD *)(a1 + 376)); v13 = (float)(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v12 + 88LL))(v12); v14 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 96LL))(*(_QWORD *)(a1 + 376)); v15 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 96LL))(v14); v16 = (float)(unsigned int)v15; v17 = (float)*(unsigned int *)(a1 + 360); v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15); v19 = v17 * cocos2d::CCDirector::getContentScaleFactor(v18); v20 = (float)*(unsigned int *)(a1 + 364); v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v21); v23 = v20 * cocos2d::CCDirector::getContentScaleFactor(v22); v24 = v23 / v16; v25 = (float)((float)(int)(v9 / v8) * v23) / v16; v26 = (float)((float)(v9 % v8) * v19) / v13; v27 = v24 + v25; *(float *)(v7 + 20) = v25; *(float *)(v7 + 68) = v25; *(float *)(v7 + 44) = v27; v28 = (float)(v19 / v13) + v26; *(float *)(v7 + 16) = v26; *(float *)(v7 + 40) = v26; *(float *)(v7 + 92) = v27; *(float *)(v7 + 64) = v28; *(float *)(v7 + 88) = v28; *(float *)(v7 + 24) = (float)(unsigned int)(v10 * *(_DWORD *)(a1 + 360)); v29 = *(_DWORD *)(a1 + 364); *(_DWORD *)(v7 + 32) = 0; *(float *)(v7 + 28) = (float)(unsigned int)(v11 * v29); *(float *)(v7 + 72) = (float)(unsigned int)((v10 + 1) * *(_DWORD *)(a1 + 360)); v30 = *(_DWORD *)(a1 + 364); *(_DWORD *)(v7 + 80) = 0; *(float *)(v7 + 76) = (float)(unsigned int)(v11 * v30); *(float *)v7 = (float)(unsigned int)(v10 * *(_DWORD *)(a1 + 360)); v31 = *(_DWORD *)(a1 + 364); *(_DWORD *)(v7 + 8) = 0; *(float *)(v7 + 4) = (float)(unsigned int)((v11 + 1) * v31); *(float *)(v7 + 48) = (float)(unsigned int)((v10 + 1) * *(_DWORD *)(a1 + 360)); v32 = *(_DWORD *)(a1 + 364); *(_DWORD *)(v7 + 56) = 0; *(float *)(v7 + 52) = (float)(unsigned int)((v11 + 1) * v32); v33 = *(_BYTE *)(a1 + 330); v34 = *(_BYTE *)(a1 + 332); LOBYTE(v32) = *(_BYTE *)(a1 + 328); v35 = *(_BYTE *)(a1 + 331); *(_BYTE *)(v7 + 60) = v33; *(_BYTE *)(v7 + 61) = v35; *(_BYTE *)(v7 + 62) = v34; *(_BYTE *)(v7 + 14) = v34; *(_BYTE *)(v7 + 86) = v34; *(_BYTE *)(v7 + 38) = v34; *(_BYTE *)(v7 + 63) = v32; *(_BYTE *)(v7 + 12) = v33; *(_BYTE *)(v7 + 13) = v35; *(_BYTE *)(v7 + 15) = v32; *(_BYTE *)(v7 + 84) = v33; *(_BYTE *)(v7 + 85) = v35; *(_BYTE *)(v7 + 87) = v32; *(_BYTE *)(v7 + 36) = v33; *(_BYTE *)(v7 + 37) = v35; *(_BYTE *)(v7 + 39) = v32; *(_BYTE *)(*(_QWORD *)(a1 + 376) + 72LL) = 1; result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 80LL))(*(_QWORD *)(a1 + 376)); if ( (unsigned int)result < v6 ) return cocos2d::CCTextureAtlas::increaseTotalQuadsWith(*(_QWORD *)(a1 + 376), v6 - (unsigned int)result); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source