	.file	"extr_rt5659.c_rt5659_set_dai_fmt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid dai->id: %d\n"
	.text
	.p2align 4
	.type	rt5659_set_dai_fmt, @function
rt5659_set_dai_fmt:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	mov	ebx, esi
	mov	rdi, r12
	call	snd_soc_component_get_drvdata@PLT
	mov	edx, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	and	edx, ebx
	cmp	edx, 134
	je	.L2
	cmp	edx, 135
	jne	.L26
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	eax, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	and	eax, ebx
	cmp	eax, 128
	je	.L6
.L29:
	cmp	eax, 130
	jne	.L26
	or	ecx, DWORD PTR RT5659_I2S_BP_INV[rip]
.L6:
	and	ebx, DWORD PTR SND_SOC_DAIFMT_FORMAT_MASK[rip]
	cmp	ebx, 132
	je	.L8
	ja	.L9
	cmp	ebx, 129
	je	.L10
	cmp	ebx, 131
	jne	.L26
.L11:
	cmp	rdx, 137
	je	.L13
	cmp	rdx, 138
	je	.L14
	cmp	rdx, 136
	je	.L28
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.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
.L9:
	.cfi_restore_state
	or	ecx, DWORD PTR RT5659_I2S_DF_PCM_A[rip]
	cmp	ebx, 133
	je	.L11
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR RT5659_I2S_MS_S[rip]
	mov	DWORD PTR [rax+rdx*4], 0
	mov	eax, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	and	eax, ebx
	cmp	eax, 128
	jne	.L29
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	or	ecx, DWORD PTR RT5659_I2S_DF_PCM_B[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, DWORD PTR RT5659_I2S3_SDP[rip]
	mov	edx, DWORD PTR RT5659_I2S_MS_MASK[rip]
	mov	rdi, r12
	or	edx, DWORD PTR RT5659_I2S_BP_MASK[rip]
	or	edx, DWORD PTR RT5659_I2S_DF_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR RT5659_I2S1_SDP[rip]
	mov	edx, DWORD PTR RT5659_I2S_MS_MASK[rip]
	mov	rdi, r12
	or	edx, DWORD PTR RT5659_I2S_BP_MASK[rip]
	or	edx, DWORD PTR RT5659_I2S_DF_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR RT5659_I2S2_SDP[rip]
	mov	edx, DWORD PTR RT5659_I2S_MS_MASK[rip]
	mov	rdi, r12
	or	edx, DWORD PTR RT5659_I2S_BP_MASK[rip]
	or	edx, DWORD PTR RT5659_I2S_DF_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	or	ecx, DWORD PTR RT5659_I2S_DF_LEFT[rip]
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	rt5659_set_dai_fmt, .-rt5659_set_dai_fmt
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	SND_SOC_DAIFMT_INV_MASK,4,4
	.comm	SND_SOC_DAIFMT_FORMAT_MASK,4,4
	.comm	RT5659_I2S_MS_S,4,4
	.comm	RT5659_I2S_MS_MASK,4,4
	.comm	RT5659_I2S_DF_PCM_B,4,4
	.comm	RT5659_I2S_DF_PCM_A,4,4
	.comm	RT5659_I2S_DF_MASK,4,4
	.comm	RT5659_I2S_DF_LEFT,4,4
	.comm	RT5659_I2S_BP_MASK,4,4
	.comm	RT5659_I2S_BP_INV,4,4
	.comm	RT5659_I2S3_SDP,4,4
	.comm	RT5659_I2S2_SDP,4,4
	.comm	RT5659_I2S1_SDP,4,4
	.comm	EINVAL,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_rt5659.c_rt5659_set_dai_fmt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid dai->id: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt5659_set_dai_fmt, %function
rt5659_set_dai_fmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r6, [r0, #4]
	mov	r5, r0
	mov	r0, r6
	bl	snd_soc_component_get_drvdata
	ldr	r3, .L26
	ldr	r3, [r3]
	and	r3, r3, r4
	cmp	r3, #134
	beq	.L2
	cmp	r3, #135
	bne	.L22
	mov	ip, #1
	mov	r3, #0
	ldr	r2, [r5]
	ldr	r1, [r0]
	str	ip, [r1, r2, lsl #2]
.L4:
	ldr	r1, .L26+4
	ldr	r1, [r1]
	and	r1, r1, r4
	cmp	r1, #128
	beq	.L6
	cmp	r1, #130
	bne	.L22
	ldr	r1, .L26+8
	ldr	r1, [r1]
	orr	r3, r3, r1
.L6:
	ldr	r1, .L26+12
	ldr	r1, [r1]
	and	r4, r4, r1
	sub	r4, r4, #129
	cmp	r4, #4
	ldrls	pc, [pc, r4, asl #2]
	b	.L22
.L9:
	.word	.L12
	.word	.L22
	.word	.L11
	.word	.L10
	.word	.L8
.L10:
	ldr	r1, .L26+16
	ldr	r1, [r1]
	orr	r3, r3, r1
.L11:
	cmp	r2, #137
	beq	.L13
	cmp	r2, #138
	beq	.L14
	cmp	r2, #136
	beq	.L25
	ldr	r0, [r6]
	ldr	r1, .L26+20
	bl	dev_err
.L22:
	ldr	r3, .L26+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	ip, #0
	ldr	r2, [r5]
	ldr	r1, [r0]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	str	ip, [r1, r2, lsl #2]
	b	.L4
.L8:
	ldr	r1, .L26+32
	ldr	r1, [r1]
	orr	r3, r3, r1
	b	.L11
.L12:
	ldr	r1, .L26+36
	ldr	r1, [r1]
	orr	r3, r3, r1
	b	.L11
.L25:
	ldr	r1, .L26+40
	ldr	r2, .L26+44
	ldr	r0, .L26+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	lr, [r0]
	ldr	ip, .L26+52
.L23:
	orr	r2, r1, r2
	mov	r0, r6
	ldr	r1, [ip]
	orr	r2, r2, lr
	bl	snd_soc_component_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r1, .L26+40
	ldr	r2, .L26+44
	ldr	r0, .L26+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	lr, [r0]
	ldr	ip, .L26+56
	b	.L23
.L13:
	ldr	r1, .L26+40
	ldr	r2, .L26+44
	ldr	r0, .L26+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	lr, [r0]
	ldr	ip, .L26+60
	b	.L23
.L27:
	.align	2
.L26:
	.word	SND_SOC_DAIFMT_MASTER_MASK
	.word	SND_SOC_DAIFMT_INV_MASK
	.word	RT5659_I2S_BP_INV
	.word	SND_SOC_DAIFMT_FORMAT_MASK
	.word	RT5659_I2S_DF_PCM_B
	.word	.LC0
	.word	EINVAL
	.word	RT5659_I2S_MS_S
	.word	RT5659_I2S_DF_PCM_A
	.word	RT5659_I2S_DF_LEFT
	.word	RT5659_I2S_MS_MASK
	.word	RT5659_I2S_BP_MASK
	.word	RT5659_I2S_DF_MASK
	.word	RT5659_I2S3_SDP
	.word	RT5659_I2S1_SDP
	.word	RT5659_I2S2_SDP
	.size	rt5659_set_dai_fmt, .-rt5659_set_dai_fmt
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	SND_SOC_DAIFMT_INV_MASK,4,4
	.comm	SND_SOC_DAIFMT_FORMAT_MASK,4,4
	.comm	RT5659_I2S_MS_S,4,4
	.comm	RT5659_I2S_MS_MASK,4,4
	.comm	RT5659_I2S_DF_PCM_B,4,4
	.comm	RT5659_I2S_DF_PCM_A,4,4
	.comm	RT5659_I2S_DF_MASK,4,4
	.comm	RT5659_I2S_DF_LEFT,4,4
	.comm	RT5659_I2S_BP_MASK,4,4
	.comm	RT5659_I2S_BP_INV,4,4
	.comm	RT5659_I2S3_SDP,4,4
	.comm	RT5659_I2S2_SDP,4,4
	.comm	RT5659_I2S1_SDP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
