// // SpriteDescription::initDescription from 0x68e5c4 to 0x68e9f4 (1072 bytes) // // 2 xrefs: // > SpriteDescription::createDescription @ 0x68ea5c // > @ 0xd0c60 // // 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 12:50:34 +0000 // __int64 __fastcall SpriteDescription::initDescription(SpriteDescription *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v4; // x0 cocos2d *CString; // x0 const char *v6; // x1 cocos2d::CCString *v7; // x0 cocos2d *v8; // x0 const char *v9; // x1 cocos2d::CCString *v10; // x0 cocos2d *v11; // x0 const char *v12; // x1 cocos2d::CCString *v13; // x0 char v14; // w0 int v15; // s0 cocos2d::CCString *v16; // x0 int v17; // w0 char v18; // w1 cocos2d::CCString *v19; // x0 int v20; // w0 char v21; // w1 cocos2d::CCString *v22; // x0 char v23; // w0 char v24; // w1 cocos2d::CCString *v26; // x0 size_t v27; // x0 cocos2d::CCSpriteFrameCache *v28; // x0 cocos2d::CCSpriteFrameCache *v29; // x0 const char *v30; // x1 cocos2d::CCObject *v31; // x0 __int64 v32; // x20 __int64 *v33; // x0 char *v34; // [xsp+48h] [xbp+48h] __int64 v35; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCSpriteFrameCache *v36; // [xsp+58h] [xbp+58h] BYREF size_t v37; // [xsp+60h] [xbp+60h] void *v38; // [xsp+68h] [xbp+68h] cocos2d::CCSpriteFrameCache *v39; // [xsp+70h] [xbp+70h] BYREF size_t v40; // [xsp+78h] [xbp+78h] void *v41; // [xsp+80h] [xbp+80h] v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "position", 8u); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); CString = (cocos2d *)cocos2d::CCString::getCString(v4); cocos2d::CCPointFromString(&v35, CString, v6); cocos2d::CCPoint::operator=((char *)this + 56, &v35); if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "flipped", 7u); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); v8 = (cocos2d *)cocos2d::CCString::getCString(v7); cocos2d::CCPointFromString(&v35, v8, v9); cocos2d::CCPoint::operator=((char *)this + 72, &v35); if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "scale", 5u); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); v11 = (cocos2d *)cocos2d::CCString::getCString(v10); cocos2d::CCPointFromString(&v35, v11, v12); cocos2d::CCPoint::operator=((char *)this + 64, &v35); if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "rotation", 8u); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); cocos2d::CCString::floatValue(v13); v14 = (char)v39; *((_DWORD *)this + 20) = v15; if ( (v14 & 1) != 0 ) operator delete(v41); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "zValue", 6u); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); v17 = cocos2d::CCString::intValue(v16); v18 = (char)v39; *((_DWORD *)this + 21) = v17; if ( (v18 & 1) != 0 ) operator delete(v41); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "tag", 3u); v19 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); v20 = cocos2d::CCString::intValue(v19); v21 = (char)v39; *((_DWORD *)this + 22) = v20; if ( (v21 & 1) != 0 ) operator delete(v41); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "usesCustomTag", 0xDu); v22 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); v23 = cocos2d::CCString::boolValue(v22); v24 = (char)v39; *((_BYTE *)this + 92) = v23; if ( (v24 & 1) != 0 ) { operator delete(v41); if ( !*((_BYTE *)this + 92) ) return 1; } else if ( !v23 ) { return 1; } v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "texture", 7u); v26 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a2, &v39); v34 = (char *)cocos2d::CCString::getCString(v26); v36 = nullptr; v37 = 0; v38 = nullptr; v27 = strlen(v34); std::string::__init((__int64 *)&v36, v34, v27); v28 = (cocos2d::CCSpriteFrameCache *)(unsigned __int8)v39; if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); v29 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v28); v30 = (char *)&v36 + 1; if ( ((unsigned __int8)v36 & 1) != 0 ) v30 = (const char *)v38; v31 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v29, v30); *((_QWORD *)this + 12) = v31; cocos2d::CCObject::retain(v31); v39 = nullptr; v40 = 0; v41 = nullptr; v32 = *((_QWORD *)this + 12); if ( ((unsigned __int8)v36 & 1) != 0 ) { std::string::__init((__int64 *)&v39, v38, v37); } else { v41 = v38; v39 = v36; v40 = v37; } v33 = (__int64 *)(v32 + 160); if ( (cocos2d::CCSpriteFrameCache **)(v32 + 160) != &v39 ) { if ( ((unsigned __int8)v39 & 1) != 0 ) std::string::assign(v33, v41, v40); else std::string::assign(v33, (char *)&v39 + 1, (unsigned __int8)v39 >> 1); } if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); if ( ((unsigned __int8)v36 & 1) != 0 ) operator delete(v38); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source