	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_clk_nkmp_find_best
_aw_clk_nkmp_find_best:                 ## @aw_clk_nkmp_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rbp), %rax
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	$0, (%rcx)
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	$0, (%r8)
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	$0, (%r9)
	movq	$0, (%rax)
	callq	_aw_clk_factor_get_min
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_aw_clk_factor_get_max
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r14
	jle	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
LBB0_19:
	movq	%r14, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	4(%rbx), %r13
	leaq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%rbx), %r15
	xorl	%r14d, %r14d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
	movq	%r13, %rdi
	callq	_aw_clk_factor_get_min
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_aw_clk_factor_get_max
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	jle	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AW_CLK_FACTOR_POWER_OF_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	andl	(%rbx), %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%r12), %rcx
	incq	%r12
	testl	%eax, %eax
	cmovneq	%rcx, %r12
	movq	%rbx, %rdi
	callq	_aw_clk_factor_get_max
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	jle	LBB0_3
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imulq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_aw_clk_factor_get_min
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_aw_clk_factor_get_max
	cmpq	%rax, %rbx
	jle	LBB0_6
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_AW_CLK_FACTOR_POWER_OF_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	andl	(%r13), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rbx), %rcx
	incq	%rbx
	testl	%eax, %eax
	cmovneq	%rcx, %rbx
	movq	%r13, %rdi
	callq	_aw_clk_factor_get_max
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	jle	LBB0_5
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	imulq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=3
	movq	_AW_CLK_FACTOR_POWER_OF_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	andl	(%rdi), %eax
	leaq	(%rbx,%rbx), %rcx
	incq	%rbx
	testl	%eax, %eax
	cmovneq	%rcx, %rbx
	callq	_aw_clk_factor_get_max
	cmpq	%rax, %rbx
	jg	LBB0_17
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_8 Depth 4
	movq	%r15, %rdi
	callq	_aw_clk_factor_get_min
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	%r15, %rdi
	callq	_aw_clk_factor_get_max
	cmpq	%rax, %r12
	jg	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=4
	movq	%r12, %rcx
	imulq	%rbx, %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=4
	movq	%r13, %rax
	cqto
	idivq	%rcx
	cmpq	%rax, %r14
	jge	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=4
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rbx, (%rcx)
	movq	16(%rbp), %rcx
	movq	%r12, (%rcx)
	movq	%rax, %r14
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=4
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	(%rax), %r14
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=4
	movq	_AW_CLK_FACTOR_POWER_OF_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	leaq	(%r12,%r12), %rcx
	incq	%r12
	testl	%eax, %eax
	cmovneq	%rcx, %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=4
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rax, %r14
	jl	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_CLK_FACTOR_POWER_OF_TWO,4,2 ## @AW_CLK_FACTOR_POWER_OF_TWO
	.no_dead_strip	_aw_clk_nkmp_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_nkmp_find_best
_aw_clk_nkmp_find_best:                 ; @aw_clk_nkmp_find_best
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x3
	mov	x23, x2
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x19, x0
	str	xzr, [x3]
	stp	x4, x5, [sp, #40]               ; 16-byte Folded Spill
	str	xzr, [x4]
	str	xzr, [x5]
	str	x6, [sp, #56]                   ; 8-byte Folded Spill
	str	xzr, [x6]
	bl	_aw_clk_factor_get_min
	mov	x26, x0
	mov	x0, x19
	bl	_aw_clk_factor_get_max
	mov	x27, #0
	cmp	x26, x0
	b.le	LBB0_2
LBB0_1:
	mov	x0, x27
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	mov	x27, #0
	add	x21, x19, #4
	add	x8, x19, #8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x28, x19, #12
Lloh0:
	adrp	x20, _AW_CLK_FACTOR_POWER_OF_TWO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AW_CLK_FACTOR_POWER_OF_TWO@GOTPAGEOFF]
	stp	x19, x21, [sp, #8]              ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
	mov	x0, x21
	bl	_aw_clk_factor_get_min
	mov	x25, x0
	mov	x0, x21
	bl	_aw_clk_factor_get_max
	cmp	x25, x0
	b.le	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x19]
	ldr	w9, [x20]
	lsl	x10, x26, #1
	tst	w9, w8
	csinc	x26, x10, x26, ne
	mov	x0, x19
	bl	_aw_clk_factor_get_max
	cmp	x26, x0
	b.le	LBB0_3
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mul	x8, x26, x8
	str	x8, [sp]                        ; 8-byte Folded Spill
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_aw_clk_factor_get_min
	mov	x24, x0
	mov	x0, x19
	bl	_aw_clk_factor_get_max
	cmp	x24, x0
	b.le	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w8, [x21]
	ldr	w9, [x20]
	lsl	x10, x25, #1
	tst	w9, w8
	csinc	x25, x10, x25, ne
	mov	x0, x21
	bl	_aw_clk_factor_get_max
	cmp	x25, x0
	b.le	LBB0_6
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	mul	x21, x8, x25
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x0]
	ldr	w9, [x20]
	lsl	x10, x24, #1
	tst	w9, w8
	csinc	x24, x10, x24, ne
	bl	_aw_clk_factor_get_max
	cmp	x24, x0
	b.gt	LBB0_7
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_11 Depth 4
	mov	x0, x28
	bl	_aw_clk_factor_get_min
	mov	x19, x0
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_10 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	mov	x0, x28
	bl	_aw_clk_factor_get_max
	cmp	x19, x0
	b.gt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=4
	mul	x8, x19, x24
	sdiv	x8, x21, x8
	cmp	x27, x8
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=4
	str	x26, [x22]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	x25, [x9]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	str	x24, [x9]
	mov	x27, x8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	x19, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=4
	ldr	x8, [x23]
	cmp	x27, x8
	b.eq	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=4
	ldr	w8, [x28]
	ldr	w9, [x20]
	lsl	x10, x19, #1
	tst	w9, w8
	csinc	x19, x10, x19, ne
	b	LBB0_11
	.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_nkmp_find_best
.subsections_via_symbols
