	.file	"extr_svc_rdma_transport.c_svc_rdma_send.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"svcrdma: failed to post SQ WR rc=%d, sc_sq_count=%d, sc_sq_depth=%d\n"
	.text
	.p2align 4
	.globl	svc_rdma_send
	.type	svc_rdma_send, @function
svc_rdma_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	lea	r12, 20[rdi]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR XPT_CLOSE[rip]
	mov	QWORD PTR 16[rsp], rsi
	mov	rsi, r12
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	test_bit@PLT
	test	rax, rax
	je	.L2
.L19:
	mov	r15d, DWORD PTR ENOTCONN[rip]
	neg	r15d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L2:
	.cfi_restore_state
	mov	r14, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR IB_SEND_SIGNALED[rip]
	xor	edi, edi
	cmp	QWORD PTR [r14], rax
	setne	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 8[r14]
	test	rax, rax
	je	.L11
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rax]
	add	ebp, 1
	test	rax, rax
	jne	.L5
	movsx	rax, ebp
	mov	QWORD PTR 24[rsp], rax
.L4:
	lea	r14, 12[rbx]
	lea	r13, 16[rbx]
	lea	r15, rdma_stat_sq_starve[rip]
.L7:
	mov	rdi, r14
	call	spin_lock_bh@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], rax
	call	atomic_read@PLT
	add	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 8[rsp], rax
	jge	.L12
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	mov	rdi, r15
	call	atomic_inc@PLT
	mov	rdi, rbx
	call	sq_cq_reap@PLT
	mov	rdi, r13
	call	atomic_read@PLT
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	cmp	rax, QWORD PTR [rbx]
	setl	sil
	call	wait_event@PLT
	mov	edi, DWORD PTR XPT_CLOSE[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L19
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR 24[rsp], 1
	mov	ebp, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r12
	call	svc_xprt_get@PLT
	mov	ecx, r15d
	lea	r15d, 1[r15]
	cmp	ebp, r15d
	jne	.L6
	mov	rsi, r13
	mov	edi, ebp
	mov	DWORD PTR 8[rsp], ecx
	call	atomic_add@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 16[rsp]
	lea	rdx, 32[rsp]
	call	ib_post_send@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L22
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	jmp	.L1
.L22:
	mov	edi, DWORD PTR XPT_CLOSE[rip]
	mov	rsi, r12
	call	set_bit@PLT
	mov	edi, ebp
	mov	rsi, r13
	xor	ebp, ebp
	call	atomic_sub@PLT
	mov	ecx, DWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], ecx
	call	svc_xprt_put@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	eax, ebp
	add	ebp, 1
	cmp	ecx, eax
	jne	.L9
	mov	r12, QWORD PTR [rbx]
	mov	rdi, r13
	call	atomic_read@PLT
	mov	esi, r15d
	lea	rdi, .LC0[rip]
	mov	rdx, rax
	mov	rcx, r12
	call	dprintk@PLT
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	lea	rdi, 8[rbx]
	call	wake_up@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	svc_rdma_send, .-svc_rdma_send
	.comm	rdma_stat_sq_starve,4,4
	.comm	XPT_CLOSE,4,4
	.comm	IB_SEND_SIGNALED,8,8
	.comm	ENOTCONN,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_svc_rdma_transport.c_svc_rdma_send.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"svcrdma: failed to post SQ WR rc=%d, sc_sq_count=%d"
	.ascii	", sc_sq_depth=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	svc_rdma_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	svc_rdma_send, %function
svc_rdma_send:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L23
	ldr	r3, .L23+4
	add	r7, r0, #16
	sub	sp, sp, #20
	mov	r4, r0
	mov	r6, r1
	ldr	r0, [r8]
	mov	r1, r7
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	test_bit
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L2
.L19:
	ldr	r3, .L23+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L23+12
	ldr	r0, [r6]
	ldr	r3, [r3]
	mov	r5, #1
	subs	r0, r0, r3
	movne	r0, #1
	bl	BUG_ON
	ldr	r2, [r6, #4]
	cmp	r2, #0
	beq	.L4
.L5:
	ldr	r2, [r2, #4]
	add	r5, r5, #1
	cmp	r2, #0
	bne	.L5
.L4:
	ldr	fp, .L23+16
	add	r10, r4, #8
	add	r9, r4, #12
.L7:
	mov	r0, r10
	bl	spin_lock_bh
	ldr	r2, [r4]
	mov	r0, r9
	str	r2, [sp]
	bl	atomic_read
	ldr	r2, [sp]
	add	r0, r0, r5
	cmp	r2, r0
	bge	.L12
	mov	r0, r10
	bl	spin_unlock_bh
	mov	r0, fp
	bl	atomic_inc
	mov	r0, r4
	bl	sq_cq_reap
	ldr	r1, [r4, #4]
	mov	r0, r9
	str	r1, [sp]
	bl	atomic_read
	mov	ip, r0
	ldr	r2, [r4]
	ldr	r1, [sp]
	cmp	ip, r2
	mov	r0, r1
	movge	r1, #0
	movlt	r1, #1
	bl	wait_event
	mov	r1, r7
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	bne	.L19
	b	.L7
.L12:
	mov	r2, #0
.L6:
	mov	fp, r2
	mov	r0, r7
	add	r2, r2, #1
	str	r2, [sp]
	bl	svc_xprt_get
	ldr	r2, [sp]
	cmp	r5, r2
	bne	.L6
	mov	r1, r9
	mov	r0, r5
	bl	atomic_add
	mov	r1, r6
	ldr	r0, [r4, #20]
	add	r2, sp, #8
	bl	ib_post_send
	subs	r6, r0, #0
	bne	.L22
	mov	r0, r10
	bl	spin_unlock_bh
	b	.L1
.L22:
	mov	r1, r7
	ldr	r0, [r8]
	bl	set_bit
	mov	r1, r9
	mov	r0, r5
	bl	atomic_sub
.L9:
	mov	r0, r7
	bl	svc_xprt_put
	ldr	r2, [sp, #4]
	add	r3, r2, #1
	cmp	fp, r2
	str	r3, [sp, #4]
	bne	.L9
	mov	r0, r9
	bl	atomic_read
	ldr	r3, [r4], #4
	mov	r2, r0
	mov	r1, r6
	ldr	r0, .L23+20
	bl	dprintk
	mov	r0, r10
	bl	spin_unlock_bh
	mov	r0, r4
	bl	wake_up
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	XPT_CLOSE
	.word	.LC1
	.word	ENOTCONN
	.word	IB_SEND_SIGNALED
	.word	rdma_stat_sq_starve
	.word	.LC0
	.size	svc_rdma_send, .-svc_rdma_send
	.comm	rdma_stat_sq_starve,4,4
	.comm	XPT_CLOSE,4,4
	.comm	IB_SEND_SIGNALED,4,4
	.comm	ENOTCONN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
