Function index_many::_doc_assembly::checked_unsorted_2[][src]

pub unsafe fn checked_unsorted_2(
    slice: &mut [Elem],
    indices: UnsortedIndices<2>
) -> [&mut Elem; 2]
Expand description

Body: { generic::index_many_mut(slice, indices) }

Assembly (x86_64)

codegen_crate::checked_unsorted_2:
 push    rsi
 sub     rsp, 48
 mov     r10, rdx
 cmp     r8, rdx
 setb    dl
 cmp     r9, r10
 setb    al
 and     al, dl
 cmp     r9, r8
 setne   r11b
 lea     rdx, [rcx, +, 8*r9]
 xor     esi, esi
 test    r11b, al
 cmove   rdx, rsi
 lea     rax, [rcx, +, 8*r8]
 cmove   rax, rsi
 test    rax, rax
 je      .LBB0_1
 add     rsp, 48
 pop     rsi
 ret
.LBB0_1:
 mov     qword, ptr, [rsp, +, 32], r8
 mov     qword, ptr, [rsp, +, 40], r9
 lea     rcx, [rsp, +, 32]
 mov     edx, 2
 mov     r8, r10
 call    index_many::bound_check_failed
 ud2