// // DS_Dictionary::getRectForKey from 0xdb906c to 0xdb923c (464 bytes) // // 1 xrefs: // > @ 0xeebe8 // // 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 // cocos2d::CCRect *__usercall DS_Dictionary::getRectForKey@( DS_Dictionary *this@, const char *a2@, cocos2d::CCRect *a3@) { int v6; // w1 pugi::xml_node *v7; // x0 const char *v8; // x1 const char *v9; // x1 const char *v10; // x0 const char *v11; // x1 const char *v12; // x0 size_t v13; // x0 _BOOL4 v14; // w19 cocos2d::CCRect *v15; // x0 char *v17; // [xsp+68h] [xbp+68h] __int64 i; // [xsp+70h] [xbp+70h] BYREF __int64 sibling; // [xsp+78h] [xbp+78h] BYREF float v20[4]; // [xsp+80h] [xbp+80h] BYREF __int64 v21[2]; // [xsp+90h] [xbp+90h] BYREF void *v22; // [xsp+A0h] [xbp+A0h] v6 = *((unsigned __int8 *)this + 232); v7 = (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL); if ( v6 ) v8 = "key"; else v8 = "k"; for ( i = pugi::xml_node::child(v7, v8); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v9) ) { if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&i) ) { v15 = a3; goto LABEL_19; } v10 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !strcmp(v10, a2) ) { sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i); v11 = *((_BYTE *)this + 232) ? "string" : "s"; *(_QWORD *)v20 = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v11); if ( (unsigned __int8)pugi::xml_node::operator==(&sibling, v20) ) break; } if ( *((_BYTE *)this + 232) ) v9 = "key"; else v9 = "k"; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20); sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i); v12 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&sibling); v21[0] = 0; v17 = (char *)v12; v21[1] = 0; v22 = nullptr; v13 = strlen(v12); std::string::__init(v21, v17, v13); v14 = DS_Dictionary::rectFromString((int)this, (__int64)v21, v20); if ( (v21[0] & 1) != 0 ) operator delete(v22); v15 = a3; if ( v14 ) { cocos2d::CCRect::CCRect(a3, (const cocos2d::CCRect *)v20); return a3; } LABEL_19: cocos2d::CCRect::CCRect(v15, (const cocos2d::CCRect *)&unk_1562628); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source