	.file	"extr_atmel_serial.c_atmel_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_interrupt, @function
atmel_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, eax
	mov	rdi, rbx
	call	atmel_handle_receive@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, rbx
	call	atmel_handle_status@PLT
	mov	esi, ebp
	mov	rdi, rbx
	call	atmel_handle_transmit@PLT
	lea	eax, 1[r13]
	cmp	DWORD PTR ATMEL_ISR_PASS_LIMIT[rip], r13d
	mov	r13d, eax
	jbe	.L2
.L3:
	mov	rdi, rbx
	call	UART_GET_CSR@PLT
	mov	rdi, rbx
	mov	r12d, eax
	call	UART_GET_IMR@PLT
	and	eax, r12d
	mov	ebp, eax
	jne	.L12
.L2:
	test	r13d, r13d
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	cmove	eax, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	atmel_interrupt, .-atmel_interrupt
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ATMEL_ISR_PASS_LIMIT,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_atmel_serial.c_atmel_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_interrupt, %function
atmel_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	mov	r6, r1
	ldr	r8, .L13
	b	.L3
.L12:
	mov	r1, r4
	mov	r0, r6
	bl	atmel_handle_receive
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	atmel_handle_status
	mov	r1, r4
	mov	r0, r6
	bl	atmel_handle_transmit
	ldr	r2, [r8]
	add	r3, r7, #1
	cmp	r2, r7
	mov	r7, r3
	bls	.L2
.L3:
	mov	r0, r6
	bl	UART_GET_CSR
	mov	r5, r0
	mov	r0, r6
	bl	UART_GET_IMR
	ands	r4, r0, r5
	bne	.L12
.L2:
	cmp	r7, #0
	ldrne	r3, .L13+4
	ldreq	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	ATMEL_ISR_PASS_LIMIT
	.word	IRQ_HANDLED
	.word	IRQ_NONE
	.size	atmel_interrupt, .-atmel_interrupt
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ATMEL_ISR_PASS_LIMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
