	.file	"extr_rt5668.c_rt5668_set_jack_detect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Wrong JD source\n"
	.text
	.p2align 4
	.type	rt5668_set_jack_detect, @function
rt5668_set_jack_detect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	snd_soc_component_get_drvdata@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L3
	mov	ecx, DWORD PTR RT5668_EXT_JD_SRC_MANUAL[rip]
	mov	edx, DWORD PTR RT5668_EXT_JD_SRC[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR RT5668_CBJ_CTRL_2[rip]
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR RT5668_CBJ_CTRL_1[rip]
	mov	rdi, rbp
	mov	edx, 53250
	call	snd_soc_component_write@PLT
	mov	edx, DWORD PTR RT5668_CBJ_IN_BUF_EN[rip]
	mov	esi, DWORD PTR RT5668_CBJ_CTRL_3[rip]
	mov	rdi, rbp
	mov	ecx, edx
	call	snd_soc_component_update_bits@PLT
	mov	ecx, DWORD PTR RT5668_SAR_POW_EN[rip]
	mov	edx, DWORD PTR RT5668_SAR_POW_MASK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR RT5668_SAR_IL_CMD_1[rip]
	call	snd_soc_component_update_bits@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR RT5668_GP1_PIN_IRQ[rip]
	mov	edx, DWORD PTR RT5668_GP1_PIN_MASK[rip]
	mov	esi, DWORD PTR RT5668_GPIO_CTRL_1[rip]
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR RT5668_POW_IRQ[rip]
	mov	esi, DWORD PTR RT5668_RC_CLK_CTRL[rip]
	or	edx, DWORD PTR RT5668_POW_JDH[rip]
	or	edx, DWORD PTR RT5668_POW_ANA[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR RT5668_PWR_JDH[rip]
	mov	esi, DWORD PTR RT5668_PWR_ANLG_2[rip]
	or	edx, DWORD PTR RT5668_PWR_JDL[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR RT5668_IRQ_CTRL_2[rip]
	mov	ecx, DWORD PTR RT5668_JD1_EN[rip]
	mov	edx, DWORD PTR RT5668_JD1_EN_MASK[rip]
	or	ecx, DWORD PTR RT5668_JD1_POL_NOR[rip]
	or	edx, DWORD PTR RT5668_JD1_POL_MASK[rip]
	call	regmap_update_bits@PLT
	mov	edi, 250
	call	msecs_to_jiffies@PLT
	mov	edi, DWORD PTR system_power_efficient_wq[rip]
	lea	rsi, 12[rbx]
	mov	edx, eax
	call	mod_delayed_work@PLT
	mov	QWORD PTR [rbx], r12
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR RT5668_JD1_DIS[rip]
	mov	edx, DWORD PTR RT5668_JD1_EN_MASK[rip]
	mov	esi, DWORD PTR RT5668_IRQ_CTRL_2[rip]
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR RT5668_RC_CLK_CTRL[rip]
	xor	ecx, ecx
	mov	edx, DWORD PTR RT5668_POW_JDH[rip]
	or	edx, DWORD PTR RT5668_POW_JDL[rip]
	call	regmap_update_bits@PLT
	mov	QWORD PTR [rbx], r12
	xor	eax, eax
	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
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	QWORD PTR [rbx], r12
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rt5668_set_jack_detect, .-rt5668_set_jack_detect
	.comm	system_power_efficient_wq,4,4
	.comm	RT5668_SAR_POW_MASK,4,4
	.comm	RT5668_SAR_POW_EN,4,4
	.comm	RT5668_SAR_IL_CMD_1,4,4
	.comm	RT5668_RC_CLK_CTRL,4,4
	.comm	RT5668_PWR_JDL,4,4
	.comm	RT5668_PWR_JDH,4,4
	.comm	RT5668_PWR_ANLG_2,4,4
	.comm	RT5668_POW_JDL,4,4
	.comm	RT5668_POW_JDH,4,4
	.comm	RT5668_POW_IRQ,4,4
	.comm	RT5668_POW_ANA,4,4
	.comm	RT5668_JD1_POL_NOR,4,4
	.comm	RT5668_JD1_POL_MASK,4,4
	.comm	RT5668_JD1_EN_MASK,4,4
	.comm	RT5668_JD1_EN,4,4
	.comm	RT5668_JD1_DIS,4,4
	.comm	RT5668_IRQ_CTRL_2,4,4
	.comm	RT5668_GPIO_CTRL_1,4,4
	.comm	RT5668_GP1_PIN_MASK,4,4
	.comm	RT5668_GP1_PIN_IRQ,4,4
	.comm	RT5668_EXT_JD_SRC_MANUAL,4,4
	.comm	RT5668_EXT_JD_SRC,4,4
	.comm	RT5668_CBJ_IN_BUF_EN,4,4
	.comm	RT5668_CBJ_CTRL_3,4,4
	.comm	RT5668_CBJ_CTRL_2,4,4
	.comm	RT5668_CBJ_CTRL_1,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_rt5668.c_rt5668_set_jack_detect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wrong JD source\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt5668_set_jack_detect, %function
rt5668_set_jack_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r5, r0
	bl	snd_soc_component_get_drvdata
	ldr	r3, [r0, #12]
	mov	r4, r0
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	bne	.L3
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r1, .L7+8
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	snd_soc_component_update_bits
	ldr	r3, .L7+12
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L7+16
	bl	snd_soc_component_write
	ldr	r3, .L7+20
	ldr	r2, .L7+24
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, r3
	bl	snd_soc_component_update_bits
	ldr	r3, .L7+28
	ldr	r2, .L7+32
	ldr	r1, .L7+36
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	snd_soc_component_update_bits
	ldr	r3, .L7+40
	ldr	r2, .L7+44
	ldr	r1, .L7+48
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r4, #4]
	bl	regmap_update_bits
	ldr	r3, .L7+52
	ldr	r1, .L7+56
	ldr	r2, .L7+60
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L7+64
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r1, [r1]
	ldr	r0, [r4, #4]
	bl	regmap_update_bits
	ldr	r3, .L7+68
	ldr	r2, .L7+72
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L7+76
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r1, [r1]
	ldr	r0, [r4, #4]
	bl	regmap_update_bits
	ldr	r0, .L7+80
	ldr	r1, .L7+84
	ldr	r3, .L7+88
	ldr	r2, .L7+92
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L7+96
	orr	r2, r0, r2
	ldr	r1, [r1]
	orr	r3, ip, r3
	ldr	r0, [r4, #4]
	bl	regmap_update_bits
	ldr	r3, .L7+100
	mov	r0, #250
	ldr	r5, [r3]
	bl	msecs_to_jiffies
	add	r1, r4, #8
	mov	r2, r0
	mov	r0, r5
	bl	mod_delayed_work
.L4:
	mov	r0, #0
	str	r6, [r4]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L7+104
	ldr	r2, .L7+84
	ldr	r1, .L7+96
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0, #4]
	bl	regmap_update_bits
	ldr	r2, .L7+56
	ldr	r3, .L7+108
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+64
	orr	r2, r1, r2
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	mov	r3, #0
	bl	regmap_update_bits
	b	.L4
.L3:
	ldr	r0, [r5]
	ldr	r1, .L7+112
	bl	dev_warn
	b	.L4
.L8:
	.align	2
.L7:
	.word	RT5668_EXT_JD_SRC_MANUAL
	.word	RT5668_EXT_JD_SRC
	.word	RT5668_CBJ_CTRL_2
	.word	RT5668_CBJ_CTRL_1
	.word	53250
	.word	RT5668_CBJ_IN_BUF_EN
	.word	RT5668_CBJ_CTRL_3
	.word	RT5668_SAR_POW_EN
	.word	RT5668_SAR_POW_MASK
	.word	RT5668_SAR_IL_CMD_1
	.word	RT5668_GP1_PIN_IRQ
	.word	RT5668_GP1_PIN_MASK
	.word	RT5668_GPIO_CTRL_1
	.word	RT5668_POW_IRQ
	.word	RT5668_POW_JDH
	.word	RT5668_POW_ANA
	.word	RT5668_RC_CLK_CTRL
	.word	RT5668_PWR_JDH
	.word	RT5668_PWR_JDL
	.word	RT5668_PWR_ANLG_2
	.word	RT5668_JD1_EN
	.word	RT5668_JD1_EN_MASK
	.word	RT5668_JD1_POL_NOR
	.word	RT5668_JD1_POL_MASK
	.word	RT5668_IRQ_CTRL_2
	.word	system_power_efficient_wq
	.word	RT5668_JD1_DIS
	.word	RT5668_POW_JDL
	.word	.LC0
	.size	rt5668_set_jack_detect, .-rt5668_set_jack_detect
	.comm	system_power_efficient_wq,4,4
	.comm	RT5668_SAR_POW_MASK,4,4
	.comm	RT5668_SAR_POW_EN,4,4
	.comm	RT5668_SAR_IL_CMD_1,4,4
	.comm	RT5668_RC_CLK_CTRL,4,4
	.comm	RT5668_PWR_JDL,4,4
	.comm	RT5668_PWR_JDH,4,4
	.comm	RT5668_PWR_ANLG_2,4,4
	.comm	RT5668_POW_JDL,4,4
	.comm	RT5668_POW_JDH,4,4
	.comm	RT5668_POW_IRQ,4,4
	.comm	RT5668_POW_ANA,4,4
	.comm	RT5668_JD1_POL_NOR,4,4
	.comm	RT5668_JD1_POL_MASK,4,4
	.comm	RT5668_JD1_EN_MASK,4,4
	.comm	RT5668_JD1_EN,4,4
	.comm	RT5668_JD1_DIS,4,4
	.comm	RT5668_IRQ_CTRL_2,4,4
	.comm	RT5668_GPIO_CTRL_1,4,4
	.comm	RT5668_GP1_PIN_MASK,4,4
	.comm	RT5668_GP1_PIN_IRQ,4,4
	.comm	RT5668_EXT_JD_SRC_MANUAL,4,4
	.comm	RT5668_EXT_JD_SRC,4,4
	.comm	RT5668_CBJ_IN_BUF_EN,4,4
	.comm	RT5668_CBJ_CTRL_3,4,4
	.comm	RT5668_CBJ_CTRL_2,4,4
	.comm	RT5668_CBJ_CTRL_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
