	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_audio_codec_enable       ## -- Begin function intel_audio_codec_enable
	.p2align	4, 0x90
_intel_audio_codec_enable:              ## @intel_audio_codec_enable
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	24(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %r13
	movl	8(%r14), %edi
	callq	_to_intel_crtc
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	movl	(%r15), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_2:
	movl	20(%rbx), %esi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_drm_av_sync_delay
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	(%rbx), %rax
	movl	%ecx, 24(%rax)
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	*%rax
LBB0_4:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%rbx, 8(%r15)
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rax,%rcx,8)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_8
## %bb.5:
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	_INTEL_OUTPUT_DP_MST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_crtc_has_type
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	sbbl	%r15d, %r15d
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	*8(%rax)
	movl	%r15d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	(%rbx), %rbx
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_intel_crtc_has_dp_encoder
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_lpe_audio_notify         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bogus ELD on [CONNECTOR:%d:%s]\n"

L_.str.1:                               ## @.str.1
	.asciz	"ELD on [CONNECTOR:%d:%s], [ENCODER:%d:%s]\n"

	.comm	_INTEL_OUTPUT_DP_MST,4,2        ## @INTEL_OUTPUT_DP_MST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_audio_codec_enable       ; -- Begin function intel_audio_codec_enable
	.p2align	2
_intel_audio_codec_enable:              ; @intel_audio_codec_enable
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x2
	mov	x19, x1
	mov	x24, x0
	ldr	w0, [x0, #16]
	bl	_to_i915
	mov	x20, x0
	ldr	x27, [x0, #24]
	add	x26, x19, #4
	ldr	w0, [x19, #8]
	bl	_to_intel_crtc
	ldr	x23, [x25]
	ldr	w21, [x24]
	ldr	w22, [x0]
	ldr	x8, [x23]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldp	w2, w1, [x23, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_2:
	ldp	w2, w1, [x23, #16]
	ldr	x8, [x23, #8]
	ldp	w4, w3, [x8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x23
	mov	x1, x26
	bl	_drm_av_sync_delay
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	ldr	x9, [x23]
	str	w8, [x9, #24]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	blr	x8
LBB0_4:
	mov	x0, x20
	bl	_mutex_lock
	str	x23, [x24, #8]
	ldr	x8, [x20, #8]
	str	x24, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_mutex_unlock
	cbz	x27, LBB0_8
; %bb.5:
	ldr	x8, [x27]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _INTEL_OUTPUT_DP_MST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTEL_OUTPUT_DP_MST@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_crtc_has_type
	cmp	w0, #0
	csinv	w22, w22, wzr, ne
	ldr	x8, [x27]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	blr	x9
LBB0_8:
	ldr	x23, [x23]
	ldr	w24, [x19]
	mov	x0, x19
	bl	_intel_crtc_has_dp_encoder
	mov	x5, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_intel_lpe_audio_notify
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bogus ELD on [CONNECTOR:%d:%s]\n"

l_.str.1:                               ; @.str.1
	.asciz	"ELD on [CONNECTOR:%d:%s], [ENCODER:%d:%s]\n"

	.comm	_INTEL_OUTPUT_DP_MST,4,2        ; @INTEL_OUTPUT_DP_MST
.subsections_via_symbols
