	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_audio_set_acr
_dce_v6_0_audio_set_acr:                ## @dce_v6_0_audio_set_acr
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rdi
	callq	_amdgpu_afmt_acr
	movq	%rbx, %rdi
	callq	_to_amdgpu_encoder
	movq	(%rax), %rbx
	movq	_mmHDMI_ACR_PACKET_CONTROL@GOTPCREL(%rip), %r15
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_PACKET_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_HDMI_ACR_AUTO_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_HDMI_ACR_SOURCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	cmpl	$9, %r14d
	setl	%cl
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r15), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_ACR_32_0@GOTPCREL(%rip), %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_32_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_ACR_CTS_32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-56(%rbp), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_ACR_32_1@GOTPCREL(%rip), %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_32_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_ACR_N_32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-52(%rbp), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_ACR_44_0@GOTPCREL(%rip), %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_44_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_ACR_CTS_44@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-48(%rbp), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_ACR_44_1@GOTPCREL(%rip), %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_44_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_ACR_N_44@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-44(%rbp), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_ACR_48_0@GOTPCREL(%rip), %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_48_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_ACR_CTS_48@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-40(%rbp), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_ACR_48_1@GOTPCREL(%rip), %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_HDMI_ACR_48_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_ACR_N_48@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-36(%rbp), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmHDMI_ACR_PACKET_CONTROL,8,3  ## @mmHDMI_ACR_PACKET_CONTROL
	.comm	_HDMI_ACR_PACKET_CONTROL,4,2    ## @HDMI_ACR_PACKET_CONTROL
	.comm	_HDMI_ACR_AUTO_SEND,4,2         ## @HDMI_ACR_AUTO_SEND
	.comm	_HDMI_ACR_SOURCE,4,2            ## @HDMI_ACR_SOURCE
	.comm	_mmHDMI_ACR_32_0,8,3            ## @mmHDMI_ACR_32_0
	.comm	_HDMI_ACR_32_0,4,2              ## @HDMI_ACR_32_0
	.comm	_HDMI_ACR_CTS_32,4,2            ## @HDMI_ACR_CTS_32
	.comm	_mmHDMI_ACR_32_1,8,3            ## @mmHDMI_ACR_32_1
	.comm	_HDMI_ACR_32_1,4,2              ## @HDMI_ACR_32_1
	.comm	_HDMI_ACR_N_32,4,2              ## @HDMI_ACR_N_32
	.comm	_mmHDMI_ACR_44_0,8,3            ## @mmHDMI_ACR_44_0
	.comm	_HDMI_ACR_44_0,4,2              ## @HDMI_ACR_44_0
	.comm	_HDMI_ACR_CTS_44,4,2            ## @HDMI_ACR_CTS_44
	.comm	_mmHDMI_ACR_44_1,8,3            ## @mmHDMI_ACR_44_1
	.comm	_HDMI_ACR_44_1,4,2              ## @HDMI_ACR_44_1
	.comm	_HDMI_ACR_N_44,4,2              ## @HDMI_ACR_N_44
	.comm	_mmHDMI_ACR_48_0,8,3            ## @mmHDMI_ACR_48_0
	.comm	_HDMI_ACR_48_0,4,2              ## @HDMI_ACR_48_0
	.comm	_HDMI_ACR_CTS_48,4,2            ## @HDMI_ACR_CTS_48
	.comm	_mmHDMI_ACR_48_1,8,3            ## @mmHDMI_ACR_48_1
	.comm	_HDMI_ACR_48_1,4,2              ## @HDMI_ACR_48_1
	.comm	_HDMI_ACR_N_48,4,2              ## @HDMI_ACR_N_48
	.no_dead_strip	_dce_v6_0_audio_set_acr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_audio_set_acr
_dce_v6_0_audio_set_acr:                ; @dce_v6_0_audio_set_acr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	add	x8, sp, #8
	mov	x0, x1
	bl	_amdgpu_afmt_acr
	mov	x0, x20
	bl	_to_amdgpu_encoder
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _mmHDMI_ACR_PACKET_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mmHDMI_ACR_PACKET_CONTROL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh2:
	adrp	x22, _HDMI_ACR_PACKET_CONTROL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HDMI_ACR_PACKET_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _HDMI_ACR_AUTO_SEND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_ACR_AUTO_SEND@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh7:
	adrp	x8, _HDMI_ACR_SOURCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDMI_ACR_SOURCE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	cmp	w19, #9
	cset	w3, lt
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
Lloh10:
	adrp	x19, _mmHDMI_ACR_32_0@GOTPAGE
