	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_spi_clock_test_cdr1
_aw_spi_clock_test_cdr1:                ## @aw_spi_clock_test_cdr1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_AW_SPI_CCR_CDR1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_AW_SPI_CCR_CDR1_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %ecx
	sarl	%cl, %r10d
	movq	%rdx, %r8
	xorl	%ecx, %ecx
	testl	%r10d, %r10d
	jle	LBB0_1
## %bb.2:
	movl	(%rdi), %r11d
	cmpl	$1, %r10d
	jne	LBB0_4
## %bb.3:
                                        ## implicit-def: $esi
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_1:
	xorl	%edi, %edi
                                        ## implicit-def: $esi
	jmp	LBB0_8
LBB0_4:
	movl	%r10d, %r14d
	andl	$-2, %r14d
	xorl	%edi, %edi
                                        ## implicit-def: $esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	%r11d, %eax
	cltd
	idivl	%ebx
	cltq
	cmpq	%rax, %rdi
	cmovleq	%rax, %rdi
	movl	%esi, %ebx
	cmovll	%ecx, %ebx
	movl	$2, %esi
	shll	%cl, %esi
	movl	%r11d, %eax
	cltd
	idivl	%esi
	cltq
	leal	1(%rcx), %esi
	cmpq	%rax, %rdi
	cmovleq	%rax, %rdi
	cmovgel	%ebx, %esi
	addl	$2, %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_5
LBB0_6:
	testb	$1, %r10b
	je	LBB0_8
## %bb.7:
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	%r11d, %eax
	cltd
	idivl	%ebx
	cltq
	cmpq	%rax, %rdi
	cmovleq	%rax, %rdi
	cmovll	%ecx, %esi
LBB0_8:
	movl	%r9d, %ecx
	shll	%cl, %esi
	movl	%esi, (%r8)
	movq	%rdi, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_SPI_CCR_CDR1_MASK,4,2       ## @AW_SPI_CCR_CDR1_MASK
	.comm	_AW_SPI_CCR_CDR1_SHIFT,4,2      ## @AW_SPI_CCR_CDR1_SHIFT
	.no_dead_strip	_aw_spi_clock_test_cdr1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_spi_clock_test_cdr1
_aw_spi_clock_test_cdr1:                ; @aw_spi_clock_test_cdr1
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _AW_SPI_CCR_CDR1_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AW_SPI_CCR_CDR1_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _AW_SPI_CCR_CDR1_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AW_SPI_CCR_CDR1_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w10, w10, w9
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	mov	w11, #0
	ldr	w8, [x8]
	mov	w13, #1
                                        ; implicit-def: $w12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w14, w13, w11
	sdiv	w14, w8, w14
	sxtw	x14, w14
	cmp	x0, x14
	csel	x0, x0, x14, gt
	csel	w12, w11, w12, lt
	add	w11, w11, #1
	cmp	w10, w11
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x0, #0
                                        ; implicit-def: $w12
LBB0_4:
	lsl	w8, w12, w9
	str	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_SPI_CCR_CDR1_MASK,4,2       ; @AW_SPI_CCR_CDR1_MASK
	.comm	_AW_SPI_CCR_CDR1_SHIFT,4,2      ; @AW_SPI_CCR_CDR1_SHIFT
	.no_dead_strip	_aw_spi_clock_test_cdr1
.subsections_via_symbols
