	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lpe_audio_notify         ## -- Begin function intel_lpe_audio_notify
	.p2align	4, 0x90
_intel_lpe_audio_notify:                ## @intel_lpe_audio_notify
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_HAS_LPE_AUDIO
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	16(%rax), %r14
	movq	_PORT_B@GOTPCREL(%rip), %rax
	movl	%r12d, %r15d
	subl	(%rax), %r15d
	shlq	$4, %r15
	leaq	(%r14,%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	%r12d, %edi
	callq	_VLV_AUD_PORT_EN_DBG
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movl	12(%r14,%r15), %edi
	movq	_HDMI_MAX_ELD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	callq	_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14,%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14,%r15)
	movl	%r12d, %edi
	callq	_VLV_AUD_PORT_EN_DBG
	movq	_VLV_AMP_MUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r13d
	jmp	LBB0_4
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%esi, %esi
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
	movq	$0, 4(%r14,%r15)
	movl	%r12d, %edi
	callq	_VLV_AUD_PORT_EN_DBG
	movq	_VLV_AMP_MUTE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
LBB0_4:
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movq	8(%rbx), %rax
	testq	%rax, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	(%rcx), %rdi
	movq	_PORT_B@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r12d
	movl	%r12d, %esi
	callq	*%rax
LBB0_6:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_B,4,2                     ## @PORT_B
	.comm	_HDMI_MAX_ELD_BYTES,4,2         ## @HDMI_MAX_ELD_BYTES
	.comm	_VLV_AMP_MUTE,4,2               ## @VLV_AMP_MUTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_lpe_audio_notify         ; -- Begin function intel_lpe_audio_notify
	.p2align	2
_intel_lpe_audio_notify:                ; @intel_lpe_audio_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x5
	mov	x23, x4
	mov	x25, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	bl	_HAS_LPE_AUDIO
	cbz	w0, LBB0_3
; %bb.1:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x0, [x20]
	bl	_dev_get_platdata
	mov	x21, x0
	ldr	x28, [x0, #16]
Lloh0:
	adrp	x8, _PORT_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_B@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w27, w19, w8
	add	x22, x28, w27, uxtw #4
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_VLV_AUD_PORT_EN_DBG
	bl	_I915_READ
	mov	x26, x0
	ldr	w0, [x22, #12]
Lloh3:
	adrp	x8, _HDMI_MAX_ELD_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_MAX_ELD_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cbz	x25, LBB0_4
; %bb.2:
	mov	x1, x25
	bl	_memcpy
	str	w24, [x22]
	add	x8, x28, x27, lsl #4
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	stp	w23, w9, [x8, #4]
	mov	x0, x19
	bl	_VLV_AUD_PORT_EN_DBG
Lloh6:
	adrp	x8, _VLV_AMP_MUTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLV_AMP_MUTE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w1, w26, w8
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	w1, #0
	bl	_memset
	movi	d0, #0x000000ffffffff
	str	d0, [x22]
	add	x8, x28, x27, lsl #4
	str	wzr, [x8, #8]
	mov	x0, x19
	bl	_VLV_AUD_PORT_EN_DBG
Lloh9:
	adrp	x8, _VLV_AMP_MUTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VLV_AMP_MUTE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w26
LBB0_5:
	bl	_I915_WRITE
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [x20]
Lloh12:
	adrp	x9, _PORT_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PORT_B@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sub	w1, w19, w9
	blr	x8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_B,4,2                     ; @PORT_B
	.comm	_HDMI_MAX_ELD_BYTES,4,2         ; @HDMI_MAX_ELD_BYTES
	.comm	_VLV_AMP_MUTE,4,2               ; @VLV_AMP_MUTE
.subsections_via_symbols
