	.file	"extr_NCR53c406a.c_irq_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	irq_probe, @function
irq_probe:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR INT_REG[rip]
	call	inb@PLT
	xor	eax, eax
	call	probe_irq_on@PLT
	mov	esi, DWORD PTR CMD_REG[rip]
	mov	edi, 255
	mov	r12d, eax
	call	outb@PLT
	mov	rsi, QWORD PTR jiffies[rip]
	mov	rbp, QWORD PTR WATCHDOG[rip]
	add	rbp, rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR STAT_REG[rip]
	call	inb@PLT
	test	al, -128
	jne	.L7
	xor	eax, eax
	call	barrier@PLT
	mov	rsi, QWORD PTR jiffies[rip]
.L2:
	mov	rdi, rbp
	call	time_after@PLT
	test	rax, rax
	jne	.L3
.L7:
	mov	rsi, QWORD PTR jiffies[rip]
	mov	rdi, rbp
	call	time_before_eq@PLT
	test	rax, rax
	jne	.L12
	mov	edi, r12d
	call	probe_irq_off@PLT
	mov	esi, DWORD PTR CMD_REG[rip]
	mov	edi, DWORD PTR CHIP_RESET[rip]
	mov	r12d, eax
	call	outb@PLT
	mov	esi, DWORD PTR CMD_REG[rip]
	mov	edi, DWORD PTR SCSI_NOP[rip]
	call	outb@PLT
	xor	eax, eax
	call	chip_init@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	mov	edi, r12d
	mov	r12d, -1
	call	probe_irq_off@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	irq_probe, .-irq_probe
	.comm	jiffies,8,8
	.comm	WATCHDOG,8,8
	.comm	STAT_REG,4,4
	.comm	SCSI_NOP,4,4
	.comm	REG0,4,4
	.comm	INT_REG,4,4
	.comm	CMD_REG,4,4
	.comm	CHIP_RESET,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_NCR53c406a.c_irq_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	irq_probe, %function
irq_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	bl	inb
	bl	probe_irq_on
	ldr	r8, .L13+4
	mov	r7, r0
	ldr	r1, [r8]
	mov	r0, #255
	bl	outb
	ldr	r5, .L13+8
	ldr	r3, .L13+12
	ldr	r1, [r5]
	ldr	r4, [r3]
	ldr	r6, .L13+16
	add	r4, r1, r4
	b	.L2
.L3:
	ldr	r0, [r6]
	bl	inb
	tst	r0, #128
	bne	.L7
	bl	barrier
	ldr	r1, [r5]
.L2:
	mov	r0, r4
	bl	time_after
	cmp	r0, #0
	bne	.L3
.L7:
	mov	r0, r4
	ldr	r1, [r5]
	bl	time_before_eq
	cmp	r0, #0
	bne	.L12
	mov	r0, r7
	bl	probe_irq_off
	ldr	r3, .L13+20
	ldr	r1, [r8]
	mov	r4, r0
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L13+24
	ldr	r1, [r8]
	ldr	r0, [r3]
	bl	outb
	bl	chip_init
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r7
	bl	probe_irq_off
	mvn	r4, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	INT_REG
	.word	CMD_REG
	.word	jiffies
	.word	WATCHDOG
	.word	STAT_REG
	.word	CHIP_RESET
	.word	SCSI_NOP
	.size	irq_probe, .-irq_probe
	.comm	jiffies,4,4
	.comm	WATCHDOG,4,4
	.comm	STAT_REG,4,4
	.comm	SCSI_NOP,4,4
	.comm	REG0,4,4
	.comm	INT_REG,4,4
	.comm	CMD_REG,4,4
	.comm	CHIP_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
