	.file	"extr_tape_3590.c_tape_3590_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"End of volume\n"
.LC1:
	.string	"Unit Exception!\n"
.LC2:
	.string	"channel end\n"
.LC3:
	.string	"Unit Attention when busy..\n"
.LC4:
	.string	"xunknownirq\n"
	.text
	.p2align 4
	.type	tape_3590_irq, @function
tape_3590_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	test	rsi, rsi
	je	.L21
	mov	eax, DWORD PTR [rdx]
	mov	edx, DWORD PTR DEV_STAT_UNIT_EXCEP[rip]
	mov	rbp, rsi
	test	eax, edx
	jne	.L22
	test	DWORD PTR DEV_STAT_UNIT_CHECK[rip], eax
	jne	.L14
	test	DWORD PTR DEV_STAT_DEV_END[rip], eax
	jne	.L15
.L7:
	test	DWORD PTR DEV_STAT_CHN_END[rip], eax
	jne	.L23
	test	DWORD PTR DEV_STAT_ATTENTION[rip], eax
	jne	.L24
	lea	rsi, .LC4[rip]
	mov	edi, 6
	call	DBF_EVENT@PLT
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	call	tape_dump_sense_dbf@PLT
	mov	eax, DWORD PTR TAPE_IO_STOP[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	test	DWORD PTR DEV_STAT_DEV_END[rip], eax
	je	.L4
	mov	rcx, QWORD PTR TO_WRI[rip]
	cmp	QWORD PTR [rsi], rcx
	je	.L25
	test	DWORD PTR DEV_STAT_UNIT_CHECK[rip], eax
	jne	.L14
.L15:
	cmp	eax, edx
	je	.L26
.L8:
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	tape_3590_done@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	DWORD PTR DEV_STAT_UNIT_CHECK[rip], eax
	je	.L7
.L14:
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	tape_3590_unit_check@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR TO_FSB[rip]
	je	.L9
	cmp	rax, QWORD PTR TO_BSB[rip]
	jne	.L10
.L9:
	add	DWORD PTR 8[rbp], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC3[rip]
	mov	edi, 2
	call	DBF_EVENT@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR TAPE_IO_PENDING[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rdx
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	tape_3590_unsolicited_irq@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	edi, 2
	call	DBF_EVENT@PLT
	mov	eax, DWORD PTR TAPE_IO_PENDING[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC1[rip]
	mov	edi, 5
	call	DBF_EVENT@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	DBF_EVENT@PLT
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	mov	ecx, DWORD PTR ENOSPC[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	ecx
	jmp	tape_3590_erp_failed@PLT
	.cfi_endproc
.LFE0:
	.size	tape_3590_irq, .-tape_3590_irq
	.comm	TO_WRI,8,8
	.comm	TO_FSB,8,8
	.comm	TO_BSB,8,8
	.comm	TAPE_IO_STOP,4,4
	.comm	TAPE_IO_PENDING,4,4
	.comm	ENOSPC,4,4
	.comm	DEV_STAT_UNIT_EXCEP,4,4
	.comm	DEV_STAT_UNIT_CHECK,4,4
	.comm	DEV_STAT_DEV_END,4,4
	.comm	DEV_STAT_CHN_END,4,4
	.comm	DEV_STAT_ATTENTION,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_tape_3590.c_tape_3590_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"End of volume\012\000"
	.align	2
.LC1:
	.ascii	"Unit Exception!\012\000"
	.align	2
.LC2:
	.ascii	"channel end\012\000"
	.align	2
.LC3:
	.ascii	"Unit Attention when busy..\012\000"
	.align	2
.LC4:
	.ascii	"xunknownirq\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tape_3590_irq, %function
tape_3590_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r1, #0
	mov	r4, r2
	beq	.L21
	ldr	r2, .L27
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r6, r0
	tst	r3, r2
	bne	.L22
	ldr	r1, .L27+4
	ldr	r1, [r1]
	tst	r3, r1
	bne	.L14
	ldr	r1, .L27+8
	ldr	r1, [r1]
	tst	r3, r1
	bne	.L15
.L7:
	ldr	r2, .L27+12
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L23
	ldr	r2, .L27+16
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L24
	ldr	r1, .L27+20
	mov	r0, #6
	bl	DBF_EVENT
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	tape_dump_sense_dbf
	ldr	r3, .L27+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r1, .L27+8
	ldr	r1, [r1]
	tst	r3, r1
	beq	.L4
	ldr	r1, .L27+28
	ldr	r0, [r5]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L25
	ldr	r1, .L27+4
	ldr	r1, [r1]
	tst	r3, r1
	bne	.L14
.L15:
	cmp	r3, r2
	beq	.L26
.L8:
	mov	r1, r5
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	tape_3590_done
.L4:
	ldr	r2, .L27+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L7
.L14:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	tape_3590_unit_check
.L26:
	ldr	r2, .L27+32
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L27+36
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L10
.L9:
	ldr	r3, [r5, #4]
	add	r3, r3, #1
	str	r3, [r5, #4]
	b	.L8
.L24:
	ldr	r1, .L27+40
	mov	r0, #2
	bl	DBF_EVENT
	ldr	r3, .L27+44
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L21:
	mov	r1, r2
	pop	{r4, r5, r6, lr}
	b	tape_3590_unsolicited_irq
.L23:
	ldr	r1, .L27+48
	mov	r0, #2
	bl	DBF_EVENT
	ldr	r3, .L27+44
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, .L27+52
	mov	r0, #5
	bl	DBF_EVENT
	b	.L8
.L25:
	ldr	r1, .L27+56
	mov	r0, #2
	bl	DBF_EVENT
	ldr	r3, .L27+60
	mov	r2, r4
	ldr	r3, [r3]
	mov	r1, r5
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	rsb	r3, r3, #0
	b	tape_3590_erp_failed
.L28:
	.align	2
.L27:
	.word	DEV_STAT_UNIT_EXCEP
	.word	DEV_STAT_UNIT_CHECK
	.word	DEV_STAT_DEV_END
	.word	DEV_STAT_CHN_END
	.word	DEV_STAT_ATTENTION
	.word	.LC4
	.word	TAPE_IO_STOP
	.word	TO_WRI
	.word	TO_FSB
	.word	TO_BSB
	.word	.LC3
	.word	TAPE_IO_PENDING
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	ENOSPC
	.size	tape_3590_irq, .-tape_3590_irq
	.comm	TO_WRI,4,4
	.comm	TO_FSB,4,4
	.comm	TO_BSB,4,4
	.comm	TAPE_IO_STOP,4,4
	.comm	TAPE_IO_PENDING,4,4
	.comm	ENOSPC,4,4
	.comm	DEV_STAT_UNIT_EXCEP,4,4
	.comm	DEV_STAT_UNIT_CHECK,4,4
	.comm	DEV_STAT_DEV_END,4,4
	.comm	DEV_STAT_CHN_END,4,4
	.comm	DEV_STAT_ATTENTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
