// // sub_100090FA0 from 0x100090fa0 to 0x10009141e (1150 bytes) // // 2 xrefs: // > sub_10008FD80 @ 0x1000904f5 // > sub_10008FD80 @ 0x100090503 // // 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 // bool __fastcall sub_100090FA0(__m128i *a1, __m128i *a2) { bool result; // al __int32 v3; // ecx __int32 v4; // r8d __int32 v5; // edx bool v6; // r10 __int32 v7; // ecx __int32 *v8; // rcx __int32 v9; // r14d __int32 v10; // r8d __int32 v11; // r9d __int32 v12; // r10d bool v13; // r15 __int32 *v14; // rdx __int32 v15; // r11d bool v16; // bl __int32 v19; // ecx __int32 v20; // esi __int32 v21; // edx bool v22; // r8 __int32 v23; // ecx unsigned __int64 v24; // rdx unsigned __int64 v25; // rcx int v26; // edi __int32 v27; // esi bool v28; // r8 __m128i v29; // xmm0 int v30; // edi __int32 v31; // esi bool v32; // r9 int v33; // esi bool v34; // r8 bool v35; // dl __m128i *v36; // rcx __m128i *v37; // rdx __int32 *v38; // r9 __int32 v39; // r15d __int32 v40; // r10d __int32 v41; // r8d __int32 v42; // r12d bool v43; // r13 __m128i v44; // xmm0 __int32 v45; // r14d __int32 v46; // ebx bool v47; // r11 bool v48; // r12 __m128i *v49; // r12 __int32 v50; // r8d __int32 v51; // esi __int32 v52; // r8d __int32 v53; // r9d bool v54; // r10 bool v55; // r15 __int64 v56; // r8 int v57; // r9d __int32 *v58; // r10 __m128i *v59; // r14 __int32 v60; // ebx int v61; // r11d bool v62; // r15 __int64 v63; // rcx __int64 v64; // rbx __int64 v65; // r14 bool v66; // r12 __int32 v67; // edx bool v68; // bl __int32 v69; // esi bool v70; // r13 __int32 *v71; // [rsp+0h] [rbp-30h] result = 1; switch ( ((char *)a2 - (char *)a1) >> 3 ) { case 0LL: case 1LL: return result; case 2LL: v3 = a2[-1].i32[2]; v4 = a2[-1].i32[3]; v5 = a1->i32[0]; v6 = v4 > a1->i32[1]; if ( v4 == a1->i32[1] ) v6 = v3 < a1->i32[0]; if ( v6 ) { a1->i32[0] = v3; a2[-1].i32[2] = v5; v7 = a1->i32[1]; a1->i32[1] = a2[-1].i32[3]; a2[-1].i32[3] = v7; } return result; case 3LL: v8 = &a1->i32[3]; v9 = a1->i32[3]; v10 = a1->i32[0]; v11 = a1->i32[1]; v12 = a1->i32[2]; v13 = v9 > v11; if ( v9 == v11 ) v13 = v12 < a1->i32[0]; v14 = &a1->i32[1]; v15 = a2[-1].i32[2]; v16 = a2[-1].i32[3] > v9; if ( a2[-1].i32[3] == v9 ) v16 = v15 < v12; if ( v13 ) { if ( v16 ) { a1->i32[0] = v15; a2[-1].i32[2] = v10; LABEL_63: v8 = &a2[-1].i32[3]; goto LABEL_64; } *a1 = _mm_shuffle_epi32(_mm_loadu_si128(a1), 78); v67 = a2[-1].i32[2]; v68 = a2[-1].i32[3] > v11; if ( a2[-1].i32[3] == v11 ) v68 = v67 < v10; if ( v68 ) { a1->i32[2] = v67; a2[-1].i32[2] = v10; v14 = &a1->i32[3]; goto LABEL_63; } } else if ( v16 ) { a1->i32[2] = v15; a2[-1].i32[2] = v12; v50 = a1->i32[3]; a1->i32[3] = a2[-1].i32[3]; a2[-1].i32[3] = v50; v51 = a1->i32[0]; v52 = a1->i32[2]; v53 = a1->i32[3]; v54 = v52 < a1->i32[0]; if ( v53 != a1->i32[1] ) v54 = v53 > a1->i32[1]; if ( v54 ) { a1->i32[0] = v52; a1->i32[2] = v51; LABEL_64: v69 = *v14; *v14 = *v8; *v8 = v69; return result; } } return result; case 4LL: sub_100090DE0(a1->i32, &a1->i32[2], a1[1].i32, &a2[-1].u32[2]); return 1; case 5LL: sub_100090DE0(a1->i32, &a1->i32[2], a1[1].i32, &a1[1].u32[2]); v19 = a2[-1].i32[2]; v20 = a2[-1].i32[3]; v21 = a1[1].i32[2]; v22 = v20 > a1[1].i32[3]; if ( v20 == a1[1].i32[3] ) v22 = v19 < v21; if ( !v22 ) return 1; a1[1].i32[2] = v19; a2[-1].i32[2] = v21; v23 = a1[1].i32[3]; a1[1].i32[3] = a2[-1].i32[3]; a2[-1].i32[3] = v23; v24 = a1[1].u64[1]; v25 = HIDWORD(v24); v26 = a1[1].i32[0]; v27 = a1[1].i32[1]; v28 = SHIDWORD(v24) > v27; if ( HIDWORD(v24) == v27 ) v28 = (int)v24 < v26; result = 1; if ( v28 ) { v29 = (__m128i)v24; a1[1].i32[2] = v26; a1[1].i64[0] = v24; a1[1].i32[3] = v27; v30 = a1->i32[2]; v31 = a1->i32[3]; v32 = SHIDWORD(v24) > v31; if ( HIDWORD(v24) == v31 ) v32 = (int)v24 < v30; if ( v32 ) { a1[1].i32[0] = v30; a1->i64[1] = v24; a1[1].i32[1] = v31; v33 = a1->i32[1]; v34 = (int)v24 < a1->i32[0]; v35 = SHIDWORD(v24) > v33; if ( (_DWORD)v25 == v33 ) v35 = v34; if ( v35 ) *a1 = _mm_insert_epi32(_mm_insert_epi32(v29, a1->i32[0], 2), v33, 3); } } return result; default: v36 = a1 + 1; v37 = (__m128i *)&a1->u64[1]; v38 = &a1->i32[3]; v71 = &a1->i32[1]; v39 = a1->i32[3]; v40 = a1->i32[0]; v41 = a1->i32[1]; v42 = a1->i32[2]; v43 = v39 > v41; if ( v39 == v41 ) v43 = v42 < a1->i32[0]; v44 = _mm_loadu_si128(a1); v45 = a1[1].i32[0]; v46 = a1[1].i32[1]; v47 = v45 < v42; v48 = v46 > v39; if ( v46 == v39 ) v48 = v47; if ( v43 ) { if ( v48 ) { v49 = a1; v37 = a1 + 1; v38 = &a1[1].i32[1]; LABEL_44: v49->i32[0] = v45; v37->i32[0] = v40; *v71 = v46; *v38 = v41; goto LABEL_45; } *a1 = _mm_shuffle_epi32(v44, 78); v70 = v46 > v41; if ( v46 == v41 ) v70 = v45 < v40; v49 = (__m128i *)&a1->u64[1]; v37 = a1 + 1; v71 = &a1->i32[3]; v38 = &a1[1].i32[1]; if ( v70 ) goto LABEL_44; } else if ( v48 ) { v37->i32[0] = v45; *v38 = v46; v36->i64[0] = _mm_extract_epi64(v44, 1); v55 = v46 > v41; if ( v46 == v41 ) v55 = v45 < v40; v49 = a1; if ( v55 ) goto LABEL_44; } LABEL_45: if ( &a1[1].u64[1] != (unsigned __int64 *)a2 ) { v56 = 0; v57 = 0; v58 = &a1[1].i32[2]; while ( 1 ) { v60 = v58[1]; v61 = v36->i32[0]; v62 = v60 > v36->i32[1]; if ( v60 == v36->i32[1] ) v62 = *v58 < v36->i32[0]; if ( v62 ) { v63 = *(_QWORD *)v58; v64 = HIDWORD(*(_QWORD *)v58); v65 = v56; do { *(__int32 *)((char *)&a1[1].i32[2] + v65) = v61; *(__int32 *)((char *)&a1[1].i32[3] + v65) = *(__int32 *)((char *)&a1[1].i32[1] + v65); if ( v65 == -16 ) { v59 = a1; goto LABEL_48; } v61 = *(__int32 *)((char *)&a1->i32[2] + v65); v66 = *(__int32 *)((char *)&a1->i32[3] + v65) < (int)v64; if ( *(__int32 *)((char *)&a1->i32[3] + v65) == (_DWORD)v64 ) v66 = v61 > (int)v63; v65 -= 8; } while ( v66 ); v59 = (__m128i *)((char *)a1 + v65 + 24); LABEL_48: v59->i32[0] = v63; v59->i32[1] = v64; if ( ++v57 == 8 ) return v58 + 2 == (__int32 *)a2; } v36 = (__m128i *)v58; v56 += 8; v58 += 2; if ( v58 == (__int32 *)a2 ) return result; } } return result; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source