	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_post_send_wait
_mlx5_ib_post_send_wait:                ## @mlx5_ib_post_send_wait
	.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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	callq	_mlx5_ib_init_umr_context
	leaq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_down
	movl	4(%r14), %edi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_ib_post_send
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_ib_warn
	jmp	LBB0_4
LBB0_2:
	leaq	-28(%rbp), %rdi
	callq	_wait_for_completion
	movl	-32(%rbp), %edx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_ib_warn
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_up
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UMR post send failed, err %d\n"

	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"reg umr failed (%u)\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_mlx5_ib_post_send_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_post_send_wait
_mlx5_ib_post_send_wait:                ; @mlx5_ib_post_send_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	add	x21, sp, #8
	add	x0, sp, #8
	bl	_mlx5_ib_init_umr_context
	add	x8, x21, #8
	str	x8, [x20]
	mov	x0, x19
	bl	_down
	ldr	w0, [x19, #4]
	add	x2, sp, #24
	mov	x1, x20
	bl	_ib_post_send
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_ib_warn
	b	LBB0_5
LBB0_2:
	orr	x0, x21, #0x4
	bl	_wait_for_completion
	ldr	w2, [sp, #8]
Lloh2:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_ib_warn
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x19
	bl	_up
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UMR post send failed, err %d\n"

	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"reg umr failed (%u)\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_mlx5_ib_post_send_wait
.subsections_via_symbols
