	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_program_watermarks
_vlv_program_watermarks:                ## @vlv_program_watermarks
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %r14
	movq	%r14, %rsi
	callq	_vlv_merge_wm
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movl	(%rbx), %edi
	movl	-32(%rbp), %esi
	movq	_VLV_WM_LEVEL_DDR_DVFS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_is_disabling
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_chv_set_memory_dvfs
LBB0_3:
	movl	(%rbx), %edi
	movl	-32(%rbp), %esi
	movq	_VLV_WM_LEVEL_PM5@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_is_disabling
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_chv_set_memory_pm5
LBB0_5:
	movl	4(%rbx), %edi
	movl	-28(%rbp), %esi
	movl	$1, %edx
	callq	_is_disabling
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__intel_set_memory_cxsr
LBB0_7:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vlv_write_wm_values
	movl	4(%rbx), %edi
	movl	-28(%rbp), %esi
	movl	$1, %edx
	callq	_is_enabling
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	__intel_set_memory_cxsr
LBB0_9:
	movl	(%rbx), %edi
	movl	-32(%rbp), %esi
	movl	(%r15), %edx
	callq	_is_enabling
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_chv_set_memory_pm5
LBB0_11:
	movl	(%rbx), %edi
	movl	-32(%rbp), %esi
	movl	(%r14), %edx
	callq	_is_enabling
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_chv_set_memory_dvfs
LBB0_13:
	movq	-32(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLV_WM_LEVEL_DDR_DVFS,4,2      ## @VLV_WM_LEVEL_DDR_DVFS
	.comm	_VLV_WM_LEVEL_PM5,4,2           ## @VLV_WM_LEVEL_PM5
	.no_dead_strip	_vlv_program_watermarks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_program_watermarks
_vlv_program_watermarks:                ; @vlv_program_watermarks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	bl	_vlv_merge_wm
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
Lloh0:
	adrp	x20, _VLV_WM_LEVEL_DDR_DVFS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VLV_WM_LEVEL_DDR_DVFS@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_is_disabling
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_chv_set_memory_dvfs
LBB0_3:
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
Lloh2:
	adrp	x21, _VLV_WM_LEVEL_PM5@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VLV_WM_LEVEL_PM5@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_is_disabling
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_chv_set_memory_pm5
LBB0_5:
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #12]
	mov	w2, #1
	bl	_is_disabling
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	__intel_set_memory_cxsr
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_vlv_write_wm_values
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #12]
	mov	w2, #1
	bl	_is_enabling
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	__intel_set_memory_cxsr
LBB0_9:
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
	ldr	w2, [x21]
	bl	_is_enabling
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #1
	bl	_chv_set_memory_pm5
LBB0_11:
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
	ldr	w2, [x20]
	bl	_is_enabling
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #1
	bl	_chv_set_memory_dvfs
LBB0_13:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VLV_WM_LEVEL_DDR_DVFS,4,2      ; @VLV_WM_LEVEL_DDR_DVFS
	.comm	_VLV_WM_LEVEL_PM5,4,2           ; @VLV_WM_LEVEL_PM5
	.no_dead_strip	_vlv_program_watermarks
.subsections_via_symbols
