// // cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary from 0x7f3934 to 0x7f3e94 (1376 bytes) // // 2 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f3f0a // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x7f485c // // 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:07 +0000 // int __fastcall cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary( cocos2d::CCSpriteFrameCache *this, cocos2d::CCDictionary *a2, cocos2d::CCTexture2D *a3) { int v4; // r8 int v5; // r7 int result; // r0 int v7; // r2 int v8; // r3 cocos2d::CCString *v9; // r0 int v10; // r5 int v11; // r4 size_t v12; // r0 int v13; // r6 _DWORD *v14; // r4 int v15; // r2 int v16; // r3 cocos2d::CCString *v17; // r0 int v18; // r2 int v19; // r3 cocos2d::CCString *v20; // r0 int v21; // r2 int v22; // r3 cocos2d::CCString *v23; // r0 int v24; // r10 int v25; // r2 int v26; // r3 cocos2d::CCString *v27; // r0 int v28; // r11 int v29; // r2 int v30; // r3 cocos2d::CCString *v31; // r0 int v32; // r9 int v33; // r2 int v34; // r3 cocos2d::CCString *v35; // r0 int v36; // r8 int v37; // r2 int v38; // r3 cocos2d::CCString *v39; // r0 int v40; // r7 int v41; // r2 int v42; // r3 cocos2d::CCString *v43; // r0 int v44; // r6 int v45; // r2 int v46; // r3 cocos2d::CCString *v47; // r0 char *v48; // r0 int v49; // r2 int v50; // r3 cocos2d::CCString *v51; // r0 char v52; // r8 int v53; // r2 int v54; // r3 cocos2d::CCString *v55; // r0 char *v56; // r0 int v57; // r2 int v58; // r3 cocos2d::CCString *v59; // r0 char *v60; // r0 int v61; // r2 int v62; // r3 cocos2d::CCString *v63; // r0 char *CString; // r0 int v65; // r2 int v66; // r3 cocos2d::CCString *v67; // r0 char *v68; // r0 int v69; // r2 int v70; // r3 cocos2d::CCString *v71; // r0 char *v72; // r0 int v73; // r2 int v74; // r3 cocos2d::CCString *v75; // r0 char *v76; // r0 int v77; // r2 int v78; // r3 cocos2d::CCString *v79; // r0 _DWORD *v80; // r4 int v81; // r3 int v82; // [sp+8h] [bp-8Ch] int v85; // [sp+30h] [bp-64h] char v86; // [sp+30h] [bp-64h] int v87; // [sp+34h] [bp-60h] float v88[2]; // [sp+3Ch] [bp-58h] BYREF _BYTE v89[8]; // [sp+44h] [bp-50h] BYREF float v90[2]; // [sp+4Ch] [bp-48h] BYREF int v91[3]; // [sp+54h] [bp-40h] BYREF int v92; // [sp+60h] [bp-34h] BYREF int v93; // [sp+64h] [bp-30h] int v94; // [sp+68h] [bp-2Ch] float v95[4]; // [sp+6Ch] [bp-28h] BYREF _BYTE v96[16]; // [sp+7Ch] [bp-18h] BYREF v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "metadata", 8u); v4 = cocos2d::CCDictionary::objectForKey((int)a2, (int)&v92); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "frames", 6u); v5 = cocos2d::CCDictionary::objectForKey((int)a2, (int)&v92); result = std::string::~string((int)&v92); if ( v4 ) { v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "format", 6u); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v4, (int)&v92, v7, v8); v10 = cocos2d::CCString::intValue(v9); result = std::string::~string((int)&v92); } else { v10 = 0; } if ( v5 ) { v11 = *(_DWORD *)(v5 + 52); if ( v11 ) v82 = *(_DWORD *)(v11 + 272); else v82 = 0; while ( v11 ) { memset(v91, 0, sizeof(v91)); v12 = strlen((const char *)v11); v13 = *(_DWORD *)(v11 + 260); std::string::__init(v91, (const void *)v11, v12); v14 = (_DWORD *)cocos2d::CCDictionary::objectForKey(*((_DWORD *)this + 13), (int)v91); if ( !v14 ) { if ( v10 ) { if ( (unsigned int)(v10 - 1) > 1 ) { if ( v10 == 3 ) { v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "spriteSize", 0xAu); v63 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v61, v62); CString = cocos2d::CCString::getCString(v63); cocos2d::CCSizeFromString((cocos2d *)v88, CString); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "spriteOffset", 0xCu); v67 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v65, v66); v68 = cocos2d::CCString::getCString(v67); cocos2d::CCPointFromString((cocos2d *)v89, v68); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "spriteSourceSize", 0x10u); v71 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v69, v70); v72 = cocos2d::CCString::getCString(v71); cocos2d::CCSizeFromString((cocos2d *)v90, v72); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "textureRect", 0xBu); v75 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v73, v74); v76 = cocos2d::CCString::getCString(v75); cocos2d::CCRectFromString((cocos2d *)v95, v76); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "textureRotated", 0xEu); v79 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v77, v78); v86 = cocos2d::CCString::boolValue(v79); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "aliases", 7u); cocos2d::CCDictionary::objectForKey(v13, (int)&v92); std::string::~string((int)&v92); v80 = (_DWORD *)operator new(0x40u); cocos2d::CCString::CCString(v80, (int)v91); cocos2d::CCObject::release(v80); v14 = (_DWORD *)operator new(0x94u); memset(v14, 0, 0x94u); cocos2d::CCSpriteFrame::CCSpriteFrame((cocos2d::CCSpriteFrame *)v14); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v96, v95[0], v95[1], v88[0], v88[1]); cocos2d::CCSpriteFrame::initWithTexture( (cocos2d::CCSpriteFrame *)v14, a3, (const cocos2d::CCRect *)v96, v86, (const cocos2d::CCPoint *)v89, (const cocos2d::CCSize *)v90); } } else { v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "frame", 5u); v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v45, v46); v48 = cocos2d::CCString::getCString(v47); cocos2d::CCRectFromString((cocos2d *)v96, v48); std::string::~string((int)&v92); if ( v10 == 2 ) { v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "rotated", 7u); v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v49, v50); v52 = cocos2d::CCString::boolValue(v51); std::string::~string((int)&v92); } else { v52 = 0; } v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "offset", 6u); v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v53, v54); v56 = cocos2d::CCString::getCString(v55); cocos2d::CCPointFromString((cocos2d *)v90, v56); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "sourceSize", 0xAu); v59 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v57, v58); v60 = cocos2d::CCString::getCString(v59); cocos2d::CCSizeFromString((cocos2d *)v95, v60); std::string::~string((int)&v92); v14 = (_DWORD *)operator new(0x94u); memset(v14, 0, 0x94u); cocos2d::CCSpriteFrame::CCSpriteFrame((cocos2d::CCSpriteFrame *)v14); cocos2d::CCSpriteFrame::initWithTexture( (cocos2d::CCSpriteFrame *)v14, a3, (const cocos2d::CCRect *)v96, v52, (const cocos2d::CCPoint *)v90, (const cocos2d::CCSize *)v95); } } else { v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "x", 1u); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v15, v16); v87 = cocos2d::CCString::floatValue(v17); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "y", 1u); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v18, v19); v85 = cocos2d::CCString::floatValue(v20); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "width", 5u); v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v21, v22); v24 = cocos2d::CCString::floatValue(v23); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "height", 6u); v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v25, v26); v28 = cocos2d::CCString::floatValue(v27); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "offsetX", 7u); v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v29, v30); v32 = cocos2d::CCString::floatValue(v31); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "offsetY", 7u); v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v33, v34); v36 = cocos2d::CCString::floatValue(v35); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "originalWidth", 0xDu); v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v37, v38); v40 = cocos2d::CCString::intValue(v39); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = 0; std::string::__init(&v92, "originalHeight", 0xEu); v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v13, (int)&v92, v41, v42); v44 = cocos2d::CCString::intValue(v43); std::string::~string((int)&v92); v14 = (_DWORD *)operator new(0x94u); memset(v14, 0, 0x94u); cocos2d::CCSpriteFrame::CCSpriteFrame((cocos2d::CCSpriteFrame *)v14); cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v96, *(float *)&v87, *(float *)&v85, *(float *)&v24, *(float *)&v28); cocos2d::CCPoint::CCPoint(v90, *(float *)&v32, *(float *)&v36); cocos2d::CCSize::CCSize(v95, (float)(int)abs32(v40), (float)(int)abs32(v44)); cocos2d::CCSpriteFrame::initWithTexture( (cocos2d::CCSpriteFrame *)v14, a3, (const cocos2d::CCRect *)v96, 0, (const cocos2d::CCPoint *)v90, (const cocos2d::CCSize *)v95); } cocos2d::CCDictionary::setObject(*((_DWORD *)this + 13), (cocos2d::CCObject *)v14, (int)v91); cocos2d::CCObject::release(v14); } result = std::string::~string((int)v91); if ( v82 ) v81 = *(_DWORD *)(v82 + 272); else v81 = 0; v11 = v82; v82 = v81; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source