	.file	"extr_defza.c_fza_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: link available\n"
.LC1:
	.string	"%s: link unavailable\n"
.LC2:
	.string	"%s: state change: %x\n"
.LC3:
	.string	"%s: OK\n"
.LC4:
	.string	"%s: queue woken\n"
.LC5:
	.string	"%s: queue stopped\n"
.LC6:
	.string	"%s: halted, reason: %x\n"
.LC7:
	.string	"%s: resetting the board...\n"
.LC8:
	.string	"%s: undefined state: %x\n"
	.text
	.p2align 4
	.type	fza_interrupt, @function
fza_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 72[rax]
	lea	rdi, 4[rax]
	call	readw_o@PLT
	and	eax, DWORD PTR [rbx]
	jne	.L2
	mov	eax, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	mov	ebp, eax
	mov	rax, QWORD PTR 72[rbx]
	mov	edi, ebp
	lea	rsi, 4[rax]
	call	writew_u@PLT
	test	DWORD PTR FZA_EVENT_CMD_DONE[rip], ebp
	jne	.L48
	test	DWORD PTR FZA_EVENT_TX_DONE[rip], ebp
	jne	.L49
.L5:
	test	DWORD PTR FZA_EVENT_RX_POLL[rip], ebp
	jne	.L50
.L6:
	test	DWORD PTR FZA_EVENT_SMT_TX_POLL[rip], ebp
	jne	.L51
.L7:
	test	DWORD PTR FZA_EVENT_FLUSH_TX[rip], ebp
	jne	.L52
.L8:
	test	DWORD PTR FZA_EVENT_LINK_ST_CHG[rip], ebp
	jne	.L53
.L9:
	test	DWORD PTR FZA_EVENT_UNS_POLL[rip], ebp
	jne	.L54
.L11:
	test	DWORD PTR FZA_EVENT_STATE_CHG[rip], ebp
	jne	.L55
.L12:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L48:
	.cfi_restore_state
	add	DWORD PTR 112[rbx], 1
	lea	r13, 20[rbx]
	mov	rdi, r13
	call	spin_lock@PLT
	mov	DWORD PTR 4[rbx], 1
	lea	rdi, 108[rbx]
	call	wake_up@PLT
	mov	rdi, r13
	call	spin_unlock@PLT
	test	DWORD PTR FZA_EVENT_TX_DONE[rip], ebp
	je	.L5
.L49:
	add	DWORD PTR 104[rbx], 1
	mov	rdi, r12
	call	fza_tx@PLT
	test	DWORD PTR FZA_EVENT_RX_POLL[rip], ebp
	je	.L6
.L50:
	add	DWORD PTR 100[rbx], 1
	mov	rdi, r12
	call	fza_rx@PLT
	test	DWORD PTR FZA_EVENT_SMT_TX_POLL[rip], ebp
	je	.L7
.L51:
	add	DWORD PTR 96[rbx], 1
	mov	rdi, r12
	call	fza_tx_smt@PLT
	test	DWORD PTR FZA_EVENT_FLUSH_TX[rip], ebp
	je	.L8
.L52:
	add	DWORD PTR 92[rbx], 1
	mov	rdi, r12
	call	fza_tx_flush@PLT
	test	DWORD PTR FZA_EVENT_LINK_ST_CHG[rip], ebp
	je	.L9
.L53:
	add	DWORD PTR 88[rbx], 1
	mov	rdi, QWORD PTR 72[rbx]
	call	readw_u@PLT
	mov	edi, eax
	call	FZA_STATUS_GET_LINK@PLT
	cmp	rax, QWORD PTR FZA_LINK_ON[rip]
	mov	rdi, r12
	je	.L56
	call	netif_carrier_off@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC1[rip]
	call	pr_info@PLT
	test	DWORD PTR FZA_EVENT_UNS_POLL[rip], ebp
	je	.L11
.L54:
	add	DWORD PTR 84[rbx], 1
	mov	rdi, r12
	call	fza_uns@PLT
	test	DWORD PTR FZA_EVENT_STATE_CHG[rip], ebp
	je	.L12
