// // DS_Dictionary::getRectArrayForKey from 0x10017e580 to 0x10017e6ba (314 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 *__fastcall DS_Dictionary::getRectArrayForKey( std::vector *__return_ptr retstr, DS_Dictionary *a2, const char *a3) { double v4; // xmm0_8 std::string *begin; // r15 __int64 v6; // r12 unsigned __int64 v7; // r13 cocos2d::CCRect *end; // r15 void *v9; // rdi cocos2d::CCRect *v10; // r15 std::__vector_base::pointer v11; // r14 std::__vector_base::pointer v12; // rdi _BYTE v14[16]; // [rsp+0h] [rbp-50h] BYREF std::vector __p; // [rsp+10h] [rbp-40h] BYREF DS_Dictionary::getStringArrayForKey(&__p, a2, a3); v4 = 0.0; *(_OWORD *)&retstr->__begin_ = 0; retstr->__end_cap_.__value_ = nullptr; begin = __p.__begin_; if ( __p.__end_ == __p.__begin_ ) { LABEL_8: if ( !begin ) return retstr; goto LABEL_11; } v6 = 0; v7 = 0; while ( 1 ) { sub_10028D130(v14, a2); end = retstr->__end_; if ( end >= retstr->__end_cap_.__value_ ) { v9 = retstr; v10 = (cocos2d::CCRect *)sub_100183B90(retstr, v14); } else { v9 = retstr->__end_; v4 = sub_10028D180(v9); v10 = end + 1; } retstr->__end_ = v10; a2 = (DS_Dictionary *)&__p.__begin_[v6]; if ( !(unsigned __int8)DS_Dictionary::rectFromString(v4, (__int64)v9, (__int64)&__p.__begin_[v6], (__int64)&v10[-1]) ) break; ++v7; begin = __p.__begin_; ++v6; if ( 0xAAAAAAAAAAAAAAABLL * (((char *)__p.__end_ - (char *)__p.__begin_) >> 3) <= v7 ) goto LABEL_8; } retstr->__end_ = retstr->__begin_; begin = __p.__begin_; if ( __p.__begin_ ) { LABEL_11: v11 = __p.__end_; v12 = begin; if ( __p.__end_ != begin ) { do { if ( (v11[-1].m_data.m_short.sizex2 & 1) != 0 ) operator delete(v11[-1].m_data.m_long.longStorage); --v11; } while ( v11 != begin ); v12 = __p.__begin_; } __p.__end_ = begin; operator delete(v12); } return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source