// // DS_Dictionary::rectFromString from 0xdb8bb8 to 0xdb906c (1204 bytes) // // 4 xrefs: // > DS_Dictionary::getRectForKey @ 0xdb91b4 // > DS_Dictionary::getRectArrayForKey @ 0xdb92d8 // > DS_Dictionary::getRectArrayForKey @ 0xdb9340 // > @ 0x95ea8 // // 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:43 +0000 // bool __fastcall DS_Dictionary::rectFromString(int a1, __int64 a2, float *a3) { unsigned __int8 v5; // w25 int v6; // w26 size_t v7; // x19 char *v8; // x27 int v9; // w22 size_t v10; // x2 _BOOL4 v11; // w19 int v13; // w19 void *v14; // x0 int v15; // w0 int v16; // w0 unsigned __int64 v17; // x25 char *v18; // x27 bool v19; // zf size_t v20; // x2 char *v21; // x0 void *v22; // x0 int v23; // w0 unsigned __int64 v24; // x0 size_t v25; // x2 char *v26; // x0 void *v27; // x0 char *v28; // x26 int v29; // w22 char *v30; // x0 size_t v31; // x2 size_t v32; // x2 int v33; // w2 int v34; // w0 int v35; // w22 __int64 v36; // x26 size_t v37; // x3 bool v38; // w0 char *v39; // x21 char *v40; // x0 void *v41; // x0 void *v42; // x0 bool v43; // w0 const char *v44; // x0 float v45; // s9 const char *v46; // x0 float v47; // s8 const char *v48; // x0 float v49; // s2 const char *v50; // x0 float v51; // s3 char *v52; // x21 char *v53; // x0 unsigned __int64 v54; // x0 unsigned __int64 v55; // x0 float v56; // [xsp+70h] [xbp+70h] float v57[4]; // [xsp+90h] [xbp+90h] BYREF size_t v58; // [xsp+A0h] [xbp+A0h] BYREF size_t v59; // [xsp+A8h] [xbp+A8h] void *v60; // [xsp+B0h] [xbp+B0h] __int64 v61[3]; // [xsp+B8h] [xbp+B8h] BYREF size_t v62[2]; // [xsp+D0h] [xbp+D0h] BYREF void *v63; // [xsp+E0h] [xbp+E0h] void *v64; // [xsp+E8h] [xbp+E8h] BYREF char *v65; // [xsp+F0h] [xbp+F0h] __int64 v66; // [xsp+F8h] [xbp+F8h] void *v67; // [xsp+100h] [xbp+100h] BYREF char *v68; // [xsp+108h] [xbp+108h] __int64 v69; // [xsp+110h] [xbp+110h] DS_Dictionary::cleanStringWhiteSpace(a2, (__int64 *)&v58); v5 = v58; v6 = v58 & 1; if ( v6 ) { v7 = v59; v8 = (char *)v60; if ( v59 ) { v42 = memchr(v60, 123, v59); v9 = (_DWORD)v42 - (_DWORD)v8; v10 = v7; if ( !v42 ) v9 = -1; } else { v9 = -1; v10 = 0; } v11 = 0; if ( !v10 ) goto LABEL_5; LABEL_11: v14 = memchr(v8, 125, v10); if ( !v14 ) goto LABEL_5; v15 = (_DWORD)v14 - (_DWORD)v8; if ( v15 == -1 ) goto LABEL_5; v16 = v15 + 1; v17 = v5 >> 1; v18 = (char *)v60; if ( v6 ) v17 = v59; else v18 = (char *)&v58 + 1; if ( v17 <= v16 ) goto LABEL_5; v20 = v17 - v16; v19 = v17 == v16; v21 = &v18[v16]; if ( v19 ) goto LABEL_5; v22 = memchr(v21, 125, v20); if ( !v22 ) goto LABEL_5; v23 = (_DWORD)v22 - (_DWORD)v18; if ( v23 == -1 ) goto LABEL_5; v24 = v23 + 1; if ( v24 >= v17 ) goto LABEL_5; v25 = v17 - v24; v19 = v17 == v24; v26 = &v18[v24]; if ( v19 ) goto LABEL_5; v27 = memchr(v26, 125, v25); if ( !v27 || (v11 = (_DWORD)v27 - (_DWORD)v18 == -1 || v9 == -1) ) { v11 = 0; goto LABEL_5; } std::string::basic_string((__int64 *)v62, (__int64)&v58, v9 + 1, (int)v27 - (int)v18 - v9 - 1); if ( (v58 & 1) == 0 ) goto LABEL_32; *(_BYTE *)v60 = 0; v59 = 0; if ( (v58 & 1) != 0 ) { v28 = (char *)v60; v29 = 1; v30 = (char *)&v58 + 1; } else { v54 = (unsigned __int8)v58 >> 1; if ( v54 <= 0x16 || (v55 = (v54 + 16) & 0xFFFFFFFFFFFFFFF0LL, v55 == 23) ) { LABEL_32: v58 = v62[0]; v59 = v62[1]; v60 = v63; v33 = std::string::find((__int64)&v58, 0x7Du, 0); if ( v33 != -1 ) { v34 = std::string::find((__int64)&v58, 0x2Cu, v33); v35 = v34; if ( v34 != -1 ) { v36 = v34; std::string::basic_string(v61, (__int64)&v58, 0, v34); v37 = (unsigned __int8)v58 >> 1; if ( (v58 & 1) != 0 ) v37 = v59; std::string::basic_string((__int64 *)v62, (__int64)&v58, v35 + 1, v37 - v36); v64 = nullptr; v65 = nullptr; v66 = 0; v38 = DS_Dictionary::splitWithForm(a1, (size_t *)v61, (__int64 *)&v64); v11 = v38; if ( v38 ) { v67 = nullptr; v68 = nullptr; v69 = 0; v43 = DS_Dictionary::splitWithForm(a1, v62, (__int64 *)&v67); v11 = v43; if ( v43 ) { v44 = (char *)v64 + 1; if ( (*(_BYTE *)v64 & 1) != 0 ) v44 = *((const char **)v64 + 2); v45 = atof(v44); v46 = (char *)v64 + 25; if ( (*((_BYTE *)v64 + 24) & 1) != 0 ) v46 = *((const char **)v64 + 5); v47 = atof(v46); v48 = (char *)&dword_0 + (_QWORD)v67 + 1; if ( (*(_BYTE *)v67 & 1) != 0 ) v48 = *(const char **)((char *)&word_10 + (_QWORD)v67); v49 = atof(v48); v50 = (char *)v67 + 25; if ( (*((_BYTE *)&off_18 + (_QWORD)v67) & 1) != 0 ) v50 = *(const char **)((char *)&word_10 + (_QWORD)v67 + 24); v56 = v49; v51 = atof(v50); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v57, v45, v47, v56, v51); cocos2d::CCRect::operator=(a3, v57); } v52 = (char *)v67; if ( v67 ) { v53 = v68; if ( v67 != v68 ) { do { v68 = v53 - 24; std::string::~string((__int64)(v53 - 24)); v53 = v68; } while ( v52 != v68 ); v53 = (char *)v67; } operator delete(v53); } } v39 = (char *)v64; if ( v64 ) { v40 = v65; if ( v64 != v65 ) { do { v65 = v40 - 24; std::string::~string((__int64)(v40 - 24)); v40 = v65; } while ( v39 != v65 ); v40 = (char *)v64; } operator delete(v40); } if ( (v62[0] & 1) != 0 ) operator delete(v63); if ( (v61[0] & 1) != 0 ) operator delete((void *)v61[2]); } } v6 = v58 & 1; goto LABEL_5; } v30 = (char *)operator new(v55); v29 = v58 & 1; if ( (v58 & 1) == 0 ) { v28 = (char *)&v58 + 1; v31 = (unsigned __int8)v58 >> 1; goto LABEL_28; } v28 = (char *)v60; } v31 = v59; LABEL_28: v32 = v31 + 1; if ( v32 ) memcpy(v30, v28, v32); if ( v29 ) operator delete(v28); goto LABEL_32; } v13 = (int)(unsigned __int8)v58 >> 1; if ( v13 ) { v41 = memchr((char *)&v58 + 1, 123, (int)(unsigned __int8)v58 >> 1); v9 = (_DWORD)v41 - ((unsigned int)&v58 + 1); v10 = v13; if ( !v41 ) v9 = -1; } else { v10 = 0; v9 = -1; } v8 = (char *)&v58 + 1; v11 = 0; if ( v10 ) goto LABEL_11; LABEL_5: if ( v6 ) operator delete(v60); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source