// // SequenceTriggerGameObject::updateSequenceTotalCount from 0x1001c46f0 to 0x1001c47d6 (230 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 // void __fastcall SequenceTriggerGameObject::updateSequenceTotalCount(SequenceTriggerGameObject *a1) { std::__vector_base::pointer begin; // rdx std::__vector_base::pointer end; // rax unsigned __int64 v3; // rsi int v4; // r8d std::__vector_base::pointer v5; // rcx __int64 v6; // rsi __int64 v7; // r8 __int64 v8; // rsi int *p_m_chance; // rdx __m128i v10; // xmm0 __m128i v11; // xmm1 __m128i v12; // xmm1 __m128i v13; // xmm0 a1->m_sequenceTotalCount = 0; begin = a1->m_chanceObjects.__begin_; end = a1->m_chanceObjects.__end_; if ( begin != end ) { v3 = (char *)end - (char *)begin - 16; v4 = 0; if ( v3 > 0x7F ) { v6 = (v3 >> 4) + 1; v7 = 8; if ( (v6 & 7) != 0 ) v7 = v6 & 7; v8 = v6 - v7; v5 = &begin[v8]; p_m_chance = &begin[7].m_chance; v10 = 0; v11 = 0; do { v10 = _mm_add_epi32( v10, _mm_insert_epi32( _mm_insert_epi32( _mm_insert_epi32(_mm_cvtsi32_si128(*(p_m_chance - 28)), *(p_m_chance - 24), 1), *(p_m_chance - 20), 2), *(p_m_chance - 16), 3)); v11 = _mm_add_epi32( v11, _mm_insert_epi32( _mm_insert_epi32( _mm_insert_epi32(_mm_cvtsi32_si128(*(p_m_chance - 12)), *(p_m_chance - 8), 1), *(p_m_chance - 4), 2), *p_m_chance, 3)); p_m_chance += 32; v8 -= 8; } while ( v8 ); v12 = _mm_add_epi32(v11, v10); v13 = _mm_add_epi32(_mm_shuffle_epi32(v12, 238), v12); v4 = _mm_cvtsi128_si32(_mm_add_epi32(_mm_shuffle_epi32(v13, 85), v13)); } else { v5 = a1->m_chanceObjects.__begin_; } do { v4 += v5->m_chance; ++v5; } while ( v5 != end ); a1->m_sequenceTotalCount = v4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source