// // CCPartAnimSprite::setDisplayFrame from 0x3c757c to 0x3c7636 (186 bytes) // // 0 xrefs: // // 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 11:46:35 +0000 // cocos2d::CCSpriteFrame *__fastcall CCPartAnimSprite::setDisplayFrame( cocos2d::CCSpriteFrame *this, cocos2d::CCSpriteFrame *a2) { cocos2d::CCSpriteFrame *v2; // r6 CCAnimateFrameCache *v4; // r0 CCAnimateFrameCache *v5; // r5 const char *CString; // r0 _DWORD *v7; // r2 cocos2d::CCSpriteFrame *v8; // r7 int v9; // r3 int *v10; // r5 int v11; // r4 int v12; // r7 cocos2d::CCSpriteFrame **v13; // r5 cocos2d::CCSpriteFrame **v14; // r4 cocos2d::CCSpriteFrame *v15; // t1 int v16; // r3 SpriteDescription *v17; // r1 int v18; // r3 _DWORD *v19; // r2 cocos2d::CCSpriteFrame **v20; // r5 cocos2d::CCSpriteFrame **v21; // r4 cocos2d::CCSpriteFrame *v22; // t1 v2 = this; if ( a2 ) { this = *((cocos2d::CCSpriteFrame **)this + 128); if ( a2 != this ) { if ( this ) cocos2d::CCObject::release(this); *((_DWORD *)v2 + 128) = a2; v4 = (CCAnimateFrameCache *)cocos2d::CCObject::retain(a2); v5 = (CCAnimateFrameCache *)CCAnimateFrameCache::sharedSpriteFrameCache(v4); CString = (const char *)cocos2d::CCString::getCString(a2); this = (cocos2d::CCSpriteFrame *)CCAnimateFrameCache::spriteFrameByName(v5, CString); v8 = this; if ( this ) { v9 = *((_DWORD *)v2 + 132); if ( v9 ) { v7 = *(_DWORD **)(v9 + 52); if ( *v7 ) { v13 = (cocos2d::CCSpriteFrame **)v7[3]; v14 = &v13[*v7] + 0x3FFFFFFF; while ( v13 <= v14 ) { v15 = *v13++; this = v15; if ( !v15 ) break; this = (cocos2d::CCSpriteFrame *)CCSpritePart::markAsNotBeingUsed((int)this); } } } v10 = *((int **)v8 + 13); v11 = 0; v12 = *v10; while ( v11 < v12 ) { v16 = v10[3]; v17 = *(SpriteDescription **)(v16 + 4 * v11++); this = (cocos2d::CCSpriteFrame *)CCPartAnimSprite::transformSprite((cocos2d::CCArray **)v2, v17, (int)v7, v16); } v18 = *((_DWORD *)v2 + 132); if ( v18 ) { v19 = *(_DWORD **)(v18 + 52); if ( *v19 ) { v20 = (cocos2d::CCSpriteFrame **)v19[3]; v21 = &v20[*v19] + 0x3FFFFFFF; while ( v20 <= v21 ) { v22 = *v20++; this = v22; if ( !v22 ) break; this = (cocos2d::CCSpriteFrame *)CCSpritePart::hideInactive(this); } } } } *((_BYTE *)v2 + 516) = 1; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source