	.file	"extr_sunsu.c_sunsu_serial_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sunsu_serial_interrupt, @function
sunsu_serial_interrupt:
.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
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, rbp
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbx, 7[rsp]
	call	spin_lock_irqsave@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	check_modem_status@PLT
	movzx	eax, BYTE PTR 7[rsp]
	test	BYTE PTR UART_LSR_THRE[rip], al
	jne	.L20
.L18:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
.L4:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR UART_IIR[rip]
	mov	rdi, rbp
	call	serial_in@PLT
	test	DWORD PTR UART_IIR_NO_INT[rip], eax
	jne	.L21
.L5:
	mov	esi, DWORD PTR UART_LSR[rip]
	mov	rdi, rbp
	call	serial_inp@PLT
	mov	BYTE PTR 7[rsp], al
	test	BYTE PTR UART_LSR_DR[rip], al
	je	.L2
	mov	rsi, rbx
	mov	rdi, rbp
	call	receive_chars@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	check_modem_status@PLT
	movzx	eax, BYTE PTR 7[rsp]
	test	BYTE PTR UART_LSR_THRE[rip], al
	jne	.L22
.L3:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	test	r12, r12
	je	.L4
	mov	rdi, r12
	call	tty_flip_buffer_push@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	transmit_chars@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbp
	call	transmit_chars@PLT
	jmp	.L3
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sunsu_serial_interrupt, .-sunsu_serial_interrupt
	.comm	UART_LSR_THRE,1,1
	.comm	UART_LSR_DR,1,1
	.comm	UART_LSR,4,4
	.comm	UART_IIR_NO_INT,4,4
	.comm	UART_IIR,4,4
	.comm	IRQ_HANDLED,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_sunsu.c_sunsu_serial_interrupt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sunsu_serial_interrupt, %function
sunsu_serial_interrupt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r3, .L24
	sub	sp, sp, #8
	mov	r1, #0
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r9, .L24+4
	bl	spin_lock_irqsave
	ldr	r8, .L24+8
	ldr	r7, .L24+12
	ldr	r6, .L24+16
	ldr	r5, .L24+20
	b	.L5
.L2:
	mov	r0, r4
	bl	check_modem_status
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldrb	r3, [r7]	@ zero_extendqisi2
	tst	r2, r3
	bne	.L20
.L18:
	mov	r1, #0
	mov	r0, r4
	bl	spin_unlock_irqrestore
.L4:
	mov	r1, #0
	mov	r0, r4
	bl	spin_lock_irqsave
	mov	r0, r4
	ldr	r1, [r6]
	bl	serial_in
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L21
.L5:
	mov	r0, r4
	ldr	r1, [r9]
	bl	serial_inp
	ldrb	r3, [r8]	@ zero_extendqisi2
	strb	r0, [sp, #3]
	tst	r0, r3
	beq	.L2
	add	r1, sp, #3
	mov	r0, r4
	bl	receive_chars
	mov	r10, r0
	mov	r0, r4
	bl	check_modem_status
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldrb	r3, [r7]	@ zero_extendqisi2
	tst	r2, r3
	bne	.L22
.L3:
	mov	r1, #0
	mov	r0, r4
	bl	spin_unlock_irqrestore
	cmp	r10, #0
	beq	.L4
	mov	r0, r10
	bl	tty_flip_buffer_push
	b	.L4
.L20:
	mov	r0, r4
	bl	transmit_chars
	b	.L18
.L21:
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L24+24
	ldr	r0, [r3]
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	mov	r0, r4
	bl	transmit_chars
	b	.L3
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	UART_LSR
	.word	UART_LSR_DR
	.word	UART_LSR_THRE
	.word	UART_IIR
	.word	UART_IIR_NO_INT
	.word	IRQ_HANDLED
	.size	sunsu_serial_interrupt, .-sunsu_serial_interrupt
	.comm	UART_LSR_THRE,1,1
	.comm	UART_LSR_DR,1,1
	.comm	UART_LSR,4,4
	.comm	UART_IIR_NO_INT,4,4
	.comm	UART_IIR,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
