	.file	"extr_uda1380.c_uda1380_set_dai_fmt_both.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uda1380_set_dai_fmt_both, @function
uda1380_set_dai_fmt_both:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	esi, DWORD PTR UDA1380_IFACE[rip]
	mov	rdi, rbp
	call	uda1380_read_reg_cache@PLT
	mov	edx, DWORD PTR R01_SFORI_MASK[rip]
	or	edx, DWORD PTR R01_SIM[rip]
	or	edx, DWORD PTR R01_SFORO_MASK[rip]
	not	edx
	and	edx, eax
	mov	eax, DWORD PTR SND_SOC_DAIFMT_FORMAT_MASK[rip]
	and	eax, ebx
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L10
.L5:
	and	ebx, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	cmp	ebx, DWORD PTR SND_SOC_DAIFMT_CBS_CFS[rip]
	je	.L6
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR UDA1380_IFACE[rip]
	mov	rdi, rbp
	call	uda1380_write@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR R01_SFORI_MSB[rip]
	or	eax, DWORD PTR R01_SFORO_MSB[rip]
	or	edx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR R01_SFORI_I2S[rip]
	or	eax, DWORD PTR R01_SFORO_I2S[rip]
	or	edx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR R01_SFORI_LSB16[rip]
	or	eax, DWORD PTR R01_SFORO_LSB16[rip]
	or	edx, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	uda1380_set_dai_fmt_both, .-uda1380_set_dai_fmt_both
	.comm	UDA1380_IFACE,4,4
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	SND_SOC_DAIFMT_FORMAT_MASK,4,4
	.comm	SND_SOC_DAIFMT_CBS_CFS,4,4
	.comm	R01_SIM,4,4
	.comm	R01_SFORO_MSB,4,4
	.comm	R01_SFORO_MASK,4,4
	.comm	R01_SFORO_LSB16,4,4
	.comm	R01_SFORO_I2S,4,4
	.comm	R01_SFORI_MSB,4,4
	.comm	R01_SFORI_MASK,4,4
	.comm	R01_SFORI_LSB16,4,4
	.comm	R01_SFORI_I2S,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_uda1380.c_uda1380_set_dai_fmt_both.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uda1380_set_dai_fmt_both, %function
uda1380_set_dai_fmt_both:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	ldr	r6, .L11
	mov	r4, r1
	mov	r0, r5
	ldr	r1, [r6]
	bl	uda1380_read_reg_cache
	ldr	r1, .L11+4
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	ip, [r1]
	ldr	r1, .L11+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r2, r2, ip
	and	r3, r3, r4
	orr	r2, r2, r1
	cmp	r3, #129
	bic	r2, r0, r2
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L10
.L5:
	ldr	r1, .L11+20
	ldr	r3, .L11+24
	ldr	r1, [r1]
	ldr	r3, [r3]
	and	r4, r4, r1
	cmp	r4, r3
	beq	.L6
	ldr	r3, .L11+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r5
	ldr	r1, [r6]
	bl	uda1380_write
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+32
	ldr	r1, .L11+36
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r1
	orr	r2, r2, r3
	b	.L5
.L3:
	ldr	r3, .L11+40
	ldr	r1, .L11+44
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r1
	orr	r2, r2, r3
	b	.L5
.L2:
	ldr	r3, .L11+48
	ldr	r1, .L11+52
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r1
	orr	r2, r2, r3
	b	.L5
.L12:
	.align	2
.L11:
	.word	UDA1380_IFACE
	.word	R01_SIM
	.word	R01_SFORI_MASK
	.word	SND_SOC_DAIFMT_FORMAT_MASK
	.word	R01_SFORO_MASK
	.word	SND_SOC_DAIFMT_MASTER_MASK
	.word	SND_SOC_DAIFMT_CBS_CFS
	.word	EINVAL
	.word	R01_SFORI_MSB
	.word	R01_SFORO_MSB
	.word	R01_SFORI_I2S
	.word	R01_SFORO_I2S
	.word	R01_SFORI_LSB16
	.word	R01_SFORO_LSB16
	.size	uda1380_set_dai_fmt_both, .-uda1380_set_dai_fmt_both
	.comm	UDA1380_IFACE,4,4
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	SND_SOC_DAIFMT_FORMAT_MASK,4,4
	.comm	SND_SOC_DAIFMT_CBS_CFS,4,4
	.comm	R01_SIM,4,4
	.comm	R01_SFORO_MSB,4,4
	.comm	R01_SFORO_MASK,4,4
	.comm	R01_SFORO_LSB16,4,4
	.comm	R01_SFORO_I2S,4,4
	.comm	R01_SFORI_MSB,4,4
	.comm	R01_SFORI_MASK,4,4
	.comm	R01_SFORI_LSB16,4,4
	.comm	R01_SFORI_I2S,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