.L55:
	add	DWORD PTR 80[rbx], 1
	mov	rdi, QWORD PTR 72[rbx]
	call	readw_u@PLT
	mov	edi, eax
	mov	ebp, eax
	call	FZA_STATUS_GET_STATE@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC2[rip]
	mov	r13d, eax
	mov	edx, eax
	xor	eax, eax
	call	pr_debug@PLT
	lea	eax, -128[r13]
	cmp	eax, 5
	ja	.L13
	lea	rdx, .L15[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L19-.L15
	.long	.L17-.L15
	.long	.L18-.L15
	.long	.L17-.L15
	.long	.L16-.L15
	.long	.L14-.L15
	.text
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r12
	call	netif_carrier_off@PLT
	lea	rdi, 32[rbx]
	call	del_timer_sync@PLT
	cmp	DWORD PTR 8[rbx], 128
	mov	QWORD PTR 40[rbx], 0
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	mov	DWORD PTR 64[rbx], 0
	jle	.L18
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC3[rip]
	call	pr_info@PLT
	mov	esi, DWORD PTR FZA_RING_CMD_INIT[rip]
	mov	rdi, r12
	call	fza_cmd_send@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rbp, 20[rbx]
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	DWORD PTR 16[rbx], 1
	lea	rdi, 24[rbx]
	call	wake_up@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L56:
	call	netif_carrier_on@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	mov	DWORD PTR 8[rbx], r13d
	mov	rdi, rbx
	call	fza_rx_init@PLT
	mov	DWORD PTR 12[rbx], 1
	mov	rdi, r12
	call	netif_wake_queue@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	pr_debug@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	mov	DWORD PTR 12[rbx], 0
	mov	rdi, r12
	lea	r12, 32[rbx]
	call	netif_stop_queue@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	pr_debug@PLT
	mov	rdi, r12
	call	del_timer_sync@PLT
	mov	edi, ebp
	call	FZA_STATUS_GET_HALT@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC6[rip]
	mov	edx, eax
	call	pr_warn@PLT
	mov	rdi, rbx
	call	fza_regs_dump@PLT
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, .LC7[rip]
	call	pr_info@PLT
	mov	rdi, rbx
	call	fza_do_reset@PLT
	imul	eax, DWORD PTR HZ[rip], 45
	add	eax, DWORD PTR jiffies[rip]
	mov	rdi, r12
	mov	DWORD PTR 36[rbx], 0
	mov	DWORD PTR 32[rbx], eax
	call	add_timer@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	DWORD PTR 8[rbx], 132
	jle	.L18
	mov	rdi, r12
	call	fza_set_rx_mode@PLT
	mov	esi, DWORD PTR FZA_RING_CMD_PARAM[rip]
	mov	rdi, r12
	call	fza_cmd_send@PLT
	jmp	.L18
.L13:
	mov	esi, DWORD PTR 28[rbx]
	mov	edx, r13d
	lea	rdi, .LC8[rip]
	call	pr_warn@PLT
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	fza_interrupt, .-fza_interrupt
	.comm	jiffies,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	HZ,4,4
	.comm	FZA_RING_CMD_PARAM,4,4
	.comm	FZA_RING_CMD_INIT,4,4
	.comm	FZA_LINK_ON,8,8
	.comm	FZA_EVENT_UNS_POLL,4,4
	.comm	FZA_EVENT_TX_DONE,4,4
	.comm	FZA_EVENT_STATE_CHG,4,4
	.comm	FZA_EVENT_SMT_TX_POLL,4,4
	.comm	FZA_EVENT_RX_POLL,4,4
	.comm	FZA_EVENT_LINK_ST_CHG,4,4
	.comm	FZA_EVENT_FLUSH_TX,4,4
	.comm	FZA_EVENT_CMD_DONE,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_defza.c_fza_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: link available\012\000"
	.align	2
.LC1:
	.ascii	"%s: link unavailable\012\000"
	.align	2
.LC2:
	.ascii	"%s: state change: %x\012\000"
	.align	2
.LC3:
	.ascii	"%s: OK\012\000"
	.align	2
.LC4:
	.ascii	"%s: queue woken\012\000"
	.align	2
.LC5:
	.ascii	"%s: queue stopped\012\000"
	.align	2
.LC6:
	.ascii	"%s: halted, reason: %x\012\000"
	.align	2
.LC7:
	.ascii	"%s: resetting the board...\012\000"
	.align	2
.LC8:
	.ascii	"%s: undefined state: %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fza_interrupt, %function
fza_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r1
	mov	r6, r1
	bl	netdev_priv
	mov	r4, r0
	ldr	r0, [r0, #68]
	add	r0, r0, #4
	bl	readw_o
	ldr	r3, [r4]
	ands	r5, r0, r3
	bne	.L2
	ldr	r3, .L57
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, [r4, #68]
	mov	r0, r5
	add	r1, r1, #4
	bl	writew_u
	ldr	r3, .L57+4
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L48
	ldr	r3, .L57+8
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L49
.L5:
	ldr	r3, .L57+12
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L50
.L6:
	ldr	r3, .L57+16
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L51
.L7:
	ldr	r3, .L57+20
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L52
.L8:
	ldr	r3, .L57+24
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L53
.L9:
	ldr	r3, .L57+28
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L54
.L11:
	ldr	r3, .L57+32
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L55
.L12:
	ldr	r3, .L57+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L48:
	ldr	r3, [r4, #104]
	add	r7, r4, #20
	add	r3, r3, #1
	str	r3, [r4, #104]
	mov	r0, r7
	bl	spin_lock
	mov	r3, #1
	add	r0, r4, #100
	str	r3, [r4, #4]
	bl	wake_up
	mov	r0, r7
	bl	spin_unlock
	ldr	r3, .L57+8
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L5
.L49:
	ldr	r3, [r4, #96]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #96]
	bl	fza_tx
	ldr	r3, .L57+12
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L6
.L50:
	ldr	r3, [r4, #92]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #92]
	bl	fza_rx
	ldr	r3, .L57+16
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L7
.L51:
	ldr	r3, [r4, #88]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #88]
	bl	fza_tx_smt
	ldr	r3, .L57+20
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L8
.L52:
	ldr	r3, [r4, #84]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #84]
	bl	fza_tx_flush
	ldr	r3, .L57+24
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L9
.L53:
	ldr	r3, [r4, #80]
	ldr	r0, [r4, #68]
	add	r3, r3, #1
	str	r3, [r4, #80]
	bl	readw_u
	bl	FZA_STATUS_GET_LINK
	ldr	r3, .L57+40
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r6
	beq	.L56
	bl	netif_carrier_off
	ldr	r1, [r4, #28]
	ldr	r0, .L57+44
	bl	pr_info
	ldr	r3, .L57+28
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L11
.L54:
	ldr	r3, [r4, #76]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #76]
	bl	fza_uns
	ldr	r3, .L57+32
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L12
.L55:
	ldr	r3, [r4, #72]
	ldr	r0, [r4, #68]
	add	r3, r3, #1
	str	r3, [r4, #72]
	bl	readw_u
	mov	r7, r0
	bl	FZA_STATUS_GET_STATE
	mov	r5, r0
	mov	r2, r0
	ldr	r1, [r4, #28]
	ldr	r0, .L57+48
	bl	pr_debug
	sub	r3, r5, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L15:
	.word	.L19
	.word	.L17
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L14
.L19:
	mov	r0, r6
	bl	netif_carrier_off
	add	r0, r4, #32
	bl	del_timer_sync
	mov	r3, #0
	ldr	r2, [r4, #8]
	str	r3, [r4, #64]
	cmp	r2, #128
	str	r3, [r4, #60]
	str	r3, [r4, #56]
	str	r3, [r4, #52]
	str	r3, [r4, #48]
	str	r3, [r4, #44]
	str	r3, [r4, #40]
	ble	.L18
	ldr	r1, [r4, #28]
	ldr	r0, .L57+52
	bl	pr_info
	ldr	r3, .L57+56
	mov	r0, r6
	ldr	r1, [r3]
	bl	fza_cmd_send
.L18:
	add	r5, r4, #20
	mov	r0, r5
	bl	spin_lock
	mov	r3, #1
	add	r0, r4, #24
	str	r3, [r4, #16]
	bl	wake_up
	mov	r0, r5
	bl	spin_unlock
	b	.L12
.L56:
	bl	netif_carrier_on
	ldr	r1, [r4, #28]
	ldr	r0, .L57+60
	bl	pr_info
	b	.L9
.L17:
	mov	r0, r4
	str	r5, [r4, #8]
	bl	fza_rx_init
	mov	r3, #1
	mov	r0, r6
	str	r3, [r4, #12]
	bl	netif_wake_queue
	ldr	r1, [r4, #28]
	ldr	r0, .L57+64
	bl	pr_debug
	b	.L18
.L14:
	mov	r8, #0
	mov	r0, r6
	str	r8, [r4, #12]
	bl	netif_stop_queue
	add	r5, r4, #32
	ldr	r1, [r4, #28]
	ldr	r0, .L57+68
	bl	pr_debug
	mov	r0, r5
	bl	del_timer_sync
	mov	r0, r7
	ldr	r6, [r4, #28]
	bl	FZA_STATUS_GET_HALT
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L57+72
	bl	pr_warn
	mov	r0, r4
	bl	fza_regs_dump
	ldr	r1, [r4, #28]
	ldr	r0, .L57+76
	bl	pr_info
	mov	r0, r4
	bl	fza_do_reset
	ldr	r3, .L57+80
	ldr	r2, .L57+84
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r3, r3, r3, lsl #1
	rsb	r3, r3, r3, lsl #4
	add	r3, r3, r2
	mov	r0, r5
	str	r8, [r4, #36]
	str	r3, [r4, #32]
	bl	add_timer
	b	.L18
.L16:
	ldr	r3, [r4, #8]
	cmp	r3, #132
	ble	.L18
	mov	r0, r6
	bl	fza_set_rx_mode
	ldr	r3, .L57+88
	mov	r0, r6
	ldr	r1, [r3]
	bl	fza_cmd_send
	b	.L18
.L13:
	mov	r2, r5
	ldr	r1, [r4, #28]
	ldr	r0, .L57+92
	bl	pr_warn
	b	.L18
.L58:
	.align	2
.L57:
	.word	IRQ_NONE
	.word	FZA_EVENT_CMD_DONE
	.word	FZA_EVENT_TX_DONE
	.word	FZA_EVENT_RX_POLL
	.word	FZA_EVENT_SMT_TX_POLL
	.word	FZA_EVENT_FLUSH_TX
	.word	FZA_EVENT_LINK_ST_CHG
	.word	FZA_EVENT_UNS_POLL
	.word	FZA_EVENT_STATE_CHG
	.word	IRQ_HANDLED
	.word	FZA_LINK_ON
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	FZA_RING_CMD_INIT
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	HZ
	.word	jiffies
	.word	FZA_RING_CMD_PARAM
	.word	.LC8
	.size	fza_interrupt, .-fza_interrupt
	.comm	jiffies,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	HZ,4,4
	.comm	FZA_RING_CMD_PARAM,4,4
	.comm	FZA_RING_CMD_INIT,4,4
	.comm	FZA_LINK_ON,4,4
	.comm	FZA_EVENT_UNS_POLL,4,4
	.comm	FZA_EVENT_TX_DONE,4,4
	.comm	FZA_EVENT_STATE_CHG,4,4
	.comm	FZA_EVENT_SMT_TX_POLL,4,4
	.comm	FZA_EVENT_RX_POLL,4,4
	.comm	FZA_EVENT_LINK_ST_CHG,4,4
	.comm	FZA_EVENT_FLUSH_TX,4,4
	.comm	FZA_EVENT_CMD_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
