// // DS_Dictionary::getRectForKey from 0xb48c08 to 0xb48e0c (516 bytes) // // 1 xrefs: // > @ 0xb6d00 // // 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 DS_Dictionary::getRectForKey(DS_Dictionary *a1, const char *a2) { cocos2d::CCRect *v2; // x8 _BOOL4 compatible; // w1 cocos2d::CCRect *v5; // x27 pugi::xml_node *v7; // x0 const char *v8; // x1 const char *v9; // x1 const char *v10; // x0 const char *v11; // x1 char *v12; // x0 _BOOL4 v13; // w19 void *v14; // x0 cocos2d::CCRect *v15; // x0 unsigned int *v20; // x2 int v21; // w1 pugi::xml_node v22; // [xsp+70h] [xbp+70h] BYREF pugi::xml_node v23; // [xsp+78h] [xbp+78h] BYREF __int64 v24; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCRect v25; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCRect result; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 compatible = a1->compatible; v5 = v2; v7 = a1->dictTree.m_finish - 1; if ( compatible ) v8 = "key"; else v8 = "k"; for ( v22._root = (pugi::xml_node_struct *)pugi::xml_node::child(v7, v8); ; v22._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v22, v9) ) { if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&v22) ) { v15 = v5; goto LABEL_18; } v10 = (const char *)pugi::xml_node::child_value(&v22); if ( !strcmp(v10, a2) ) { v24 = pugi::xml_node::next_sibling(&v22); v11 = a1->compatible ? "string" : "s"; v25.origin = (cocos2d::CCPoint)pugi::xml_node::next_sibling(&v22, v11); if ( (unsigned __int8)pugi::xml_node::operator==(&v24, &v25) ) break; } if ( a1->compatible ) v9 = "key"; else v9 = "k"; } cocos2d::CCRect::CCRect(&v25); v23._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v22); v12 = (char *)pugi::xml_node::child_value(&v23); sub_D153B8((int)&v24, v12); v13 = DS_Dictionary::rectFromString(a1, (__int64)&v24, &v25); v14 = (void *)(v24 - 24); if ( (__int64 *)(v24 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v24 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v24 - 8); *(_DWORD *)(v24 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v14); } v15 = v5; if ( v13 ) { cocos2d::CCRect::CCRect(v5, &v25); return result; } LABEL_18: cocos2d::CCRect::CCRect(v15, &stru_1247638); return result; }