	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_mmap
_hns_roce_mmap:                         ## @hns_roce_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_hr_dev
	movl	(%rbx), %ecx
	cmpl	$1, %ecx
	je	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_to_hr_ucontext
	movl	(%rax), %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%rbx), %edi
	callq	_pgprot_noncached
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	jmp	LBB0_6
LBB0_3:
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.4:
	movl	4(%rax), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	4(%rbx), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdma_user_mmap_io              ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_hns_roce_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_mmap
_hns_roce_mmap:                         ; @hns_roce_mmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_hr_dev
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_to_hr_ucontext
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19, #4]
	bl	_pgprot_noncached
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	b	LBB0_6
LBB0_3:
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	w3, [x0, #4]
	cbz	w3, LBB0_7
; %bb.5:
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w2, w8, w9
	ldr	w4, [x19, #4]
	mov	x0, x20
	mov	x1, x19
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rdma_user_mmap_io
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_hns_roce_mmap
.subsections_via_symbols
