	.file	"extr_8250.c_serial8250_verify_port.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	serial8250_verify_port, @function
serial8250_verify_port:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR nr_irqs[rip]
	jge	.L7
	test	rax, rax
	js	.L7
	cmp	DWORD PTR 8[rsi], 9599
	jle	.L7
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 16[rsi]
	cmp	rbp, QWORD PTR PORT_UNKNOWN[rip]
	mov	QWORD PTR 8[rsp], rsi
	jge	.L11
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 16
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -16
	mov	edi, DWORD PTR uart_config[rip]
	call	ARRAY_SIZE@PLT
	cmp	rbp, rax
	jge	.L5
	mov	rsi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 16[rsi]
	cmp	rax, QWORD PTR PORT_CIRRUS[rip]
	je	.L5
	cmp	rax, QWORD PTR PORT_STARTECH[rip]
	je	.L5
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	serial8250_verify_port, .-serial8250_verify_port
	.comm	uart_config,4,4
	.comm	nr_irqs,8,8
	.comm	PORT_UNKNOWN,8,8
	.comm	PORT_STARTECH,8,8
	.comm	PORT_CIRRUS,8,8
	.comm	EINVAL,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_verify_port.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial8250_verify_port, %function
serial8250_verify_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L7
	ldr	r3, [r1]
	ldr	r0, [r2]
	push	{r4, r5, r6, lr}
	lsr	r4, r3, #31
	cmp	r3, r0
	orrge	r4, r4, #1
	cmp	r4, #0
	beq	.L2
.L4:
	ldr	r3, .L7+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r1, #4]
	mov	r5, r1
	cmp	r3, #9600
	blt	.L4
	ldr	r3, .L7+8
	ldr	r6, [r1, #8]
	ldr	r3, [r3]
	cmp	r6, r3
	blt	.L4
	ldr	r3, .L7+12
	ldr	r0, [r3]
	bl	ARRAY_SIZE
	cmp	r6, r0
	bge	.L4
	ldr	r2, .L7+16
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L7+20
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	nr_irqs
	.word	EINVAL
	.word	PORT_UNKNOWN
	.word	uart_config
	.word	PORT_CIRRUS
	.word	PORT_STARTECH
	.size	serial8250_verify_port, .-serial8250_verify_port
	.comm	uart_config,4,4
	.comm	nr_irqs,4,4
	.comm	PORT_UNKNOWN,4,4
	.comm	PORT_STARTECH,4,4
	.comm	PORT_CIRRUS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
