	.file	"extr_driver.c_handle_receive_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Switching to NO_DMA_RTAIL\n"
.LC1:
	.string	"Switching to DMA_RTAIL\n"
	.text
	.p2align 4
	.globl	handle_receive_interrupt
	.type	handle_receive_interrupt, @function
handle_receive_interrupt:
.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
	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, 72
	.cfi_def_cfa_offset 128
	mov	rbp, QWORD PTR 48[rdi]
	mov	r14d, DWORD PTR 24[rdi]
	mov	DWORD PTR 8[rsp], esi
	lea	r13, 16[rsp]
	mov	r12d, DWORD PTR RCV_PKT_OK[rip]
	mov	rsi, r13
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR HFI1_CTRL_CTXT[rip]
	mov	DWORD PTR 12[rsp], eax
	call	init_packet@PLT
	mov	edi, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR DMA_RTAIL[rip]
	call	HFI1_CAP_KGET_MASK@PLT
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 32[rsp]
	mov	r15d, eax
	call	rhf_rcv_seq@PLT
	cmp	QWORD PTR [rbx], rax
	je	.L24
.L35:
	mov	r12d, DWORD PTR RCV_PKT_DONE[rip]
.L4:
	mov	rdi, r13
	call	finish_packet@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 72
	.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
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	call	get_rcvhdrtail@PLT
	mov	QWORD PTR [rsp], rax
	cmp	QWORD PTR 16[rsp], rax
	je	.L35
	xor	eax, eax
	xor	r15d, r15d
	call	smp_rmb@PLT
	mov	eax, DWORD PTR HFI1_CTRL_CTXT[rip]
	cmp	DWORD PTR 24[rbx], eax
	je	.L38
.L3:
	mov	rsi, r13
	mov	rdi, rbx
	call	prescan_rxq@PLT
	cmp	DWORD PTR RCV_PKT_OK[rip], r12d
	jne	.L6
	cmp	r14d, DWORD PTR 12[rsp]
	setne	r14b
	movzx	r14d, r14b
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L44:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r13
	xor	r15d, r15d
	call	skip_rcv_packet@PLT
	mov	r12d, eax
.L9:
	mov	edi, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR DMA_RTAIL[rip]
	call	HFI1_CAP_KGET_MASK@PLT
	test	eax, eax
	je	.L39
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 16[rsp], rax
	jne	.L18
	mov	r12d, DWORD PTR RCV_PKT_DONE[rip]
.L18:
	mov	eax, DWORD PTR HFI1_CTRL_CTXT[rip]
	cmp	DWORD PTR 24[rbx], eax
	je	.L40
.L19:
	test	r14d, r14d
	jne	.L41
.L17:
	mov	rsi, r13
	mov	edi, r12d
	xor	r14d, r14d
	call	process_rcv_update@PLT
	cmp	DWORD PTR RCV_PKT_OK[rip], r12d
	jne	.L6
.L22:
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	jne	.L42
	call	unlikely@PLT
	test	rax, rax
	jne	.L43
.L8:
	test	r15d, r15d
	jne	.L44
	mov	rax, QWORD PTR 32[rbx]
	xor	edi, edi
	mov	rcx, QWORD PTR HLS_UP_ARMED[rip]
	cmp	QWORD PTR [rax], rcx
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L12
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, rbx
	call	set_armed_to_active@PLT
	test	rax, rax
	jne	.L4
.L12:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r13
	call	process_rcv_packet@PLT
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	QWORD PTR [rsp], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L42:
	mov	esi, DWORD PTR DROP_PACKET_OFF[rip]
	lea	rdi, 8[rbp]
	call	atomic_xchg@PLT
	xor	edi, edi
	cmp	QWORD PTR DROP_PACKET_ON[rip], rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L8
