	.file	"extr_sun4i_can.c_sun4i_can_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wakeup interrupt\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"can't allocate buffer - clearing pending interrupts\n"
	.section	.rodata.str1.1
.LC2:
	.string	"%d messages handled in ISR"
	.text
	.p2align 4
	.type	sun4i_can_interrupt, @function
sun4i_can_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	mov	rbx, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	test	DWORD PTR SUN4I_INT_TBUF_VLD[rip], ebp
	jne	.L34
.L4:
	mov	eax, DWORD PTR SUN4I_INT_DATA_OR[rip]
	test	DWORD PTR SUN4I_INT_RBUF_VLD[rip], ebp
	je	.L5
	test	ebp, eax
	je	.L35
.L5:
	mov	ecx, DWORD PTR SUN4I_INT_ERR_WRN[rip]
	or	ecx, DWORD PTR SUN4I_INT_BUS_ERR[rip]
	or	ecx, DWORD PTR SUN4I_INT_ERR_PASSIVE[rip]
	or	ecx, DWORD PTR SUN4I_INT_ARB_LOST[rip]
	or	ecx, eax
	test	ecx, ebp
	jne	.L36
.L8:
	mov	rsi, QWORD PTR SUN4I_REG_INT_ADDR[rip]
	mov	edi, ebp
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	mov	rdi, QWORD PTR SUN4I_REG_INT_ADDR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
.L2:
	mov	rdi, QWORD PTR SUN4I_REG_INT_ADDR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L10
	cmp	DWORD PTR SUN4I_CAN_MAX_IRQ[rip], r13d
	jle	.L12
	mov	rdi, QWORD PTR SUN4I_REG_STA_ADDR[rip]
	add	rdi, QWORD PTR [rbx]
	add	r13d, 1
	call	readl@PLT
	mov	r15d, eax
	test	DWORD PTR SUN4I_INT_WAKEUP[rip], ebp
	je	.L3
	mov	rsi, r14
	mov	rdi, r12
	call	netdev_warn@PLT
	test	DWORD PTR SUN4I_INT_TBUF_VLD[rip], ebp
	je	.L4
