	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function devx_umem_get
_devx_umem_get:                         ## @devx_umem_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	_MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_uverbs_copy_from
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_MLX5_IB_ATTR_DEVX_UMEM_REG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_uverbs_copy_from
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rdx
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	-20(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_uverbs_get_flags32
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	-20(%rbp), %edi
	callq	_ib_check_mr_access
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_ib_umem_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	callq	_PTR_ERR
	jmp	LBB0_11
LBB0_8:
	movl	(%rdi), %esi
	movq	_MLX5_MKEY_PAGE_SHIFT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r14), %r9
	movq	$0, (%rsp)
	leaq	-24(%rbp), %rcx
	movq	%r14, %r8
	callq	_mlx5_ib_cont_pages
	cmpl	$0, -24(%rbp)
	je	LBB0_9
## %bb.10:
	movb	(%r14), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	8(%r14), %rcx
	andl	(%rcx), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	8(%r14), %rdi
	callq	_ib_umem_release
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR,4,2 ## @MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR
	.comm	_MLX5_IB_ATTR_DEVX_UMEM_REG_LEN,4,2 ## @MLX5_IB_ATTR_DEVX_UMEM_REG_LEN
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS,4,2 ## @MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_MLX5_MKEY_PAGE_SHIFT_MASK,4,2  ## @MLX5_MKEY_PAGE_SHIFT_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_devx_umem_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function devx_umem_get
_devx_umem_get:                         ; @devx_umem_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	x1, x20
	bl	_uverbs_copy_from
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MLX5_IB_ATTR_DEVX_UMEM_REG_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_IB_ATTR_DEVX_UMEM_REG_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x20
	bl	_uverbs_copy_from
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh8:
	adrp	x8, _MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x0, sp, #12
	mov	x1, x20
	bl	_uverbs_get_flags32
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_ib_check_mr_access
	cbnz	w0, LBB0_4
; %bb.7:
	ldp	x2, x1, [sp, #16]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	w4, #0
	bl	_ib_umem_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_PTR_ERR
	b	LBB0_4
LBB0_9:
	ldr	w1, [x0]
Lloh20:
	adrp	x8, _MLX5_MKEY_PAGE_SHIFT_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_MKEY_PAGE_SHIFT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x5, x19, #16
	add	x3, sp, #8
	mov	x4, x19
	mov	x6, #0
	bl	_mlx5_ib_cont_pages
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_11
; %bb.10:
	mov	w0, #0
	ldr	w8, [x19]
	mov	w9, #-1
	lsl	w8, w9, w8
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_ib_umem_release
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR,4,2 ; @MLX5_IB_ATTR_DEVX_UMEM_REG_ADDR
	.comm	_MLX5_IB_ATTR_DEVX_UMEM_REG_LEN,4,2 ; @MLX5_IB_ATTR_DEVX_UMEM_REG_LEN
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS,4,2 ; @MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_MLX5_MKEY_PAGE_SHIFT_MASK,4,2  ; @MLX5_MKEY_PAGE_SHIFT_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_devx_umem_get
.subsections_via_symbols
