	.file	"extr_btc_dpm.c_btc_find_valid_clock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btc_find_valid_clock, @function
btc_find_valid_clock:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L2
	mov	r8, QWORD PTR 8[rdi]
	lea	r9d, -1[rax]
	mov	rcx, r8
	lea	rdi, 8[r8+r9*8]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rcx, 8
	cmp	rcx, rdi
	je	.L12
.L6:
	mov	rax, QWORD PTR [rcx]
	cmp	rax, rdx
	jl	.L5
	cmp	rax, rsi
	cmovg	rax, rsi
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	rsi, rdx
	mov	rax, rdx
	cmovle	rax, rsi
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	QWORD PTR [r8+r9*8], rsi
	mov	rax, rsi
	cmovle	rax, QWORD PTR [r8+r9*8]
	ret
	.cfi_endproc
.LFE0:
	.size	btc_find_valid_clock, .-btc_find_valid_clock
	.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_btc_dpm.c_btc_find_valid_clock.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btc_find_valid_clock, %function
btc_find_valid_clock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	beq	.L12
	push	{r4, lr}
	ldr	r4, [r0]
	cmp	r4, #0
	beq	.L15
	ldr	r0, [r0, #4]
	mov	r3, #0
	sub	ip, r0, #4
	b	.L6
.L5:
	cmp	r4, r3
	beq	.L17
.L6:
	ldr	lr, [ip, #4]!
	add	r3, r3, #1
	cmp	lr, r2
	blt	.L5
	cmp	lr, r1
	movlt	r0, lr
	movge	r0, r1
	pop	{r4, pc}
.L17:
	sub	r4, r4, #-1073741823
	ldr	r2, [r0, r4, lsl #2]
.L15:
	cmp	r1, r2
	movlt	r0, r1
	movge	r0, r2
	pop	{r4, pc}
.L12:
	cmp	r1, r2
	movlt	r0, r1
	movge	r0, r2
	bx	lr
	.size	btc_find_valid_clock, .-btc_find_valid_clock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
