	.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	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	movq	%r9, %rsi
	callq	_ib_umem_mmu_notifier_retry
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_8:
	movq	%r13, %rdi
	callq	_put_page
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rdx
	movq	(%rdx), %rax
	movslq	%r12d, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.5:
	movq	8(%rdx), %rdx
	movq	(%rdx,%rdi,8), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rsi
	je	LBB0_6
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rdx
	callq	_pr_err
	movq	%r13, %rdi
	callq	_put_page
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	imull	%r12d, %esi
	addl	%r14d, %esi
	incl	%r12d
	imull	%eax, %r12d
	addl	%r14d, %r12d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_invalidate_page_trampoline
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r13, %r14
	movq	%r13, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ib_dma_map_page
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	orl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, (%rax,%rdi,4)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_7:
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r12d, (%rcx,%r14,4)
	movq	8(%rax), %rax
	movq	%r13, (%rax,%r14,8)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.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	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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x24, [x8, #8]
	mov	x1, x5
	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	w20, w8
LBB0_3:
	mov	x0, x19
	bl	_put_page
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	ldr	x10, [x20, #8]
	ldr	x8, [x10]
	sxtw	x25, w23
	ldr	w9, [x8, w23, sxtw #2]
	cbz	w9, LBB0_9
; %bb.6:
	ldr	x10, [x10, #8]
	ldr	x1, [x10, x25, lsl #3]
	cmp	x1, x19
	b.eq	LBB0_11
; %bb.7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_err
	mov	x0, x19
	bl	_put_page
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.8:
Lloh4:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mul	w9, w8, w23
	add	w1, w9, w22
	add	w8, w8, w9
	add	w2, w8, w22
	mov	x0, x20
	mov	x3, #0
	bl	_invalidate_page_trampoline
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_9:
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x19
	mov	w2, #0
	bl	_ib_dma_map_page
	mov	x22, x0
	mov	x0, x24
	mov	x1, x22
	bl	_ib_dma_mapping_error
	cbz	x0, LBB0_12
; %bb.10:
Lloh16:
	adrp	x8, _EFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	w20, #0
	orr	w9, w9, w21
	str	w9, [x8, x25, lsl #2]
	b	LBB0_3
LBB0_12:
	orr	w8, w22, w21
	ldr	x9, [x20, #8]
	ldp	x10, x9, [x9]
	str	w8, [x10, x25, lsl #2]
	str	x19, [x9, x25, lsl #3]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_put_page
LBB0_14:
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.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
