	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hubbub2_program_watermarks
_hubbub2_program_watermarks:            ## @hubbub2_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_TO_DCN20_HUBBUB
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_hubbub1_program_urgent_watermarks
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_hubbub1_program_stutter_watermarks
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rax)
	movl	$1, %eax
	cmovel	%eax, %ebx
LBB0_2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_hubbub1_program_pstate_watermarks
	movq	_DCHUBBUB_ARB_SAT_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	$60, %r14d, %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	movq	_DCHUBBUB_ARB_DF_REQ_OUTSTAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCHUBBUB_ARB_MIN_REQ_OUTSTAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$180, %edx
	callq	_REG_UPDATE
	movq	(%r15), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	sete	%sil
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hubbub1_allow_self_refresh_control ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCHUBBUB_ARB_SAT_LEVEL,4,2     ## @DCHUBBUB_ARB_SAT_LEVEL
	.comm	_DCHUBBUB_ARB_DF_REQ_OUTSTAND,4,2 ## @DCHUBBUB_ARB_DF_REQ_OUTSTAND
	.comm	_DCHUBBUB_ARB_MIN_REQ_OUTSTAND,4,2 ## @DCHUBBUB_ARB_MIN_REQ_OUTSTAND
	.no_dead_strip	_hubbub2_program_watermarks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hubbub2_program_watermarks
_hubbub2_program_watermarks:            ; @hubbub2_program_watermarks
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_TO_DCN20_HUBBUB
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_hubbub1_program_urgent_watermarks
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_hubbub1_program_stutter_watermarks
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
	cmp	w8, #0
	csinc	w21, w21, wzr, ne
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_hubbub1_program_pstate_watermarks
Lloh0:
	adrp	x8, _DCHUBBUB_ARB_SAT_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCHUBBUB_ARB_SAT_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w8, #60
	mul	w3, w20, w8
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
Lloh3:
	adrp	x8, _DCHUBBUB_ARB_DF_REQ_OUTSTAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCHUBBUB_ARB_DF_REQ_OUTSTAND@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _DCHUBBUB_ARB_MIN_REQ_OUTSTAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCHUBBUB_ARB_MIN_REQ_OUTSTAND@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #180
	bl	_REG_UPDATE
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hubbub1_allow_self_refresh_control
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCHUBBUB_ARB_SAT_LEVEL,4,2     ; @DCHUBBUB_ARB_SAT_LEVEL
	.comm	_DCHUBBUB_ARB_DF_REQ_OUTSTAND,4,2 ; @DCHUBBUB_ARB_DF_REQ_OUTSTAND
	.comm	_DCHUBBUB_ARB_MIN_REQ_OUTSTAND,4,2 ; @DCHUBBUB_ARB_MIN_REQ_OUTSTAND
	.no_dead_strip	_hubbub2_program_watermarks
.subsections_via_symbols
