	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_auto_mute_availability
_check_auto_mute_availability:          ## @check_auto_mute_availability
	.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
	movq	(%rdi), %r13
	xorl	%eax, %eax
	cmpq	$0, 24(%r13)
	jne	LBB0_30
## %bb.1:
	movq	%rdi, %r12
	movq	56(%r13), %rsi
	movq	64(%r13), %rdi
	movq	(%rdi), %r8
	xorl	%ecx, %ecx
	testq	%r8, %r8
	setne	%cl
	leal	1(%rcx), %ebx
	cmpq	$0, (%rsi)
	cmovel	%ecx, %ebx
	movq	72(%r13), %rcx
	movq	(%rcx), %rdx
	cmpq	$1, %rdx
	sbbl	$-1, %ebx
	cmpl	$2, %ebx
	jb	LBB0_30
## %bb.2:
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.3:
	movq	32(%r13), %rdx
	movq	_AUTO_PIN_SPEAKER_OUT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jne	LBB0_5
## %bb.4:
	movq	%rcx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	44(%r13), %eax
	movl	%eax, 40(%r13)
	movq	64(%r13), %rdi
	movq	(%rdi), %r8
LBB0_5:
	testq	%r8, %r8
	jne	LBB0_8
## %bb.6:
	movq	32(%r13), %rax
	movq	_AUTO_PIN_HP_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	56(%r13), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	44(%r13), %eax
	movl	%eax, 48(%r13)
LBB0_8:
	cmpl	$0, 48(%r13)
	jle	LBB0_13
