	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pp_nv_set_wm_ranges            ## -- Begin function pp_nv_set_wm_ranges
	.p2align	4, 0x90
_pp_nv_set_wm_ranges:                   ## @pp_nv_set_wm_ranges
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	(%rsi), %rcx
	movq	%rcx, -32(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, -24(%rbp)
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	decq	%rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rcx
	jmp	LBB0_2
LBB0_3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	decq	%rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rax
	jmp	LBB0_5
LBB0_6:
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.7:
	leaq	-32(%rbp), %rsi
	callq	_smu_set_watermarks_for_clock_ranges
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	_PP_SMU_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_PP_SMU_RESULT_UNSUPPORTED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_SET_A,8,3                   ## @WM_SET_A
	.comm	_PP_SMU_RESULT_UNSUPPORTED,4,2  ## @PP_SMU_RESULT_UNSUPPORTED
	.comm	_PP_SMU_RESULT_OK,4,2           ## @PP_SMU_RESULT_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pp_nv_set_wm_ranges            ; -- Begin function pp_nv_set_wm_ranges
	.p2align	2
_pp_nv_set_wm_ranges:                   ; @pp_nv_set_wm_ranges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldp	x9, x8, [x1]
	stp	x9, x8, [sp]
	cbz	x9, LBB0_3
; %bb.1:
	sub	x8, x9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, #1
	b	LBB0_2
LBB0_3:
	cbz	x8, LBB0_6
; %bb.4:
	sub	x8, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, #1
	b	LBB0_5
LBB0_6:
	ldr	w8, [x0]
Lloh0:
	adrp	x19, _PP_SMU_RESULT_UNSUPPORTED@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PP_SMU_RESULT_UNSUPPORTED@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x1, sp
	bl	_smu_set_watermarks_for_clock_ranges
Lloh2:
	adrp	x8, _PP_SMU_RESULT_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PP_SMU_RESULT_OK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x19, x8, x19, eq
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_SET_A,8,3                   ; @WM_SET_A
	.comm	_PP_SMU_RESULT_UNSUPPORTED,4,2  ; @PP_SMU_RESULT_UNSUPPORTED
	.comm	_PP_SMU_RESULT_OK,4,2           ; @PP_SMU_RESULT_OK
.subsections_via_symbols
