	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_umem_odp_map_dma_single_page
_ib_umem_odp_map_dma_single_page:       ## @ib_umem_odp_map_dma_single_page
	.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	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	32(%rdi), %r12
	movq	%r8, %rsi
	callq	_ib_umem_mmu_notifier_retry
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_put_user_page
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r13), %rax
	movslq	%r15d, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.6:
	movq	16(%r13), %rdx
	movq	(%rdx,%rdi,8), %rsi
	cmpq	%r14, %rsi
	je	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_pr_err
	movq	%r14, %rdi
	callq	_put_user_page
	movq	%r13, %rdi
	callq	_ib_umem_notifier_start_account
	movq	(%r12), %r14
	movq	%r13, %rdi
	callq	_ib_umem_start
	movb	8(%r13), %cl
	movl	%r15d, %edx
	shll	%cl, %edx
	movslq	%edx, %rbx
	addq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ib_umem_start
	incl	%r15d
	movb	8(%r13), %cl
	shll	%cl, %r15d
	movslq	%r15d, %rdx
	addq	%rax, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*%r14
	movq	%r13, %rdi
	callq	_ib_umem_notifier_end_account
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_8:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %edi
	callq	_BIT
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_ib_dma_map_page
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	orl	%ebx, %ecx
	movl	%ecx, (%rax,%rdi,4)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_11:
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rax,%rcx,4)
	movq	16(%r13), %rax
	movq	%r14, (%rax,%rcx,8)
	incl	24(%r13)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: got different pages in IB device and from get_user_pages. IB device page: %p, gup page: %p\n"

	.no_dead_strip	_ib_umem_odp_map_dma_single_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_umem_odp_map_dma_single_page
_ib_umem_odp_map_dma_single_page:       ; @ib_umem_odp_map_dma_single_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #32]
	mov	x1, x4
	bl	_ib_umem_mmu_notifier_retry
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x20
	bl	_put_user_page
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19]
	sxtw	x24, w22
	ldr	w9, [x8, w22, sxtw #2]
	cbz	w9, LBB0_8
; %bb.6:
	ldr	x10, [x19, #16]
	ldr	x1, [x10, x24, lsl #3]
	cmp	x1, x20
	b.eq	LBB0_10
; %bb.7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_err
	mov	x0, x20
	bl	_put_user_page
	mov	x0, x19
	bl	_ib_umem_notifier_start_account
	ldr	x21, [x21]
	mov	x0, x19
	bl	_ib_umem_start
	ldr	w8, [x19, #8]
	lsl	w8, w22, w8
	add	x20, x0, w8, sxtw
	mov	x0, x19
	bl	_ib_umem_start
	add	w8, w22, #1
	ldr	w9, [x19, #8]
	lsl	w8, w8, w9
	add	x2, x0, w8, sxtw
	mov	x0, x19
	mov	x1, x20
	blr	x21
	mov	x0, x19
	bl	_ib_umem_notifier_end_account
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_BIT
	mov	x3, x0
Lloh7:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_ib_dma_map_page
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_ib_dma_mapping_error
	cbz	x0, LBB0_11
; %bb.9:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	mov	w21, #0
	orr	w9, w9, w23
	str	w9, [x8, x24, lsl #2]
	b	LBB0_3
LBB0_11:
	mov	w21, #0
	orr	w8, w22, w23
	ldr	x9, [x19]
	str	w8, [x9, x24, lsl #2]
	ldr	x8, [x19, #16]
	str	x20, [x8, x24, lsl #3]
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: got different pages in IB device and from get_user_pages. IB device page: %p, gup page: %p\n"

	.no_dead_strip	_ib_umem_odp_map_dma_single_page
.subsections_via_symbols
