	.file	"extr_aw_spi.c_aw_spi_clock_test_cdr2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aw_spi_clock_test_cdr2, @function
aw_spi_clock_test_cdr2:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR AW_SPI_CCR_CDR2_SHIFT[rip]
	mov	r10d, DWORD PTR AW_SPI_CCR_CDR2_MASK[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdx
	sar	r10d, cl
	test	r10d, r10d
	jle	.L5
	mov	r8d, DWORD PTR [rdi]
	mov	esi, 1
	xor	edi, edi
	xor	r9d, r9d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, r8d
	cdq
	idiv	esi
	cdqe
	cmp	rax, r9
	jle	.L3
	mov	r11d, edi
	mov	r9, rax
.L3:
	add	edi, 1
	add	esi, 2
	cmp	r10d, edi
	jne	.L4
.L2:
	sal	r11d, cl
	or	r11d, DWORD PTR AW_SPI_CCR_DRS[rip]
	mov	rax, r9
	mov	DWORD PTR [rbx], r11d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r9d, r9d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	aw_spi_clock_test_cdr2, .-aw_spi_clock_test_cdr2
	.comm	AW_SPI_CCR_DRS,4,4
	.comm	AW_SPI_CCR_CDR2_SHIFT,4,4
	.comm	AW_SPI_CCR_CDR2_MASK,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_aw_spi.c_aw_spi_clock_test_cdr2.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aw_spi_clock_test_cdr2, %function
aw_spi_clock_test_cdr2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, .L9
	ldr	r3, .L9+4
	ldr	r9, [r1]
	ldr	r6, [r3]
	mov	r8, r2
	asr	r6, r6, r9
	cmp	r6, #0
	ble	.L5
	mov	r4, #0
	mov	fp, #1
	mov	r5, r4
	ldr	r7, [r0]
.L4:
	mov	r1, fp
	mov	r0, r7
	bl	__aeabi_idiv
	cmp	r0, r5
	movgt	r10, r4
	add	r4, r4, #1
	movgt	r5, r0
	cmp	r6, r4
	add	fp, fp, #2
	bne	.L4
.L2:
	ldr	r3, .L9+8
	mov	r0, r5
	ldr	r3, [r3]
	orr	r9, r3, r10, lsl r9
	str	r9, [r8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r5, #0
	b	.L2
.L10:
	.align	2
.L9:
	.word	AW_SPI_CCR_CDR2_SHIFT
	.word	AW_SPI_CCR_CDR2_MASK
	.word	AW_SPI_CCR_DRS
	.size	aw_spi_clock_test_cdr2, .-aw_spi_clock_test_cdr2
	.comm	AW_SPI_CCR_DRS,4,4
	.comm	AW_SPI_CCR_CDR2_SHIFT,4,4
	.comm	AW_SPI_CCR_CDR2_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
