	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxt5051_portc_automic
_cxt5051_portc_automic:                 ## @cxt5051_portc_automic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_AUTO_MIC_PORTC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movl	$24, %esi
	callq	_snd_hda_jack_detect
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax,%rcx,8), %r14
	cmpq	%r14, %rsi
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %edx
	callq	___snd_hda_codec_cleanup_stream
	movq	%r14, 16(%rbx)
	movl	24(%rbx), %r8d
	movl	28(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_setup_stream     ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_MIC_PORTC,4,2             ## @AUTO_MIC_PORTC
	.no_dead_strip	_cxt5051_portc_automic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxt5051_portc_automic
_cxt5051_portc_automic:                 ; @cxt5051_portc_automic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _AUTO_MIC_PORTC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTO_MIC_PORTC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	mov	w1, #24
	bl	_snd_hda_jack_detect
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x21, #4]
	ldp	x9, x1, [x21, #8]
	ldr	x20, [x9, w8, uxtw #3]
	cmp	x1, #0
	ccmp	x1, x20, #4, ne
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	mov	w2, #1
	bl	___snd_hda_codec_cleanup_stream
	str	x20, [x21, #16]
	ldp	w4, w2, [x21, #24]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_hda_codec_setup_stream
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_MIC_PORTC,4,2             ; @AUTO_MIC_PORTC
	.no_dead_strip	_cxt5051_portc_automic
.subsections_via_symbols
