	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_wrpll_update_rnp
_hsw_wrpll_update_rnp:                  ## @hsw_wrpll_update_rnp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	(%r9), %r12d
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	imull	%edi, %esi
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	imull	%edx, %r15d
	movl	%r15d, %eax
	imull	%esi, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	imull	%esi, %r12d
	leaq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	imull	8(%r13), %r12d
	movl	%r15d, %edi
	imull	%ebx, %edi
	movq	_LC_FREQ_2K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	imull	%ecx, %esi
	callq	_abs_diff
	imull	(%r13), %ebx
	imull	8(%r13), %ebx
	movl	%eax, %r14d
	movl	4(%r13), %esi
	movq	_LC_FREQ_2K@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movl	%ebx, %edi
	callq	_abs_diff
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	imull	$1000000, %r14d, %edx           ## imm = 0xF4240
	imull	$1000000, %eax, %ecx            ## imm = 0xF4240
	cmpl	%edx, %esi
	jae	LBB0_5
## %bb.3:
	cmpl	%ecx, %r12d
	jae	LBB0_5
## %bb.4:
	imull	(%r13), %r14d
	imull	8(%r13), %r14d
	imull	%eax, %r15d
	cmpl	%r15d, %r14d
	jb	LBB0_10
	jmp	LBB0_12
LBB0_1:
	movl	%r8d, (%r13)
	movl	%ecx, 4(%r13)
	addq	$8, %r13
	jmp	LBB0_11
LBB0_5:
	cmpl	%edx, %esi
	jb	LBB0_7
## %bb.6:
	cmpl	%ecx, %r12d
	jb	LBB0_10
LBB0_7:
	cmpl	%edx, %esi
	jb	LBB0_12
## %bb.8:
	cmpl	%ecx, %r12d
	jb	LBB0_12
## %bb.9:
	movl	8(%r13), %eax
	movl	%eax, %ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	imull	%eax, %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	imull	%eax, %eax
	imull	4(%r13), %eax
	cmpl	%eax, %ecx
	jbe	LBB0_12
LBB0_10:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	movl	%edx, (%r13)
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_FREQ_2K,4,2                 ## @LC_FREQ_2K
	.no_dead_strip	_hsw_wrpll_update_rnp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_wrpll_update_rnp
_hsw_wrpll_update_rnp:                  ; @hsw_wrpll_update_rnp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x5
	mov	x22, x4
	mov	x21, x3
	ldr	w8, [x5]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x23, x0
	mul	w9, w1, w0
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mul	w26, w22, w2
	mul	w27, w26, w9
	mul	w8, w8, w9
	mov	x25, x20
	ldr	w9, [x25, #8]!
	mul	w28, w8, w9
	mul	w0, w26, w0
Lloh0:
	adrp	x19, _LC_FREQ_2K@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LC_FREQ_2K@GOTPAGEOFF]
	ldr	w8, [x19]
	mul	w1, w8, w21
	bl	_abs_diff
	mov	x24, x0
	ldp	w8, w9, [x20]
	mul	w8, w8, w23
	ldr	w10, [x25]
	mul	w0, w8, w10
	ldr	w8, [x19]
	mul	w1, w9, w8
	bl	_abs_diff
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w8, w24, w9
	mul	w9, w0, w9
	cmp	w27, w8
	ccmp	w28, w9, #2, lo
	b.lo	LBB0_6
; %bb.2:
	cmp	w27, w8
	ccmp	w28, w9, #2, hs
	b.lo	LBB0_7
; %bb.3:
	cmp	w27, w8
	ccmp	w28, w9, #0, hs
	b.lo	LBB0_9
; %bb.4:
	ldp	w9, w8, [x20, #4]
	mul	w10, w8, w21
	mul	w8, w10, w8
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	mul	w10, w10, w10
	mul	w9, w10, w9
	cmp	w8, w9
	b.hi	LBB0_7
	b	LBB0_9
LBB0_5:
	stp	w22, w21, [x20]
	add	x25, x20, #8
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20]
	ldr	w9, [x20, #8]
	mul	w8, w8, w24
	mul	w8, w8, w9
	mul	w9, w26, w0
	cmp	w8, w9
	b.hs	LBB0_9
LBB0_7:
	stp	w22, w21, [x20]
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
LBB0_8:
	str	w2, [x25]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_FREQ_2K,4,2                 ; @LC_FREQ_2K
	.no_dead_strip	_hsw_wrpll_update_rnp
.subsections_via_symbols