.L43:
	movsx	rdx, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 0[rbp], 0
	add	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rsp], rax
	add	rax, rdx
	mov	rdx, QWORD PTR 40[rbx]
	lea	rdi, [rdx+rax*4]
	mov	QWORD PTR 40[rsp], rdi
	call	rhf_to_cpu@PLT
	mov	DWORD PTR 32[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L39:
	mov	edi, DWORD PTR 32[rsp]
	call	rhf_rcv_seq@PLT
	mov	rcx, QWORD PTR [rbx]
	lea	rdx, 1[rcx]
	cmp	rdx, 13
	jg	.L14
	mov	QWORD PTR [rbx], rdx
.L15:
	cmp	rdx, rax
	cmovne	r12d, DWORD PTR RCV_PKT_DONE[rip]
	test	r14d, r14d
	je	.L17
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	dd_dev_info@PLT
	mov	esi, DWORD PTR 24[rbx]
	mov	rdi, rbp
	call	set_nodma_rtail@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	dd_dev_info@PLT
	mov	esi, DWORD PTR 24[rbx]
	mov	rdi, rbp
	call	set_dma_rtail@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	mov	QWORD PTR [rbx], 1
	mov	edx, 1
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR 32[rsp]
	call	rhf_rcv_seq@PLT
	mov	rcx, QWORD PTR [rbx]
	lea	rdx, 1[rcx]
	mov	ecx, 1
	cmp	rdx, 13
	cmovg	rdx, rcx
	mov	QWORD PTR [rbx], rdx
	test	r12d, r12d
	jne	.L19
	cmp	rdx, rax
	mov	eax, 1
	cmovne	r15d, eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r13
	call	process_rcv_qp_work@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rbx], rax
	jmp	.L4
.L38:
	mov	edi, DWORD PTR 32[rsp]
	xor	r15d, r15d
	call	rhf_rcv_seq@PLT
	cmp	QWORD PTR [rbx], rax
	setne	r15b
	jmp	.L3
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle_receive_interrupt, .-handle_receive_interrupt
	.comm	RCV_PKT_OK,4,4
	.comm	RCV_PKT_DONE,4,4
	.comm	HLS_UP_ARMED,8,8
	.comm	HFI1_CTRL_CTXT,4,4
	.comm	DROP_PACKET_ON,8,8
	.comm	DROP_PACKET_OFF,4,4
	.comm	DMA_RTAIL,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_driver.c_handle_receive_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Switching to NO_DMA_RTAIL\012\000"
	.align	2
