	.file	"extr_amplc_pci230.c_pci230_choose_clk_count.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pci230_choose_clk_count, @function
pci230_choose_clk_count:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR CLK_10MHZ[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	DWORD PTR CLK_1KHZ[rip], r13d
	je	.L2
	add	r13d, 1
.L3:
	mov	rdx, QWORD PTR pci230_timebase[rip]
	mov	eax, r13d
	mov	edi, ebp
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	edx, ebx
	call	pci230_divide_ns@PLT
	cmp	eax, 65536
	ja	.L6
.L2:
	mov	DWORD PTR [r12], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pci230_choose_clk_count, .-pci230_choose_clk_count
	.comm	pci230_timebase,8,8
	.comm	CLK_1KHZ,4,4
	.comm	CLK_10MHZ,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_amplc_pci230.c_pci230_choose_clk_count.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci230_choose_clk_count, %function
pci230_choose_clk_count:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r8, r1
	mov	r5, r2
	ldr	r9, .L7+4
	ldr	r4, [r3]
	ldr	r7, .L7+8
	b	.L3
.L6:
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L2
	add	r4, r4, #1
.L3:
	ldr	r3, [r9]
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	bl	pci230_divide_ns
	cmp	r0, #65536
	bhi	.L6
.L2:
	str	r0, [r8]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	CLK_10MHZ
	.word	pci230_timebase
	.word	CLK_1KHZ
	.size	pci230_choose_clk_count, .-pci230_choose_clk_count
	.comm	pci230_timebase,4,4
	.comm	CLK_1KHZ,4,4
	.comm	CLK_10MHZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
