	.file	"extr_ipoib_ib.c_ipoib_poll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ipoib_poll: Bad wr_id 0x%jX\n"
	.text
	.p2align 4
	.type	ipoib_poll, @function
ipoib_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 4[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, .LC0[rip]
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 8[rsp]
	call	spin_lock@PLT
	mov	r12d, DWORD PTR IPOIB_NUM_WC[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR 8[r14]
	mov	edi, DWORD PTR [r14]
	mov	esi, r12d
	call	ib_poll_cq@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L10
	lea	eax, -1[rax]
	xor	ebx, ebx
	lea	rbp, 4[0+rax*4]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	call	ipoib_cm_handle_rx_wc@PLT
	add	rbx, 4
	cmp	rbp, rbx
	je	.L10
.L9:
	mov	r15, QWORD PTR 8[r14]
	add	r15, rbx
	mov	esi, DWORD PTR [r15]
	test	DWORD PTR IPOIB_OP_RECV[rip], esi
	je	.L15
.L6:
	test	DWORD PTR IPOIB_OP_CM[rip], esi
	mov	rdi, r14
	mov	rsi, r15
	jne	.L16
	call	ipoib_ib_handle_rx_wc@PLT
	add	rbx, 4
	cmp	rbp, rbx
	jne	.L9
.L10:
	cmp	DWORD PTR IPOIB_NUM_WC[rip], r12d
	je	.L5
	mov	rdi, QWORD PTR 8[rsp]
	call	spin_unlock@PLT
	mov	edi, DWORD PTR [r14]
	mov	esi, DWORD PTR IB_CQ_NEXT_COMP[rip]
	or	esi, DWORD PTR IB_CQ_REPORT_MISSED_EVENTS[rip]
	call	ib_req_notify_cq@PLT
	test	rax, rax
	jg	.L2
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	mov	rdi, r13
	call	panic@PLT
	mov	esi, DWORD PTR [r15]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ipoib_poll, .-ipoib_poll
	.comm	IPOIB_OP_RECV,4,4
	.comm	IPOIB_OP_CM,4,4
	.comm	IPOIB_NUM_WC,4,4
	.comm	IB_CQ_REPORT_MISSED_EVENTS,4,4
	.comm	IB_CQ_NEXT_COMP,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_ipoib_ib.c_ipoib_poll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ipoib_poll: Bad wr_id 0x%jX\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipoib_poll, %function
ipoib_poll:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	sub	sp, sp, #12
	add	r3, r0, #4
	ldr	r8, .L17
	ldr	r7, .L17+4
	ldr	r9, .L17+8
	str	r3, [sp, #4]
.L2:
	ldr	r0, [sp, #4]
	bl	spin_lock
	ldr	r3, .L17+12
	ldr	r6, [r3]
.L5:
	mov	r1, r6
	ldr	r2, [fp, #8]
	ldr	r0, [fp]
	bl	ib_poll_cq
	subs	r6, r0, #0
	movgt	r4, #0
	bgt	.L3
	b	.L9
.L16:
	add	r4, r4, #1
	bl	ipoib_cm_handle_rx_wc
	cmp	r6, r4
	beq	.L9
.L3:
	ldr	r5, [fp, #8]
	ldr	r3, [r8]
	ldr	r1, [r5, r4, lsl #2]
	add	r10, r5, r4, lsl #2
	tst	r1, r3
	beq	.L15
.L6:
	ldr	r3, [r7]
	mov	r0, fp
	tst	r1, r3
	mov	r1, r10
	bne	.L16
	add	r4, r4, #1
	bl	ipoib_ib_handle_rx_wc
	cmp	r6, r4
	bne	.L3
.L9:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L5
	ldr	r0, [sp, #4]
	bl	spin_unlock
	ldr	r3, .L17+16
	ldr	r0, [fp]
	ldr	r1, [r3]
	ldr	r3, .L17+20
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	ib_req_notify_cq
	cmp	r0, #0
	bgt	.L2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r0, r9
	bl	panic
	ldr	r1, [r5, r4, lsl #2]
	b	.L6
.L18:
	.align	2
.L17:
	.word	IPOIB_OP_RECV
	.word	IPOIB_OP_CM
	.word	.LC0
	.word	IPOIB_NUM_WC
	.word	IB_CQ_NEXT_COMP
	.word	IB_CQ_REPORT_MISSED_EVENTS
	.size	ipoib_poll, .-ipoib_poll
	.comm	IPOIB_OP_RECV,4,4
	.comm	IPOIB_OP_CM,4,4
	.comm	IPOIB_NUM_WC,4,4
	.comm	IB_CQ_REPORT_MISSED_EVENTS,4,4
	.comm	IB_CQ_NEXT_COMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
