	.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_dto
_dce_v6_0_audio_set_dto:                ## @dce_v6_0_audio_set_dto
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_amdgpu_crtc
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movl	%eax, %r15d
	movq	_mmDCCG_AUDIO_DTO_SOURCE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_RREG32
	movq	_DCCG_AUDIO_DTO_SOURCE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_DCCG_AUDIO_DTO0_SOURCE_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r12), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movl	%eax, %ebx
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	cmpl	(%r12), %r15d
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_ENCODER_MODE_IS_DP
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	(%r14), %esi
	movq	_DCCG_AUDIO_DTO_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_SET_FIELD
	movl	%eax, %ebx
LBB0_3:
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_WREG32
	cmpl	(%r12), %r15d
	jne	LBB0_5
## %bb.4:
	movq	_mmDCCG_AUDIO_DTO0_MODULE@GOTPCREL(%rip), %rbx
	movq	_mmDCCG_AUDIO_DTO0_PHASE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %edi
	callq	_ENCODER_MODE_IS_DP
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_mmDCCG_AUDIO_DTO1_MODULE@GOTPCREL(%rip), %rbx
	movq	_mmDCCG_AUDIO_DTO1_PHASE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	movl	$24000, %esi                    ## imm = 0x5DC0
	callq	_WREG32
	movl	(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmDCCG_AUDIO_DTO_SOURCE,4,2    ## @mmDCCG_AUDIO_DTO_SOURCE
	.comm	_DCCG_AUDIO_DTO_SOURCE,4,2      ## @DCCG_AUDIO_DTO_SOURCE
	.comm	_DCCG_AUDIO_DTO0_SOURCE_SEL,4,2 ## @DCCG_AUDIO_DTO0_SOURCE_SEL
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ## @ATOM_ENCODER_MODE_HDMI
	.comm	_DCCG_AUDIO_DTO_SEL,4,2         ## @DCCG_AUDIO_DTO_SEL
	.comm	_mmDCCG_AUDIO_DTO0_PHASE,4,2    ## @mmDCCG_AUDIO_DTO0_PHASE
	.comm	_mmDCCG_AUDIO_DTO0_MODULE,4,2   ## @mmDCCG_AUDIO_DTO0_MODULE
	.comm	_mmDCCG_AUDIO_DTO1_PHASE,4,2    ## @mmDCCG_AUDIO_DTO1_PHASE
	.comm	_mmDCCG_AUDIO_DTO1_MODULE,4,2   ## @mmDCCG_AUDIO_DTO1_MODULE
	.no_dead_strip	_dce_v6_0_audio_set_dto
.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_dto
_dce_v6_0_audio_set_dto:                ; @dce_v6_0_audio_set_dto
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_amdgpu_crtc
	mov	x21, x0
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	mov	x20, x0
Lloh0:
	adrp	x22, _mmDCCG_AUDIO_DTO_SOURCE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mmDCCG_AUDIO_DTO_SOURCE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
Lloh2:
	adrp	x24, _DCCG_AUDIO_DTO_SOURCE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DCCG_AUDIO_DTO_SOURCE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh4:
	adrp	x8, _DCCG_AUDIO_DTO0_SOURCE_SEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DCCG_AUDIO_DTO0_SOURCE_SEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	ldr	w3, [x21]
	bl	_REG_SET_FIELD
	mov	x21, x0
Lloh7:
	adrp	x23, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w3, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_ENCODER_MODE_IS_DP
	cbz	x0, LBB0_5
; %bb.3:
	mov	w3, #1
LBB0_4:
	ldr	w1, [x24]
Lloh9:
	adrp	x8, _DCCG_AUDIO_DTO_SEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_SEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_REG_SET_FIELD
	mov	x21, x0
LBB0_5:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_WREG32
	ldr	w8, [x23]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x20, _mmDCCG_AUDIO_DTO0_MODULE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _mmDCCG_AUDIO_DTO0_MODULE@GOTPAGEOFF]
Lloh14:
	adrp	x8, _mmDCCG_AUDIO_DTO0_PHASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmDCCG_AUDIO_DTO0_PHASE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_ENCODER_MODE_IS_DP
	cbz	x0, LBB0_10
; %bb.8:
Lloh16:
	adrp	x20, _mmDCCG_AUDIO_DTO1_MODULE@GOTPAGE
Lloh17:
	ldr	x20, [x20, _mmDCCG_AUDIO_DTO1_MODULE@GOTPAGEOFF]
Lloh18:
	adrp	x8, _mmDCCG_AUDIO_DTO1_PHASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmDCCG_AUDIO_DTO1_PHASE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	mov	w1, #24000
	bl	_WREG32
	ldr	w0, [x20]
	mov	x1, 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	_WREG32
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_mmDCCG_AUDIO_DTO_SOURCE,4,2    ; @mmDCCG_AUDIO_DTO_SOURCE
	.comm	_DCCG_AUDIO_DTO_SOURCE,4,2      ; @DCCG_AUDIO_DTO_SOURCE
	.comm	_DCCG_AUDIO_DTO0_SOURCE_SEL,4,2 ; @DCCG_AUDIO_DTO0_SOURCE_SEL
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ; @ATOM_ENCODER_MODE_HDMI
	.comm	_DCCG_AUDIO_DTO_SEL,4,2         ; @DCCG_AUDIO_DTO_SEL
	.comm	_mmDCCG_AUDIO_DTO0_PHASE,4,2    ; @mmDCCG_AUDIO_DTO0_PHASE
	.comm	_mmDCCG_AUDIO_DTO0_MODULE,4,2   ; @mmDCCG_AUDIO_DTO0_MODULE
	.comm	_mmDCCG_AUDIO_DTO1_PHASE,4,2    ; @mmDCCG_AUDIO_DTO1_PHASE
	.comm	_mmDCCG_AUDIO_DTO1_MODULE,4,2   ; @mmDCCG_AUDIO_DTO1_MODULE
	.no_dead_strip	_dce_v6_0_audio_set_dto
.subsections_via_symbols
