	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_audio_output
_build_audio_output:                    ## @build_audio_output
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rsi), %rax
	movq	40(%rsi), %rbx
	movl	(%rax), %eax
	movl	%eax, 80(%rdx)
	movq	(%rbx), %rdi
	movq	%rdi, (%rdx)
	movl	8(%rbx), %ecx
	movl	%ecx, 32(%rdx)
	movq	64(%rbx), %rax
	addq	72(%rbx), %rax
	addq	56(%rbx), %rax
	movq	%rax, 72(%rdx)
	movq	40(%rbx), %rax
	addq	48(%rbx), %rax
	addq	32(%rbx), %rax
	movq	%rax, 64(%rdx)
	movl	$1, 36(%rdx)
	movl	24(%rbx), %eax
	movl	%eax, 56(%rdx)
	imull	$100, 12(%rbx), %eax
	imull	16(%rbx), %ecx
	cltd
	idivl	%ecx
	movl	%eax, 40(%r12)
	movl	20(%rbx), %eax
	movl	%eax, 52(%r12)
	movl	16(%rsi), %eax
	movl	%eax, 44(%r12)
	movl	%eax, 48(%r12)
	callq	_dc_is_hdmi_signal
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	44(%r12), %eax
	cmpl	12(%rbx), %eax
	jne	LBB0_4
## %bb.2:
	movq	24(%r14), %rcx
	movq	_PIXEL_ENCODING_YCBCR420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 44(%r12)
	movl	16(%r14), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 48(%r12)
LBB0_4:
	movq	40(%r14), %rax
	movq	(%rax), %rax
	movq	_SIGNAL_TYPE_DISPLAY_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movl	%eax, 24(%r12)
LBB0_7:
	movl	4(%r14), %eax
	movl	%eax, 20(%r12)
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_translate_to_dto_source
	movl	%eax, 16(%r12)
	movl	$1, 8(%r12)
	movl	(%r14), %eax
	movl	%eax, 12(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ## @PIXEL_ENCODING_YCBCR420
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,8,3   ## @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,8,3 ## @SIGNAL_TYPE_DISPLAY_PORT_MST
	.no_dead_strip	_build_audio_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_audio_output
_build_audio_output:                    ; @build_audio_output
	.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, x1
	mov	x21, x0
	ldp	x8, x22, [x1, #32]
	ldr	w8, [x8]
	str	w8, [x2, #80]
	ldr	x0, [x22]
	str	x0, [x2]
	ldp	x9, x8, [x22, #64]
	ldp	x11, x10, [x22, #48]
	add	x8, x9, x8
	add	x8, x8, x10
	ldp	x10, x9, [x22, #32]
	add	x9, x9, x11
	add	x9, x9, x10
	stp	x9, x8, [x2, #64]
	mov	w8, #1
	ldp	w9, w10, [x22, #8]
	stp	w9, w8, [x2, #32]
	mov	w8, #100
	mul	w8, w10, w8
	ldr	w10, [x22, #16]
	mul	w9, w10, w9
	sdiv	w8, w8, w9
	str	w8, [x2, #40]
	ldur	d0, [x22, #20]
	stur	d0, [x2, #52]
	ldr	w8, [x1, #16]
	stp	w8, w8, [x2, #44]
	bl	_dc_is_hdmi_signal
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #44]
	ldr	w9, [x22, #12]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x20, #24]
Lloh0:
	adrp	x10, _PIXEL_ENCODING_YCBCR420@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR420@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x20, #16]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	stp	w8, w9, [x19, #44]
LBB0_4:
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	str	w0, [x19, #24]
LBB0_7:
	ldr	w8, [x20, #4]
	str	w8, [x19, #20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_translate_to_dto_source
	str	w0, [x19, #16]
	mov	w8, #1
	ldr	w9, [x20]
	stp	w8, w9, [x19, #8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ; @PIXEL_ENCODING_YCBCR420
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,8,3   ; @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,8,3 ; @SIGNAL_TYPE_DISPLAY_PORT_MST
	.no_dead_strip	_build_audio_output
.subsections_via_symbols
