	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_get_dm_mr
_mlx5_ib_get_dm_mr:                     ## @mlx5_ib_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %rbx
	movq	_create_mkey_in@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %esi
	movl	%r12d, %ebx
	movl	%r12d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r12
	movl	(%r14), %edi
	movq	_memory_key_mkey_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r14
	movq	_access_mode_1_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r15d, %ecx
	andl	$3, %ecx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_access_mode_4_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shrl	$2, %r15d
	andl	$7, %r15d
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r15d, %ecx
	callq	_MLX5_SET
	movq	_a@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	andl	%r15d, %eax
	setne	%cl
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_rw@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%cl
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_rr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%cl
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_lw@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r15d, %eax
	setne	%cl
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	_lr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_len@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_MLX5_SET64
	movq	%r13, %rdi
	callq	_to_mpd
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_MLX5_SET
	movq	_qpn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	$16777215, %ecx                 ## imm = 0xFFFFFF
	callq	_MLX5_SET
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_MLX5_SET64
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	addq	$16, %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_mlx5_core_create_mkey
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.7:
	movq	$0, 8(%r14)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_set_mr_fields
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %edi
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_create_mkey_in,4,2             ## @create_mkey_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_memory_key_mkey_entry,4,2      ## @memory_key_mkey_entry
	.comm	_access_mode_1_0,8,3            ## @access_mode_1_0
	.comm	_access_mode_4_2,8,3            ## @access_mode_4_2
	.comm	_a,8,3                          ## @a
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.comm	_rw,8,3                         ## @rw
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_rr,8,3                         ## @rr
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_lw,8,3                         ## @lw
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_lr,8,3                         ## @lr
	.comm	_len,4,2                        ## @len
	.comm	_qpn,8,3                        ## @qpn
	.no_dead_strip	_mlx5_ib_get_dm_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_get_dm_mr
_mlx5_ib_get_dm_mr:                     ; @mlx5_ib_get_dm_mr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x3
	mov	x25, x2
	mov	x23, x1
	mov	x26, x0
	ldr	w0, [x0]
	bl	_to_mdev
	mov	x22, x0
Lloh0:
	adrp	x28, _create_mkey_in@GOTPAGE
Lloh1:
	ldr	x28, [x28, _create_mkey_in@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_MLX5_ST_SZ_BYTES
	mov	x24, x0
	ldr	x8, [x22]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w1, [x27]
	mov	x0, x24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x27, x0
	ldr	w0, [x28]
Lloh4:
	adrp	x8, _memory_key_mkey_entry@GOTPAGE
Lloh5:
	ldr	x8, [x8, _memory_key_mkey_entry@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x27
	bl	_MLX5_ADDR_OF
	mov	x28, x0
Lloh7:
	adrp	x8, _access_mode_1_0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _access_mode_1_0@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	and	w3, w20, #0x3
	mov	x1, x0
	bl	_MLX5_SET
Lloh10:
	adrp	x8, _access_mode_4_2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _access_mode_4_2@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	ubfx	w3, w20, #2, #3
	mov	x0, x28
	mov	x1, x28
	bl	_MLX5_SET
Lloh13:
	adrp	x8, _a@GOTPAGE
Lloh14:
	ldr	x8, [x8, _a@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
Lloh16:
	adrp	x8, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w3, ne
	mov	x0, x28
	mov	x1, x28
	bl	_MLX5_SET
Lloh19:
	adrp	x8, _rw@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rw@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
Lloh22:
	adrp	x8, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w3, ne
	mov	x0, x28
	mov	x1, x28
	bl	_MLX5_SET
Lloh25:
	adrp	x8, _rr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _rr@GOTPAGEOFF]
Lloh27:
	ldr	x2, [x8]
Lloh28:
	adrp	x8, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w3, ne
	mov	x0, x28
	mov	x1, x28
	bl	_MLX5_SET
Lloh31:
	adrp	x8, _lw@GOTPAGE
Lloh32:
	ldr	x8, [x8, _lw@GOTPAGEOFF]
Lloh33:
	ldr	x2, [x8]
Lloh34:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w3, ne
	mov	x0, x28
	mov	x1, x28
	bl	_MLX5_SET
Lloh37:
	adrp	x8, _lr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _lr@GOTPAGEOFF]
Lloh39:
	ldr	x2, [x8]
	mov	x0, x28
	mov	x1, x28
	mov	w3, #1
	bl	_MLX5_SET
Lloh40:
	adrp	x8, _len@GOTPAGE
Lloh41:
	ldr	x8, [x8, _len@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x28
	mov	x1, x28
	mov	x3, x25
	bl	_MLX5_SET64
	mov	x0, x26
	bl	_to_mpd
	ldr	w3, [x0]
	mov	x0, x28
	mov	x1, x28
	mov	x2, x26
	bl	_MLX5_SET
Lloh43:
	adrp	x8, _qpn@GOTPAGE
Lloh44:
	ldr	x8, [x8, _qpn@GOTPAGEOFF]
Lloh45:
	ldr	x2, [x8]
	mov	x0, x28
	mov	x1, x28
	mov	w3, #16777215
	bl	_MLX5_SET
	mov	x0, x28
	mov	x1, x28
	mov	x2, x23
	mov	x3, x23
	bl	_MLX5_SET64
	add	x1, x21, #16
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x27
	mov	x3, x24
	bl	_mlx5_core_create_mkey
	mov	x20, x0
	mov	x0, x27
	bl	_kfree
	cbnz	w20, LBB0_6
; %bb.3:
	str	xzr, [x21, #8]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	mov	x3, x25
	mov	x4, x19
	bl	_set_mr_fields
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x21
	bl	_kfree
	mov	x0, x20
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_create_mkey_in,4,2             ; @create_mkey_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_memory_key_mkey_entry,4,2      ; @memory_key_mkey_entry
	.comm	_access_mode_1_0,8,3            ; @access_mode_1_0
	.comm	_access_mode_4_2,8,3            ; @access_mode_4_2
	.comm	_a,8,3                          ; @a
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.comm	_rw,8,3                         ; @rw
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_rr,8,3                         ; @rr
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_lw,8,3                         ; @lw
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_lr,8,3                         ; @lr
	.comm	_len,4,2                        ; @len
	.comm	_qpn,8,3                        ; @qpn
	.no_dead_strip	_mlx5_ib_get_dm_mr
.subsections_via_symbols
