	.file	"extr_bytcht_es8316.c_byt_cht_es8316_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unable to set MCLK rate\n"
.LC1:
	.string	"unable to enable MCLK\n"
.LC2:
	.string	"can't set codec clock %d\n"
.LC3:
	.string	"Headset"
.LC4:
	.string	"jack creation failed %d\n"
	.text
	.p2align 4
	.type	byt_cht_es8316_init, @function
byt_cht_es8316_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rdi]
	mov	rdi, r13
	mov	r14, QWORD PTR [rax]
	call	snd_soc_card_get_drvdata@PLT
	mov	DWORD PTR 4[r13], 1
	mov	edi, DWORD PTR quirk[rip]
	mov	rbp, rax
	call	BYT_CHT_ES8316_MAP@PLT
	cmp	eax, 128
	je	.L2
	mov	r12, QWORD PTR byt_cht_es8316_intmic_in1_map[rip]
	mov	rdi, r12
	call	ARRAY_SIZE@PLT
	mov	edx, eax
.L3:
	lea	r15, 4[r13]
	mov	rsi, r12
	mov	rdi, r15
	call	snd_soc_dapm_add_routes@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR quirk[rip]
	test	DWORD PTR BYT_CHT_ES8316_SSP0[rip], eax
	jne	.L20
	mov	r12, QWORD PTR byt_cht_es8316_ssp2_map[rip]
	mov	rdi, r12
	call	ARRAY_SIZE@PLT
	mov	edx, eax
.L6:
	mov	rsi, r12
	mov	rdi, r15
	call	snd_soc_dapm_add_routes@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 4[rbp]
	call	clk_prepare_enable@PLT
	test	eax, eax
	je	.L21
.L7:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, 19200000
	call	clk_set_rate@PLT
	test	eax, eax
	jne	.L22
.L8:
	mov	edi, DWORD PTR 4[rbp]
	call	clk_prepare_enable@PLT
	test	eax, eax
	jne	.L23
