	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pll_get_post_div
_pll_get_post_div:                      ## @pll_get_post_div
	.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
	subq	$256, %rsp                      ## imm = 0x100
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_HDMI_VCO_MAX_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HDMI_VCO_MIN_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	xorl	%eax, %eax
	leaq	l___const.pll_get_post_div.ratio(%rip), %r9
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r9), %ecx
	imull	%esi, %ecx
	movl	%ecx, -272(%rbp,%rax,4)
	leal	(%rcx,%rcx), %edx
	movl	%edx, -268(%rbp,%rax,4)
	leal	(,%rcx,4), %edx
	movl	%edx, -264(%rbp,%rax,4)
	shll	$3, %ecx
	movl	%ecx, -260(%rbp,%rax,4)
	addq	$4, %rax
	cmpq	$60, %rax
	jne	LBB0_1
## %bb.2:
	movl	$-1, %r10d
	xorl	%edx, %edx
	movl	%r8d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$3, %rdx
	cmpq	$60, %rdx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-272(%rbp,%rdx,4), %eax
	cmpl	%r11d, %eax
	setl	%bl
	cmpl	%r14d, %eax
	setg	%cl
	orb	%bl, %cl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %r10d
	movl	%eax, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-268(%rbp,%rdx,4), %eax
	cmpl	%r11d, %eax
	setl	%cl
	cmpl	%r14d, %eax
	setg	%bl
	orb	%cl, %bl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rdx), %r10d
	movl	%eax, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-264(%rbp,%rdx,4), %eax
	cmpl	%r11d, %eax
	setl	%cl
	cmpl	%r14d, %eax
	setg	%bl
	orb	%cl, %bl
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	2(%rdx), %r10d
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_10:
	cmpl	$-1, %r10d
	jne	LBB0_23
## %bb.11:
	sarl	%esi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r9), %ecx
	imull	%esi, %ecx
	movl	%ecx, -272(%rbp,%rax,4)
	leal	(%rcx,%rcx), %edx
	movl	%edx, -268(%rbp,%rax,4)
	leal	(,%rcx,4), %edx
	movl	%edx, -264(%rbp,%rax,4)
	shll	$3, %ecx
	movl	%ecx, -260(%rbp,%rax,4)
	addq	$4, %rax
	cmpq	$60, %rax
	jne	LBB0_12
## %bb.13:
	movl	$-1, %r10d
	xorl	%edx, %edx
	movl	%r8d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$3, %rdx
	cmpq	$60, %rdx
	je	LBB0_21
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-272(%rbp,%rdx,4), %eax
	cmpl	%r11d, %eax
	setl	%cl
	cmpl	%r14d, %eax
	setg	%bl
	orb	%cl, %bl
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%edx, %r10d
	movl	%eax, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-268(%rbp,%rdx,4), %eax
	cmpl	%r11d, %eax
	setl	%cl
	cmpl	%r14d, %eax
	setg	%bl
	orb	%cl, %bl
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	1(%rdx), %r10d
	movl	%eax, %r14d
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-264(%rbp,%rdx,4), %eax
	cmpl	%r11d, %eax
	setl	%cl
	cmpl	%r14d, %eax
	setg	%bl
	orb	%cl, %bl
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	2(%rdx), %r10d
	movl	%eax, %r14d
	jmp	LBB0_20
LBB0_21:
	cmpl	$-1, %r10d
	je	LBB0_22
