// // sub_180106950 from 0x180106950 to 0x180106a85 (309 bytes) // // 4 xrefs: // > @ 0x18018fec8 // > @ 0x18018fed8 // > @ 0x1801b0090 // > @ 0x1802014cc // // 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 // unsigned __int64 __fastcall sub_180106950(__m128 *a1, __int64 a2, __int64 a3, int a4) { unsigned __int64 result; // rax __m128 v5; // xmm7 __int64 v6; // r8 __int64 v7; // r11 __m128 *v8; // rdx __m128 v9; // xmm5 __m128 v10; // xmm0 __m128 v11; // xmm7 __m128 v12; // xmm4 __m128 v13; // xmm2 __m128 v14; // xmm6 __m128 v15; // xmm5 result = a4 / 2; v5 = *(__m128 *)((char *)a1 + 8 * (a4 / 2)); if ( (int)result > 0 ) { v6 = a3 - (_QWORD)a1; v7 = a2 - (_QWORD)a1; v8 = (__m128 *)((char *)a1 + 8 * (int)result - 16); result = ((unsigned __int64)((int)result - 1LL) >> 1) + 1; do { v9 = *(__m128 *)((char *)a1 + v6); v10 = *v8--; v11 = _mm_shuffle_ps(v5, v10, 228); v12 = _mm_shuffle_ps(v11, v11, 245); v13 = _mm_shuffle_ps(v11, v11, 160); v5 = v10; v14 = _mm_xor_ps(_mm_add_ps(_mm_shuffle_ps(v9, v9, 68), (__m128)xmmword_18016EDF0), (__m128)xmmword_18016ED00); v15 = _mm_xor_ps(_mm_add_ps(_mm_shuffle_ps(v9, v9, 238), (__m128)xmmword_18016EDF0), (__m128)xmmword_18016ED00); *(__m128 *)((char *)a1 + v7) = _mm_add_ps( _mm_add_ps( _mm_add_ps( _mm_mul_ps( _mm_xor_ps(v12, (__m128)xmmword_18016ED20), _mm_shuffle_ps(v14, v15, 187)), _mm_mul_ps(_mm_shuffle_ps(v14, v15, 238), v13)), _mm_mul_ps( _mm_xor_ps(_mm_shuffle_ps(*a1, *a1, 177), (__m128)xmmword_18016ED10), _mm_shuffle_ps(v14, v15, 85))), _mm_mul_ps(_mm_shuffle_ps(v14, v15, 0), *a1)); ++a1; --result; } while ( result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source