// // cocos2d::CCDictionary::setObjectUnSafe from 0x7c7138 to 0x7c7416 (734 bytes) // // 1 xrefs: // > cocos2d::CCDictionary::setObject @ 0x7c74ee // // 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:00:26 +0000 // void __fastcall cocos2d::CCDictionary::setObjectUnSafe(cocos2d::CCDictionary *this, cocos2d::CCObject *a2, int a3) { int v6; // r4 int v7; // r7 int v8; // r5 int v9; // r8 void *v10; // r0 void **v11; // r8 void *v12; // r0 int v13; // r2 int v14; // r1 unsigned int v15; // r2 unsigned int v16; // r3 int v17; // r1 unsigned int v18; // r2 unsigned int v19; // r3 unsigned int v20; // r1 unsigned int v21; // r2 _DWORD *v22; // r1 int v23; // r2 int v24; // r3 int v25; // r2 int v26; // r3 size_t v27; // r5 char *v28; // r0 char *v29; // r8 int v30; // r1 unsigned int v31; // r5 unsigned int v32; // r2 int v33; // r3 unsigned int v34; // r2 unsigned int v35; // r3 int v36; // r3 _DWORD *i; // r6 _DWORD *v38; // r10 int v39; // r7 unsigned int v40; // r2 int v41; // r0 int v42; // r3 _DWORD *v43; // r3 unsigned int v44; // r1 unsigned int v45; // r2 bool v46; // cc int v47; // r2 int v48; // r3 cocos2d::CCObject::retain(a2); v6 = operator new(0x128u); cocos2d::CCDictElement::CCDictElement((cocos2d::CCDictElement *)v6, a3, a2); *(_DWORD *)(v6 + 272) = 0; *(_DWORD *)(v6 + 284) = v6 + 256; *(_DWORD *)(v6 + 288) = 4; v7 = *((_DWORD *)this + 13); v8 = v6 + 264; if ( v7 ) { *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(v7 + 264) + 16) + 8) = v6; *(_DWORD *)(v6 + 268) = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 16) - *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 20); *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 16) = v8; } else { *((_DWORD *)this + 13) = v6; *(_DWORD *)(v6 + 268) = 0; v9 = *((_DWORD *)this + 13); *(_DWORD *)(v9 + 264) = malloc(0x2Cu); v10 = *(void **)(*((_DWORD *)this + 13) + 264); if ( !v10 ) goto LABEL_3; memset(v10, 0, 0x2Cu); *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 16) = *((_DWORD *)this + 13) + 264; *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 4) = 32; *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 8) = 5; *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 20) = 264; v11 = *(void ***)(*((_DWORD *)this + 13) + 264); *v11 = malloc(0x180u); v12 = **(void ***)(*((_DWORD *)this + 13) + 264); if ( !v12 ) goto LABEL_3; memset(v12, 0, 0x180u); *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 40) = -1609490463; } ++*(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 12); v13 = *(unsigned __int8 *)(v6 + 256); *(_DWORD *)(v6 + 264) = *(_DWORD *)(*((_DWORD *)this + 13) + 264); v14 = (v13 + 17973517 + (*(unsigned __int8 *)(v6 + 259) << 24) + (*(unsigned __int8 *)(v6 + 258) << 16) + (*(unsigned __int8 *)(v6 + 257) << 8)) ^ 0x7F76D; v15 = (-1622558010 - v14) ^ (v14 << 8); v16 = (-17973517 - v14 - v15) ^ (v15 >> 13); v17 = (v14 - v15 - v16) ^ (v16 >> 12); v18 = (v15 - v16 - v17) ^ (v17 << 16); v19 = (v16 - v17 - v18) ^ (v18 >> 5); v20 = v17 - v18 - v19; v21 = (v19 - (v20 ^ (v19 >> 3)) - ((v18 - v19 - (v20 ^ (v19 >> 3))) ^ ((v20 ^ (v19 >> 3)) << 10))) ^ (((v18 - v19 - (v20 ^ (v19 >> 3))) ^ ((v20 ^ (v19 >> 3)) << 10)) >> 15); *(_DWORD *)(v6 + 292) = v21; v22 = *(_DWORD **)(*((_DWORD *)this + 13) + 264); v23 = 12 * (v21 & (v22[1] - 1)); ++*(_DWORD *)(*v22 + v23 + 4); *(_DWORD *)(v6 + 280) = *(_DWORD *)(**(_DWORD **)(*((_DWORD *)this + 13) + 264) + v23); *(_DWORD *)(v6 + 276) = 0; v24 = *(_DWORD *)(**(_DWORD **)(*((_DWORD *)this + 13) + 264) + v23); if ( v24 ) *(_DWORD *)(v24 + 12) = v8; *(_DWORD *)(**(_DWORD **)(*((_DWORD *)this + 13) + 264) + v23) = v8; v25 = v23 + **(_DWORD **)(*((_DWORD *)this + 13) + 264); if ( *(_DWORD *)(v25 + 4) >= (unsigned int)(10 * *(_DWORD *)(v25 + 8) + 10) ) { v26 = *(_DWORD *)(v6 + 264); if ( *(_DWORD *)(v26 + 36) != 1 ) { v27 = 24 * *(_DWORD *)(v26 + 4); v28 = (char *)malloc(v27); v29 = v28; if ( v28 ) { memset(v28, 0, v27); v30 = *(_DWORD *)(v6 + 264); v31 = 0; v32 = *(_DWORD *)(v30 + 12); v33 = (2 * *(_DWORD *)(v30 + 4) - 1) & v32; v34 = v32 >> (*(_BYTE *)(v30 + 8) + 1); if ( v33 ) v35 = v34 + 1; else v35 = v34; *(_DWORD *)(v30 + 24) = v35; *(_DWORD *)(*(_DWORD *)(v6 + 264) + 28) = 0; while ( 1 ) { v36 = *(_DWORD *)(v6 + 264); if ( v31 >= *(_DWORD *)(v36 + 4) ) break; for ( i = *(_DWORD **)(*(_DWORD *)v36 + 12 * v31); i; i = v38 ) { v38 = (_DWORD *)i[4]; v39 = 12 * (i[7] & (2 * *(_DWORD *)(*(_DWORD *)(v6 + 264) + 4) - 1)); v40 = *(_DWORD *)&v29[v39 + 4] + 1; *(_DWORD *)&v29[v39 + 4] = v40; v41 = *(_DWORD *)(v6 + 264); if ( v40 > *(_DWORD *)(v41 + 24) ) { ++*(_DWORD *)(v41 + 28); *(_DWORD *)&v29[v39 + 8] = *(_DWORD *)&v29[v39 + 4] / *(_DWORD *)(*(_DWORD *)(v6 + 264) + 24); } i[3] = 0; i[4] = *(_DWORD *)&v29[v39]; v42 = *(_DWORD *)&v29[v39]; if ( v42 ) *(_DWORD *)(v42 + 12) = i; *(_DWORD *)&v29[v39] = i; } ++v31; } free(*(void **)v36); *(_DWORD *)(*(_DWORD *)(v6 + 264) + 4) *= 2; ++*(_DWORD *)(*(_DWORD *)(v6 + 264) + 8); **(_DWORD **)(v6 + 264) = v29; v43 = *(_DWORD **)(v6 + 264); v44 = v43[3]; v45 = v43[7]; v46 = v45 > v44 >> 1; if ( v45 <= v44 >> 1 ) v47 = 0; else v47 = v43[8]; if ( v46 ) ++v47; v43[8] = v47; v48 = *(_DWORD *)(v6 + 264); if ( *(_DWORD *)(v48 + 32) > 1u ) *(_DWORD *)(v48 + 36) = 1; return; } LABEL_3: exit(-1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source