.L9:
	mov	ecx, DWORD PTR SND_SOC_CLOCK_IN[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	edx, 19200000
	xor	esi, esi
	call	snd_soc_dai_set_sysclk@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L24
	mov	rdi, QWORD PTR byt_cht_es8316_jack_pins[rip]
	call	ARRAY_SIZE@PLT
	mov	r8, QWORD PTR byt_cht_es8316_jack_pins[rip]
	mov	rcx, rbp
	mov	edx, DWORD PTR SND_JACK_HEADSET[rip]
	mov	r9d, eax
	or	edx, DWORD PTR SND_JACK_BTN_0[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	snd_soc_card_jack_new@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L25
	mov	edx, DWORD PTR KEY_PLAYPAUSE[rip]
	mov	esi, DWORD PTR SND_JACK_BTN_0[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	snd_jack_set_key@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r14
	call	snd_soc_component_set_jack@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	r12, QWORD PTR byt_cht_es8316_ssp0_map[rip]
	mov	rdi, r12
	call	ARRAY_SIZE@PLT
	mov	edx, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12, QWORD PTR byt_cht_es8316_intmic_in2_map[rip]
	mov	rdi, r12
	call	ARRAY_SIZE@PLT
	mov	edx, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 0[r13]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR 4[rbp]
	call	clk_disable_unprepare@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 0[r13]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	byt_cht_es8316_init, .-byt_cht_es8316_init
	.comm	quirk,4,4
	.comm	byt_cht_es8316_ssp2_map,8,8
	.comm	byt_cht_es8316_ssp0_map,8,8
	.comm	byt_cht_es8316_jack_pins,8,8
	.comm	byt_cht_es8316_intmic_in2_map,8,8
	.comm	byt_cht_es8316_intmic_in1_map,8,8
	.comm	SND_SOC_CLOCK_IN,4,4
	.comm	SND_JACK_HEADSET,4,4
	.comm	SND_JACK_BTN_0,4,4
	.comm	KEY_PLAYPAUSE,4,4
	.comm	BYT_CHT_ES8316_SSP0,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_bytcht_es8316.c_byt_cht_es8316_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to set MCLK rate\012\000"
	.align	2
.LC1:
	.ascii	"unable to enable MCLK\012\000"
	.align	2
.LC2:
	.ascii	"can't set codec clock %d\012\000"
	.align	2
.LC3:
	.ascii	"Headset\000"
	.align	2
.LC4:
	.ascii	"jack creation failed %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	byt_cht_es8316_init, %function
byt_cht_es8316_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r3, r6}
	sub	sp, sp, #8
	mov	r8, r0
	mov	r0, r6
	ldr	r7, [r3]
	bl	snd_soc_card_get_drvdata
	mov	r3, #1
	ldr	r9, .L26
	str	r3, [r6, #4]
	mov	r5, r0
	ldr	r0, [r9]
	bl	BYT_CHT_ES8316_MAP
	cmp	r0, #128
	ldrne	r3, .L26+4
	ldreq	r3, .L26+8
	add	r10, r6, #4
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r10
	bl	snd_soc_dapm_add_routes
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L26+12
	ldr	r2, [r9]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L26+16
	ldreq	r3, .L26+20
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r10
	bl	snd_soc_dapm_add_routes
	subs	r4, r0, #0
	beq	.L20
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	ldr	r0, [r5, #4]
	bl	clk_prepare_enable
	cmp	r0, #0
	beq	.L21
.L7:
	ldr	r1, .L26+24
	ldr	r0, [r5, #4]
	bl	clk_set_rate
	cmp	r0, #0
	bne	.L22
.L8:
	ldr	r0, [r5, #4]
	bl	clk_prepare_enable
	cmp	r0, #0
	bne	.L23
.L9:
	ldr	r3, .L26+28
	mov	r1, #0
	ldr	r0, [r8]
	ldr	r3, [r3]
	ldr	r2, .L26+24
	bl	snd_soc_dai_set_sysclk
	subs	r4, r0, #0
	blt	.L24
	ldr	r2, .L26+32
	ldr	r3, .L26+36
	ldr	r8, .L26+40
	ldr	r9, [r2]
	ldr	r4, [r3]
	ldr	r2, [r8]
	mov	r0, r9
	orr	r4, r4, r2
	bl	ARRAY_SIZE
	mov	r2, r4
	str	r0, [sp, #4]
	mov	r3, r5
	mov	r0, r6
	ldr	r1, .L26+44
	str	r9, [sp]
	bl	snd_soc_card_jack_new
	subs	r4, r0, #0
	bne	.L25
	ldr	r3, .L26+48
	ldr	r1, [r8]
	ldr	r2, [r3]
	ldr	r0, [r5]
	bl	snd_jack_set_key
	mov	r2, r4
	mov	r1, r5
	mov	r0, r7
	bl	snd_soc_component_set_jack
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L26+52
	bl	dev_err
	b	.L1
.L23:
	ldr	r1, .L26+56
	ldr	r0, [r6]
	bl	dev_err
	b	.L9
.L22:
	ldr	r1, .L26+60
	ldr	r0, [r6]
	bl	dev_err
	b	.L8
.L21:
	ldr	r0, [r5, #4]
	bl	clk_disable_unprepare
	b	.L7
.L24:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L26+64
	bl	dev_err
	b	.L1
.L27:
	.align	2
.L26:
	.word	quirk
	.word	byt_cht_es8316_intmic_in1_map
	.word	byt_cht_es8316_intmic_in2_map
	.word	BYT_CHT_ES8316_SSP0
	.word	byt_cht_es8316_ssp0_map
	.word	byt_cht_es8316_ssp2_map
	.word	19200000
	.word	SND_SOC_CLOCK_IN
	.word	byt_cht_es8316_jack_pins
	.word	SND_JACK_HEADSET
	.word	SND_JACK_BTN_0
	.word	.LC3
	.word	KEY_PLAYPAUSE
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	byt_cht_es8316_init, .-byt_cht_es8316_init
	.comm	quirk,4,4
	.comm	byt_cht_es8316_ssp2_map,4,4
	.comm	byt_cht_es8316_ssp0_map,4,4
	.comm	byt_cht_es8316_jack_pins,4,4
	.comm	byt_cht_es8316_intmic_in2_map,4,4
	.comm	byt_cht_es8316_intmic_in1_map,4,4
	.comm	SND_SOC_CLOCK_IN,4,4
	.comm	SND_JACK_HEADSET,4,4
	.comm	SND_JACK_BTN_0,4,4
	.comm	KEY_PLAYPAUSE,4,4
	.comm	BYT_CHT_ES8316_SSP0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
