	.file	"extr_8250.c_serial8250_backup_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	serial8250_backup_timeout, @function
serial8250_backup_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 12[rdi]
	call	is_real_interrupt@PLT
	test	rax, rax
	jne	.L26
.L2:
	mov	esi, DWORD PTR UART_IIR[rip]
	xor	r14d, r14d
	mov	rdi, rbx
	lea	r13, 32[rbx]
	call	serial_in@PLT
	mov	rsi, r14
	mov	rdi, r13
	mov	ebp, eax
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR UART_LSR[rip]
	mov	rdi, rbx
	call	serial_in@PLT
	mov	rsi, r14
	mov	rdi, r13
	mov	r12d, eax
	mov	eax, DWORD PTR LSR_SAVE_FLAGS[rip]
	and	eax, r12d
	or	DWORD PTR [rbx], eax
	call	spin_unlock_irqrestore@PLT
	test	DWORD PTR UART_IIR_NO_INT[rip], ebp
	jne	.L3
.L9:
	mov	rdi, rbx
	call	serial8250_handle_port@PLT
.L4:
	mov	edi, DWORD PTR 12[rbx]
	call	is_real_interrupt@PLT
	test	rax, rax
	jne	.L27
.L11:
	mov	edi, DWORD PTR 8[rbx]
	call	poll_timeout@PLT
	movsx	rsi, DWORD PTR HZ[rip]
	add	rax, QWORD PTR jiffies[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rdi, 40[rbx]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	rdx, rsi
	imul	rsi, rsi, 1717986919
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	sar	edx, 31
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	sar	rsi, 33
	sub	esi, edx
	movsx	rsi, esi
	add	rsi, rax
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR UART_IER_THRI[rip], eax
	je	.L4
	mov	rdi, QWORD PTR 24[rbx]
	call	uart_circ_empty@PLT
	mov	edx, DWORD PTR UART_IIR_NO_INT[rip]
	test	eax, eax
	je	.L7
	cmp	QWORD PTR 16[rbx], 0
	je	.L8
.L7:
	test	DWORD PTR UART_LSR_THRE[rip], r12d
	je	.L8
	mov	eax, DWORD PTR UART_IIR_ID[rip]
	or	eax, edx
	not	eax
	and	ebp, eax
	or	ebp, DWORD PTR UART_IIR_THRI[rip]
.L8:
	test	ebp, edx
	je	.L9
	mov	edi, DWORD PTR 12[rbx]
	call	is_real_interrupt@PLT
	test	rax, rax
	je	.L11
.L27:
	mov	esi, DWORD PTR UART_IER[rip]
	mov	edx, r15d
	mov	rdi, rbx
	call	serial_out@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR UART_IER[rip]
	mov	rdi, rbx
	call	serial_in@PLT
	mov	esi, DWORD PTR UART_IER[rip]
	xor	edx, edx
	mov	rdi, rbx
	mov	r15d, eax
	call	serial_out@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	serial8250_backup_timeout, .-serial8250_backup_timeout
	.comm	jiffies,8,8
	.comm	UART_LSR_THRE,4,4
	.comm	UART_LSR,4,4
	.comm	UART_IIR_THRI,4,4
	.comm	UART_IIR_NO_INT,4,4
	.comm	UART_IIR_ID,4,4
	.comm	UART_IIR,4,4
	.comm	UART_IER_THRI,4,4
	.comm	UART_IER,4,4
	.comm	LSR_SAVE_FLAGS,4,4
	.comm	HZ,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_8250.c_serial8250_backup_timeout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial8250_backup_timeout, %function
serial8250_backup_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	bl	is_real_interrupt
	cmp	r0, #0
	moveq	r6, r0
	bne	.L27
.L2:
	ldr	r3, .L29
	mov	r0, r4
	ldr	r1, [r3]
	bl	serial_in
	mov	r9, #0
	add	r5, r4, #24
	mov	r1, r9
	mov	r7, r0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, .L29+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	serial_in
	ldr	r2, .L29+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r1, r9
	and	r2, r2, r0
	orr	r3, r3, r2
	ldr	r9, .L29+12
	str	r3, [r4]
	mov	r8, r0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	ldr	r3, [r9]
	tst	r7, r3
	bne	.L3
.L9:
	mov	r0, r4
	bl	serial8250_handle_port
.L4:
	ldr	r0, [r4, #12]
	bl	is_real_interrupt
	cmp	r0, #0
	bne	.L28
.L11:
	ldr	r0, [r4, #8]
	bl	poll_timeout
	ldr	r3, .L29+16
	ldr	r2, .L29+20
	ldr	r3, [r3]
	ldr	r1, .L29+24
	smull	ip, r2, r3, r2
	ldr	r1, [r1]
	asr	r3, r3, #31
	add	r1, r0, r1
	rsb	r3, r3, r2, asr #1
	add	r0, r4, #28
	add	r1, r1, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mod_timer
.L3:
	ldr	r3, .L29+28
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r0, [r4, #20]
	bl	uart_circ_empty
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r9]
.L7:
	ldr	r2, .L29+32
	ldr	r2, [r2]
	tst	r8, r2
	beq	.L8
	ldr	r2, .L29+36
	ldr	r1, .L29+40
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r3, r2
	bic	r7, r7, r2
	orr	r7, r7, r1
.L8:
	tst	r7, r3
	beq	.L9
	ldr	r0, [r4, #12]
	bl	is_real_interrupt
	cmp	r0, #0
	beq	.L11
.L28:
	ldr	r3, .L29+44
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r3]
	bl	serial_out
	b	.L11
.L27:
	ldr	r5, .L29+44
	mov	r0, r4
	ldr	r1, [r5]
	bl	serial_in
	mov	r2, #0
	mov	r6, r0
	ldr	r1, [r5]
	mov	r0, r4
	bl	serial_out
	b	.L2
.L6:
	ldr	r2, [r4, #16]
	ldr	r3, [r9]
	cmp	r2, #0
	beq	.L8
	b	.L7
.L30:
	.align	2
.L29:
	.word	UART_IIR
	.word	UART_LSR
	.word	LSR_SAVE_FLAGS
	.word	UART_IIR_NO_INT
	.word	HZ
	.word	1717986919
	.word	jiffies
	.word	UART_IER_THRI
	.word	UART_LSR_THRE
	.word	UART_IIR_ID
	.word	UART_IIR_THRI
	.word	UART_IER
	.size	serial8250_backup_timeout, .-serial8250_backup_timeout
	.comm	jiffies,4,4
	.comm	UART_LSR_THRE,4,4
	.comm	UART_LSR,4,4
	.comm	UART_IIR_THRI,4,4
	.comm	UART_IIR_NO_INT,4,4
	.comm	UART_IIR_ID,4,4
	.comm	UART_IIR,4,4
	.comm	UART_IER_THRI,4,4
	.comm	UART_IER,4,4
	.comm	LSR_SAVE_FLAGS,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
