	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function umem_dma_to_mtt
_umem_dma_to_mtt:                       ## @umem_dma_to_mtt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ODP_DMA_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%edi, %ecx
	movq	_ODP_READ_ALLOWED_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	je	LBB0_2
## %bb.1:
	movq	_MLX5_IB_MTT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%ecx, %eax
	movq	_ODP_WRITE_ALLOWED_BIT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	je	LBB0_4
## %bb.3:
	movq	_MLX5_IB_MTT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_4:
	orl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ODP_DMA_ADDR_MASK,4,2          ## @ODP_DMA_ADDR_MASK
	.comm	_ODP_READ_ALLOWED_BIT,4,2       ## @ODP_READ_ALLOWED_BIT
	.comm	_MLX5_IB_MTT_READ,4,2           ## @MLX5_IB_MTT_READ
	.comm	_ODP_WRITE_ALLOWED_BIT,4,2      ## @ODP_WRITE_ALLOWED_BIT
	.comm	_MLX5_IB_MTT_WRITE,4,2          ## @MLX5_IB_MTT_WRITE
	.no_dead_strip	_umem_dma_to_mtt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function umem_dma_to_mtt
_umem_dma_to_mtt:                       ; @umem_dma_to_mtt
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ODP_DMA_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ODP_DMA_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ODP_READ_ALLOWED_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ODP_READ_ALLOWED_BIT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MLX5_IB_MTT_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX5_IB_MTT_READ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ODP_WRITE_ALLOWED_BIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ODP_WRITE_ALLOWED_BIT@GOTPAGEOFF]
Lloh11:
	adrp	x10, _MLX5_IB_MTT_WRITE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MLX5_IB_MTT_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ODP_DMA_ADDR_MASK,4,2          ; @ODP_DMA_ADDR_MASK
	.comm	_ODP_READ_ALLOWED_BIT,4,2       ; @ODP_READ_ALLOWED_BIT
	.comm	_MLX5_IB_MTT_READ,4,2           ; @MLX5_IB_MTT_READ
	.comm	_ODP_WRITE_ALLOWED_BIT,4,2      ; @ODP_WRITE_ALLOWED_BIT
	.comm	_MLX5_IB_MTT_WRITE,4,2          ; @MLX5_IB_MTT_WRITE
	.no_dead_strip	_umem_dma_to_mtt
.subsections_via_symbols
