	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega12_set_watermarks_for_clocks_ranges
_vega12_set_watermarks_for_clocks_ranges: ## @vega12_set_watermarks_for_clocks_ranges
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	cmpl	$0, 16(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_GNLD_DPM_DCEFCLK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.2:
	movq	_GNLD_DPM_SOCCLK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	leaq	20(%rbx), %rdi
	callq	_smu_set_watermarks_for_clocks_ranges
	movq	_WaterMarksExist@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_WaterMarksLoaded@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GNLD_DPM_DCEFCLK,8,3           ## @GNLD_DPM_DCEFCLK
	.comm	_GNLD_DPM_SOCCLK,8,3            ## @GNLD_DPM_SOCCLK
	.comm	_WaterMarksExist,4,2            ## @WaterMarksExist
	.comm	_WaterMarksLoaded,4,2           ## @WaterMarksLoaded
	.no_dead_strip	_vega12_set_watermarks_for_clocks_ranges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega12_set_watermarks_for_clocks_ranges
_vega12_set_watermarks_for_clocks_ranges: ; @vega12_set_watermarks_for_clocks_ranges
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _GNLD_DPM_DCEFCLK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GNLD_DPM_DCEFCLK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _GNLD_DPM_SOCCLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GNLD_DPM_SOCCLK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, x19, #20
	bl	_smu_set_watermarks_for_clocks_ranges
Lloh6:
	adrp	x8, _WaterMarksExist@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WaterMarksExist@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x9, _WaterMarksLoaded@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WaterMarksLoaded@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GNLD_DPM_DCEFCLK,8,3           ; @GNLD_DPM_DCEFCLK
	.comm	_GNLD_DPM_SOCCLK,8,3            ; @GNLD_DPM_SOCCLK
	.comm	_WaterMarksExist,4,2            ; @WaterMarksExist
	.comm	_WaterMarksLoaded,4,2           ; @WaterMarksLoaded
	.no_dead_strip	_vega12_set_watermarks_for_clocks_ranges
.subsections_via_symbols
