	.file	"extr_esp_scsi.c_scsi_esp_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	scsi_esp_intr
	.type	scsi_esp_intr, @function
scsi_esp_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rsi]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	r12d, DWORD PTR IRQ_NONE[rip]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR IRQ_HANDLED[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	__esp_interrupt@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR ESP_FLAG_QUICKIRQ_CHECK[rip]
	test	edx, eax
	je	.L2
	not	eax
	xor	ebx, ebx
	and	eax, edx
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR ESP_QUICKIRQ_LIMIT[rip]
	test	eax, eax
	jg	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR ESP_QUICKIRQ_LIMIT[rip]
	add	ebx, 1
	cmp	eax, ebx
	jle	.L3
.L5:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR ESP_QUICKIRQ_LIMIT[rip]
.L3:
	cmp	ebx, eax
	jne	.L6
.L2:
	mov	rax, QWORD PTR 8[rbp]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	scsi_esp_intr, .-scsi_esp_intr
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ESP_QUICKIRQ_LIMIT,4,4
	.comm	ESP_FLAG_QUICKIRQ_CHECK,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_esp_scsi.c_scsi_esp_intr.c"
	.text
	.align	2
	.global	scsi_esp_intr
	.syntax unified
	.arm
	.fpu softvfp
	.type	scsi_esp_intr, %function
scsi_esp_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r3, [r1, #4]
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_lock_irqsave
	ldr	r3, [r5, #8]
	ldr	r2, .L18
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r8, [r2]
	blx	r3
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L18+4
	ldr	r7, .L18+8
	ldr	r8, [r3]
	ldr	r6, .L18+12
.L6:
	mov	r0, r5
	bl	__esp_interrupt
	ldr	r2, [r5]
	ldr	r1, [r7]
	tst	r2, r1
	beq	.L2
	ldr	r3, [r6]
	bic	r2, r2, r1
	cmp	r3, #0
	mov	r4, #0
	str	r2, [r5]
	bgt	.L5
	b	.L3
.L4:
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L3
.L5:
	ldr	r3, [r5, #8]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	ldr	r3, [r6]
	beq	.L4
.L3:
	cmp	r4, r3
	bne	.L6
.L2:
	ldr	r3, [r5, #4]
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_unlock_irqrestore
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	IRQ_NONE
	.word	IRQ_HANDLED
	.word	ESP_FLAG_QUICKIRQ_CHECK
	.word	ESP_QUICKIRQ_LIMIT
	.size	scsi_esp_intr, .-scsi_esp_intr
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ESP_QUICKIRQ_LIMIT,4,4
	.comm	ESP_FLAG_QUICKIRQ_CHECK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
