	.file	"extr_mlx5_ib_gsi.c_mlx5_ib_gsi_post_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx5_ib_gsi_post_send
	.type	mlx5_ib_gsi_post_send, @function
mlx5_ib_gsi_post_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	call	gsi_qp@PLT
	mov	rbp, rax
	lea	r14, 4[rax]
	test	rbx, rbx
	je	.L9
.L8:
	mov	rdi, rbx
	call	ud_wr@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	QWORD PTR 16[rsp], 0
	call	spin_lock_irqsave@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	get_tx_qp@PLT
	test	rax, rax
	je	.L16
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	mlx5_ib_add_outstanding_wr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	r8, QWORD PTR 8[rsp]
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r8
	call	ib_post_send@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
.L7:
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	jne	.L8
.L9:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, r13
	mov	rdi, rbp
	call	mlx5_ib_gsi_silent_drop@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L5:
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	QWORD PTR [r15], rbx
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	sub	eax, 1
	cdq
	idiv	DWORD PTR 8[rbp]
	mov	DWORD PTR 0[rbp], edx
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_ib_gsi_post_send, .-mlx5_ib_gsi_post_send
	.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_mlx5_ib_gsi.c_mlx5_ib_gsi_post_send.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx5_ib_gsi_post_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_ib_gsi_post_send, %function
mlx5_ib_gsi_post_send:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L17
	mov	r5, r1
	sub	sp, sp, #8
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	gsi_qp
	cmp	r5, #0
	movne	r6, r0
	movne	r9, #0
	addne	r7, r6, #4
	beq	.L9
.L8:
	mov	r0, r5
	bl	ud_wr
	mov	r1, #0
	mov	r0, r7
	str	r9, [sp]
	bl	spin_lock_irqsave
	mov	r1, sp
	mov	r0, r6
	bl	get_tx_qp
	subs	r10, r0, #0
	beq	.L14
	mov	r2, #0
	mov	r1, sp
	mov	r0, r6
	bl	mlx5_ib_add_outstanding_wr
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r10
	mov	r2, r8
	mov	r1, sp
	bl	ib_post_send
	subs	r4, r0, #0
	bne	.L15
.L7:
	mov	r1, #0
	mov	r0, r7
	bl	spin_unlock_irqrestore
	ldr	r5, [r5]
	cmp	r5, #0
	bne	.L8
.L9:
	mov	r4, #0
	b	.L1
.L14:
	mov	r1, sp
	mov	r0, r6
	bl	mlx5_ib_gsi_silent_drop
	subs	r4, r0, #0
	beq	.L7
.L5:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	str	r5, [r8]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r0, [r6]
	ldr	r1, [r6, #8]
	sub	r0, r0, #1
	bl	__aeabi_idivmod
	str	r1, [r6]
	b	.L5
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	mlx5_ib_gsi_post_send, .-mlx5_ib_gsi_post_send
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
