	.file	"extr_8250.c_serial8250_get_divisor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	serial8250_get_divisor, @function
serial8250_get_divisor:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR UPF_MAGIC_MULTIPLIER[rip], eax
	je	.L2
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	lea	edx, 3[rax]
	cmovns	edx, eax
	sar	edx, 2
	cmp	edx, esi
	je	.L5
	test	eax, eax
	lea	edx, 7[rax]
	cmovs	eax, edx
	sar	eax, 3
	cmp	eax, esi
	je	.L6
.L2:
	mov	rax, QWORD PTR PORT_16C950[rip]
	cmp	QWORD PTR 8[rdi], rax
	jne	.L4
	mov	edx, DWORD PTR 4[rdi]
	test	edx, edx
	lea	eax, 15[rdx]
	cmovns	eax, edx
	sar	eax, 4
	cmp	eax, esi
	jnb	.L4
	mov	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	jmp	uart_get_divisor@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, 32769
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, 32770
	ret
	.cfi_endproc
.LFE0:
	.size	serial8250_get_divisor, .-serial8250_get_divisor
	.comm	UPF_MAGIC_MULTIPLIER,4,4
	.comm	PORT_16C950,8,8
	.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_get_divisor.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial8250_get_divisor, %function
serial8250_get_divisor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L12
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	add	r2, r3, #3
	movge	r2, r3
	cmp	r1, r2, asr #2
	beq	.L5
	cmp	r3, #0
	add	r2, r3, #7
	movlt	r3, r2
	cmp	r1, r3, asr #3
	beq	.L6
.L2:
	ldr	r3, .L12+4
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #0
	add	r2, r3, #15
	movlt	r3, r2
	cmp	r1, r3, asr #4
	bls	.L4
	mov	r0, #1
	bx	lr
.L4:
	b	uart_get_divisor
.L5:
	ldr	r0, .L12+8
	bx	lr
.L6:
	ldr	r0, .L12+12
	bx	lr
.L13:
	.align	2
.L12:
	.word	UPF_MAGIC_MULTIPLIER
	.word	PORT_16C950
	.word	32769
	.word	32770
	.size	serial8250_get_divisor, .-serial8250_get_divisor
	.comm	UPF_MAGIC_MULTIPLIER,4,4
	.comm	PORT_16C950,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
