	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_automute
_do_automute:                           ## @do_automute
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r13
	movq	(%rdi), %r14
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	orq	(%r14), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, (%r14)
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_set_pin_eapd
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%r14)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shlq	%cl, %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	notq	%rax
	andq	(%r14), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_codec_get_pin_target
	movq	_PIN_IN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_PIN_HP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpq	$0, 8(%r14)
	movl	$0, %ecx
	cmovel	%ecx, %edx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%eax, %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_update_pin_ctl
	jmp	LBB0_4
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_IN,4,2                     ## @PIN_IN
	.comm	_PIN_HP,4,2                     ## @PIN_HP
	.no_dead_strip	_do_automute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_automute
_do_automute:                           ; @do_automute
	.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
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x24, [x0]
	cmp	w3, #0
	cset	w22, eq
	mov	w25, w1
Lloh0:
	adrp	x26, _PIN_IN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PIN_IN@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PIN_HP@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PIN_HP@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x24]
	orr	x8, x9, x8
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_set_pin_eapd
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #8
	subs	x25, x25, #1
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x20]
	cbz	x23, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	x8, x28, x23
	cbnz	w19, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x24]
	bic	x8, x9, x8
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_snd_hda_codec_get_pin_target
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #8]
	ldr	w9, [x27]
	bic	w9, w0, w9
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	cmp	w19, #0
	csel	w2, w0, w8, eq
	mov	x0, x21
	mov	x1, x23
	bl	_update_pin_ctl
	b	LBB0_4
LBB0_12:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_IN,4,2                     ; @PIN_IN
	.comm	_PIN_HP,4,2                     ; @PIN_HP
	.no_dead_strip	_do_automute
.subsections_via_symbols
