	.file	"extr_mr.c_mlx5_ib_post_send_wait.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"UMR post send failed, err %d\n"
.LC1:
	.string	"reg umr failed (%u)\n"
	.text
	.p2align 4
	.type	mlx5_ib_post_send_wait, @function
mlx5_ib_post_send_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdi, 12[rsp]
	call	mlx5_ib_init_umr_context@PLT
	lea	rax, 20[rsp]
	mov	rdi, rbp
	mov	QWORD PTR [r12], rax
	call	down@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r12
	mov	rdx, rsp
	call	ib_post_send@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	mlx5_ib_warn@PLT
.L3:
	mov	rdi, rbp
	call	up@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, 16[rsp]
	call	wait_for_completion@PLT
	mov	edx, DWORD PTR 12[rsp]
	cmp	edx, DWORD PTR IB_WC_SUCCESS[rip]
	je	.L3
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mlx5_ib_warn@PLT
	mov	r12d, DWORD PTR EFAULT[rip]
	neg	r12d
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_ib_post_send_wait, .-mlx5_ib_post_send_wait
	.comm	IB_WC_SUCCESS,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mr.c_mlx5_ib_post_send_wait.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UMR post send failed, err %d\012\000"
	.align	2
.LC1:
	.ascii	"reg umr failed (%u)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_ib_post_send_wait, %function
mlx5_ib_post_send_wait:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r1
	mov	r4, r0
	sub	sp, sp, #28
	ldr	r3, .L8
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	mlx5_ib_init_umr_context
	add	r3, sp, #16
	str	r3, [r5]
	mov	r0, r4
	bl	down
	mov	r1, r5
	ldr	r0, [r4, #4]
	add	r2, sp, #4
	bl	ib_post_send
	subs	r5, r0, #0
	beq	.L2
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L8+4
	bl	mlx5_ib_warn
.L3:
	mov	r0, r4
	bl	up
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	add	r0, sp, #12
	bl	wait_for_completion
	ldr	r3, .L8+8
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	mov	r0, r4
	ldr	r1, .L8+12
	bl	mlx5_ib_warn
	ldr	r3, .L8+16
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L3
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	IB_WC_SUCCESS
	.word	.LC1
	.word	EFAULT
	.size	mlx5_ib_post_send_wait, .-mlx5_ib_post_send_wait
	.comm	IB_WC_SUCCESS,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
