	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __efa_mmap
___efa_mmap:                            ## @__efa_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
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	%ecx, %edx
	movl	%r8d, %ecx
	callq	_mmap_entry_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %edx
	movl	4(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%rbx), %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %eax
	sarl	%cl, %r14d
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.5:
	movl	16(%r12), %edi
	callq	_pgprot_noncached
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_7:
	movl	16(%r12), %edi
	callq	_pgprot_writecombine
LBB0_6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_rdma_user_mmap_io
	movl	%eax, %r13d
	jmp	LBB0_15
LBB0_8:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	(%r12), %r15
	xorl	%r13d, %r13d
	cmpq	8(%r12), %r15
	jae	LBB0_17
## %bb.9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_pfn_to_page
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_vm_insert_page
	testl	%eax, %eax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	(%rbx), %r15
	incl	%r14d
	cmpq	8(%r12), %r15
	jb	LBB0_10
	jmp	LBB0_17
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_16
LBB0_12:
	movl	(%rax), %edx
	movl	4(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_ibdev_dbg
	jmp	LBB0_17
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %r13d
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key[%#llx] does not have valid entry\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Mapping address[%#llx], length[%#llx], mmap_flag[%d]\n"

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't mmap address[%#llx] length[%#llx] mmap_flag[%d] err[%d]\n"

	.no_dead_strip	___efa_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __efa_mmap
___efa_mmap:                            ; @__efa_mmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	mov	x2, x3
	mov	x3, x4
	bl	_mmap_entry_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldp	w2, w8, [x0]
	stp	x20, x8, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ibdev_dbg
Lloh2:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldp	w10, w8, [x21]
	asr	w23, w10, w9
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.4:
	ldr	w0, [x22, #16]
	bl	_pgprot_noncached
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_ibdev_dbg
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_6:
	ldr	w0, [x22, #16]
	bl	_pgprot_writecombine
LBB0_7:
	mov	x4, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_rdma_user_mmap_io
	mov	x24, x0
	cbnz	w24, LBB0_15
	b	LBB0_16
LBB0_8:
	ldp	x25, x8, [x22]
	cmp	x25, x8
	b.hs	LBB0_12
; %bb.9:
Lloh10:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_pfn_to_page
	mov	x2, x0
	mov	x0, x22
	mov	x1, x25
	bl	_vm_insert_page
	cbnz	w0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x26]
	add	w23, w23, #1
	ldr	x9, [x22, #8]
	add	x25, x8, x25
	cmp	x25, x9
	b.lo	LBB0_10
LBB0_12:
	mov	w24, #0
	b	LBB0_16
LBB0_13:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
	cbnz	w24, LBB0_15
	b	LBB0_16
LBB0_14:
	mov	x24, x0
LBB0_15:
	ldp	w2, w8, [x21]
	stp	x8, x24, [sp, #8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ibdev_dbg
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key[%#llx] does not have valid entry\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Mapping address[%#llx], length[%#llx], mmap_flag[%d]\n"

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't mmap address[%#llx] length[%#llx] mmap_flag[%d] err[%d]\n"

	.no_dead_strip	___efa_mmap
.subsections_via_symbols