LBB0_23:
	movl	%r14d, (%rdi)
	leal	3(%r10), %eax
	testl	%r10d, %r10d
	cmovnsl	%r10d, %eax
	movl	%eax, %ecx
	andl	$-4, %ecx
	subl	%ecx, %r10d
	movslq	%r10d, %rcx
	leaq	L___const.pll_get_post_div.tx_band_sel(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, 4(%rdi)
	sarl	$2, %eax
	cltq
	movl	(%r9,%rax,4), %ecx
	movl	%ecx, 8(%rdi)
	leaq	l___const.pll_get_post_div.hs_divsel(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 12(%rdi)
	xorl	%eax, %eax
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_26
## %bb.25:
	addq	$256, %rsp                      ## imm = 0x100
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.pll_get_post_div.ratio
l___const.pll_get_post_div.ratio:
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	12                              ## 0xc
	.long	14                              ## 0xe
	.long	15                              ## 0xf
	.long	20                              ## 0x14
	.long	21                              ## 0x15
	.long	25                              ## 0x19
	.long	28                              ## 0x1c
	.long	35                              ## 0x23

	.p2align	4                               ## @__const.pll_get_post_div.hs_divsel
l___const.pll_get_post_div.hs_divsel:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	12                              ## 0xc
	.long	1                               ## 0x1
	.long	5                               ## 0x5
	.long	2                               ## 0x2
	.long	9                               ## 0x9
	.long	3                               ## 0x3
	.long	13                              ## 0xd
	.long	10                              ## 0xa
	.long	7                               ## 0x7
	.long	14                              ## 0xe
	.long	11                              ## 0xb
	.long	15                              ## 0xf

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.pll_get_post_div.tx_band_sel
L___const.pll_get_post_div.tx_band_sel:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3

	.comm	_HDMI_VCO_MAX_FREQ,4,2          ## @HDMI_VCO_MAX_FREQ
	.comm	_HDMI_VCO_MIN_FREQ,4,2          ## @HDMI_VCO_MIN_FREQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pll_get_post_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pll_get_post_div
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pll_get_post_div:                      ; @pll_get_post_div
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w27, -24
	.cfi_offset w28, -32
	mov	x11, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HDMI_VCO_MAX_FREQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDMI_VCO_MAX_FREQ@GOTPAGEOFF]
	stur	x8, [x29, #-24]
Lloh5:
	ldr	w10, [x9]
Lloh6:
	adrp	x8, _HDMI_VCO_MIN_FREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_VCO_MIN_FREQ@GOTPAGEOFF]
	dup.2s	v1, w1
Lloh8:
	ldr	w8, [x8]
	add	x12, sp, #8
Lloh9:
	adrp	x9, l___const.pll_get_post_div.ratio@PAGE
Lloh10:
	add	x9, x9, l___const.pll_get_post_div.ratio@PAGEOFF
Lloh11:
	adrp	x13, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x13, lCPI0_0@PAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9, x11]
	mul	w14, w13, w1
	str	w14, [x12]
	dup.2s	v2, w13
	mul.2s	v2, v2, v1
	ushl.2s	v2, v2, v0
	stur	d2, [x12, #4]
	lsl	w13, w14, #3
	str	w13, [x12, #12]
	add	x11, x11, #4
	add	x12, x12, #16
	cmp	x11, #60
	b.ne	LBB0_1
; %bb.2:
	mov	x13, #0
	mov	w11, #-1
	add	x14, sp, #8
	mov	x12, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14, x13, lsl #2]
	cmp	w15, w8
	ccmp	w15, w12, #0, ge
	cset	w16, gt
	cmp	w16, #0
	csel	w11, w11, w13, ne
	csel	w12, w12, w15, ne
	add	x13, x13, #1
	cmp	x13, #60
	b.ne	LBB0_3
; %bb.4:
	cmn	w11, #1
	b.ne	LBB0_10
; %bb.5:
	mov	x11, #0
	asr	w12, w1, #1
	dup.2s	v1, w12
	add	x13, sp, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9, x11]
	mul	w15, w14, w12
	str	w15, [x13]
	dup.2s	v2, w14
	mul.2s	v2, v2, v1
	ushl.2s	v2, v2, v0
	stur	d2, [x13, #4]
	lsl	w14, w15, #3
	str	w14, [x13, #12]
	add	x11, x11, #4
	add	x13, x13, #16
	cmp	x11, #60
	b.ne	LBB0_6
; %bb.7:
	mov	x13, #0
	mov	w11, #-1
	add	x14, sp, #8
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x14, x13, lsl #2]
	cmp	w10, w8
	ccmp	w10, w12, #0, ge
	cset	w15, gt
	cmp	w15, #0
	csel	w11, w11, w13, ne
	csel	w12, w12, w10, ne
	add	x13, x13, #1
	cmp	x13, #60
	b.ne	LBB0_8
; %bb.9:
	cmn	w11, #1
	b.eq	LBB0_13
LBB0_10:
	mov	w8, #0
	add	w10, w11, #3
	cmp	w11, #0
	csel	w10, w10, w11, lt
	and	w13, w10, #0xfffffffc
	sub	w11, w11, w13
Lloh13:
	adrp	x13, l___const.pll_get_post_div.tx_band_sel@PAGE
Lloh14:
	add	x13, x13, l___const.pll_get_post_div.tx_band_sel@PAGEOFF
	ldr	w11, [x13, w11, sxtw #2]
	asr	w10, w10, #2
	stp	w12, w11, [x0]
	sbfiz	x10, x10, #2, #32
	ldr	w9, [x9, x10]
Lloh15:
	adrp	x11, l___const.pll_get_post_div.hs_divsel@PAGE
Lloh16:
	add	x11, x11, l___const.pll_get_post_div.hs_divsel@PAGEOFF
	ldr	w10, [x11, x10]
	stp	w9, w10, [x0, #8]
LBB0_11:
	ldur	x9, [x29, #-24]
Lloh17:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x8
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_13:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.pll_get_post_div.ratio
l___const.pll_get_post_div.ratio:
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	12                              ; 0xc
	.long	14                              ; 0xe
	.long	15                              ; 0xf
	.long	20                              ; 0x14
	.long	21                              ; 0x15
	.long	25                              ; 0x19
	.long	28                              ; 0x1c
	.long	35                              ; 0x23

	.p2align	2                               ; @__const.pll_get_post_div.hs_divsel
l___const.pll_get_post_div.hs_divsel:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	12                              ; 0xc
	.long	1                               ; 0x1
	.long	5                               ; 0x5
	.long	2                               ; 0x2
	.long	9                               ; 0x9
	.long	3                               ; 0x3
	.long	13                              ; 0xd
	.long	10                              ; 0xa
	.long	7                               ; 0x7
	.long	14                              ; 0xe
	.long	11                              ; 0xb
	.long	15                              ; 0xf

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.pll_get_post_div.tx_band_sel
l___const.pll_get_post_div.tx_band_sel:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3

	.comm	_HDMI_VCO_MAX_FREQ,4,2          ; @HDMI_VCO_MAX_FREQ
	.comm	_HDMI_VCO_MIN_FREQ,4,2          ; @HDMI_VCO_MIN_FREQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pll_get_post_div
.subsections_via_symbols
