	.file	"extr_rt5670.c_rt5670_set_jack_detect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"headset"
.LC1:
	.string	"Adding jack GPIO failed\n"
	.text
	.p2align 4
	.globl	rt5670_set_jack_detect
	.type	rt5670_set_jack_detect, @function
rt5670_set_jack_detect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	snd_soc_component_get_drvdata@PLT
	mov	rdi, r12
	mov	esi, 1
	mov	QWORD PTR 40[rax], r12
	mov	rdx, rax
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 24[rdx], rdx
	mov	DWORD PTR 32[rdx], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR SND_JACK_HEADSET[rip]
	or	eax, DWORD PTR SND_JACK_BTN_0[rip]
	or	eax, DWORD PTR SND_JACK_BTN_1[rip]
	or	eax, DWORD PTR SND_JACK_BTN_2[rip]
	mov	DWORD PTR 8[rdx], eax
	movabs	rax, 4294967446
	mov	QWORD PTR 12[rdx], rax
	mov	eax, DWORD PTR rt5670_irq_detection[rip]
	mov	DWORD PTR 20[rdx], eax
	call	snd_soc_jack_add_gpios@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rt5670_set_jack_detect, .-rt5670_set_jack_detect
	.comm	rt5670_irq_detection,4,4
	.comm	SND_JACK_HEADSET,4,4
	.comm	SND_JACK_BTN_2,4,4
	.comm	SND_JACK_BTN_1,4,4
	.comm	SND_JACK_BTN_0,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_rt5670.c_rt5670_set_jack_detect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"headset\000"
	.align	2
.LC1:
	.ascii	"Adding jack GPIO failed\012\000"
	.text
	.align	2
	.global	rt5670_set_jack_detect
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt5670_set_jack_detect, %function
rt5670_set_jack_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	snd_soc_component_get_drvdata
	mov	r2, r0
	mov	lr, #150
	mov	r1, #1
	ldr	r3, .L9
	ldr	r0, .L9+4
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r6, [r5]
	orr	r3, r3, r0
	ldr	r0, .L9+8
	str	r4, [r2, #28]
	ldr	ip, [r0]
	mov	r0, r4
	orr	r3, r3, ip
	ldr	ip, .L9+12
	ldr	r4, .L9+16
	ldr	ip, [ip]
	str	r6, [r2, #24]
	orr	r3, r3, ip
	ldr	ip, .L9+20
	stmib	r2, {r3, lr}
	ldr	ip, [ip]
	str	r2, [r2, #20]
	str	r4, [r2]
	str	ip, [r2, #16]
	str	r1, [r2, #12]
	bl	snd_soc_jack_add_gpios
	subs	r4, r0, #0
	bne	.L8
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, [r5]
	ldr	r1, .L9+24
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	SND_JACK_HEADSET
	.word	SND_JACK_BTN_0
	.word	SND_JACK_BTN_1
	.word	SND_JACK_BTN_2
	.word	.LC0
	.word	rt5670_irq_detection
	.word	.LC1
	.size	rt5670_set_jack_detect, .-rt5670_set_jack_detect
	.comm	rt5670_irq_detection,4,4
	.comm	SND_JACK_HEADSET,4,4
	.comm	SND_JACK_BTN_2,4,4
	.comm	SND_JACK_BTN_1,4,4
	.comm	SND_JACK_BTN_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
