// // DS_Dictionary::vec2FromString from 0x10017a9b0 to 0x10017aaa5 (245 bytes) // // 1 xrefs: // > DS_Dictionary::getVec2ArrayForKey @ 0x10017e4b0 // // 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 // __int64 __fastcall DS_Dictionary::vec2FromString(__int64 a1, __int64 a2) { unsigned int v2; // eax unsigned int v3; // ebx std::__vector_base::pointer begin; // r15 std::array *longStorage; // rdi float v6; // xmm0_4 const char *elems; // r15 float v8; // xmm1_4 std::string *v9; // r14 std::__vector_base::pointer end; // r15 std::__vector_base::pointer v11; // rdi std::string v13; // [rsp+8h] [rbp-58h] BYREF std::vector v14; // [rsp+20h] [rbp-40h] BYREF float v15; // [rsp+44h] [rbp-1Ch] memset(&v14, 0, sizeof(v14)); DS_Dictionary::cleanStringWhiteSpace(&v13, 0.0, a2, a2); LOBYTE(v2) = DS_Dictionary::splitWithForm((DS_Dictionary *)&v13, (std::string *const)&v13, &v14); v3 = v2; if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v13.__r_.__value_.__l.__data_); if ( (_BYTE)v3 ) { begin = v14.__begin_; if ( (v14.__begin_->m_data.m_short.sizex2 & 1) != 0 ) longStorage = (std::array *)v14.__begin_->m_data.m_long.longStorage; else longStorage = &v14.__begin_->m_data.m_short.shortStorage; v6 = atof(longStorage->__elems_); v15 = v6; if ( (begin[1].m_data.m_short.sizex2 & 1) != 0 ) elems = begin[1].m_data.m_long.longStorage; else elems = begin[1].m_data.m_short.shortStorage.__elems_; v8 = atof(elems); sub_10028CBE0(&v13, v15, v8); sub_10028CC90(); } v9 = v14.__begin_; if ( v14.__begin_ ) { end = v14.__end_; v11 = v14.__begin_; if ( v14.__end_ != v14.__begin_ ) { do { if ( (end[-1].m_data.m_short.sizex2 & 1) != 0 ) operator delete(end[-1].m_data.m_long.longStorage); --end; } while ( end != v9 ); v11 = v14.__begin_; } v14.__end_ = v9; operator delete(v11); } return v3; }