	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_reg_dm_mr              ## -- Begin function mlx5_ib_reg_dm_mr
	.p2align	4, 0x90
_mlx5_ib_reg_dm_mr:                     ## @mlx5_ib_reg_dm_mr
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_to_mdm
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_mdev
	movq	8(%r15), %rbx
	addq	8(%r12), %rbx
	movl	(%r12), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.3:
	movq	_MLX5_IB_DM_MEMIC_ALLOWED_ACCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, (%r15)
	jne	LBB0_8
## %bb.4:
	movq	(%rax), %rax
	movq	_MLX5_MKC_ACCESS_MODE_MEMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_pci_resource_start
	subq	%rax, %rbx
	movl	(%r15), %ecx
	jmp	LBB0_7
LBB0_5:
	movl	(%r15), %ecx
	movq	_MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %ecx
	je	LBB0_6
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	_MLX5_MKC_ACCESS_MODE_SW_ICM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movl	4(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_get_dm_mr              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_IB_DM_MEMIC_ALLOWED_ACCESS,4,2 ## @MLX5_IB_DM_MEMIC_ALLOWED_ACCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5_MKC_ACCESS_MODE_MEMIC,4,2 ## @MLX5_MKC_ACCESS_MODE_MEMIC
	.comm	_MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS,4,2 ## @MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS
	.comm	_MLX5_MKC_ACCESS_MODE_SW_ICM,4,2 ## @MLX5_MKC_ACCESS_MODE_SW_ICM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_reg_dm_mr              ; -- Begin function mlx5_ib_reg_dm_mr
	.p2align	2
_mlx5_ib_reg_dm_mr:                     ; @mlx5_ib_reg_dm_mr
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_to_mdm
	mov	x22, x0
	ldr	w0, [x21]
	bl	_to_mdev
	ldr	x8, [x22, #8]
	ldr	x9, [x19, #8]
	add	x21, x9, x8
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MLX5_IB_DM_MEMIC_ALLOWED_ACCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_IB_DM_MEMIC_ALLOWED_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MLX5_MKC_ACCESS_MODE_MEMIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_MKC_ACCESS_MODE_MEMIC@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x9]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_pci_resource_start
	sub	x21, x21, x0
	ldr	w3, [x19]
	b	LBB0_8
LBB0_5:
	ldr	w3, [x19]
Lloh6:
	adrp	x8, _MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bics	wzr, w3, w8
	b.eq	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	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
	b	_ERR_PTR
LBB0_7:
Lloh12:
	adrp	x8, _MLX5_MKC_ACCESS_MODE_SW_ICM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX5_MKC_ACCESS_MODE_SW_ICM@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
LBB0_8:
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	mov	x4, x22
	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	_mlx5_ib_get_dm_mr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_IB_DM_MEMIC_ALLOWED_ACCESS,4,2 ; @MLX5_IB_DM_MEMIC_ALLOWED_ACCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5_MKC_ACCESS_MODE_MEMIC,4,2 ; @MLX5_MKC_ACCESS_MODE_MEMIC
	.comm	_MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS,4,2 ; @MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS
	.comm	_MLX5_MKC_ACCESS_MODE_SW_ICM,4,2 ; @MLX5_MKC_ACCESS_MODE_SW_ICM
.subsections_via_symbols
