	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_mg_pll_find_divisors
_icl_mg_pll_find_divisors:              ## @icl_mg_pll_find_divisors
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.icl_mg_pll_find_divisors.div1_vals(%rip), %xmm0
	testl	%edx, %edx
	movl	$7992000, %eax                  ## imm = 0x79F2C0
	movl	$8000000, %r14d                 ## imm = 0x7A1200
	cmovel	%eax, %r14d
	movaps	%xmm0, -64(%rbp)
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	movl	$10000000, %r13d                ## imm = 0x989680
	movl	$8100000, %eax                  ## imm = 0x7B98A0
	cmovnel	%eax, %r13d
	cmovnel	%eax, %r14d
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_39
## %bb.1:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx,4), %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	incq	%r15
	cmpl	%eax, %r15d
	jae	LBB0_39
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%r15,4), %edi
	movl	%r12d, %ebx
	imull	%edi, %ebx
	leal	(%rbx,%rbx), %ecx
	leal	(%rcx,%rcx,4), %eax
	cmpl	%r14d, %eax
	jl	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rbx,%rbx,8), %eax
	cmpl	%r14d, %eax
	jl	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%rbx,8), %eax
	cmpl	%r14d, %eax
	jl	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%rbx,8), %eax
	subl	%ebx, %eax
	cmpl	%r14d, %eax
	jl	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rcx,%rcx,2), %eax
	cmpl	%r14d, %eax
	jl	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rbx,%rbx,4), %eax
	cmpl	%r14d, %eax
	jl	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%rbx,4), %eax
	cmpl	%r14d, %eax
	jl	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rbx,%rbx,2), %eax
	cmpl	%r14d, %eax
	jl	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	jle	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %ecx
	jl	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %ecx
	jle	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %ebx
	jl	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %ebx
	jg	LBB0_38
## %bb.37:
	xorl	%esi, %esi
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$5, %r14d
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_39:
	xorl	%r15d, %r15d
	jmp	LBB0_40
