	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_single_controller_ctx_to_hw
_apply_single_controller_ctx_to_hw:     ## @apply_single_controller_ctx_to_hw
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	$0, -48(%rbp)
	movq	16(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_2:
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.3:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_build_audio_output
	movq	8(%rbx), %rax
	movl	20(%rax), %edi
	callq	_dc_is_dp_signal
	movq	48(%rbx), %rdi
	movq	(%rdi), %r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdx
	movq	56(%rbx), %rax
	movl	8(%rax), %esi
	addq	$52, %rdx
	callq	*16(%r8)
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rdx
	movq	56(%rbx), %rax
	movl	8(%rax), %esi
	addq	$52, %rdx
	leaq	-40(%rbp), %rcx
	callq	*8(%r8)
LBB0_6:
	movq	8(%rbx), %rcx
	movq	56(%rbx), %rdi
	movq	(%rdi), %rax
	movl	20(%rcx), %esi
	addq	$52, %rcx
	leaq	-40(%rbp), %rdx
	callq	*(%rax)
LBB0_7:
	movq	8(%rbx), %rax
	cmpl	$0, 48(%rax)
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*8(%r15)
LBB0_9:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_11:
	movq	32(%r12), %rax
	movups	32(%r12), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	40(%rbx), %rdi
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	leaq	-64(%rbp), %rsi
	callq	*%rcx
	movq	32(%r12), %rax
LBB0_13:
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	cmpq	$0, 40(%r12)
	setne	%sil
	shll	$7, %esi
LBB0_15:
	movq	40(%rbx), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	callq	*%rax
LBB0_17:
	movq	8(%rbx), %rax
	movl	20(%rax), %edi
	callq	_dc_is_virtual_signal
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	40(%rbx), %rax
	movq	48(%rbx), %rdi
	movq	(%rdi), %rcx
	movl	(%rax), %esi
	callq	*(%rcx)
LBB0_19:
	movq	32(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_COLOR_SPACE_YCBCR601@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	20(%r12), %ecx
	movl	24(%r12), %edx
	callq	*8(%rax)
	movq	32(%rbx), %rdi
	movq	(%rdi), %rax
	leaq	16(%r12), %rsi
	leaq	12(%r12), %rdx
	callq	*(%rax)
	cmpl	$0, 8(%r12)
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_core_link_enable_stream
LBB0_21:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setne	%al
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	movq	_DC_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_SPACE_YCBCR601,4,2       ## @COLOR_SPACE_YCBCR601
	.comm	_DC_OK,4,2                      ## @DC_OK
	.no_dead_strip	_apply_single_controller_ctx_to_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_single_controller_ctx_to_hw
_apply_single_controller_ctx_to_hw:     ; @apply_single_controller_ctx_to_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	str	xzr, [sp, #32]
	ldr	x8, [x2, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	blr	x8
LBB0_2:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_7
; %bb.3:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_build_audio_output
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #20]
	bl	_dc_is_dp_signal
	mov	x8, x0
	ldr	x0, [x19, #48]
	ldr	x9, [x0]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x9, #16]
	ldr	x9, [x19, #56]
	ldr	w1, [x9, #8]
	ldr	x9, [x19, #8]
	add	x2, x9, #52
	blr	x8
	b	LBB0_6
LBB0_5:
	ldr	x8, [x9, #8]
	ldr	x9, [x19, #56]
	ldr	w1, [x9, #8]
	ldr	x9, [x19, #8]
	add	x2, x9, #52
	add	x3, sp, #8
	blr	x8
LBB0_6:
	ldr	x0, [x19, #56]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w1, [x9, #20]
	add	x3, x9, #52
	add	x2, sp, #8
	blr	x8
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #48]
	cbz	w8, LBB0_13
; %bb.8:
	ldr	x8, [x21]
	cbz	x8, LBB0_10
LBB0_9:
	mov	x0, x19
	blr	x8
LBB0_10:
	ldr	q0, [x22, #32]
	str	q0, [sp, #16]
	ldr	x0, [x19, #40]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
; %bb.11:
	add	x1, sp, #16
	blr	x8
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_15
LBB0_12:
	ldr	x8, [x22, #40]
	cmp	x8, #0
	cset	w8, ne
	lsl	w1, w8, #7
	b	LBB0_16
LBB0_13:
	ldr	x8, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
	ldr	x8, [x21]
	cbnz	x8, LBB0_9
	b	LBB0_10
LBB0_14:
	fmov	x8, d0
	cbnz	x8, LBB0_12
LBB0_15:
	mov	w1, #0
LBB0_16:
	ldr	x0, [x19, #40]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	blr	x8
LBB0_18:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #20]
	bl	_dc_is_virtual_signal
	cbnz	w0, LBB0_20
; %bb.19:
	ldp	x8, x0, [x19, #40]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	w1, [x8]
	blr	x9
LBB0_20:
	ldr	x0, [x19, #32]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _COLOR_SPACE_YCBCR601@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COLOR_SPACE_YCBCR601@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldp	w3, w2, [x22, #20]
	blr	x8
	ldr	x0, [x19, #32]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, x22, #16
	add	x2, x22, #12
	blr	x8
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_22
; %bb.21:
	mov	x0, x20
	mov	x1, x19
	bl	_core_link_enable_stream
LBB0_22:
	ldp	x8, x9, [x19]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19, #16]
	ldr	x8, [x9]
	str	wzr, [x8]
Lloh3:
	adrp	x8, _DC_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_SPACE_YCBCR601,4,2       ; @COLOR_SPACE_YCBCR601
	.comm	_DC_OK,4,2                      ; @DC_OK
	.no_dead_strip	_apply_single_controller_ctx_to_hw
.subsections_via_symbols
