	.file	"extr_patch_conexant.c_cxt5051_portc_automic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cxt5051_portc_automic, @function
cxt5051_portc_automic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR AUTO_MIC_PORTC[rip], eax
	jne	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, 24
	mov	rbp, rdi
	call	snd_hda_jack_detect@PLT
	mov	rsi, QWORD PTR 16[rbx]
	test	eax, eax
	setne	al
	setne	dl
	movzx	eax, al
	movzx	edx, dl
	mov	DWORD PTR 4[rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	r12, QWORD PTR [rax+rdx*8]
	cmp	rsi, r12
	je	.L1
	test	rsi, rsi
	je	.L1
	mov	rdi, rbp
	mov	edx, 1
	call	__snd_hda_codec_cleanup_stream@PLT
	mov	QWORD PTR 16[rbx], r12
	mov	edx, DWORD PTR 28[rbx]
	mov	rsi, r12
	mov	r8d, DWORD PTR 24[rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	ecx, ecx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	snd_hda_codec_setup_stream@PLT
	.cfi_endproc
.LFE0:
	.size	cxt5051_portc_automic, .-cxt5051_portc_automic
	.comm	AUTO_MIC_PORTC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_patch_conexant.c_cxt5051_portc_automic.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxt5051_portc_automic, %function
cxt5051_portc_automic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	ldr	r5, [r0]
	ldr	r3, [r3]
	ldr	r2, [r5]
	sub	sp, sp, #8
	tst	r2, r3
	bne	.L10
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, #24
	mov	r4, r0
	bl	snd_hda_jack_detect
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, [r5, #8]
	ldr	r1, [r5, #12]
	ldr	r6, [r3, r0, lsl #2]
	str	r0, [r5, #4]
	cmp	r1, r6
	cmpne	r1, #0
	beq	.L1
	mov	r2, #1
	mov	r0, r4
	bl	__snd_hda_codec_cleanup_stream
	ldr	r3, [r5, #16]
	ldr	r2, [r5, #20]
	str	r6, [r5, #12]
	mov	r1, r6
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #0
	bl	snd_hda_codec_setup_stream
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	AUTO_MIC_PORTC
	.size	cxt5051_portc_automic, .-cxt5051_portc_automic
	.comm	AUTO_MIC_PORTC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