.L34:
	mov	rdi, QWORD PTR SUN4I_REG_RBUF_RBACK_START_ADDR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	add	DWORD PTR 4[r12], 1
	xor	esi, esi
	mov	rdi, r12
	and	eax, 15
	add	DWORD PTR [r12], eax
	call	can_get_echo_skb@PLT
	mov	rdi, r12
	call	netif_wake_queue@PLT
	mov	esi, DWORD PTR CAN_LED_EVENT_TX[rip]
	mov	rdi, r12
	call	can_led_event@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edx, r15d
	mov	esi, ebp
	mov	rdi, r12
	call	sun4i_can_err@PLT
	test	rax, rax
	je	.L8
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	netdev_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L35:
	test	DWORD PTR SUN4I_STA_RBUF_RDY[rip], r15d
	je	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r12
	call	sun4i_can_rx@PLT
	mov	rdi, QWORD PTR SUN4I_REG_STA_ADDR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	r15d, eax
	test	DWORD PTR SUN4I_STA_RBUF_RDY[rip], eax
	jne	.L6
	mov	eax, DWORD PTR SUN4I_INT_DATA_OR[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	DWORD PTR SUN4I_CAN_MAX_IRQ[rip], r13d
	jle	.L12
.L13:
	test	r13d, r13d
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	cmove	eax, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	netdev_dbg@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	sun4i_can_interrupt, .-sun4i_can_interrupt
	.comm	SUN4I_STA_RBUF_RDY,4,4
	.comm	SUN4I_REG_STA_ADDR,8,8
	.comm	SUN4I_REG_RBUF_RBACK_START_ADDR,8,8
	.comm	SUN4I_REG_INT_ADDR,8,8
	.comm	SUN4I_INT_WAKEUP,4,4
	.comm	SUN4I_INT_TBUF_VLD,4,4
	.comm	SUN4I_INT_RBUF_VLD,4,4
	.comm	SUN4I_INT_ERR_WRN,4,4
	.comm	SUN4I_INT_ERR_PASSIVE,4,4
	.comm	SUN4I_INT_DATA_OR,4,4
	.comm	SUN4I_INT_BUS_ERR,4,4
	.comm	SUN4I_INT_ARB_LOST,4,4
	.comm	SUN4I_CAN_MAX_IRQ,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	CAN_LED_EVENT_TX,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_sun4i_can.c_sun4i_can_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wakeup interrupt\012\000"
	.align	2
.LC1:
	.ascii	"can't allocate buffer - clearing pending interrupts"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"%d messages handled in ISR\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4i_can_interrupt, %function
sun4i_can_interrupt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r0, r1
	sub	sp, sp, #12
	mov	r5, r1
	bl	netdev_priv
	mov	r6, #0
	mov	r4, r0
	ldr	r7, .L37
	ldr	r10, .L37+4
	ldr	r8, .L37+8
	b	.L2
.L3:
	ldr	r3, .L37+12
	ldr	r3, [r3]
	tst	r9, r3
	bne	.L34
.L4:
	ldr	r3, .L37+16
	ldr	r1, .L37+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	tst	r9, r3
	beq	.L5
	tst	r9, r1
	beq	.L35
.L5:
	ldr	r3, .L37+24
	ldr	r0, .L37+28
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	ip, .L37+32
	orr	r3, r3, r0
	ldr	r0, .L37+36
	ldr	ip, [ip]
	ldr	r0, [r0]
	orr	r3, r3, ip
	orr	r3, r3, r0
	orr	r3, r3, r1
	tst	r3, r9
	bne	.L36
.L8:
	ldr	r3, [r7]
	ldr	r1, [r4]
	mov	r0, r9
	add	r1, r1, r3
	bl	writel
	ldr	r0, [r4]
	ldr	r3, [r7]
	add	r0, r0, r3
	bl	readl
.L2:
	ldr	r3, [r7]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readl
	subs	r9, r0, #0
	ldr	r3, [r10]
	beq	.L10
	cmp	r3, r6
	ble	.L12
	ldr	r3, [r8]
	ldr	r0, [r4]
	add	r6, r6, #1
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L37+40
	mov	r2, r0
	ldr	r3, [r3]
	tst	r9, r3
	beq	.L3
	str	r0, [sp, #4]
	ldr	r1, .L37+44
	mov	r0, r5
	bl	netdev_warn
	ldr	r3, .L37+12
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	tst	r9, r3
	beq	.L4
.L34:
	ldr	r3, .L37+48
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r2, [sp, #4]
	add	r0, r0, r3
	bl	readl
	ldm	r5, {r1, r3}
	and	r0, r0, #15
	add	r3, r3, #1
	add	r1, r1, r0
	stm	r5, {r1, r3}
	mov	r0, r5
	mov	r1, #0
	bl	can_get_echo_skb
	mov	r0, r5
	bl	netif_wake_queue
	ldr	r3, .L37+52
	mov	r0, r5
	ldr	r1, [r3]
	bl	can_led_event
	ldr	r2, [sp, #4]
	b	.L4
.L36:
	mov	r1, r9
	mov	r0, r5
	bl	sun4i_can_err
	cmp	r0, #0
	beq	.L8
	mov	r0, r5
	ldr	r1, .L37+56
	bl	netdev_err
	b	.L8
.L35:
	ldr	fp, .L37+60
	ldr	r0, [fp]
	tst	r2, r0
	beq	.L5
.L6:
	mov	r0, r5
	bl	sun4i_can_rx
	ldr	r3, [r8]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, [fp]
	tst	r0, r3
	bne	.L6
	ldr	r3, .L37+20
	mov	r2, r0
	ldr	r1, [r3]
	b	.L5
.L10:
	cmp	r3, r6
	ble	.L12
.L13:
	cmp	r6, #0
	ldrne	r3, .L37+64
	ldreq	r3, .L37+68
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r5
	mov	r2, r6
	ldr	r1, .L37+72
	bl	netdev_dbg
	b	.L13
.L38:
	.align	2
.L37:
	.word	SUN4I_REG_INT_ADDR
	.word	SUN4I_CAN_MAX_IRQ
	.word	SUN4I_REG_STA_ADDR
	.word	SUN4I_INT_TBUF_VLD
	.word	SUN4I_INT_RBUF_VLD
	.word	SUN4I_INT_DATA_OR
	.word	SUN4I_INT_ERR_WRN
	.word	SUN4I_INT_BUS_ERR
	.word	SUN4I_INT_ERR_PASSIVE
	.word	SUN4I_INT_ARB_LOST
	.word	SUN4I_INT_WAKEUP
	.word	.LC0
	.word	SUN4I_REG_RBUF_RBACK_START_ADDR
	.word	CAN_LED_EVENT_TX
	.word	.LC1
	.word	SUN4I_STA_RBUF_RDY
	.word	IRQ_HANDLED
	.word	IRQ_NONE
	.word	.LC2
	.size	sun4i_can_interrupt, .-sun4i_can_interrupt
	.comm	SUN4I_STA_RBUF_RDY,4,4
	.comm	SUN4I_REG_STA_ADDR,4,4
	.comm	SUN4I_REG_RBUF_RBACK_START_ADDR,4,4
	.comm	SUN4I_REG_INT_ADDR,4,4
	.comm	SUN4I_INT_WAKEUP,4,4
	.comm	SUN4I_INT_TBUF_VLD,4,4
	.comm	SUN4I_INT_RBUF_VLD,4,4
	.comm	SUN4I_INT_ERR_WRN,4,4
	.comm	SUN4I_INT_ERR_PASSIVE,4,4
	.comm	SUN4I_INT_DATA_OR,4,4
	.comm	SUN4I_INT_BUS_ERR,4,4
	.comm	SUN4I_INT_ARB_LOST,4,4
	.comm	SUN4I_CAN_MAX_IRQ,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	CAN_LED_EVENT_TX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