## %bb.9:
	xorl	%r14d, %r14d
	movq	_call_hp_automute@GOTPCREL(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	48(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rax
	movq	(%rax,%r14,8), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_is_jack_detectable
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_snd_printdd
	movq	_HDA_GEN_HP_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_jack_detect_enable_callback
	movl	$1, (%r13)
	jmp	LBB0_12
LBB0_13:
	movq	32(%r13), %rax
	movq	_AUTO_PIN_LINE_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.14:
	movl	44(%r13), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:
	cmpl	$0, 40(%r13)
	je	LBB0_21
## %bb.16:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	movq	_call_line_automute@GOTPCREL(%rip), %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	44(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_is_jack_detectable
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_snd_printdd
	movq	_HDA_GEN_FRONT_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_snd_hda_jack_detect_enable_callback
	movl	$1, 4(%r13)
	jmp	LBB0_20
LBB0_21:
	movl	(%r13), %eax
	movl	%eax, 8(%r13)
LBB0_22:
	cmpl	$0, 40(%r13)
	je	LBB0_23
## %bb.24:
	cmpl	$0, (%r13)
	je	LBB0_26
## %bb.25:
	movl	$1, 12(%r13)
	movl	8(%r13), %eax
	movl	%eax, 16(%r13)
	movl	$1, 20(%r13)
	jmp	LBB0_28
LBB0_23:
	movl	$0, 12(%r13)
	movl	8(%r13), %eax
	movl	%eax, 16(%r13)
	movl	$0, 20(%r13)
	jmp	LBB0_27
LBB0_26:
	xorl	%ecx, %ecx
	cmpl	$0, 4(%r13)
	setne	%cl
	movl	%ecx, 12(%r13)
	movl	8(%r13), %eax
	movl	%eax, 16(%r13)
	movl	%ecx, 20(%r13)
	jne	LBB0_28
LBB0_27:
	testl	%eax, %eax
	je	LBB0_29
LBB0_28:
	movq	%r12, %rdi
	callq	_add_automute_mode_enum
	testl	%eax, %eax
	js	LBB0_30
LBB0_29:
	xorl	%eax, %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_PIN_SPEAKER_OUT,8,3       ## @AUTO_PIN_SPEAKER_OUT
	.comm	_AUTO_PIN_HP_OUT,8,3            ## @AUTO_PIN_HP_OUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hda-codec: Enable HP auto-muting on NID 0x%x\n"

	.comm	_HDA_GEN_HP_EVENT,4,2           ## @HDA_GEN_HP_EVENT
	.comm	_call_hp_automute,4,2           ## @call_hp_automute
	.comm	_AUTO_PIN_LINE_OUT,8,3          ## @AUTO_PIN_LINE_OUT
L_.str.1:                               ## @.str.1
	.asciz	"hda-codec: Enable Line-Out auto-muting on NID 0x%x\n"

	.comm	_HDA_GEN_FRONT_EVENT,4,2        ## @HDA_GEN_FRONT_EVENT
	.comm	_call_line_automute,4,2         ## @call_line_automute
	.no_dead_strip	_check_auto_mute_availability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_auto_mute_availability
_check_auto_mute_availability:          ; @check_auto_mute_availability
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0]
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_29
; %bb.1:
	mov	x19, x0
	ldp	x1, x0, [x22, #56]
	ldr	x9, [x0]
	cmp	x9, #0
	cset	w8, ne
	ldr	x10, [x1]
	mov	w11, #1
	cinc	w11, w11, ne
	cmp	x10, #0
	csel	w11, w8, w11, eq
	ldr	x8, [x22, #72]
	ldr	x10, [x8]
	cmp	x10, #0
	cinc	w11, w11, ne
	cmp	w11, #2
	b.lo	LBB0_29
; %bb.2:
	cbnz	x10, LBB0_5
; %bb.3:
	ldr	x10, [x22, #32]
Lloh0:
	adrp	x11, _AUTO_PIN_SPEAKER_OUT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AUTO_PIN_SPEAKER_OUT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x8
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x22, #44]
	str	w8, [x22, #40]
	ldr	x0, [x22, #64]
	ldr	x9, [x0]
LBB0_5:
	cbnz	x9, LBB0_8
; %bb.6:
	ldr	x8, [x22, #32]
Lloh3:
	adrp	x9, _AUTO_PIN_HP_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTO_PIN_HP_OUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [x22, #56]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x22, #44]
	str	w8, [x22, #48]
LBB0_8:
	ldr	w8, [x22, #48]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x23, #0
Lloh6:
	adrp	x24, _HDA_GEN_HP_EVENT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _HDA_GEN_HP_EVENT@GOTPAGEOFF]
Lloh8:
	adrp	x25, _call_hp_automute@GOTPAGE
Lloh9:
	ldr	x25, [x25, _call_hp_automute@GOTPAGEOFF]
	mov	w26, #1
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22, #48]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #64]
	ldr	x21, [x8, x23, lsl #3]
	mov	x0, x19
	mov	x1, x21
	bl	_is_jack_detectable
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_snd_printdd
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_jack_detect_enable_callback
	str	w26, [x22]
	b	LBB0_10
LBB0_13:
	ldr	x8, [x22, #32]
Lloh12:
	adrp	x9, _AUTO_PIN_LINE_OUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AUTO_PIN_LINE_OUT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.14:
	ldr	w8, [x22, #44]
	cbz	w8, LBB0_22
; %bb.15:
	ldr	w9, [x22, #40]
	cbz	w9, LBB0_21
; %bb.16:
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	mov	x23, #0
Lloh15:
	adrp	x24, _HDA_GEN_FRONT_EVENT@GOTPAGE
Lloh16:
	ldr	x24, [x24, _HDA_GEN_FRONT_EVENT@GOTPAGEOFF]
Lloh17:
	adrp	x25, _call_line_automute@GOTPAGE
Lloh18:
	ldr	x25, [x25, _call_line_automute@GOTPAGEOFF]
	mov	w26, #1
Lloh19:
	adrp	x20, l_.str.1@PAGE
Lloh20:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22, #44]
	cmp	x23, x8
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #56]
	ldr	x21, [x8, x23, lsl #3]
	mov	x0, x19
	mov	x1, x21
	bl	_is_jack_detectable
	cbz	w0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_snd_printdd
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_jack_detect_enable_callback
	str	w26, [x22, #4]
	b	LBB0_18
LBB0_21:
	ldr	w8, [x22]
	str	w8, [x22, #8]
LBB0_22:
	ldr	w8, [x22, #40]
	cbz	w8, LBB0_25
; %bb.23:
	ldr	w8, [x22]
	cbz	w8, LBB0_26
; %bb.24:
	mov	w8, #1
	ldr	w9, [x22, #8]
	stp	w8, w9, [x22, #12]
	str	w8, [x22, #20]
	b	LBB0_28
LBB0_25:
	ldr	w8, [x22, #8]
	stp	wzr, w8, [x22, #12]
	str	wzr, [x22, #20]
	b	LBB0_27
LBB0_26:
	ldp	w9, w8, [x22, #4]
	cmp	w9, #0
	cset	w10, ne
	stp	w10, w8, [x22, #12]
	str	w10, [x22, #20]
	cbnz	w9, LBB0_28
LBB0_27:
	cbz	w8, LBB0_29
LBB0_28:
	mov	x0, x19
	bl	_add_automute_mode_enum
	tbnz	w0, #31, LBB0_30
LBB0_29:
	mov	w0, #0
LBB0_30:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_PIN_SPEAKER_OUT,8,3       ; @AUTO_PIN_SPEAKER_OUT
	.comm	_AUTO_PIN_HP_OUT,8,3            ; @AUTO_PIN_HP_OUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hda-codec: Enable HP auto-muting on NID 0x%x\n"

	.comm	_HDA_GEN_HP_EVENT,4,2           ; @HDA_GEN_HP_EVENT
	.comm	_call_hp_automute,4,2           ; @call_hp_automute
	.comm	_AUTO_PIN_LINE_OUT,8,3          ; @AUTO_PIN_LINE_OUT
l_.str.1:                               ; @.str.1
	.asciz	"hda-codec: Enable Line-Out auto-muting on NID 0x%x\n"

	.comm	_HDA_GEN_FRONT_EVENT,4,2        ; @HDA_GEN_FRONT_EVENT
	.comm	_call_line_automute,4,2         ; @call_line_automute
	.no_dead_strip	_check_auto_mute_availability
.subsections_via_symbols
