	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_clk_m_find_best
_aw_clk_m_find_best:                    ## @aw_clk_m_find_best
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rcx)
	callq	_aw_clk_factor_get_max
	movl	%eax, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_aw_clk_factor_get_min
                                        ## implicit-def: $r12d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r15d, %eax
	jle	LBB0_1
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r14d
                                        ## implicit-def: $r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AW_CLK_FACTOR_POWER_OF_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r14,%r14), %ecx
	incl	%r14d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, (%rdx)
	cmovnel	%ecx, %r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jg	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%r14d
	movl	%eax, %r15d
	movl	(%rbx), %edi
	subl	%eax, %edi
	callq	_abs
	movq	%rax, %r13
	movl	(%rbx), %edi
	subl	%r12d, %edi
	callq	_abs
	cmpq	%rax, %r13
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	%r15d, %r12d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_CLK_FACTOR_POWER_OF_TWO,4,2 ## @AW_CLK_FACTOR_POWER_OF_TWO
	.no_dead_strip	_aw_clk_m_find_best
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_clk_m_find_best
_aw_clk_m_find_best:                    ; @aw_clk_m_find_best
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [x3]
	bl	_aw_clk_factor_get_max
	mov	x23, x0
	mov	x0, x22
	bl	_aw_clk_factor_get_min
                                        ; implicit-def: $w25
	cmp	w0, w23
	b.le	LBB0_2
LBB0_1:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x24, x0
Lloh0:
	adrp	x27, _AW_CLK_FACTOR_POWER_OF_TWO@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AW_CLK_FACTOR_POWER_OF_TWO@GOTPAGEOFF]
                                        ; implicit-def: $w25
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x27]
	lsl	w10, w24, #1
	tst	w9, w8
	csinc	w24, w10, w24, ne
	cmp	w24, w23
	b.gt	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w28, w21, w24
	ldr	w8, [x20]
	sub	w0, w8, w28
	bl	_abs
	mov	x26, x0
	ldr	w8, [x20]
	sub	w0, w8, w25
	bl	_abs
	cmp	x26, x0
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [x19]
	mov	x25, x28
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_CLK_FACTOR_POWER_OF_TWO,4,2 ; @AW_CLK_FACTOR_POWER_OF_TWO
	.no_dead_strip	_aw_clk_m_find_best
.subsections_via_symbols
