	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_is_audio_enabled
_intel_ddi_is_audio_enabled:            ## @intel_ddi_is_audio_enabled
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	_POWER_DOMAIN_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_display_power_is_enabled
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_HSW_AUD_PIN_ELD_CP_VLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_AUDIO_OUTPUT_ENABLE
	movl	%eax, %ebx
	andl	%r15d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANSCODER_EDP,4,2             ## @TRANSCODER_EDP
	.comm	_POWER_DOMAIN_AUDIO,4,2         ## @POWER_DOMAIN_AUDIO
	.comm	_HSW_AUD_PIN_ELD_CP_VLD,4,2     ## @HSW_AUD_PIN_ELD_CP_VLD
	.no_dead_strip	_intel_ddi_is_audio_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_is_audio_enabled
_intel_ddi_is_audio_enabled:            ; @intel_ddi_is_audio_enabled
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _TRANSCODER_EDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANSCODER_EDP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x1
Lloh3:
	adrp	x8, _POWER_DOMAIN_AUDIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_DOMAIN_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_intel_display_power_is_enabled
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _HSW_AUD_PIN_ELD_CP_VLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HSW_AUD_PIN_ELD_CP_VLD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x20, x0
	mov	x0, x19
	bl	_AUDIO_OUTPUT_ENABLE
	and	w0, w0, w20
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_TRANSCODER_EDP,4,2             ; @TRANSCODER_EDP
	.comm	_POWER_DOMAIN_AUDIO,4,2         ; @POWER_DOMAIN_AUDIO
	.comm	_HSW_AUD_PIN_ELD_CP_VLD,4,2     ; @HSW_AUD_PIN_ELD_CP_VLD
	.no_dead_strip	_intel_ddi_is_audio_enabled
.subsections_via_symbols
