	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function haswell_verify_pin_D0
_haswell_verify_pin_D0:                 ## @haswell_verify_pin_D0
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_snd_hda_check_power_state
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
LBB0_2:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_check_power_state
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movl	$40, %edi
	callq	_msleep
	movq	_AC_VERB_GET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movq	_AC_PWRST_ACTUAL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_AC_PWRST_ACTUAL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_snd_printd
LBB0_4:
	movq	_AC_VERB_GET_AMP_GAIN_MUTE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_AC_AMP_GET_LEFT@GOTPCREL(%rip), %rax
	movq	_AC_AMP_GET_OUTPUT@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	orl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_read
	movl	%eax, %ebx
	movl	(%r12), %ecx
	movq	_AC_AMP_GET_RIGHT@GOTPCREL(%rip), %rax
	movl	(%r13), %r8d
	orl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_read
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_AC_VERB_SET_AMP_GAIN_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AC_AMP_SET_RIGHT@GOTPCREL(%rip), %rax
	movq	_AC_AMP_SET_OUTPUT@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rdx), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_snd_hda_codec_write
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	movq	_AC_AMP_GET_LEFT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_read
	movl	%eax, %ebx
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	movq	_AC_AMP_GET_RIGHT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_read
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printd                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ## @AC_VERB_SET_POWER_STATE
	.comm	_AC_VERB_GET_POWER_STATE,4,2    ## @AC_VERB_GET_POWER_STATE
	.comm	_AC_PWRST_ACTUAL,4,2            ## @AC_PWRST_ACTUAL
	.comm	_AC_PWRST_ACTUAL_SHIFT,4,2      ## @AC_PWRST_ACTUAL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Haswell HDMI audio: Power for pin 0x%x is now D%d\n"

	.comm	_AC_VERB_GET_AMP_GAIN_MUTE,4,2  ## @AC_VERB_GET_AMP_GAIN_MUTE
	.comm	_AC_AMP_GET_LEFT,4,2            ## @AC_AMP_GET_LEFT
	.comm	_AC_AMP_GET_OUTPUT,4,2          ## @AC_AMP_GET_OUTPUT
	.comm	_AC_AMP_GET_RIGHT,4,2           ## @AC_AMP_GET_RIGHT
	.comm	_AC_VERB_SET_AMP_GAIN_MUTE,4,2  ## @AC_VERB_SET_AMP_GAIN_MUTE
	.comm	_AC_AMP_SET_RIGHT,4,2           ## @AC_AMP_SET_RIGHT
	.comm	_AC_AMP_SET_OUTPUT,4,2          ## @AC_AMP_SET_OUTPUT
L_.str.1:                               ## @.str.1
	.asciz	"Haswell HDMI audio: Mute after set on pin 0x%x: [0x%x 0x%x]\n"

	.no_dead_strip	_haswell_verify_pin_D0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function haswell_verify_pin_D0
_haswell_verify_pin_D0:                 ; @haswell_verify_pin_D0
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _AC_PWRST_D0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AC_PWRST_D0@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_snd_hda_check_power_state
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	w4, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_snd_hda_codec_write
LBB0_2:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_snd_hda_check_power_state
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	ldr	w4, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	mov	w0, #40
	bl	_msleep
Lloh8:
	adrp	x8, _AC_VERB_GET_POWER_STATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC_VERB_GET_POWER_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
Lloh11:
	adrp	x8, _AC_PWRST_ACTUAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC_PWRST_ACTUAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh14:
	adrp	x9, _AC_PWRST_ACTUAL_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AC_PWRST_ACTUAL_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_snd_printd
LBB0_4:
Lloh19:
	adrp	x22, _AC_VERB_GET_AMP_GAIN_MUTE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _AC_VERB_GET_AMP_GAIN_MUTE@GOTPAGEOFF]
Lloh21:
	adrp	x24, _AC_AMP_GET_LEFT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _AC_AMP_GET_LEFT@GOTPAGEOFF]
	ldr	w3, [x22]
	ldr	w8, [x24]
Lloh23:
	adrp	x23, _AC_AMP_GET_OUTPUT@GOTPAGE
Lloh24:
	ldr	x23, [x23, _AC_AMP_GET_OUTPUT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w4, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_snd_hda_codec_read
	mov	x21, x0
	ldr	w3, [x22]
Lloh25:
	adrp	x25, _AC_AMP_GET_RIGHT@GOTPAGE
Lloh26:
	ldr	x25, [x25, _AC_AMP_GET_RIGHT@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w4, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_snd_hda_codec_read
	cmp	w21, w0
	b.eq	LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _AC_VERB_SET_AMP_GAIN_MUTE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AC_VERB_SET_AMP_GAIN_MUTE@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
Lloh30:
	adrp	x8, _AC_AMP_SET_RIGHT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AC_AMP_SET_RIGHT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _AC_AMP_SET_OUTPUT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AC_AMP_SET_OUTPUT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w4, w8, w9
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	ldr	w3, [x22]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w4, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_snd_hda_codec_read
	mov	x21, x0
	ldr	w3, [x22]
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w4, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_snd_hda_codec_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_snd_printd
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PWRST_D0,4,2                ; @AC_PWRST_D0
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ; @AC_VERB_SET_POWER_STATE
	.comm	_AC_VERB_GET_POWER_STATE,4,2    ; @AC_VERB_GET_POWER_STATE
	.comm	_AC_PWRST_ACTUAL,4,2            ; @AC_PWRST_ACTUAL
	.comm	_AC_PWRST_ACTUAL_SHIFT,4,2      ; @AC_PWRST_ACTUAL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Haswell HDMI audio: Power for pin 0x%x is now D%d\n"

	.comm	_AC_VERB_GET_AMP_GAIN_MUTE,4,2  ; @AC_VERB_GET_AMP_GAIN_MUTE
	.comm	_AC_AMP_GET_LEFT,4,2            ; @AC_AMP_GET_LEFT
	.comm	_AC_AMP_GET_OUTPUT,4,2          ; @AC_AMP_GET_OUTPUT
	.comm	_AC_AMP_GET_RIGHT,4,2           ; @AC_AMP_GET_RIGHT
	.comm	_AC_VERB_SET_AMP_GAIN_MUTE,4,2  ; @AC_VERB_SET_AMP_GAIN_MUTE
	.comm	_AC_AMP_SET_RIGHT,4,2           ; @AC_AMP_SET_RIGHT
	.comm	_AC_AMP_SET_OUTPUT,4,2          ; @AC_AMP_SET_OUTPUT
l_.str.1:                               ; @.str.1
	.asciz	"Haswell HDMI audio: Mute after set on pin 0x%x: [0x%x 0x%x]\n"

	.no_dead_strip	_haswell_verify_pin_D0
.subsections_via_symbols
