	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_mmap
_dm_mmap:                               ## @dm_mmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_mucontext
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_to_mdev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%r15), %edi
	callq	_get_extended_index
	movq	(%r15), %r14
	subq	8(%r15), %r14
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	movq	%r14, %r12
	shrq	%cl, %r12
	movq	%rax, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	%r13, %r12
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_find_next_zero_bit
	cmpq	%r12, %rax
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rbx, %r12
	movq	(%rdi), %rbx
	movq	_memic_bar_start_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP64_DEV_MEM
	addq	%rax, %rbx
	movb	(%r12), %cl
	shrq	%cl, %rbx
	addq	%r13, %rbx
	movl	16(%r15), %edi
	callq	_pgprot_writecombine
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdma_user_mmap_io              ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_memic_bar_start_addr,4,2       ## @memic_bar_start_addr
	.no_dead_strip	_dm_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_mmap
_dm_mmap:                               ; @dm_mmap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_to_mucontext
	mov	x24, x0
	ldr	w0, [x20]
	bl	_to_mdev
	mov	x23, x0
	ldr	w0, [x19, #20]
	bl	_get_extended_index
	mov	x22, x0
	ldp	x8, x9, [x19]
	sub	x21, x8, x9
Lloh0:
	adrp	x25, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x25]
	lsr	x8, x21, x8
	ldr	w0, [x24]
	add	x24, x8, x22
	mov	x1, x24
	mov	x2, x22
	bl	_find_next_zero_bit
	cmp	x0, x24
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x23]
	ldr	x23, [x0]
Lloh2:
	adrp	x8, _memic_bar_start_addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _memic_bar_start_addr@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_MLX5_CAP64_DEV_MEM
	add	x8, x0, x23
	ldr	x9, [x25]
	lsr	x8, x8, x9
	add	x22, x8, x22
	ldr	w0, [x19, #16]
	bl	_pgprot_writecombine
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rdma_user_mmap_io
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_memic_bar_start_addr,4,2       ; @memic_bar_start_addr
	.no_dead_strip	_dm_mmap
.subsections_via_symbols
