// // cocos2d::CCRectFromString from 0x7c8064 to 0x7c831a (694 bytes) // // 2 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x7f3c36 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x7f3db0 // // 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:27 +0000 // cocos2d *__fastcall cocos2d::CCRectFromString(cocos2d *this, const char *a2) { size_t v4; // r0 int v5; // r5 int v6; // r8 int v7; // r2 int v8; // r0 bool v9; // zf int v10; // r3 int v11; // r0 unsigned int v12; // r3 unsigned int v13; // r0 char *v14; // r9 int v15; // r8 char *v16; // r0 int v17; // r2 size_t v18; // r2 int v19; // r0 unsigned int v20; // r1 void *v21; // r2 unsigned int v22; // r2 size_t v23; // r0 size_t v24; // r10 int v25; // r3 const char *v26; // r0 const char *v27; // r0 const char *v28; // r0 float v29; // s18 const char *v30; // r0 float v31; // s17 const char *v32; // r0 double v33; // d7 float v34; // s16 const char *v35; // r0 float v36; // s15 int v38; // [sp+8h] [bp-54h] BYREF unsigned int v39; // [sp+Ch] [bp-50h] void *v40; // [sp+10h] [bp-4Ch] int v41[3]; // [sp+14h] [bp-48h] BYREF int v42; // [sp+20h] [bp-3Ch] BYREF unsigned int v43; // [sp+24h] [bp-38h] void *v44; // [sp+28h] [bp-34h] void *v45[3]; // [sp+2Ch] [bp-30h] BYREF void *v46[3]; // [sp+38h] [bp-24h] BYREF float v47[4]; // [sp+44h] [bp-18h] BYREF cocos2d::CCRect::CCRect(this, (const cocos2d::CCRect *)&unk_D2F074); if ( a2 ) { v38 = 0; v39 = 0; v40 = nullptr; v4 = strlen(a2); std::string::__init(&v38, a2, v4); v5 = 2; v6 = std::string::find((unsigned __int8 *)&v38, 123, 0); v7 = std::string::find((unsigned __int8 *)&v38, 125, 0); while ( v7 != -1 ) { v8 = std::string::find((unsigned __int8 *)&v38, 125, v7 + 1); v7 = v8; if ( v5 == 1 ) { if ( v6 == -1 || v8 == -1 ) break; std::string::basic_string(&v42, (unsigned __int8 *)&v38, v6 + 1, v8 - v6 - 1); v10 = v38 & 1; v9 = v10 == 0; if ( (v38 & 1) != 0 ) { v10 = 0; *(_BYTE *)v40 = 0; } else { LOBYTE(v38) = v10; BYTE1(v38) = v10; } if ( !v9 ) v39 = v10; if ( (v38 & 1) != 0 ) { v11 = v39; v12 = (v38 & 0xFFFFFFFE) - 1; if ( v39 <= 0xA ) { if ( (v38 & 0xFFFFFFFE) != 0xB ) { LABEL_20: v14 = (char *)v40; v15 = 1; v16 = (char *)&v38 + 1; goto LABEL_24; } } else { LABEL_18: v13 = (v11 + 16) & 0xFFFFFFF0; if ( v13 - 1 != v12 ) { if ( v13 == 11 ) goto LABEL_20; v16 = (char *)operator new(v13); v15 = v38 & 1; if ( (v38 & 1) != 0 ) v14 = (char *)v40; else v14 = (char *)&v38 + 1; LABEL_24: if ( (v38 & 1) != 0 ) v17 = v39; else v17 = (int)(unsigned __int8)v38 >> 1; v18 = v17 + 1; if ( v18 ) memcpy(v16, v14, v18); if ( v15 ) operator delete(v14); } } } else { v11 = (int)(unsigned __int8)v38 >> 1; if ( v11 > 10 ) { v12 = 10; goto LABEL_18; } } v19 = v42; v20 = v43; v21 = v44; v42 = 0; v43 = 0; v44 = nullptr; v38 = v19; v39 = v20; v40 = v21; std::string::~string((int)&v42); v22 = std::string::find((unsigned __int8 *)&v38, 125, 0); if ( v22 != -1 ) { v23 = std::string::find((unsigned __int8 *)&v38, 44, v22); v24 = v23; if ( v23 != -1 ) { std::string::basic_string(v41, (unsigned __int8 *)&v38, 0, v23); if ( (v38 & 1) != 0 ) v25 = v39; else v25 = (int)(unsigned __int8)v38 >> 1; std::string::basic_string(&v42, (unsigned __int8 *)&v38, v24 + 1, v25 - v24); memset(v45, 0, sizeof(v45)); if ( (v41[0] & 1) != 0 ) v26 = (const char *)v41[2]; else v26 = (char *)v41 + 1; if ( sub_7C7E60(v26, v45) ) { memset(v46, 0, sizeof(v46)); if ( (v42 & 1) != 0 ) v27 = (const char *)v44; else v27 = (char *)&v42 + 1; if ( sub_7C7E60(v27, v46) ) { if ( (*(_BYTE *)v45[0] & 1) != 0 ) v28 = *((const char **)v45[0] + 2); else v28 = (char *)v45[0] + 1; v29 = atof(v28); if ( (*((_BYTE *)v45[0] + (unsigned int)&byte_9[3]) & 1) != 0 ) v30 = *((const char **)v45[0] + 5); else v30 = (char *)v45[0] + 13; v31 = atof(v30); if ( (*(_BYTE *)v46[0] & 1) != 0 ) v32 = *((const char **)v46[0] + 2); else v32 = (char *)v46[0] + 1; v33 = atof(v32); if ( (*((_BYTE *)v46[0] + 12) & 1) != 0 ) v35 = *((const char **)v46[0] + 5); else v35 = (char *)v46[0] + 13; v34 = v33; v36 = atof(v35); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v47, v29, v31, v34, v36); cocos2d::CCRect::operator=((float *)this, v47); } std::__vector_base::~__vector_base((int)v46); } std::__vector_base::~__vector_base((int)v45); std::string::~string((int)&v42); std::string::~string((int)v41); } } break; } v5 = 1; } std::string::~string((int)&v38); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source