	.file	"extr_serial-tegra.c_tegra_uart_isr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tegra_uart_isr, @function
tegra_uart_isr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 24[rsi]
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rdi, r12
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, .L10[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, DWORD PTR UART_IIR[rip]
	mov	rdi, r13
	call	tegra_uart_read@PLT
	test	QWORD PTR UART_IIR_NO_INT[rip], rax
	jne	.L23
	shr	rax
	and	eax, 7
	cmp	rax, 6
	ja	.L18
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L10:
	.long	.L13-.L10
	.long	.L12-.L10
	.long	.L9-.L10
	.long	.L11-.L10
	.long	.L9-.L10
	.long	.L18-.L10
	.long	.L9-.L10
	.text
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, ebp
	or	eax, DWORD PTR 8[r13]
	je	.L24
	mov	rdi, r13
	call	do_handle_rx_pio@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR UART_IER_THRI[rip]
	mov	edx, DWORD PTR UART_IER[rip]
	mov	rdi, r13
	not	rsi
	and	rsi, QWORD PTR 0[r13]
	mov	QWORD PTR 0[r13], rsi
	call	tegra_uart_write@PLT
	mov	rdi, r13
	call	tegra_uart_handle_tx_pio@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR UART_LSR[rip]
	mov	rdi, r13
	call	tegra_uart_read@PLT
	mov	rdi, r13
	mov	rsi, rax
	call	tegra_uart_decode_rx_error@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r12
	call	tegra_uart_handle_modem_signal_change@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, DWORD PTR UART_IER[rip]
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, r13
	or	rsi, QWORD PTR UART_IER_RDI[rip]
	mov	rbp, rsi
	call	tegra_uart_write@PLT
	mov	rsi, QWORD PTR UART_IER_RDI[rip]
	or	rsi, QWORD PTR UART_IER_RLSI[rip]
	mov	rdi, r13
	or	rsi, QWORD PTR UART_IER_RTOIE[rip]
	or	rsi, QWORD PTR TEGRA_UART_IER_EORD[rip]
	not	rsi
	mov	edx, DWORD PTR UART_IER[rip]
	and	rsi, rbp
	mov	ebp, 1
	mov	QWORD PTR 0[r13], rsi
	call	tegra_uart_write@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR 8[r13]
	test	eax, eax
	jne	.L7
	test	ebp, ebp
	jne	.L25
.L7:
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	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
.L25:
	.cfi_restore_state
	mov	rdi, r13
	call	tegra_uart_handle_rx_dma@PLT
	cmp	QWORD PTR 16[r13], 0
	je	.L7
	mov	rsi, QWORD PTR UART_IER_RLSI[rip]
	mov	edx, DWORD PTR UART_IER[rip]
	mov	rdi, r13
	or	rsi, QWORD PTR UART_IER_RTOIE[rip]
	or	rsi, QWORD PTR TEGRA_UART_IER_EORD[rip]
	or	rsi, QWORD PTR 0[r13]
	mov	QWORD PTR 0[r13], rsi
	call	tegra_uart_write@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	tegra_uart_isr, .-tegra_uart_isr
	.comm	UART_LSR,4,4
	.comm	UART_IIR_NO_INT,8,8
	.comm	UART_IIR,4,4
	.comm	UART_IER_THRI,8,8
	.comm	UART_IER_RTOIE,8,8
	.comm	UART_IER_RLSI,8,8
	.comm	UART_IER_RDI,8,8
	.comm	UART_IER,4,4
	.comm	TEGRA_UART_IER_EORD,8,8
	.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_serial-tegra.c_tegra_uart_isr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_uart_isr, %function
tegra_uart_isr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r8, r1, #12
	mov	fp, r1
	mov	r0, r8
	mov	r1, #0
	bl	spin_lock_irqsave
	mov	r6, #0
	ldr	r5, .L25
	ldr	r4, .L25+4
	ldr	r9, .L25+8
	ldr	r10, .L25+12
	ldr	r7, .L25+16
.L3:
	mov	r0, fp
	ldr	r1, [r5]
	bl	tegra_uart_read
	ldr	r2, [r4]
	lsr	r3, r0, #1
	tst	r0, r2
	and	r3, r3, #7
	bne	.L22
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L9:
	.word	.L12
	.word	.L11
	.word	.L8
	.word	.L10
	.word	.L8
	.word	.L3
	.word	.L8
.L8:
	ldr	r3, [fp, #4]
	orrs	r3, r6, r3
	beq	.L23
	mov	r0, fp
	bl	do_handle_rx_pio
	b	.L3
.L11:
	ldr	r3, .L25+20
	ldr	r1, [fp]
	ldr	r3, [r3]
	ldr	r2, [r7]
	bic	r1, r1, r3
	mov	r0, fp
	str	r1, [fp]
	bl	tegra_uart_write
	mov	r0, fp
	bl	tegra_uart_handle_tx_pio
	b	.L3
.L10:
	ldr	r1, [r9]
	mov	r0, fp
	bl	tegra_uart_read
	mov	r1, r0
	mov	r0, fp
	bl	tegra_uart_decode_rx_error
	b	.L3
.L12:
	mov	r0, r8
	bl	tegra_uart_handle_modem_signal_change
	b	.L3
.L23:
	ldr	r1, [r10]
	ldr	r6, [fp]
	ldr	r2, [r7]
	orr	r6, r6, r1
	mov	r1, r6
	mov	r0, fp
	bl	tegra_uart_write
	ldr	r3, .L25+24
	ldr	r1, [r10]
	ldr	r3, [r3]
	ldr	r2, .L25+28
	orr	r1, r1, r3
	ldr	r3, .L25+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r1, r1, r2
	orr	r1, r1, r3
	bic	r1, r6, r1
	mov	r0, fp
	ldr	r2, [r7]
	str	r1, [fp]
	bl	tegra_uart_write
	mov	r6, #1
	b	.L3
.L22:
	ldr	r2, [fp, #4]
	cmp	r2, #0
	movne	r6, #0
	cmp	r6, #0
	bne	.L24
.L6:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L25+36
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r0, fp
	bl	tegra_uart_handle_rx_dma
	ldr	r2, [fp, #8]
	cmp	r2, #0
	beq	.L6
	ldr	r1, .L25+24
	ldr	r0, .L25+28
	ldr	r2, .L25+32
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r1, r1, r0
	ldr	r0, [fp]
	orr	r1, r1, r2
	ldr	r2, .L25+16
	orr	r1, r1, r0
	ldr	r2, [r2]
	mov	r0, fp
	str	r1, [fp]
	bl	tegra_uart_write
	b	.L6
.L26:
	.align	2
.L25:
	.word	UART_IIR
	.word	UART_IIR_NO_INT
	.word	UART_LSR
	.word	UART_IER_RDI
	.word	UART_IER
	.word	UART_IER_THRI
	.word	UART_IER_RLSI
	.word	UART_IER_RTOIE
	.word	TEGRA_UART_IER_EORD
	.word	IRQ_HANDLED
	.size	tegra_uart_isr, .-tegra_uart_isr
	.comm	UART_LSR,4,4
	.comm	UART_IIR_NO_INT,4,4
	.comm	UART_IIR,4,4
	.comm	UART_IER_THRI,4,4
	.comm	UART_IER_RTOIE,4,4
	.comm	UART_IER_RLSI,4,4
	.comm	UART_IER_RDI,4,4
	.comm	UART_IER,4,4
	.comm	TEGRA_UART_IER_EORD,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
