	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_nbp_watermark
_program_nbp_watermark:                 ## @program_nbp_watermark
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	_DPG_PIPE_NB_PSTATE_CHANGE_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DPG_WATERMARK_MASK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NB_PSTATE_CHANGE_WATERMARK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movl	(%rbx), %edi
	movq	_NB_PSTATE_CHANGE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NB_PSTATE_CHANGE_URGENT_DURING_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	movl	$1, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_3
	movl	(%rbx), %edi
	movq	_NB_PSTATE_CHANGE_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
LBB0_2:
	movq	_DPG_PIPE_LOW_POWER_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_DPG_WATERMARK_MASK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PSTATE_CHANGE_WATERMARK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movl	(%rbx), %edi
	movq	_PSTATE_CHANGE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PSTATE_CHANGE_URGENT_DURING_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	movl	$1, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_3
	movl	(%rbx), %edi
	movq	_PSTATE_CHANGE_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPG_PIPE_NB_PSTATE_CHANGE_CONTROL,4,2 ## @DPG_PIPE_NB_PSTATE_CHANGE_CONTROL
	.comm	_DPG_WATERMARK_MASK_CONTROL,4,2 ## @DPG_WATERMARK_MASK_CONTROL
	.comm	_NB_PSTATE_CHANGE_WATERMARK_MASK,4,2 ## @NB_PSTATE_CHANGE_WATERMARK_MASK
	.comm	_NB_PSTATE_CHANGE_ENABLE,4,2    ## @NB_PSTATE_CHANGE_ENABLE
	.comm	_NB_PSTATE_CHANGE_URGENT_DURING_REQUEST,4,2 ## @NB_PSTATE_CHANGE_URGENT_DURING_REQUEST
	.comm	_NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST,4,2 ## @NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST
	.comm	_NB_PSTATE_CHANGE_WATERMARK,4,2 ## @NB_PSTATE_CHANGE_WATERMARK
	.comm	_DPG_PIPE_LOW_POWER_CONTROL,4,2 ## @DPG_PIPE_LOW_POWER_CONTROL
	.comm	_PSTATE_CHANGE_WATERMARK_MASK,4,2 ## @PSTATE_CHANGE_WATERMARK_MASK
	.comm	_PSTATE_CHANGE_ENABLE,4,2       ## @PSTATE_CHANGE_ENABLE
	.comm	_PSTATE_CHANGE_URGENT_DURING_REQUEST,4,2 ## @PSTATE_CHANGE_URGENT_DURING_REQUEST
	.comm	_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST,4,2 ## @PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST
	.comm	_PSTATE_CHANGE_WATERMARK,4,2    ## @PSTATE_CHANGE_WATERMARK
	.no_dead_strip	_program_nbp_watermark
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_nbp_watermark
_program_nbp_watermark:                 ; @program_nbp_watermark
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x22, _DPG_PIPE_NB_PSTATE_CHANGE_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DPG_PIPE_NB_PSTATE_CHANGE_CONTROL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_REG
Lloh2:
	adrp	x21, _DPG_WATERMARK_MASK_CONTROL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DPG_WATERMARK_MASK_CONTROL@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh4:
	adrp	x8, _NB_PSTATE_CHANGE_WATERMARK_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NB_PSTATE_CHANGE_WATERMARK_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _NB_PSTATE_CHANGE_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NB_PSTATE_CHANGE_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _NB_PSTATE_CHANGE_URGENT_DURING_REQUEST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NB_PSTATE_CHANGE_URGENT_DURING_REQUEST@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
	mov	w2, #1
	mov	w4, #1
	mov	w6, #1
	bl	_REG_UPDATE_3
	ldr	w0, [x22]
Lloh16:
	adrp	x8, _NB_PSTATE_CHANGE_WATERMARK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NB_PSTATE_CHANGE_WATERMARK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_REG_UPDATE
LBB0_2:
Lloh19:
	adrp	x22, _DPG_PIPE_LOW_POWER_CONTROL@GOTPAGE
Lloh20:
	ldr	x22, [x22, _DPG_PIPE_LOW_POWER_CONTROL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_REG
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh21:
	adrp	x8, _PSTATE_CHANGE_WATERMARK_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PSTATE_CHANGE_WATERMARK_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
	ldr	w0, [x22]
Lloh24:
	adrp	x8, _PSTATE_CHANGE_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PSTATE_CHANGE_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _PSTATE_CHANGE_URGENT_DURING_REQUEST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PSTATE_CHANGE_URGENT_DURING_REQUEST@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
Lloh30:
	adrp	x8, _PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST@GOTPAGEOFF]
Lloh32:
	ldr	w5, [x8]
	mov	w2, #1
	mov	w4, #1
	mov	w6, #1
	bl	_REG_UPDATE_3
	ldr	w0, [x22]
Lloh33:
	adrp	x8, _PSTATE_CHANGE_WATERMARK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PSTATE_CHANGE_WATERMARK@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_REG_UPDATE
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DPG_PIPE_NB_PSTATE_CHANGE_CONTROL,4,2 ; @DPG_PIPE_NB_PSTATE_CHANGE_CONTROL
	.comm	_DPG_WATERMARK_MASK_CONTROL,4,2 ; @DPG_WATERMARK_MASK_CONTROL
	.comm	_NB_PSTATE_CHANGE_WATERMARK_MASK,4,2 ; @NB_PSTATE_CHANGE_WATERMARK_MASK
	.comm	_NB_PSTATE_CHANGE_ENABLE,4,2    ; @NB_PSTATE_CHANGE_ENABLE
	.comm	_NB_PSTATE_CHANGE_URGENT_DURING_REQUEST,4,2 ; @NB_PSTATE_CHANGE_URGENT_DURING_REQUEST
	.comm	_NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST,4,2 ; @NB_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST
	.comm	_NB_PSTATE_CHANGE_WATERMARK,4,2 ; @NB_PSTATE_CHANGE_WATERMARK
	.comm	_DPG_PIPE_LOW_POWER_CONTROL,4,2 ; @DPG_PIPE_LOW_POWER_CONTROL
	.comm	_PSTATE_CHANGE_WATERMARK_MASK,4,2 ; @PSTATE_CHANGE_WATERMARK_MASK
	.comm	_PSTATE_CHANGE_ENABLE,4,2       ; @PSTATE_CHANGE_ENABLE
	.comm	_PSTATE_CHANGE_URGENT_DURING_REQUEST,4,2 ; @PSTATE_CHANGE_URGENT_DURING_REQUEST
	.comm	_PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST,4,2 ; @PSTATE_CHANGE_NOT_SELF_REFRESH_DURING_REQUEST
	.comm	_PSTATE_CHANGE_WATERMARK,4,2    ; @PSTATE_CHANGE_WATERMARK
	.no_dead_strip	_program_nbp_watermark
.subsections_via_symbols
