	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_mr_from_cache
_alloc_mr_from_cache:                   ## @alloc_mr_from_cache
	.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
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	24(%rbp), %r13d
	movl	16(%rbp), %r14d
	movl	(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_alloc_cached_mr
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, 40(%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	movl	%r13d, (%r12)
	movl	$4, 4(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	callq	_to_mpd
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_order2idx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_add_keys
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_ib_warn
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_keys failed, err %d\n"

	.no_dead_strip	_alloc_mr_from_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_mr_from_cache
_alloc_mr_from_cache:                   ; @alloc_mr_from_cache
	.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, x7
	mov	x24, x6
	mov	x20, x3
	mov	x23, x2
	mov	x25, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_to_mdev
	mov	x19, x0
	mov	x1, x24
	bl	_alloc_cached_mr
	cbz	x0, LBB0_2
; %bb.1:
	mov	x26, x0
	stp	x25, x22, [x0, #32]
	mov	w8, #4
	stp	w21, w8, [x0]
	stp	x20, x23, [x0, #16]
	mov	x0, x22
	bl	_to_mpd
	ldr	w8, [x0]
	str	w8, [x26, #8]
	mov	x0, x26
	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_2:
	mov	x0, x19
	mov	x1, x24
	bl	_order2idx
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_add_keys
Lloh0:
	adrp	x20, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EAGAIN@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
	ldr	w8, [x20]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_ib_warn
LBB0_5:
	ldr	w8, [x20]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_keys failed, err %d\n"

	.no_dead_strip	_alloc_mr_from_cache
.subsections_via_symbols
