// // DS_Dictionary::getRectForKey from 0x10017df90 to 0x10017e17d (493 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCRect __fastcall DS_Dictionary::getRectForKey(DS_Dictionary *a1, const char *a2) { const char *v2; // rdx double v3; // xmm0_8 const char *v4; // r14 __int64 v6; // rdi bool v7; // zf const char *v8; // rsi const char *v9; // rsi const char *v10; // rax const char *v11; // rsi const char *v12; // r14 __int64 v13; // rdi size_t v14; // rax size_t v15; // rbx char *v16; // r15 size_t v18; // r12 _QWORD v19[2]; // [rsp+8h] [rbp-68h] BYREF __int64 v20; // [rsp+18h] [rbp-58h] BYREF DS_Dictionary *v21; // [rsp+20h] [rbp-50h] _QWORD __dst[2]; // [rsp+28h] [rbp-48h] BYREF void *__p; // [rsp+38h] [rbp-38h] _QWORD v24[6]; // [rsp+40h] [rbp-30h] BYREF cocos2d::CCRect result; // 0:xmm0_8.8,8:xmm1_8.8 v4 = v2; v21 = a1; v6 = *((_QWORD *)a2 + 27) - 8LL; v7 = a2[232] == 0; v8 = "k"; if ( !v7 ) v8 = "key"; v24[0] = sub_10063B550(v6, v8); if ( sub_10063B3F0(v24) ) { while ( 1 ) { v10 = (const char *)sub_10063B880(v24); if ( !strcmp(v10, v4) ) { __dst[0] = sub_10063B780(v24); v11 = "s"; if ( a2[232] ) v11 = "string"; v19[0] = sub_10063B730(v24, v11); if ( (unsigned __int8)sub_10063B5F0(__dst, v19) ) break; } v9 = "k"; if ( a2[232] ) v9 = "key"; v24[0] = sub_10063B730(v24, v9); if ( !sub_10063B3F0(v24) ) goto LABEL_16; } sub_10028D130(v19, v19); v20 = sub_10063B780(v24); v12 = (const char *)sub_10063B880(&v20); v13 = (__int64)v12; v14 = strlen(v12); if ( v14 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v3); v15 = v14; if ( v14 >= 0x17 ) { v18 = 26; if ( (v14 | 7) != 0x17 ) v18 = (v14 | 7) + 1; v16 = (char *)operator new(v18); __p = v16; __dst[0] = v18 + 1; __dst[1] = v15; } else { LOBYTE(__dst[0]) = 2 * v14; v16 = (char *)__dst + 1; if ( !v14 ) { LABEL_21: v16[v15] = 0; DS_Dictionary::rectFromString(v3, v13, (__int64)__dst, (__int64)v19); if ( (__dst[0] & 1) != 0 ) operator delete(__p); goto LABEL_16; } } v13 = (__int64)v16; memmove(v16, v12, v15); goto LABEL_21; } LABEL_16: *(double *)&result.origin = sub_10028D180(v21); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source