	.file	"extr_w83977af_ir.c_w83977af_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w83977af_interrupt, @function
w83977af_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR SSR[rip]
	movsx	rbx, DWORD PTR [rax]
	mov	r14, rax
	add	rdi, rbx
	call	inb@PLT
	mov	esi, DWORD PTR SET0[rip]
	mov	edi, ebx
	mov	r12d, eax
	call	switch_bank@PLT
	mov	rdi, QWORD PTR ICR[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdi, QWORD PTR ISR[rip]
	mov	ebp, eax
	add	rdi, rbx
	call	inb@PLT
	mov	rsi, QWORD PTR ICR[rip]
	xor	edi, edi
	and	eax, ebp
	mov	r13d, eax
	add	rsi, rbx
	call	outb@PLT
	test	r13d, r13d
	je	.L2
	mov	rax, QWORD PTR PIO_MAX_SPEED[rip]
	mov	esi, r13d
	mov	rdi, r14
	cmp	QWORD PTR 8[r14], rax
	jle	.L3
	call	w83977af_fir_interrupt@PLT
	mov	ebp, eax
.L2:
	mov	rsi, QWORD PTR ICR[rip]
	mov	edi, ebp
	add	rsi, rbx
	call	outb@PLT
	add	rbx, QWORD PTR SSR[rip]
	mov	edi, r12d
	mov	rsi, rbx
	call	outb@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	IRQ_RETVAL@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	w83977af_sir_interrupt@PLT
	mov	ebp, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	w83977af_interrupt, .-w83977af_interrupt
	.comm	SSR,8,8
	.comm	SET0,4,4
	.comm	PIO_MAX_SPEED,8,8
	.comm	ISR,8,8
	.comm	ICR,8,8
	.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_w83977af_ir.c_w83977af_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83977af_interrupt, %function
w83977af_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, r1
	bl	netdev_priv
	ldr	r10, .L9
	ldr	r4, [r0]
	mov	r7, r0
	ldr	r0, [r10]
	ldr	r9, .L9+4
	add	r0, r4, r0
	bl	inb
	ldr	r3, .L9+8
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	switch_bank
	ldr	r0, [r9]
	add	r0, r4, r0
	bl	inb
	ldr	r3, .L9+12
	mov	r5, r0
	ldr	r0, [r3]
	add	r0, r4, r0
	bl	inb
	ldr	r1, [r9]
	and	r6, r0, r5
	add	r1, r4, r1
	mov	r0, #0
	bl	outb
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L9+16
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	mov	r0, r7
	cmp	r2, r3
	mov	r1, r6
	ble	.L3
	bl	w83977af_fir_interrupt
	mov	r5, r0
.L2:
	ldr	r1, [r9]
	mov	r0, r5
	add	r1, r4, r1
	bl	outb
	ldr	r1, [r10]
	mov	r0, r8
	add	r1, r4, r1
	bl	outb
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	IRQ_RETVAL
.L3:
	bl	w83977af_sir_interrupt
	mov	r5, r0
	b	.L2
.L10:
	.align	2
.L9:
	.word	SSR
	.word	ICR
	.word	SET0
	.word	ISR
	.word	PIO_MAX_SPEED
	.size	w83977af_interrupt, .-w83977af_interrupt
	.comm	SSR,4,4
	.comm	SET0,4,4
	.comm	PIO_MAX_SPEED,4,4
	.comm	ISR,4,4
	.comm	ICR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
