	.file	"extr_clk-max9485.c_max9485_clkout_round_rate.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	max9485_clkout_round_rate, @function
max9485_clkout_round_rate:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR max9485_rates[rip]
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	je	.L2
	xor	edi, edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	jb	.L11
	mov	rax, QWORD PTR 8[rdx]
	lea	rcx, 8[rdx]
	mov	rdi, rdx
	test	rax, rax
	je	.L12
	mov	rdx, rcx
.L8:
	cmp	rsi, rax
	jne	.L3
	mov	rax, rsi
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	test	rdi, rdi
	je	.L1
	mov	rdx, QWORD PTR [rdi]
	mov	rcx, rax
	sub	rcx, rdx
	shr	rcx
	add	ecx, edx
	cmp	rcx, rsi
	cmova	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR [rdx]
	ret
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	max9485_clkout_round_rate.cold, @function
max9485_clkout_round_rate.cold:
.LFSB0:
.L2:
	mov	rax, QWORD PTR ds:0
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	max9485_clkout_round_rate, .-max9485_clkout_round_rate
	.section	.text.unlikely
	.size	max9485_clkout_round_rate.cold, .-max9485_clkout_round_rate.cold
.LCOLDE0:
	.text
.LHOTE0:
	.comm	max9485_rates,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_clk-max9485.c_max9485_clkout_round_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max9485_clkout_round_rate, %function
max9485_clkout_round_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L2
	mov	r0, #0
	b	.L8
.L3:
	bcc	.L11
	ldr	r2, [r3, #4]
	mov	r0, r3
	cmp	r2, #0
	add	ip, r3, #4
	beq	.L12
	mov	r3, ip
.L8:
	cmp	r1, r2
	bne	.L3
	mov	r0, r1
	bx	lr
.L11:
	cmp	r0, #0
	beq	.L13
	ldr	r0, [r0]
	sub	r3, r2, r0
	add	r3, r0, r3, lsr #1
	cmp	r1, r3
	movcs	r0, r2
	bx	lr
.L12:
	ldr	r0, [r3]
	bx	lr
.L13:
	mov	r0, r2
	bx	lr
.L2:
	ldr	r3, [r2]
	.inst	0xe7f000f0
.L15:
	.align	2
.L14:
	.word	max9485_rates
	.size	max9485_clkout_round_rate, .-max9485_clkout_round_rate
	.comm	max9485_rates,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
