	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auto_mic_check_imux
_auto_mic_check_imux:                   ## @auto_mic_check_imux
	.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), %r12
	movl	$1, %r14d
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	8(%r12), %rcx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rcx,%rbx), %edi
	movl	16(%r12), %esi
	movl	20(%r12), %edx
	callq	_find_idx_in_nid_list
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	js	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
## %bb.4:
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.5:
	movl	$1, %r13d
	movl	$24, %ebx
	movq	_call_mic_autoswitch@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx), %esi
	movq	_HDA_GEN_MIC_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	callq	_snd_hda_jack_detect_enable_callback
	incq	%r13
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_6
## %bb.7:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_9:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_GEN_MIC_EVENT,4,2          ## @HDA_GEN_MIC_EVENT
	.comm	_call_mic_autoswitch,4,2        ## @call_mic_autoswitch
	.no_dead_strip	_auto_mic_check_imux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auto_mic_check_imux
_auto_mic_check_imux:                   ; @auto_mic_check_imux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	ldp	w1, w2, [x20, #16]
	bl	_find_idx_in_nid_list
	ldr	x8, [x20, #8]
	str	x0, [x8, x21]
	tbnz	x0, #63, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #16
	cmp	x22, x9
	b.lt	LBB0_2
; %bb.4:
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #1
	mov	w22, #24
Lloh0:
	adrp	x23, _HDA_GEN_MIC_EVENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HDA_GEN_MIC_EVENT@GOTPAGEOFF]
Lloh2:
	adrp	x24, _call_mic_autoswitch@GOTPAGE
Lloh3:
	ldr	x24, [x24, _call_mic_autoswitch@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x22]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_snd_hda_jack_detect_enable_callback
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #16
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_GEN_MIC_EVENT,4,2          ; @HDA_GEN_MIC_EVENT
	.comm	_call_mic_autoswitch,4,2        ; @call_mic_autoswitch
	.no_dead_strip	_auto_mic_check_imux
.subsections_via_symbols
