	.file	"extr_siw_qp_rx.c_siw_init_rresp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"siw: [QP %u]: irq %d exceeded %d\n"
	.text
	.p2align 4
	.type	siw_init_rresp, @function
siw_init_rresp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	tx_wqe@PLT
	mov	edi, DWORD PTR 28[r15]
	mov	rbx, rax
	call	be64_to_cpu@PLT
	mov	edi, DWORD PTR 24[r15]
	mov	QWORD PTR [rsp], rax
	call	be64_to_cpu@PLT
	mov	edi, DWORD PTR 20[r15]
	mov	r14, rax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 16[r15]
	mov	r13, rax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 12[r15]
	mov	QWORD PTR 8[rsp], rax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 8[r15]
	mov	QWORD PTR 16[rsp], rax
	call	be32_to_cpu@PLT
	mov	rdx, QWORD PTR RDMAP_UNTAGGED_QN_RDMA_READ[rip]
	xor	edi, edi
	mov	r12, rax
	mov	rax, QWORD PTR [r15]
	cmp	QWORD PTR [rax+rdx*8], r12
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L13
	lea	r15, 4[rbp]
	xor	esi, esi
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR SIW_WR_IDLE[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR 56[rbx], 0
	add	rbx, 8
	mov	DWORD PTR 28[rsp], 1
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR SIW_WR_QUEUED[rip]
	mov	QWORD PTR -8[rbx], rax
	mov	rdi, rbx
	call	likely@PLT
	test	rax, rax
	je	.L6
.L15:
	mov	eax, DWORD PTR SIW_OP_READ_RESPONSE[rip]
	mov	rcx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR SIW_WQE_VALID[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 24[rax], r12
	mov	QWORD PTR [rax], r13
	mov	QWORD PTR 16[rax], r14
	mov	QWORD PTR 8[rax], rcx
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	test	r13, r13
	setne	al
	xor	r12d, r12d
	mov	DWORD PTR [rbx], eax
	call	smp_store_mb@PLT
.L7:
	xor	esi, esi
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L14
.L1:
	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
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	irq_alloc_free@PLT
	mov	DWORD PTR 28[rsp], 0
	mov	rbx, rax
	mov	rdi, rbx
	call	likely@PLT
	test	rax, rax
	jne	.L15
.L6:
	mov	eax, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR 8[rbp]
	mov	rdi, rbp
	cdq
	idiv	r12d
	mov	r13d, edx
	call	qp_id@PLT
	mov	ecx, r12d
	mov	edx, r13d
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	pr_warn@PLT
	mov	ecx, DWORD PTR RDMAP_ECODE_CATASTROPHIC_STREAM[rip]
	xor	r8d, r8d
	mov	rdi, rbp
	mov	edx, DWORD PTR RDMAP_ETYPE_REMOTE_OPERATION[rip]
	mov	esi, DWORD PTR TERM_ERROR_LAYER_RDMAP[rip]
	call	siw_init_terminate@PLT
	mov	r12d, DWORD PTR EPROTO[rip]
	neg	r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, DWORD PTR DDP_ECODE_UT_INVALID_MSN_RANGE[rip]
	mov	edx, DWORD PTR DDP_ETYPE_UNTAGGED_BUF[rip]
	xor	r8d, r8d
	mov	rdi, rbp
	mov	esi, DWORD PTR TERM_ERROR_LAYER_DDP[rip]
	call	siw_init_terminate@PLT
	mov	r12d, DWORD PTR EPROTO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	siw_sq_start@PLT
	.cfi_endproc
.LFE0:
	.size	siw_init_rresp, .-siw_init_rresp
	.comm	TERM_ERROR_LAYER_RDMAP,4,4
	.comm	TERM_ERROR_LAYER_DDP,4,4
	.comm	SIW_WR_QUEUED,8,8
	.comm	SIW_WR_IDLE,8,8
	.comm	SIW_WQE_VALID,4,4
	.comm	SIW_OP_READ_RESPONSE,4,4
	.comm	RDMAP_UNTAGGED_QN_RDMA_READ,8,8
	.comm	RDMAP_ETYPE_REMOTE_OPERATION,4,4
	.comm	RDMAP_ECODE_CATASTROPHIC_STREAM,4,4
	.comm	EPROTO,4,4
	.comm	DDP_ETYPE_UNTAGGED_BUF,4,4
	.comm	DDP_ECODE_UT_INVALID_MSN_RANGE,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_siw_qp_rx.c_siw_init_rresp.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"siw: [QP %u]: irq %d exceeded %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	siw_init_rresp, %function
siw_init_rresp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r4, r1
	mov	r5, r0
	bl	tx_wqe
	mov	r10, r0
	ldr	r0, [r4, #24]
	bl	be64_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #20]
	str	r3, [sp, #8]
	bl	be64_to_cpu
	mov	r9, r0
	ldr	r0, [r4, #16]
	bl	be32_to_cpu
	mov	r7, r0
	ldr	r0, [r4, #12]
	bl	be32_to_cpu
	mov	r8, r0
	ldr	r0, [r4, #8]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [sp, #12]
	bl	be32_to_cpu
	mov	r6, r0
	ldr	r2, .L15
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	subs	r0, r0, r6
	movne	r0, #1
	bl	unlikely
	subs	r4, r0, #0
	bne	.L13
	add	fp, r5, #4
	mov	r0, fp
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, .L15+4
	ldr	r2, [r10]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	mov	r3, r10
	ldr	r1, [r10, #28]
	str	r4, [r10, #32]
	mov	r10, #1
	ldr	r2, .L15+8
	ldr	r2, [r2]
	str	r4, [r1]
	str	r2, [r3], #4
.L5:
	mov	r0, r3
	str	r3, [sp, #20]
	bl	likely
	subs	r3, r0, #0
	str	r3, [sp, #16]
	beq	.L6
	subs	ip, r7, #0
	movne	ip, #1
	ldr	r3, [sp, #20]
	ldr	r1, .L15+12
	ldr	r2, [r3, #16]
	ldr	r0, [r1]
	ldr	r1, .L15+16
	str	r0, [r3, #20]
	ldr	r1, [r1]
	str	r6, [r2, #12]
	stm	r2, {r7, r8, r9}
	ldr	r2, [sp, #8]
	ldr	r0, [r3, #4]
	str	r2, [r3, #12]
	ldr	r2, [sp, #12]
	str	ip, [r3]
	str	r2, [r3, #8]
	bl	smp_store_mb
.L7:
	mov	r0, fp
	mov	r1, #0
	bl	spin_unlock_irqrestore
	cmp	r10, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r0, r5
	bl	irq_alloc_free
	mov	r10, r4
	mov	r3, r0
	b	.L5
.L13:
	mov	ip, #0
	ldr	r3, .L15+20
	ldr	r2, .L15+24
	ldr	r1, .L15+28
	str	ip, [sp]
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	siw_init_terminate
	ldr	r3, .L15+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r5
	bl	qp_id
	ldr	r6, [r5, #8]
	mov	r4, r0
	mov	r1, r6
	ldr	r0, [r5]
	bl	__aeabi_idivmod
	mov	r3, r6
	mov	r2, r1
	ldr	r0, .L15+36
	mov	r1, r4
	bl	pr_warn
	ldr	r0, [sp, #16]
	ldr	r3, .L15+40
	ldr	r2, .L15+44
	ldr	r1, .L15+48
	str	r0, [sp]
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	siw_init_terminate
	ldr	r3, .L15+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L14:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	siw_sq_start
.L16:
	.align	2
.L15:
	.word	RDMAP_UNTAGGED_QN_RDMA_READ
	.word	SIW_WR_IDLE
	.word	SIW_WR_QUEUED
	.word	SIW_OP_READ_RESPONSE
	.word	SIW_WQE_VALID
	.word	DDP_ECODE_UT_INVALID_MSN_RANGE
	.word	DDP_ETYPE_UNTAGGED_BUF
	.word	TERM_ERROR_LAYER_DDP
	.word	EPROTO
	.word	.LC0
	.word	RDMAP_ECODE_CATASTROPHIC_STREAM
	.word	RDMAP_ETYPE_REMOTE_OPERATION
	.word	TERM_ERROR_LAYER_RDMAP
	.size	siw_init_rresp, .-siw_init_rresp
	.comm	TERM_ERROR_LAYER_RDMAP,4,4
	.comm	TERM_ERROR_LAYER_DDP,4,4
	.comm	SIW_WR_QUEUED,4,4
	.comm	SIW_WR_IDLE,4,4
	.comm	SIW_WQE_VALID,4,4
	.comm	SIW_OP_READ_RESPONSE,4,4
	.comm	RDMAP_UNTAGGED_QN_RDMA_READ,4,4
	.comm	RDMAP_ETYPE_REMOTE_OPERATION,4,4
	.comm	RDMAP_ECODE_CATASTROPHIC_STREAM,4,4
	.comm	EPROTO,4,4
	.comm	DDP_ETYPE_UNTAGGED_BUF,4,4
	.comm	DDP_ECODE_UT_INVALID_MSN_RANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
