	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alc_inv_dmic_sync_adc
_alc_inv_dmic_sync_adc:                 ## @alc_inv_dmic_sync_adc
	.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), %rcx
	movl	16(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r13
	movq	(%rcx), %rbx
	movq	8(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%rdx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
	jmp	LBB0_6
LBB0_4:
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_get_adc_nid
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_snd_hda_get_nid_path
	movq	(%rax), %rax
	movq	_NID_PATH_MUTE_CTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_get_amp_nid_
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_get_amp_direction_
	movl	%eax, %r12d
	movq	_AC_AMP_SET_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_AC_AMP_SET_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_AC_AMP_SET_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_snd_hda_codec_flush_cache
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_amp_read
	testb	$-128, %al
	jne	LBB0_6
## %bb.7:
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	cmovel	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_AC_VERB_SET_AMP_GAIN_MUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ebx, %r15d
	orl	%eax, %r15d
	orl	$128, %r15d
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_write            ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_PATH_MUTE_CTL,8,3          ## @NID_PATH_MUTE_CTL
	.comm	_AC_AMP_SET_RIGHT,4,2           ## @AC_AMP_SET_RIGHT
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_AC_AMP_SET_OUTPUT,4,2          ## @AC_AMP_SET_OUTPUT
	.comm	_AC_AMP_SET_INPUT,4,2           ## @AC_AMP_SET_INPUT
	.comm	_AC_VERB_SET_AMP_GAIN_MUTE,4,2  ## @AC_VERB_SET_AMP_GAIN_MUTE
	.no_dead_strip	_alc_inv_dmic_sync_adc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alc_inv_dmic_sync_adc
_alc_inv_dmic_sync_adc:                 ; @alc_inv_dmic_sync_adc
	.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	x10, [x0]
	ldr	w8, [x10, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x2, #0
	ldp	x20, x9, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x2, lsl #3]
	cmp	x10, x20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x2, x2, #1
	cmp	x8, x2
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_get_adc_nid
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_get_nid_path
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NID_PATH_MUTE_CTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NID_PATH_MUTE_CTL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
	cbz	w21, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_get_amp_nid_
	mov	x20, x0
	mov	x0, x21
	bl	_get_amp_direction_
	mov	x21, x0
Lloh3:
	adrp	x8, _AC_AMP_SET_RIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_AMP_SET_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _AC_AMP_SET_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_AMP_SET_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x8, _AC_AMP_SET_INPUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC_AMP_SET_INPUT@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	mov	x0, x19
	bl	_snd_hda_codec_flush_cache
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #0
	bl	_snd_hda_codec_amp_read
	tbnz	w0, #7, LBB0_7
; %bb.6:
	cmp	w21, w23
	csel	w8, w24, w25, eq
Lloh15:
	adrp	x9, _AC_VERB_SET_AMP_GAIN_MUTE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC_VERB_SET_AMP_GAIN_MUTE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x9]
	orr	w8, w22, w8
	orr	w8, w8, w0
	orr	w4, w8, #0x80
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	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
	b	_snd_hda_codec_write
LBB0_7:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_PATH_MUTE_CTL,8,3          ; @NID_PATH_MUTE_CTL
	.comm	_AC_AMP_SET_RIGHT,4,2           ; @AC_AMP_SET_RIGHT
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_AC_AMP_SET_OUTPUT,4,2          ; @AC_AMP_SET_OUTPUT
	.comm	_AC_AMP_SET_INPUT,4,2           ; @AC_AMP_SET_INPUT
	.comm	_AC_VERB_SET_AMP_GAIN_MUTE,4,2  ; @AC_VERB_SET_AMP_GAIN_MUTE
	.no_dead_strip	_alc_inv_dmic_sync_adc
.subsections_via_symbols
