// // cocos2d::CCTextureCache::addImage from 0xda7d00 to 0xda8464 (1892 bytes) // // 89 xrefs: // > ButtonSprite::updateBGImage @ 0x68bff4 // > CCAnimatedSprite::loadType @ 0x68cf74 // > CCAnimatedSprite::initWithType @ 0x68d568 // > LoadingLayer::init @ 0x6ed258 // > LoadingLayer::loadAssets @ 0x6edb80 // > LoadingLayer::loadAssets @ 0x6edbac // > LoadingLayer::loadAssets @ 0x6edbd8 // > LoadingLayer::loadAssets @ 0x6edc04 // > LoadingLayer::loadAssets @ 0x6edc28 // > LoadingLayer::loadAssets @ 0x6edc54 // > LoadingLayer::loadAssets @ 0x6edc88 // > LoadingLayer::loadAssets @ 0x6edcac // > LoadingLayer::loadAssets @ 0x6edcd0 // > LoadingLayer::loadAssets @ 0x6edce4 // > LoadingLayer::loadAssets @ 0x6edcf8 // > LoadingLayer::loadAssets @ 0x6edd1c // > LoadingLayer::loadAssets @ 0x6edd48 // > LoadingLayer::loadAssets @ 0x6edd6c // > LoadingLayer::loadAssets @ 0x6edd80 // > LoadingLayer::loadAssets @ 0x6edd94 // > LoadingLayer::loadAssets @ 0x6edda8 // > LoadingLayer::loadAssets @ 0x6eddbc // > LoadingLayer::loadAssets @ 0x6edebc // > LoadingLayer::loadAssets @ 0x6eded0 // > LoadingLayer::loadAssets @ 0x6edee4 // > LoadingLayer::loadAssets @ 0x6edef8 // > LoadingLayer::loadAssets @ 0x6edf0c // > LoadingLayer::loadAssets @ 0x6edf20 // > LoadingLayer::loadAssets @ 0x6edfb4 // > LoadingLayer::loadAssets @ 0x6edfc8 // > GameManager::loadFont @ 0x7165d4 // > GameManager::loadDeathEffect @ 0x716730 // > GameManager::loadBackground @ 0x716874 // > GameManager::loadMiddleground @ 0x716a00 // > GameManager::loadMiddleground @ 0x716a28 // > GameManager::loadGround @ 0x716cbc // > GameManager::loadGround @ 0x716d10 // > GameManager::loadIcon @ 0x7296cc // > PlayerObject::setupStreak @ 0x766e90 // > PlayerObject::update @ 0x769150 // > GameObject::createWithKey @ 0x77fec0 // > LevelEditorLayer::updateLevelFont @ 0x793cf8 // > LevelEditorLayer::updateLevelFont @ 0x793f3c // > AudioEffectsLayer::init @ 0x8b8b84 // > GJMoreGamesLayer::getMoreGamesList @ 0x8ffa84 // > GJBaseGameLayer::createTextLayers @ 0x99aa50 // > GJBaseGameLayer::createTextLayers @ 0x99ac00 // > GJBaseGameLayer::createTextLayers @ 0x99ac38 // > GJBaseGameLayer::setupLayers @ 0x9f3d94 // > GJBaseGameLayer::setupLayers @ 0x9f3db0 // > GJBaseGameLayer::setupLayers @ 0x9f3dc8 // > GJBaseGameLayer::setupLayers @ 0x9f3de0 // > GJBaseGameLayer::setupLayers @ 0x9f3df8 // > GJBaseGameLayer::setupLayers @ 0x9f3e10 // > FMODLevelVisualizer::init @ 0xa21134 // > GJPromoPopup::init @ 0xa30d2c // > CurrencyRewardLayer::init @ 0xa6ac94 // > GauntletSelectLayer::init @ 0xa76b0c // > GJShopLayer::init @ 0xa7f050 // > SecretLayer2::init @ 0xa90294 // > SecretLayer3::init @ 0xa92518 // > SecretLayer4::init @ 0xa96e3c // > WorldSelectLayer::init @ 0xaa7ef4 // > LevelAreaLayer::init @ 0xb5ba44 // > LevelAreaInnerLayer::init @ 0xb5c838 // > SecretRewardsLayer::init @ 0xb9f074 // > GJPathsLayer::init @ 0xba5c0c // > SecretLayer5::init @ 0xbc7f44 // > SecretLayer5::init @ 0xbc7f68 // > SecretLayer6::init @ 0xbc9030 // > EditorUI::getCreateBtn @ 0xbe25e4 // > cocos2d::CCAtlasNode::initWithTileFile @ 0xd3c35c // > cocos2d::CCLabelAtlas::initWithString @ 0xd5468c // > cocos2d::CCLabelBMFont::setFntFile @ 0xd5a010 // > cocos2d::CCLabelBMFont::initWithString @ 0xd5a0dc // > cocos2d::CCMotionStreak::initWithFade @ 0xd6879c // > cocos2d::CCParticleSystem::initWithDictionary @ 0xd71ee0 // > cocos2d::CCParticleBatchNode::initWithFile @ 0xd726e4 // > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0xd84ecc // > cocos2d::CCSprite::initWithFile @ 0xd860c0 // > cocos2d::CCSprite::initWithFile @ 0xd8617c // > cocos2d::CCSpriteBatchNode::initWithFile @ 0xd89848 // > cocos2d::CCSpriteFrame::getTexture @ 0xd8ac7c // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0xd8b99c // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0xd8c644 // > cocos2d::CCTextureAtlas::initWithFile @ 0xda4700 // > cocos2d::CCTextureCache::reloadTexture @ 0xda8580 // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0xdab3a4 // > @ 0xfa810 // // 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:33 +0000 // __int64 __fastcall cocos2d::CCTextureCache::addImage(cocos2d::CCTextureCache *this, char *a2, unsigned __int8 a3) { unsigned int v3; // w19 size_t v5; // x0 cocos2d::CCFileUtils *v6; // x0 __int64 v7; // x0 char *v8; // x1 char *v9; // x1 __int64 v10; // x19 size_t v11; // x0 __int64 v12; // x0 cocos2d::CCTexture2D *v13; // x24 __int64 v14; // x19 void *v16; // x0 unsigned int i; // w27 unsigned __int64 v18; // x1 _BYTE *v19; // x19 unsigned __int8 v20; // w19 int v21; // w2 char *v22; // x27 char *v23; // x26 __int64 v24; // x0 char *v25; // x1 cocos2d::CCImage *v26; // x26 char *v27; // x27 unsigned __int64 v28; // x0 char *v29; // x26 __int64 v30; // x0 char *v31; // x1 char *v32; // x27 unsigned __int64 v33; // x0 char *v34; // x26 __int64 v35; // x0 int v36; // w19 char *v37; // x1 char *v38; // x1 char *v39; // x20 __int64 v40; // x19 size_t v41; // x0 char *v42; // x27 unsigned __int64 v43; // x0 char *v44; // x26 __int64 v45; // x0 char *v46; // x26 unsigned __int64 v47; // x19 __int64 v48; // x19 __int64 v49; // x0 unsigned __int8 v50; // w0 int v51; // w2 char *v52; // x26 unsigned __int64 v53; // x1 char *v54; // x19 __int64 v55; // x0 char *v56; // x26 unsigned __int64 v57; // x1 char *v58; // x19 __int64 v59; // x0 char *v60; // x28 unsigned __int64 v61; // x19 __int64 v62; // x19 __int64 v63; // x0 char *v65; // [xsp+68h] [xbp+68h] __int64 v66; // [xsp+78h] [xbp+78h] BYREF size_t v67; // [xsp+80h] [xbp+80h] void *v68; // [xsp+88h] [xbp+88h] __int64 v69; // [xsp+90h] [xbp+90h] BYREF size_t v70; // [xsp+98h] [xbp+98h] char *v71; // [xsp+A0h] [xbp+A0h] __int64 v72; // [xsp+A8h] [xbp+A8h] BYREF unsigned __int64 v73; // [xsp+B0h] [xbp+B0h] void *v74; // [xsp+B8h] [xbp+B8h] __int64 v75; // [xsp+C0h] [xbp+C0h] BYREF size_t v76; // [xsp+C8h] [xbp+C8h] char *v77; // [xsp+D0h] [xbp+D0h] v3 = a3; v66 = 0; v67 = 0; v68 = nullptr; v5 = strlen(a2); v6 = (cocos2d::CCFileUtils *)std::string::__init(&v66, a2, v5); v7 = cocos2d::CCFileUtils::sharedFileUtils(v6); v8 = (char *)&v66 + 1; if ( (v66 & 1) != 0 ) v8 = (char *)v68; (*(void (__fastcall **)(__int64 *__return_ptr, __int64, char *, _QWORD))(*(_QWORD *)v7 + 48LL))(&v75, v7, v8, v3); if ( (v66 & 1) != 0 ) { *(_BYTE *)v68 = 0; v67 = 0; } else { LOWORD(v66) = 0; } std::string::reserve(&v66, 0); v66 = v75; v9 = v77; v67 = v76; v68 = v77; if ( (v75 & 1) != 0 ) { if ( !v67 ) { v14 = 0; LABEL_16: operator delete(v68); return v14; } v10 = *((_QWORD *)this + 7); } else { if ( !((int)(unsigned __int8)v75 >> 1) ) return 0; v10 = *((_QWORD *)this + 7); v9 = (char *)&v66 + 1; } v65 = v9; v75 = 0; v76 = 0; v77 = nullptr; v11 = strlen(v9); std::string::__init(&v75, v65, v11); v12 = cocos2d::CCDictionary::objectForKey(v10, (__int64)&v75); v13 = (cocos2d::CCTexture2D *)v12; if ( (v75 & 1) != 0 ) { v14 = v12; operator delete(v77); if ( v13 ) goto LABEL_13; } else { v14 = v12; if ( v12 ) goto LABEL_13; } v69 = 0; v70 = 0; v71 = nullptr; if ( (v66 & 1) != 0 ) { std::string::__init(&v69, v68, v67); v72 = 0; v73 = 0; v74 = nullptr; if ( (v66 & 1) != 0 ) { std::string::__init(&v72, v68, v67); goto LABEL_21; } v16 = v68; } else { v16 = v68; v71 = (char *)v68; v69 = v66; v70 = v67; } v72 = v66; v73 = v67; v74 = v16; LABEL_21: for ( i = 0; ; ++i ) { v20 = v72; v21 = v72 & 1; if ( !v21 ) break; v18 = v73; if ( i >= v73 ) { v22 = (char *)v74; v21 = 1; goto LABEL_30; } v19 = (char *)v74 + i; LABEL_24: *v19 = tolower((unsigned __int8)*v19); } v18 = (unsigned __int8)v72 >> 1; if ( i < v18 ) { v19 = (char *)&v72 + i + 1; goto LABEL_24; } v22 = (char *)&v72 + 1; LABEL_30: if ( v18 > 3 ) { v23 = &v22[v18]; v24 = std::__search( (__int64)v22, (__int64)&v22[v18], ".pvr", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v23 != (char *)v24 && v24 - (_QWORD)v22 != -1 ) { v25 = (char *)&v69 + 1; if ( (v69 & 1) != 0 ) v25 = v71; v26 = nullptr; v13 = (cocos2d::CCTexture2D *)cocos2d::CCTextureCache::addPVRImage(this, v25); goto LABEL_36; } v20 = v72; v21 = v72 & 1; } if ( v21 ) { v27 = (char *)v74; v28 = v73; } else { v28 = v20 >> 1; v27 = (char *)&v72 + 1; } if ( v28 > 3 ) { v29 = &v27[v28]; v30 = std::__search( (__int64)v27, (__int64)&v27[v28], ".pkm", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v29 != (char *)v30 && v30 - (_QWORD)v27 != -1 ) { v31 = (char *)&v69 + 1; if ( (v69 & 1) != 0 ) v31 = v71; v26 = nullptr; v13 = (cocos2d::CCTexture2D *)cocos2d::CCTextureCache::addETCImage(this, v31); goto LABEL_36; } v20 = v72; v21 = v72 & 1; } if ( v21 ) { v32 = (char *)v74; v33 = v73; } else { v33 = v20 >> 1; v32 = (char *)&v72 + 1; } if ( v33 <= 3 ) { LABEL_75: if ( v21 ) { v42 = (char *)v74; v43 = v73; } else { v43 = v20 >> 1; v42 = (char *)&v72 + 1; } if ( v43 > 3 ) { v44 = &v42[v43]; v45 = std::__search( (__int64)v42, (__int64)&v42[v43], ".jpg", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v44 != (char *)v45 && v45 - (_QWORD)v42 != -1 ) { LABEL_80: v36 = 0; LABEL_81: v26 = (cocos2d::CCImage *)operator new(0x50u); cocos2d::CCImage::CCImage(v26); goto LABEL_62; } v20 = v72; v21 = v72 & 1; } if ( v21 ) { v46 = (char *)v74; v47 = v73; } else { v47 = v20 >> 1; v46 = (char *)&v72 + 1; } if ( v47 > 4 ) { v48 = (__int64)&v46[v47]; v49 = std::__search( (__int64)v46, v48, ".jpeg", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v48 != v49 && v49 - (_QWORD)v46 != -1 ) goto LABEL_80; } v50 = v72; v51 = v72 & 1; if ( v51 ) { v52 = (char *)v74; v53 = v73; } else { v53 = (unsigned __int8)v72 >> 1; v52 = (char *)&v72 + 1; } if ( v53 > 3 ) { v54 = &v52[v53]; v55 = std::__search( (__int64)v52, (__int64)&v52[v53], ".tif", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v54 != (char *)v55 && v55 - (_QWORD)v52 != -1 ) goto LABEL_94; v50 = v72; v51 = v72 & 1; } if ( v51 ) { v56 = (char *)v74; v57 = v73; } else { v57 = v50 >> 1; v56 = (char *)&v72 + 1; } if ( v57 > 4 ) { v58 = &v56[v57]; v59 = std::__search( (__int64)v56, (__int64)&v56[v57], ".tiff", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v58 != (char *)v59 && v59 - (_QWORD)v56 != -1 ) { LABEL_94: v36 = 2; goto LABEL_81; } v50 = v72; } if ( (v50 & 1) != 0 ) { v60 = (char *)v74; v61 = v73; } else { v61 = v50 >> 1; v60 = (char *)&v72 + 1; } if ( v61 > 4 ) { v62 = (__int64)&v60[v61]; v63 = std::__search( (__int64)v60, v62, ".webp", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v62 != v63 && v63 - (_QWORD)v60 != -1 ) { v36 = 3; v26 = (cocos2d::CCImage *)operator new(0x50u); cocos2d::CCImage::CCImage(v26); goto LABEL_62; } } v36 = 5; goto LABEL_81; } v34 = &v32[v33]; v35 = std::__search( (__int64)v32, (__int64)&v32[v33], (unsigned __int8 *)".png", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v34 == (char *)v35 || v35 - (_QWORD)v32 == -1 ) { v20 = v72; v21 = v72 & 1; goto LABEL_75; } v36 = 1; v26 = (cocos2d::CCImage *)operator new(0x50u); cocos2d::CCImage::CCImage(v26); LABEL_62: v37 = (char *)&v69 + 1; if ( (v69 & 1) != 0 ) v37 = v71; if ( (unsigned __int8)cocos2d::CCImage::initWithImageFile(v26, (__int64)v37, v36) ) { v13 = (cocos2d::CCTexture2D *)operator new(0x68u); cocos2d::CCTexture2D::CCTexture2D(v13); if ( (unsigned __int8)cocos2d::CCTexture2D::initWithImage(v13, v26) ) { v38 = (char *)&v69 + 1; if ( (v69 & 1) != 0 ) v38 = v71; v39 = (char *)&v66 + 1; cocos2d::VolatileTexture::addImageTexture(v13, (cocos2d::CCTexture2D *)v38, v36); v40 = *((_QWORD *)this + 7); if ( (v66 & 1) != 0 ) v39 = (char *)v68; v75 = 0; v76 = 0; v77 = nullptr; v41 = strlen(v39); std::string::__init(&v75, v39, v41); cocos2d::CCDictionary::setObject(v40, v13, (__int64)&v75); if ( (v75 & 1) != 0 ) operator delete(v77); cocos2d::CCObject::release(v13); } } LABEL_36: if ( (v72 & 1) != 0 ) operator delete(v74); if ( (v69 & 1) != 0 ) operator delete(v71); v14 = (__int64)v13; if ( v26 ) cocos2d::CCObject::release(v26); LABEL_13: if ( (v66 & 1) != 0 ) goto LABEL_16; return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source