// // cocos2d::CCRectFromString from 0xd44910 to 0xd44e88 (1400 bytes) // // 3 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0xd8b440 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0xd8b6fc // > @ 0x75970 // // 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:07:33 +0000 // cocos2d::CCRect *__usercall cocos2d::CCRectFromString@(cocos2d *this@, cocos2d::CCRect *a2@) { size_t v5; // x0 unsigned __int8 v6; // w24 int v7; // w25 size_t v8; // x20 char *v9; // x26 int v10; // w23 size_t v11; // x2 int v13; // w20 void *v14; // x0 int v15; // w0 int v16; // w0 unsigned __int64 v17; // x24 char *v18; // x26 bool v19; // zf size_t v20; // x2 char *v21; // x0 void *v22; // x0 unsigned __int64 v23; // x20 void *v24; // x0 int v25; // w0 char *v26; // x23 int v27; // w20 char *v28; // x0 size_t v29; // x2 size_t v30; // x2 int v31; // w2 int v32; // w0 int v33; // w20 __int64 v34; // x25 size_t v35; // x3 const char *v36; // x0 const char *v37; // x0 const char *v38; // x0 float v39; // s9 const char *v40; // x0 float v41; // s8 const char *v42; // x0 __int128 v43; // q2 const char *v44; // x0 float v45; // s3 char *v46; // x20 char *v47; // x0 char *v48; // x20 char *v49; // x0 char *v50; // x20 char *v51; // x0 char *v52; // x20 char *v53; // x0 void *v54; // x0 void *v55; // x0 unsigned __int64 v56; // x0 unsigned __int64 v57; // x0 __int64 v58; // [xsp+0h] [xbp+0h] BYREF __int128 v59; // [xsp+60h] [xbp+60h] float *v60; // [xsp+78h] [xbp+78h] _BYTE v61[16]; // [xsp+80h] [xbp+80h] BYREF __int64 v62; // [xsp+90h] [xbp+90h] BYREF size_t v63; // [xsp+98h] [xbp+98h] void *v64; // [xsp+A0h] [xbp+A0h] __int64 v65[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v66; // [xsp+B8h] [xbp+B8h] __int64 v67[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v68; // [xsp+D0h] [xbp+D0h] void *v69; // [xsp+D8h] [xbp+D8h] BYREF char *v70; // [xsp+E0h] [xbp+E0h] __int64 v71; // [xsp+E8h] [xbp+E8h] void *v72; // [xsp+F0h] [xbp+F0h] BYREF char *v73; // [xsp+F8h] [xbp+F8h] __int64 v74; // [xsp+100h] [xbp+100h] cocos2d::CCRect::CCRect(a2, (const cocos2d::CCRect *)&unk_1560020); if ( !this ) return a2; v62 = 0; v63 = 0; v64 = nullptr; v5 = strlen((const char *)this); std::string::__init(&v62, this, v5); v6 = v62; v7 = v62 & 1; if ( v7 ) { v8 = v63; v9 = (char *)v64; if ( v63 ) { v54 = memchr(v64, 123, v63); v10 = (_DWORD)v54 - (_DWORD)v9; v11 = v8; if ( !v54 ) v10 = -1; } else { v10 = -1; v11 = 0; } if ( !v11 ) goto LABEL_6; } else { v13 = (int)(unsigned __int8)v62 >> 1; if ( v13 ) { v9 = (char *)&v62 + 1; v55 = memchr((char *)&v62 + 1, 123, (int)(unsigned __int8)v62 >> 1); v10 = (_DWORD)v55 - ((unsigned int)&v58 + 145); v11 = v13; if ( !v55 ) v10 = -1; } else { v11 = 0; v10 = -1; v9 = (char *)&v62 + 1; } if ( !v11 ) { LABEL_6: if ( !v7 ) return a2; LABEL_65: operator delete(v64); return a2; } } v14 = memchr(v9, 125, v11); if ( !v14 ) goto LABEL_6; v15 = (_DWORD)v14 - (_DWORD)v9; if ( v15 == -1 ) goto LABEL_6; v16 = v15 + 1; v17 = v6 >> 1; v18 = (char *)v64; if ( v7 ) v17 = v63; else v18 = (char *)&v62 + 1; if ( v17 <= v16 ) goto LABEL_6; v20 = v17 - v16; v19 = v17 == v16; v21 = &v18[v16]; if ( v19 ) goto LABEL_6; v22 = memchr(v21, 125, v20); if ( !v22 ) goto LABEL_6; if ( (_DWORD)v22 - (_DWORD)v18 == -1 ) goto LABEL_6; v23 = (int)v22 - (int)v18 + 1; if ( v23 >= v17 ) goto LABEL_6; v24 = memchr(&v18[v23], 125, v17 - v23); if ( !v24 ) goto LABEL_6; v25 = (_DWORD)v24 - (_DWORD)v18; if ( v25 == -1 || v10 == -1 ) goto LABEL_6; std::string::basic_string(v67, (__int64)&v62, v10 + 1, v25 - v10 - 1); if ( (v62 & 1) != 0 ) { *(_BYTE *)v64 = 0; v63 = 0; if ( (v62 & 1) != 0 ) { v26 = (char *)v64; v27 = 1; v28 = (char *)&v62 + 1; } else { v56 = (unsigned __int8)v62 >> 1; if ( v56 <= 0x16 ) goto LABEL_32; v57 = (v56 + 16) & 0xFFFFFFFFFFFFFFF0LL; if ( v57 == 23 ) goto LABEL_32; v28 = (char *)operator new(v57); v27 = v62 & 1; if ( (v62 & 1) == 0 ) { v26 = (char *)&v62 + 1; v29 = (unsigned __int8)v62 >> 1; goto LABEL_28; } v26 = (char *)v64; } v29 = v63; LABEL_28: v30 = v29 + 1; if ( v30 ) memcpy(v28, v26, v30); if ( v27 ) operator delete(v26); } LABEL_32: v62 = v67[0]; v63 = v67[1]; v64 = v68; v31 = std::string::find((__int64)&v62, 0x7Du, 0); if ( v31 == -1 ) goto LABEL_80; v32 = std::string::find((__int64)&v62, 0x2Cu, v31); v33 = v32; if ( v32 == -1 ) goto LABEL_80; v34 = v32; std::string::basic_string(v65, (__int64)&v62, 0, v32); v35 = (unsigned __int8)v62 >> 1; if ( (v62 & 1) != 0 ) v35 = v63; std::string::basic_string(v67, (__int64)&v62, v33 + 1, v35 - v34); v69 = nullptr; v36 = (char *)v65 + 1; v70 = nullptr; v71 = 0; if ( (v65[0] & 1) != 0 ) v36 = (const char *)v66; if ( !(unsigned __int8)sub_D44198(v36, (__int64)&v69) ) { LABEL_71: v52 = (char *)v69; if ( v69 ) { v53 = v70; if ( v69 != v70 ) { do { v70 = v53 - 24; std::string::~string((__int64)(v53 - 24)); v53 = v70; } while ( v52 != v70 ); v53 = (char *)v69; } operator delete(v53); } if ( (v67[0] & 1) != 0 ) operator delete(v68); if ( (v65[0] & 1) != 0 ) operator delete(v66); LABEL_80: if ( (v62 & 1) == 0 ) return a2; goto LABEL_65; } v37 = (char *)v67 + 1; v72 = nullptr; v73 = nullptr; v74 = 0; if ( (v67[0] & 1) != 0 ) v37 = (const char *)v68; if ( !(unsigned __int8)sub_D44198(v37, (__int64)&v72) ) { v50 = (char *)v72; if ( v72 ) { v51 = v73; if ( v72 != v73 ) { do { v73 = v51 - 24; std::string::~string((__int64)(v51 - 24)); v51 = v73; } while ( v50 != v73 ); v51 = (char *)v72; } operator delete(v51); } goto LABEL_71; } v38 = (char *)v69 + 1; if ( (*(_BYTE *)v69 & 1) != 0 ) v38 = *((const char **)v69 + 2); v39 = atof(v38); v40 = (char *)v69 + 25; if ( (*((_BYTE *)v69 + 24) & 1) != 0 ) v40 = *((const char **)v69 + 5); v41 = atof(v40); v42 = (char *)v72 + 1; if ( (*(_BYTE *)v72 & 1) != 0 ) v42 = *((const char **)v72 + 2); *(float *)&v43 = atof(v42); v44 = (char *)v72 + 25; if ( (*((_BYTE *)v72 + 24) & 1) != 0 ) v44 = *((const char **)v72 + 5); v59 = v43; v45 = atof(v44); v60 = (float *)v61; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v61, v39, v41, *(float *)&v59, v45); cocos2d::CCRect::operator=((float *)a2, v60); v46 = (char *)v72; if ( v72 ) { v47 = v73; if ( v72 != v73 ) { do { v73 = v47 - 24; std::string::~string((__int64)(v47 - 24)); v47 = v73; } while ( v46 != v73 ); v47 = (char *)v72; } operator delete(v47); } v48 = (char *)v69; if ( v69 ) { v49 = v70; if ( v69 != v70 ) { do { v70 = v49 - 24; std::string::~string((__int64)(v49 - 24)); v49 = v70; } while ( v48 != v70 ); v49 = (char *)v69; } operator delete(v49); } if ( (v67[0] & 1) != 0 ) operator delete(v68); if ( (v65[0] & 1) != 0 ) operator delete(v66); if ( (v62 & 1) != 0 ) goto LABEL_65; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source