	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce3_2_audio_set_dto           ## -- Begin function dce3_2_audio_set_dto
	.p2align	4, 0x90
_dce3_2_audio_set_dto:                  ## @dce3_2_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movl	%edx, %ebx
	movl	(%rsi), %edi
	callq	_to_radeon_encoder
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpl	$191999, %ebx                   ## imm = 0x2EDFF
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jbe	LBB0_4
## %bb.3:
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$192000, -48(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x2EE00
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$95999, %ebx                    ## imm = 0x176FF
	jbe	LBB0_6
## %bb.5:
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$96000, -48(%rbp)               ## 4-byte Folded Spill
                                        ## imm = 0x17700
	jmp	LBB0_7
LBB0_6:
	xorl	%ecx, %ecx
	cmpl	$48000, %ebx                    ## imm = 0xBB80
	setae	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	$48000, %ecx                    ## imm = 0xBB80
	movl	$24000, %edx                    ## imm = 0x5DC0
	cmovael	%ecx, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
LBB0_7:
	xorl	%r13d, %r13d
	cmpq	$0, (%rax)
	setne	%r13b
	movq	_DCCG_AUDIO_DTO1_CNTL@GOTPCREL(%rip), %r15
	cmoveq	_DCCG_AUDIO_DTO0_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DCCG_AUDIO_DTO1_PHASE@GOTPCREL(%rip), %r12
	cmoveq	_DCCG_AUDIO_DTO0_PHASE@GOTPCREL(%rip), %r12
	movq	_DCCG_AUDIO_DTO1_MODULE@GOTPCREL(%rip), %r14
	cmoveq	_DCCG_AUDIO_DTO0_MODULE@GOTPCREL(%rip), %r14
	callq	_RREG32
	movq	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO
	movl	(%r15), %edi
	orl	%eax, %ebx
	movl	%ebx, %esi
	callq	_WREG32
	movl	(%r12), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movl	(%r14), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DCCG_AUDIO_DTO_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCCG_AUDIO_DTO0_CNTL,4,2       ## @DCCG_AUDIO_DTO0_CNTL
	.comm	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK,4,2 ## @DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK
	.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_CNTL,4,2       ## @DCCG_AUDIO_DTO1_CNTL
	.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	_dce3_2_audio_set_dto           ; -- Begin function dce3_2_audio_set_dto
	.p2align	2
_dce3_2_audio_set_dto:                  ; @dce3_2_audio_set_dto
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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:
	mov	w9, #60927
	movk	w9, #2, lsl #16
	mov	w10, #3
	lsr	w11, w19, #9
	mov	w12, #30463
	movk	w12, #1, lsl #16
	mov	w13, #2
	lsr	w14, w19, #8
	lsr	w15, w19, #7
	mov	w16, #24000
	mov	w17, #48000
	cmp	w15, #374
	csel	w15, w17, w16, hi
	cset	w16, hi
	cmp	w14, #374
	csel	w13, w13, w16, hi
	csinc	w12, w15, w12, ls
	cmp	w11, #374
	csel	w20, w10, w13, hi
	csinc	w21, w12, w9, ls
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DCCG_AUDIO_DTO1_CNTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCCG_AUDIO_DTO1_CNTL@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DCCG_AUDIO_DTO0_CNTL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DCCG_AUDIO_DTO0_CNTL@GOTPAGEOFF]
	cmp	x8, #0
	csel	x23, x10, x9, eq
	cset	w22, ne
	ldr	w0, [x23]
Lloh4:
	adrp	x8, _DCCG_AUDIO_DTO0_PHASE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DCCG_AUDIO_DTO0_PHASE@GOTPAGEOFF]
Lloh6:
	adrp	x9, _DCCG_AUDIO_DTO1_PHASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCCG_AUDIO_DTO1_PHASE@GOTPAGEOFF]
	csel	x24, x8, x9, eq
Lloh8:
	adrp	x8, _DCCG_AUDIO_DTO0_MODULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCCG_AUDIO_DTO0_MODULE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _DCCG_AUDIO_DTO1_MODULE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DCCG_AUDIO_DTO1_MODULE@GOTPAGEOFF]
	csel	x25, x8, x9, eq
	bl	_RREG32
Lloh12:
	adrp	x8, _DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w26, w0, w8
	mov	x0, x20
	bl	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO
	orr	w1, w26, w0
	ldr	w0, [x23]
	bl	_WREG32
	ldr	w0, [x24]
	mov	x1, x21
	bl	_WREG32
	ldr	w0, [x25]
	mov	x1, x19
	bl	_WREG32
Lloh15:
	adrp	x8, _DCCG_AUDIO_DTO_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_SELECT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_WREG32
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DCCG_AUDIO_DTO0_CNTL,4,2       ; @DCCG_AUDIO_DTO0_CNTL
	.comm	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK,4,2 ; @DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK
	.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_CNTL,4,2       ; @DCCG_AUDIO_DTO1_CNTL
	.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