.LC1:
	.ascii	"Switching to DMA_RTAIL\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_receive_interrupt
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_receive_interrupt, %function
handle_receive_interrupt:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, .L48
	ldr	r10, .L48+4
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r9, .L48+8
	ldr	r3, [r10]
	mov	fp, r1
	add	r1, sp, #12
	str	r3, [sp]
	ldr	r6, [r0, #28]
	ldr	r7, [r0, #12]
	ldr	r5, [r9]
	bl	init_packet
	ldr	r3, .L48+12
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	HFI1_CAP_KGET_MASK
	subs	r8, r0, #0
	bne	.L2
	ldr	r0, [sp, #20]
	bl	rhf_rcv_seq
	ldr	r3, [r4]
	cmp	r3, r0
	beq	.L24
.L38:
	ldr	r3, .L48+16
	ldr	r5, [r3]
.L4:
	add	r0, sp, #12
	bl	finish_packet
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r4
	bl	get_rcvhdrtail
	ldr	r3, [sp, #12]
	str	r0, [sp, #4]
	cmp	r3, r0
	beq	.L38
	bl	smp_rmb
	ldr	r2, [r4, #12]
	ldr	r3, [r10]
	cmp	r2, r3
	movne	r8, #0
	beq	.L41
.L3:
	mov	r0, r4
	add	r1, sp, #12
	bl	prescan_rxq
	ldr	r3, [r9]
	cmp	r3, r5
	bne	.L6
	ldr	r3, [sp]
	subs	r7, r7, r3
	movne	r7, #1
	b	.L22
.L47:
	mov	r1, fp
	add	r0, sp, #12
	bl	skip_rcv_packet
	ldr	r3, [sp]
	mov	r5, r0
	mov	r8, r3
.L9:
	ldr	r3, .L48+12
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	HFI1_CAP_KGET_MASK
	cmp	r0, #0
	beq	.L42
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #4]
	cmp	r3, r2
	ldreq	r3, .L48+16
	ldr	r2, [r4, #12]
	ldreq	r5, [r3]
	ldr	r3, [r10]
	cmp	r2, r3
	beq	.L43
.L19:
	cmp	r7, #0
	bne	.L44
.L17:
	mov	r0, r5
	add	r1, sp, #12
	bl	process_rcv_update
	ldr	r3, [r9]
	mov	r7, #0
	cmp	r3, r5
	bne	.L6
.L22:
	ldr	r0, [r6]
	cmp	r0, #0
	bne	.L45
.L7:
	bl	unlikely
	subs	r3, r0, #0
	bne	.L46
	cmp	r8, #0
	str	r3, [sp]
	bne	.L47
	ldr	r2, [r4, #20]
	ldr	r3, .L48+20
	ldr	r0, [r2]
	ldr	r3, [r3]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L12
	mov	r2, r6
	mov	r0, r4
	add	r1, sp, #12
	bl	set_armed_to_active
	cmp	r0, #0
	bne	.L4
.L12:
	mov	r1, fp
	add	r0, sp, #12
	bl	process_rcv_packet
	mov	r5, r0
	b	.L9
.L24:
	str	r8, [sp, #4]
	b	.L3
.L46:
	mov	r1, #0
	ldr	r0, [sp, #12]
	ldr	r3, [sp, #16]
	ldr	r2, [r4, #4]
	add	r3, r0, r3
	ldr	r0, [r4, #24]
	add	r2, r3, r2
	str	r1, [r6]
	add	r0, r0, r2, lsl #2
	str	r3, [sp, #12]
	str	r0, [sp, #24]
	bl	rhf_to_cpu
	str	r0, [sp, #20]
	b	.L9
.L45:
	ldr	r3, .L48+24
	add	r0, r6, #4
	ldr	r1, [r3]
	bl	atomic_xchg
	ldr	r3, .L48+28
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L7
.L42:
	ldr	r0, [sp, #20]
	bl	rhf_rcv_seq
	ldr	r3, [r4]
	add	r3, r3, #1
	cmp	r3, #13
	movgt	r2, #1
	movgt	r3, r2
	strle	r3, [r4]
	strgt	r2, [r4]
	cmp	r3, r0
	ldrne	r3, .L48+16
	ldrne	r5, [r3]
	cmp	r7, #0
	beq	.L17
	mov	r0, r6
	ldr	r1, .L48+32
	bl	dd_dev_info
	mov	r0, r6
	ldr	r1, [r4, #12]
	bl	set_nodma_rtail
	b	.L17
.L44:
	mov	r0, r6
	ldr	r1, .L48+36
	bl	dd_dev_info
	mov	r0, r6
	ldr	r1, [r4, #12]
	bl	set_dma_rtail
	b	.L17
.L43:
	ldr	r0, [sp, #20]
	bl	rhf_rcv_seq
	ldr	r3, [r4]
	add	r3, r3, #1
	cmp	r3, #13
	movgt	r3, #1
	cmp	r5, #0
	str	r3, [r4]
	bne	.L19
	ldr	r3, [r4]
	cmp	r3, r0
	movne	r8, #1
	b	.L19
.L6:
	add	r0, sp, #12
	bl	process_rcv_qp_work
	ldr	r3, [sp, #12]
	str	r3, [r4, #8]
	b	.L4
.L41:
	ldr	r0, [sp, #20]
	bl	rhf_rcv_seq
	ldr	r8, [r4]
	subs	r8, r8, r0
	movne	r8, #1
	b	.L3
.L40:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC2
	.word	HFI1_CTRL_CTXT
	.word	RCV_PKT_OK
	.word	DMA_RTAIL
	.word	RCV_PKT_DONE
	.word	HLS_UP_ARMED
	.word	DROP_PACKET_OFF
	.word	DROP_PACKET_ON
	.word	.LC0
	.word	.LC1
	.size	handle_receive_interrupt, .-handle_receive_interrupt
	.comm	RCV_PKT_OK,4,4
	.comm	RCV_PKT_DONE,4,4
	.comm	HLS_UP_ARMED,4,4
	.comm	HFI1_CTRL_CTXT,4,4
	.comm	DROP_PACKET_ON,4,4
	.comm	DROP_PACKET_OFF,4,4
	.comm	DMA_RTAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
