// // PlayLayer::saveDynamicSaveObjects from 0x1001208b8 to 0x100120ae8 (560 bytes) // // 1 xrefs: // > PlayLayer::createCheckpoint @ 0x10011fc5c // // 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 // void __fastcall PlayLayer::saveDynamicSaveObjects(PlayLayer *a1, std::vector *a2) { float64x2_t **begin; // x21 std::__vector_base::pointer i; // x22 float64x2_t *v6; // x20 float64x2_t v7; // q2 float v8; // s8 float v9; // s9 float v10; // s10 float v11; // s11 std::__vector_base::pointer end; // x8 SavedObjectStateRef *value; // x9 float64_t v14; // d0 SavedObjectStateRef *v15; // x27 std::__vector_base::pointer v16; // x1 signed __int64 v17; // x2 unsigned __int64 v18; // x27 unsigned __int64 v19; // x8 unsigned __int64 v20; // x9 char *v21; // x0 unsigned __int64 v22; // x1 char *v23; // x10 float64_t v24; // d0 SavedObjectStateRef *v25; // x28 SavedObjectStateRef *v26; // x20 std::__vector_base::pointer v27; // x0 float64x2_t v28; // [xsp+0h] [xbp-80h] sub_1001215DC(a2, a1->m_dynamicSaveObjects.__end_ - a1->m_dynamicSaveObjects.__begin_); begin = (float64x2_t **)a1->m_dynamicSaveObjects.__begin_; for ( i = a1->m_dynamicSaveObjects.__end_; begin != (float64x2_t **)i; ++begin ) { v6 = *begin; v7 = vsubq_f64((*begin)[59], vcvtq_f64_f32(*(float32x2_t *)((char *)&(*begin)[41].f64[1] + 4))); if ( v7.f64[0] != *(float *)(*begin)[60].f64 || v7.f64[1] != *((float *)v6[60].f64 + 1) || *((float *)v6[42].f64 + 1) != 0.0 || *((float *)&v6[42].f64[1] + 1) != 0.0 || *((float *)v6[43].f64 + 1) != 0.0 || *(float *)&v6[43].f64[1] != 0.0 ) { v8 = *((float *)v6[42].f64 + 1) - *(float *)&v6[42].f64[1]; v9 = *((float *)&v6[42].f64[1] + 1) - *(float *)v6[43].f64; v10 = *((float *)v6[43].f64 + 1) - *((float *)&v6[43].f64[1] + 1); v11 = *(float *)&v6[43].f64[1] - *(float *)v6[44].f64; end = a2->__end_; value = a2->__end_cap_.__value_; if ( end >= value ) { v16 = a2->__begin_; v17 = (char *)end - (char *)a2->__begin_; v18 = 0xAAAAAAAAAAAAAAABLL * (v17 >> 4); v19 = v18 + 1; if ( v18 + 1 > 0x555555555555555LL ) sub_10000A5F8(); v20 = 0xAAAAAAAAAAAAAAABLL * (((char *)value - (char *)v16) >> 4); if ( 2 * v20 > v19 ) v19 = 2 * v20; if ( v20 >= 0x2AAAAAAAAAAAAAALL ) v19 = 0x555555555555555LL; if ( v19 ) { v28 = v7; v21 = (char *)sub_10001C8BC((__int64)a2, v19); v7 = v28; v19 = v22; v16 = a2->__begin_; v17 = (char *)a2->__end_ - (char *)a2->__begin_; } else { v21 = nullptr; } v23 = &v21[48 * v18]; *(_QWORD *)v23 = *begin; *(float64x2_t *)(v23 + 8) = v7; v24 = v6[76].f64[1]; v25 = (SavedObjectStateRef *)&v21[48 * v19]; *((float *)v23 + 6) = v8; *((float *)v23 + 7) = v9; *((float *)v23 + 8) = v10; *((float *)v23 + 9) = v11; *((float64_t *)v23 + 5) = v24; v15 = (SavedObjectStateRef *)(v23 + 48); v26 = (SavedObjectStateRef *)&v23[-v17]; memcpy(&v23[-v17], v16, v17); v27 = a2->__begin_; a2->__begin_ = v26; a2->__end_ = v15; a2->__end_cap_.__value_ = v25; if ( v27 ) operator delete(v27); } else { end->m_gameObject = (GameObject *)v6; *(float64x2_t *)&end->m_positionX = v7; v14 = v6[76].f64[1]; end->m_rotationXOffset = v8; end->m_rotationYOffset = v9; end->m_addToCustomScaleX = v10; end->m_addToCustomScaleY = v11; *(float64_t *)&end->m_unkFloat3 = v14; v15 = end + 1; } a2->__end_ = v15; } } sub_100121688(a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source