// // cocos2d::CCTileMapAtlas::setTile from 0x100211390 to 0x1002114e3 (339 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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 12:26:58 +0000 // __int64 __fastcall cocos2d::CCTileMapAtlas::setTile(__int64 a1, __int64 a2, float *a3) { __int64 v3; // rax float v4; // xmm0_4 __int64 result; // rax __int64 v6; // rcx __int64 v8; // r14 __int64 v9; // rax __int64 v10; // rax const char *CString; // r12 size_t v12; // rax size_t v13; // r13 char *v14; // r15 size_t v15; // r14 __int64 v16; // r15 char v17; // [rsp+0h] [rbp-60h] __int64 v18; // [rsp+8h] [rbp-58h] _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] v3 = *(_QWORD *)(a1 + 408); v4 = (float)*(__int16 *)(v3 + 6); result = *(_QWORD *)(v3 + 16); v6 = 3LL * (unsigned int)(int)(float)((float)(v4 * a3[1]) + *a3); if ( !*(_BYTE *)(result + v6) ) return result; v8 = a1; v9 = v6 + result; *(_BYTE *)(v9 + 2) = *(_BYTE *)(a2 + 2); *(_WORD *)v9 = *(_WORD *)a2; v18 = *(_QWORD *)(a1 + 416); v10 = sub_10088E820("%ld,%ld", v17); CString = (const char *)cocos2d::CCString::getCString(v10); v12 = strlen(CString); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; __dst[0] = v15 + 1; v8 = a1; __dst[1] = v13; } else { LOBYTE(__dst[0]) = 2 * v12; v14 = (char *)__dst + 1; if ( !v12 ) goto LABEL_10; } memmove(v14, CString, v13); LABEL_10: v14[v13] = 0; v16 = cocos2d::CCDictionary::objectForKey(v18, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return cocos2d::CCTileMapAtlas::updateAtlasValueAt(v8, a3, a2, *(unsigned int *)(v16 + 56)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source