	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce4_hdmi_audio_set_dto        ## -- Begin function dce4_hdmi_audio_set_dto
	.p2align	4, 0x90
_dce4_hdmi_audio_set_dto:               ## @dce4_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	%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	%edx, %r12d
	movq	%rsi, %r15
	cmpl	$191999, %edx                   ## imm = 0x2EDFF
	jbe	LBB0_2
## %bb.1:
	movl	$3, %ebx
	movl	$192000, -44(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x2EE00
	jmp	LBB0_5
LBB0_2:
	cmpl	$95999, %r12d                   ## imm = 0x176FF
	jbe	LBB0_4
## %bb.3:
	movl	$2, %ebx
	movl	$96000, -44(%rbp)               ## 4-byte Folded Spill
                                        ## imm = 0x17700
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	$48000, %r12d                   ## imm = 0xBB80
	setae	%bl
	movl	$48000, %eax                    ## imm = 0xBB80
	movl	$24000, %ecx                    ## imm = 0x5DC0
	cmovael	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_5:
	movq	_DCCG_AUDIO_DTO0_CNTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_RREG32
	movq	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movl	%ebx, %edi
	callq	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO
	orl	%eax, %r14d
	movq	_DCCG_AUDIO_DTO1_USE_512FBR_DTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r14d, %esi
	movl	(%r13), %edi
	callq	_WREG32
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movl	(%r15), %edi
	callq	_DCCG_AUDIO_DTO0_SOURCE_SEL
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_6:
	xorl	%esi, %esi
LBB0_8:
	movq	_DCCG_AUDIO_DTO_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WREG32
	movq	_DCCG_AUDIO_DTO0_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DCCG_AUDIO_DTO0_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	addq	$8, %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_DTO1_USE_512FBR_DTO,4,2 ## @DCCG_AUDIO_DTO1_USE_512FBR_DTO
	.comm	_DCCG_AUDIO_DTO_SOURCE,4,2      ## @DCCG_AUDIO_DTO_SOURCE
	.comm	_DCCG_AUDIO_DTO0_PHASE,4,2      ## @DCCG_AUDIO_DTO0_PHASE
	.comm	_DCCG_AUDIO_DTO0_MODULE,4,2     ## @DCCG_AUDIO_DTO0_MODULE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce4_hdmi_audio_set_dto        ; -- Begin function dce4_hdmi_audio_set_dto
	.p2align	2
_dce4_hdmi_audio_set_dto:               ; @dce4_hdmi_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, x2
	mov	x21, x1
	mov	w8, #60927
	movk	w8, #2, lsl #16
	mov	w9, #3
	lsr	w10, w2, #9
	mov	w11, #30463
	movk	w11, #1, lsl #16
	mov	w12, #2
	lsr	w13, w2, #8
	lsr	w14, w2, #7
	mov	w15, #24000
	mov	w16, #48000
	cmp	w14, #374
	csel	w14, w16, w15, hi
	cset	w15, hi
	cmp	w13, #374
	csel	w12, w12, w15, hi
	csinc	w11, w14, w11, ls
	cmp	w10, #374
	csel	w22, w9, w12, hi
	csinc	w20, w11, w8, ls
Lloh0:
	adrp	x23, _DCCG_AUDIO_DTO0_CNTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DCCG_AUDIO_DTO0_CNTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_RREG32
Lloh2:
	adrp	x8, _DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w24, w0, w8
	mov	x0, x22
	bl	_DCCG_AUDIO_DTO_WALLCLOCK_RATIO
	orr	w8, w24, w0
Lloh5:
	adrp	x9, _DCCG_AUDIO_DTO1_USE_512FBR_DTO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DCCG_AUDIO_DTO1_USE_512FBR_DTO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w1, w8, w9
	ldr	w0, [x23]
	bl	_WREG32
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_DCCG_AUDIO_DTO0_SOURCE_SEL
	mov	x1, x0
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
Lloh8:
	adrp	x8, _DCCG_AUDIO_DTO_SOURCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCCG_AUDIO_DTO_SOURCE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_WREG32
Lloh11:
	adrp	x8, _DCCG_AUDIO_DTO0_PHASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DCCG_AUDIO_DTO0_PHASE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_WREG32
Lloh14:
	adrp	x8, _DCCG_AUDIO_DTO0_MODULE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DCCG_AUDIO_DTO0_MODULE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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_DTO1_USE_512FBR_DTO,4,2 ; @DCCG_AUDIO_DTO1_USE_512FBR_DTO
	.comm	_DCCG_AUDIO_DTO_SOURCE,4,2      ; @DCCG_AUDIO_DTO_SOURCE
	.comm	_DCCG_AUDIO_DTO0_PHASE,4,2      ; @DCCG_AUDIO_DTO0_PHASE
	.comm	_DCCG_AUDIO_DTO0_MODULE,4,2     ; @DCCG_AUDIO_DTO0_MODULE
.subsections_via_symbols