LBB0_4:
	movl	$10, -68(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_13:
	movl	$9, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_16:
	movl	$8, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_19:
	movl	$7, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_22:
	movl	$6, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_25:
	movl	$5, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_28:
	movl	$4, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_31:
	movl	$3, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_34:
	movl	$2, -68(%rbp)                   ## 4-byte Folded Spill
	movl	%ecx, %eax
LBB0_5:
	xorl	%ecx, %ecx
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	setne	%cl
	leal	(%rcx,%rcx,4), %r14d
	addl	$5, %r14d
	movl	$2, %esi
	movl	%eax, %ebx
LBB0_6:
	xorl	%r12d, %r12d
	testl	%edx, %edx
	sete	%r12b
	leal	-2(%rdi), %eax
	cmpl	$6, %eax
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	jae	LBB0_7
## %bb.8:
	movl	$43, %ecx
	btl	%eax, %ecx
	jb	LBB0_9
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	movq	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	cltq
	leaq	l_switch.table.icl_mg_pll_find_divisors(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %r15d
	movl	$1, %edi
	callq	_MG_REFCLKIN_CTL_OD_2_MUX
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 8(%r13)
	movl	%r14d, %edi
	callq	_MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO
	movl	%eax, 4(%r13)
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL
	movl	%eax, %ebx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO
	orl	%r14d, %ebx
	orl	%eax, %ebx
	orl	-76(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, (%r13)
LBB0_40:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.41:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.icl_mg_pll_find_divisors.div1_vals
L___const.icl_mg_pll_find_divisors.div1_vals:
	.long	7                               ## 0x7
	.long	5                               ## 0x5
	.long	3                               ## 0x3
	.long	2                               ## 0x2

	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2,4,2 ## @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_3,4,2 ## @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_3
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_5,4,2 ## @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_5
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_7,4,2 ## @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_7
	.no_dead_strip	_icl_mg_pll_find_divisors
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.icl_mg_pll_find_divisors
l_switch.table.icl_mg_pll_find_divisors:
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_3
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_5
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_7

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_mg_pll_find_divisors
_icl_mg_pll_find_divisors:              ; @icl_mg_pll_find_divisors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	adrp	x9, l___const.icl_mg_pll_find_divisors.div1_vals@PAGE
	add	x9, x9, l___const.icl_mg_pll_find_divisors.div1_vals@PAGEOFF
	str	x8, [sp, #24]
	ldr	q0, [x9]
	str	q0, [sp]
	mov	w8, #4608
	movk	w8, #122, lsl #16
	mov	w9, #62144
	movk	w9, #121, lsl #16
	cmp	w2, #0
	csel	w8, w9, w8, eq
	mov	w9, #39072
	movk	w9, #123, lsl #16
	mov	w10, #38528
	movk	w10, #152, lsl #16
	cmp	w1, #0
	csel	w23, w10, w9, eq
	csel	w24, w8, w9, eq
	mov	x26, sp
	mov	x0, sp
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_18
; %bb.1:
	mov	x27, #0
	add	w22, w22, w22, lsl #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, sp
	bl	_ARRAY_SIZE
	add	x27, x27, #1
	cmp	w27, w0
	b.hs	LBB0_18
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, x27, lsl #2]
	mul	w9, w22, w0
	add	w8, w9, w9, lsl #2
	lsl	w25, w8, #1
	mov	w8, #10
	cmp	w25, w24
	ccmp	w25, w23, #0, ge
	b.le	LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w9, w9, lsl #3
	cmp	w25, w24
	ccmp	w25, w23, #0, ge
	b.le	LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w25, w9, #3
	cmp	w25, w24
	ccmp	w25, w23, #0, ge
	b.le	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w25, w25, w9
	cmp	w25, w24
	ccmp	w25, w23, #0, ge
	b.le	LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w9, w9, lsl #1
	lsl	w25, w10, #1
	cmp	w25, w24
	ccmp	w25, w23, #0, ge
	b.le	LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w9, w9, lsl #2
	cmp	w25, w24
	ccmp	w25, w23, #0, ge
	b.le	LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w25, w9, #2
	cmp	w25, w24
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w23
	b.le	LBB0_25
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w9, w9, lsl #1
	cmp	w25, w24
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w23
	b.le	LBB0_26
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w25, w9, #1
	cmp	w25, w24
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w23
	b.le	LBB0_27
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, w24
	b.lt	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, w23
	b.gt	LBB0_2
; %bb.17:
	mov	w23, #0
	mov	w22, #1
	mov	w24, #5
	mov	x25, x9
	b	LBB0_29
LBB0_18:
	mov	w20, #0
	b	LBB0_34
LBB0_19:
	mov	w22, #10
	b	LBB0_28
LBB0_20:
	mov	w22, #9
	b	LBB0_28
LBB0_21:
	mov	w22, #8
	b	LBB0_28
LBB0_22:
	mov	w22, #7
	b	LBB0_28
LBB0_23:
	mov	w22, #6
	b	LBB0_28
LBB0_24:
	mov	w22, #5
	b	LBB0_28
LBB0_25:
	mov	w22, #4
	b	LBB0_28
LBB0_26:
	mov	w22, #3
	b	LBB0_28
LBB0_27:
	mov	w22, #2
LBB0_28:
	mov	w9, #5
	cmp	w21, #0
	csel	w24, w9, w8, eq
	mov	w23, #2
LBB0_29:
	cmp	w21, #0
	cset	w21, eq
	sub	w8, w0, #2
	cmp	w8, #6
	b.hs	LBB0_31
; %bb.30:
	mov	w9, #43
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_32
LBB0_31:
	bl	_MISSING_CASE
Lloh3:
	adrp	x8, _MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2@GOTPAGEOFF]
	b	LBB0_33
LBB0_32:
Lloh5:
	adrp	x9, l_switch.table.icl_mg_pll_find_divisors@PAGE
Lloh6:
	add	x9, x9, l_switch.table.icl_mg_pll_find_divisors@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
LBB0_33:
	ldr	w26, [x8]
	str	w25, [x20]
	mov	w20, #1
	mov	w0, #1
	bl	_MG_REFCLKIN_CTL_OD_2_MUX
	str	w0, [x19, #8]
	mov	x0, x24
	bl	_MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO
	str	w0, [x19, #4]
	mov	x0, x23
	bl	_MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL
	mov	x23, x0
	mov	x0, x21
	bl	_MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL
	mov	x21, x0
	mov	x0, x22
	bl	_MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO
	orr	w8, w23, w26
	orr	w8, w8, w21
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_34:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.icl_mg_pll_find_divisors.div1_vals
l___const.icl_mg_pll_find_divisors.div1_vals:
	.long	7                               ; 0x7
	.long	5                               ; 0x5
	.long	3                               ; 0x3
	.long	2                               ; 0x2

	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2,4,2 ; @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_3,4,2 ; @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_3
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_5,4,2 ; @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_5
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_7,4,2 ; @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_7
	.no_dead_strip	_icl_mg_pll_find_divisors
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.icl_mg_pll_find_divisors
l_switch.table.icl_mg_pll_find_divisors:
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_3
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_5
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_2
	.quad	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_7

.subsections_via_symbols
