	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hdmi_audio_set_dto        ## -- Begin function r600_hdmi_audio_set_dto
	.p2align	4, 0x90
_r600_hdmi_audio_set_dto:               ## @r600_hdmi_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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	%edx, %r14d
	movl	(%rsi), %edi
	callq	_to_radeon_encoder
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	setne	%r15b
	movq	_DCCG_AUDIO_DTO1_PHASE@GOTPCREL(%rip), %rax
	cmoveq	_DCCG_AUDIO_DTO0_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCCG_AUDIO_DTO1_MODULE@GOTPCREL(%rip), %rbx
	cmoveq	_DCCG_AUDIO_DTO0_MODULE@GOTPCREL(%rip), %rbx
	movl	$2400000, %esi                  ## imm = 0x249F00
	callq	_WREG32
	movl	(%rbx), %edi
	imull	$100, %r14d, %esi
	callq	_WREG32
	movq	_DCCG_AUDIO_DTO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCCG_AUDIO_DTO0_PHASE,4,2      ## @DCCG_AUDIO_DTO0_PHASE
	.comm	_DCCG_AUDIO_DTO0_MODULE,4,2     ## @DCCG_AUDIO_DTO0_MODULE
	.comm	_DCCG_AUDIO_DTO_SELECT,4,2      ## @DCCG_AUDIO_DTO_SELECT
	.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	_r600_hdmi_audio_set_dto        ; -- Begin function r600_hdmi_audio_set_dto
	.p2align	2
_r600_hdmi_audio_set_dto:               ; @r600_hdmi_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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	w0, [x1]
	bl	_to_radeon_encoder
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DCCG_AUDIO_DTO0_PHASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCCG_AUDIO_DTO0_PHASE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DCCG_AUDIO_DTO1_PHASE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DCCG_AUDIO_DTO1_PHASE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	cset	w20, ne
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _DCCG_AUDIO_DTO0_MODULE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DCCG_AUDIO_DTO0_MODULE@GOTPAGEOFF]
Lloh6:
	adrp	x9, _DCCG_AUDIO_DTO1_MODULE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCCG_AUDIO_DTO1_MODULE@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	mov	w1, #40704
	movk	w1, #36, lsl #16
	bl	_WREG32
	ldr	w0, [x21]
	mov	w8, #100
	mul	w1, w19, w8
	bl	_WREG32
Lloh8:
	adrp	x8, _DCCG_AUDIO_DTO_SELECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_SELECT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	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
LBB0_3:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DCCG_AUDIO_DTO0_PHASE,4,2      ; @DCCG_AUDIO_DTO0_PHASE
	.comm	_DCCG_AUDIO_DTO0_MODULE,4,2     ; @DCCG_AUDIO_DTO0_MODULE
	.comm	_DCCG_AUDIO_DTO_SELECT,4,2      ; @DCCG_AUDIO_DTO_SELECT
	.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
