	.file	"extr_clk-cs2000-cp.c_cs2000_ratio_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cs2000_ratio_get, @function
cs2000_ratio_get:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR RATIO_REG_SIZE[rip]
	test	eax, eax
	je	.L2
	mov	rbp, rdi
	mov	r13d, esi
	xor	ebx, ebx
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, ebx
	add	ebx, 1
	call	Val_Ratio@PLT
	or	r12d, eax
	cmp	DWORD PTR RATIO_REG_SIZE[rip], ebx
	jbe	.L1
.L3:
	mov	esi, ebx
	mov	edi, r13d
	call	Ratio_Add@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	cs2000_read@PLT
	mov	rdi, rax
	test	rax, rax
	jns	.L8
.L2:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	cs2000_ratio_get, .-cs2000_ratio_get
	.comm	RATIO_REG_SIZE,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_clk-cs2000-cp.c_cs2000_ratio_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs2000_ratio_get, %function
cs2000_ratio_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L12
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
	mov	r6, r0
	mov	r7, r1
	mov	r5, r4
	b	.L3
.L11:
	mov	r1, r4
	bl	Val_Ratio
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	orr	r5, r5, r0
	bls	.L1
.L3:
	mov	r1, r4
	mov	r0, r7
	bl	Ratio_Add
	mov	r1, r0
	mov	r0, r6
	bl	cs2000_read
	cmp	r0, #0
	bge	.L11
.L2:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	RATIO_REG_SIZE
	.size	cs2000_ratio_get, .-cs2000_ratio_get
	.comm	RATIO_REG_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
