	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce6_dp_audio_set_dto          ## -- Begin function dce6_dp_audio_set_dto
	.p2align	4, 0x90
_dce6_dp_audio_set_dto:                 ## @dce6_dp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_DCCG_AUDIO_DTO_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	(%rsi), %edi
	callq	_DCCG_AUDIO_DTO0_SOURCE_SEL
	orl	%eax, %ebx
LBB0_2:
	movq	_DCCG_AUDIO_DTO_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE8
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_DENTIST_DISPCLK_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	_DENTIST_DPREFCLK_WDIVIDER_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_DENTIST_DPREFCLK_WDIVIDER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movl	%eax, %edi
	callq	_radeon_audio_decode_dfs_div
	movq	_DCE8_DCCG_AUDIO_DTO1_MODULE@GOTPCREL(%rip), %rbx
	movq	_DCE8_DCCG_AUDIO_DTO1_PHASE@GOTPCREL(%rip), %rsi
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ecx
	imull	$100, %r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_DCCG_AUDIO_DTO1_MODULE@GOTPCREL(%rip), %rbx
	movq	_DCCG_AUDIO_DTO1_PHASE@GOTPCREL(%rip), %rsi
LBB0_6:
	movl	(%rsi), %edi
	movl	$24000, %esi                    ## imm = 0x5DC0
	callq	_WREG32
	movl	(%rbx), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCCG_AUDIO_DTO_SEL,4,2         ## @DCCG_AUDIO_DTO_SEL
	.comm	_DCCG_AUDIO_DTO_SOURCE,4,2      ## @DCCG_AUDIO_DTO_SOURCE
	.comm	_DENTIST_DISPCLK_CNTL,4,2       ## @DENTIST_DISPCLK_CNTL
	.comm	_DENTIST_DPREFCLK_WDIVIDER_MASK,4,2 ## @DENTIST_DPREFCLK_WDIVIDER_MASK
	.comm	_DENTIST_DPREFCLK_WDIVIDER_SHIFT,4,2 ## @DENTIST_DPREFCLK_WDIVIDER_SHIFT
	.comm	_DCE8_DCCG_AUDIO_DTO1_PHASE,4,2 ## @DCE8_DCCG_AUDIO_DTO1_PHASE
	.comm	_DCE8_DCCG_AUDIO_DTO1_MODULE,4,2 ## @DCE8_DCCG_AUDIO_DTO1_MODULE
	.comm	_DCCG_AUDIO_DTO1_PHASE,4,2      ## @DCCG_AUDIO_DTO1_PHASE
	.comm	_DCCG_AUDIO_DTO1_MODULE,4,2     ## @DCCG_AUDIO_DTO1_MODULE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce6_dp_audio_set_dto          ; -- Begin function dce6_dp_audio_set_dto
	.p2align	2
_dce6_dp_audio_set_dto:                 ; @dce6_dp_audio_set_dto
	.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, x0
Lloh0:
	adrp	x8, _DCCG_AUDIO_DTO_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_SEL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x1]
	bl	_DCCG_AUDIO_DTO0_SOURCE_SEL
	orr	w21, w0, w21
LBB0_2:
Lloh3:
	adrp	x8, _DCCG_AUDIO_DTO_SOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_WREG32
	mov	x0, x20
	bl	_ASIC_IS_DCE8
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _DENTIST_DISPCLK_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DENTIST_DISPCLK_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_RREG32
Lloh9:
	adrp	x8, _DENTIST_DPREFCLK_WDIVIDER_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DENTIST_DPREFCLK_WDIVIDER_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _DENTIST_DPREFCLK_WDIVIDER_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DENTIST_DPREFCLK_WDIVIDER_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	w0, w8, w9
	bl	_radeon_audio_decode_dfs_div
	cbz	w0, LBB0_6
; %bb.4:
	mov	w8, #100
	mul	w9, w19, w8
Lloh15:
	adrp	x20, _DCE8_DCCG_AUDIO_DTO1_MODULE@GOTPAGE
Lloh16:
	ldr	x20, [x20, _DCE8_DCCG_AUDIO_DTO1_MODULE@GOTPAGEOFF]
Lloh17:
	adrp	x8, _DCE8_DCCG_AUDIO_DTO1_PHASE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DCE8_DCCG_AUDIO_DTO1_PHASE@GOTPAGEOFF]
	udiv	w19, w9, w0
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x20, _DCCG_AUDIO_DTO1_MODULE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _DCCG_AUDIO_DTO1_MODULE@GOTPAGEOFF]
Lloh21:
	adrp	x8, _DCCG_AUDIO_DTO1_PHASE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DCCG_AUDIO_DTO1_PHASE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x20, _DCE8_DCCG_AUDIO_DTO1_MODULE@GOTPAGE
Lloh24:
	ldr	x20, [x20, _DCE8_DCCG_AUDIO_DTO1_MODULE@GOTPAGEOFF]
Lloh25:
	adrp	x8, _DCE8_DCCG_AUDIO_DTO1_PHASE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DCE8_DCCG_AUDIO_DTO1_PHASE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	mov	w1, #24000
	bl	_WREG32
	ldr	w0, [x20]
	mov	x1, 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	_WREG32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DCCG_AUDIO_DTO_SEL,4,2         ; @DCCG_AUDIO_DTO_SEL
	.comm	_DCCG_AUDIO_DTO_SOURCE,4,2      ; @DCCG_AUDIO_DTO_SOURCE
	.comm	_DENTIST_DISPCLK_CNTL,4,2       ; @DENTIST_DISPCLK_CNTL
	.comm	_DENTIST_DPREFCLK_WDIVIDER_MASK,4,2 ; @DENTIST_DPREFCLK_WDIVIDER_MASK
	.comm	_DENTIST_DPREFCLK_WDIVIDER_SHIFT,4,2 ; @DENTIST_DPREFCLK_WDIVIDER_SHIFT
	.comm	_DCE8_DCCG_AUDIO_DTO1_PHASE,4,2 ; @DCE8_DCCG_AUDIO_DTO1_PHASE
	.comm	_DCE8_DCCG_AUDIO_DTO1_MODULE,4,2 ; @DCE8_DCCG_AUDIO_DTO1_MODULE
	.comm	_DCCG_AUDIO_DTO1_PHASE,4,2      ; @DCCG_AUDIO_DTO1_PHASE
	.comm	_DCCG_AUDIO_DTO1_MODULE,4,2     ; @DCCG_AUDIO_DTO1_MODULE
.subsections_via_symbols
