// // DS_Dictionary::getVec2ArrayForKey from 0x5fe9a4 to 0x5feaa2 (254 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 // std::vector *DS_Dictionary::getVec2ArrayForKey( std::vector *__return_ptr retstr, DS_Dictionary *a2, const char *a3) { unsigned int v4; // r6 cocos2d::CCPoint *m_finish; // r0 signed int v7; // r0 int v8; // r5 bool v9; // cf unsigned int v10; // r5 cocos2d::CCPoint *v11; // r7 cocos2d::CCPoint *v12; // r0 cocos2d::CCPoint *m_start; // r3 cocos2d::CCPoint *v14; // r0 cocos2d::CCPoint *v15; // r2 cocos2d::CCPoint *v16; // r11 cocos2d::CCPoint *v18; // [sp+8h] [bp-24h] cocos2d::CCPoint *v19; // [sp+Ch] [bp-20h] cocos2d::CCPoint v20; // [sp+10h] [bp-1Ch] BYREF std::vector v21; // [sp+18h] [bp-14h] BYREF v4 = 0; DS_Dictionary::getStringArrayForKey(&v21, a2, a3); retstr->m_start = nullptr; retstr->m_finish = nullptr; retstr->m_reserveEnd = nullptr; while ( v4 < v21.m_finish - v21.m_start ) { cocos2d::CCPoint::CCPoint(&v20); m_finish = retstr->m_finish; if ( m_finish != retstr->m_reserveEnd ) { if ( m_finish ) cocos2d::CCPoint::CCPoint(m_finish, &v20); ++retstr->m_finish; goto LABEL_24; } v7 = m_finish - retstr->m_start; if ( v7 ) v8 = v7; else v8 = 1; v9 = __CFADD__(v8, v7); v10 = v8 + v7; if ( v9 || v10 >= 0x20000000 ) { v10 = 0x1FFFFFFF; } else if ( !v10 ) { v11 = nullptr; goto LABEL_14; } v11 = (cocos2d::CCPoint *)operator new(8 * v10); LABEL_14: v12 = (cocos2d::CCPoint *)((char *)v11 + (char *)retstr->m_finish - (char *)retstr->m_start); if ( v12 ) cocos2d::CCPoint::CCPoint(v12, &v20); m_start = retstr->m_start; v14 = v11; v15 = retstr->m_finish; while ( 1 ) { v16 = v14 + 1; if ( m_start == v15 ) break; if ( v14 ) { v19 = v15; v18 = m_start; cocos2d::CCPoint::CCPoint(v14, m_start); v15 = v19; m_start = v18; } ++m_start; v14 = v16; } if ( retstr->m_start ) operator delete(retstr->m_start); retstr->m_start = v11; retstr->m_finish = v16; retstr->m_reserveEnd = &v11[v10]; LABEL_24: if ( !DS_Dictionary::vec2FromString(a2, (int)&v21.m_start[v4], retstr->m_finish - 1) ) { retstr->m_finish = retstr->m_start; break; } ++v4; } std::vector::~vector((void **)&v21.m_start); return retstr; }