Lloh11:
	ldr	x19, [x19, _mmHDMI_ACR_32_0@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh12:
	adrp	x8, _HDMI_ACR_32_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDMI_ACR_32_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _HDMI_ACR_CTS_32@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_ACR_CTS_32@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	w3, [sp, #8]
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
Lloh18:
	adrp	x19, _mmHDMI_ACR_32_1@GOTPAGE
Lloh19:
	ldr	x19, [x19, _mmHDMI_ACR_32_1@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh20:
	adrp	x8, _HDMI_ACR_32_1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDMI_ACR_32_1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _HDMI_ACR_N_32@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDMI_ACR_N_32@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	w3, [sp, #12]
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
Lloh26:
	adrp	x19, _mmHDMI_ACR_44_0@GOTPAGE
Lloh27:
	ldr	x19, [x19, _mmHDMI_ACR_44_0@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh28:
	adrp	x8, _HDMI_ACR_44_0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDMI_ACR_44_0@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _HDMI_ACR_CTS_44@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HDMI_ACR_CTS_44@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	w3, [sp, #16]
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
Lloh34:
	adrp	x19, _mmHDMI_ACR_44_1@GOTPAGE
Lloh35:
	ldr	x19, [x19, _mmHDMI_ACR_44_1@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh36:
	adrp	x8, _HDMI_ACR_44_1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI_ACR_44_1@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _HDMI_ACR_N_44@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HDMI_ACR_N_44@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	ldr	w3, [sp, #20]
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
Lloh42:
	adrp	x19, _mmHDMI_ACR_48_0@GOTPAGE
Lloh43:
	ldr	x19, [x19, _mmHDMI_ACR_48_0@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh44:
	adrp	x8, _HDMI_ACR_48_0@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HDMI_ACR_48_0@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _HDMI_ACR_CTS_48@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HDMI_ACR_CTS_48@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	ldr	w3, [sp, #24]
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
Lloh50:
	adrp	x19, _mmHDMI_ACR_48_1@GOTPAGE
Lloh51:
	ldr	x19, [x19, _mmHDMI_ACR_48_1@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh52:
	adrp	x8, _HDMI_ACR_48_1@GOTPAGE
Lloh53:
	ldr	x8, [x8, _HDMI_ACR_48_1@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x8, _HDMI_ACR_N_48@GOTPAGE
Lloh56:
	ldr	x8, [x8, _HDMI_ACR_N_48@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	ldr	w3, [sp, #28]
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mmHDMI_ACR_PACKET_CONTROL,8,3  ; @mmHDMI_ACR_PACKET_CONTROL
	.comm	_HDMI_ACR_PACKET_CONTROL,4,2    ; @HDMI_ACR_PACKET_CONTROL
	.comm	_HDMI_ACR_AUTO_SEND,4,2         ; @HDMI_ACR_AUTO_SEND
	.comm	_HDMI_ACR_SOURCE,4,2            ; @HDMI_ACR_SOURCE
	.comm	_mmHDMI_ACR_32_0,8,3            ; @mmHDMI_ACR_32_0
	.comm	_HDMI_ACR_32_0,4,2              ; @HDMI_ACR_32_0
	.comm	_HDMI_ACR_CTS_32,4,2            ; @HDMI_ACR_CTS_32
	.comm	_mmHDMI_ACR_32_1,8,3            ; @mmHDMI_ACR_32_1
	.comm	_HDMI_ACR_32_1,4,2              ; @HDMI_ACR_32_1
	.comm	_HDMI_ACR_N_32,4,2              ; @HDMI_ACR_N_32
	.comm	_mmHDMI_ACR_44_0,8,3            ; @mmHDMI_ACR_44_0
	.comm	_HDMI_ACR_44_0,4,2              ; @HDMI_ACR_44_0
	.comm	_HDMI_ACR_CTS_44,4,2            ; @HDMI_ACR_CTS_44
	.comm	_mmHDMI_ACR_44_1,8,3            ; @mmHDMI_ACR_44_1
	.comm	_HDMI_ACR_44_1,4,2              ; @HDMI_ACR_44_1
	.comm	_HDMI_ACR_N_44,4,2              ; @HDMI_ACR_N_44
	.comm	_mmHDMI_ACR_48_0,8,3            ; @mmHDMI_ACR_48_0
	.comm	_HDMI_ACR_48_0,4,2              ; @HDMI_ACR_48_0
	.comm	_HDMI_ACR_CTS_48,4,2            ; @HDMI_ACR_CTS_48
	.comm	_mmHDMI_ACR_48_1,8,3            ; @mmHDMI_ACR_48_1
	.comm	_HDMI_ACR_48_1,4,2              ; @HDMI_ACR_48_1
	.comm	_HDMI_ACR_N_48,4,2              ; @HDMI_ACR_N_48
	.no_dead_strip	_dce_v6_0_audio_set_acr
.subsections_via_symbols
