	.file	"extr_clk-bcm2835.c_bcm2835_clock_rate_from_divisor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcm2835_clock_rate_from_divisor, @function
bcm2835_clock_rate_from_divisor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rcx, QWORD PTR [rdi]
	mov	r8, rsi
	mov	r12, r8
	mov	eax, DWORD PTR [rcx]
	mov	edi, DWORD PTR 4[rcx]
	mov	esi, eax
	or	esi, edi
	je	.L1
	mov	ecx, DWORD PTR CM_DIV_FRAC_BITS[rip]
	xor	r12d, r12d
	sub	ecx, edi
	sar	edx, cl
	lea	ecx, [rax+rdi]
	mov	eax, 1
	sal	eax, cl
	lea	esi, -1[rax]
	and	esi, edx
	jne	.L8
.L1:
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, edi
	sal	r8, cl
	mov	r12, r8
	mov	rdi, r8
	call	do_div@PLT
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bcm2835_clock_rate_from_divisor, .-bcm2835_clock_rate_from_divisor
	.comm	CM_DIV_FRAC_BITS,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-bcm2835.c_bcm2835_clock_rate_from_divisor.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm2835_clock_rate_from_divisor, %function
bcm2835_clock_rate_from_divisor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r0]
	push	{r4, lr}
	ldm	r0, {r3, r4}
	orrs	r0, r3, r4
	beq	.L9
	mvn	r0, #0
	add	r3, r3, r4
	mvn	r0, r0, lsl r3
	ldr	r3, .L10
	ldr	r3, [r3]
	sub	r3, r3, r4
	ands	r0, r0, r2, asr r3
	popeq	{r4, pc}
	lsl	r4, r1, r4
	mov	r1, r0
	mov	r0, r4
	bl	do_div
	mov	r0, r4
	pop	{r4, pc}
.L9:
	mov	r0, r1
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	CM_DIV_FRAC_BITS
	.size	bcm2835_clock_rate_from_divisor, .-bcm2835_clock_rate_from_divisor
	.comm	CM_DIV_FRAC_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
