	.file	"extr_rk3328_codec.c_rk3328_set_dai_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rk3328_set_dai_fmt, @function
rk3328_set_dai_fmt:
.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	edi, DWORD PTR [rdi]
	call	snd_soc_component_get_drvdata@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	and	eax, ebx
	cmp	eax, 133
	je	.L2
	cmp	eax, 134
	jne	.L11
	mov	ecx, DWORD PTR PIN_DIRECTION_OUT[rip]
	or	ecx, DWORD PTR DAC_I2S_MODE_MASTER[rip]
.L5:
	mov	esi, DWORD PTR DAC_INIT_CTRL1[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR PIN_DIRECTION_MASK[rip]
	or	edx, DWORD PTR DAC_I2S_MODE_MASK[rip]
	call	regmap_update_bits@PLT
	and	ebx, DWORD PTR SND_SOC_DAIFMT_FORMAT_MASK[rip]
	mov	esi, ebx
	cmp	ebx, 130
	je	.L7
	ja	.L8
	cmp	ebx, 128
	je	.L9
	cmp	ebx, 129
	jne	.L11
	mov	ecx, DWORD PTR DAC_MODE_LJM[rip]
.L12:
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR DAC_MODE_MASK[rip]
	mov	esi, DWORD PTR DAC_INIT_CTRL2[rip]
	call	regmap_update_bits@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
.L8:
	.cfi_restore_state
	sub	esi, 131
	mov	ecx, DWORD PTR DAC_MODE_PCM[rip]
	cmp	esi, 1
	jbe	.L12
.L11:
	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
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR PIN_DIRECTION_IN[rip]
	or	ecx, DWORD PTR DAC_I2S_MODE_SLAVE[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR DAC_MODE_RJM[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR DAC_MODE_I2S[rip]
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	rk3328_set_dai_fmt, .-rk3328_set_dai_fmt
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	SND_SOC_DAIFMT_FORMAT_MASK,4,4
	.comm	PIN_DIRECTION_OUT,4,4
	.comm	PIN_DIRECTION_MASK,4,4
	.comm	PIN_DIRECTION_IN,4,4
	.comm	EINVAL,4,4
	.comm	DAC_MODE_RJM,4,4
	.comm	DAC_MODE_PCM,4,4
	.comm	DAC_MODE_MASK,4,4
	.comm	DAC_MODE_LJM,4,4
	.comm	DAC_MODE_I2S,4,4
	.comm	DAC_INIT_CTRL2,4,4
	.comm	DAC_INIT_CTRL1,4,4
	.comm	DAC_I2S_MODE_SLAVE,4,4
	.comm	DAC_I2S_MODE_MASTER,4,4
	.comm	DAC_I2S_MODE_MASK,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_rk3328_codec.c_rk3328_set_dai_fmt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rk3328_set_dai_fmt, %function
rk3328_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	r0, [r0]
	bl	snd_soc_component_get_drvdata
	ldr	r3, .L17
	mov	r5, r0
	ldr	r3, [r3]
	and	r3, r3, r4
	cmp	r3, #133
	beq	.L2
	cmp	r3, #134
	beq	.L3
.L7:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L17+8
	ldr	r2, .L17+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
.L5:
	ldr	r1, .L17+16
	ldr	r2, .L17+20
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L17+24
	orr	r2, r0, r2
	ldr	r1, [r1]
	ldr	r0, [r5]
	bl	regmap_update_bits
	ldr	r3, .L17+28
	ldr	r1, [r3]
	and	r4, r4, r1
	sub	r4, r4, #128
	cmp	r4, #4
	ldrls	pc, [pc, r4, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
	.word	.L8
.L3:
	ldr	r3, .L17+32
	ldr	r2, .L17+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	b	.L5
.L8:
	ldr	r3, .L17+40
	ldr	r3, [r3]
.L13:
	ldr	r2, .L17+44
	ldr	r1, .L17+48
	ldr	r0, [r5]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	regmap_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L17+52
	ldr	r3, [r3]
	b	.L13
.L11:
	ldr	r3, .L17+56
	ldr	r3, [r3]
	b	.L13
.L12:
	ldr	r3, .L17+60
	ldr	r3, [r3]
	b	.L13
.L18:
	.align	2
.L17:
	.word	SND_SOC_DAIFMT_MASTER_MASK
	.word	EINVAL
	.word	PIN_DIRECTION_IN
	.word	DAC_I2S_MODE_SLAVE
	.word	PIN_DIRECTION_MASK
	.word	DAC_I2S_MODE_MASK
	.word	DAC_INIT_CTRL1
	.word	SND_SOC_DAIFMT_FORMAT_MASK
	.word	PIN_DIRECTION_OUT
	.word	DAC_I2S_MODE_MASTER
	.word	DAC_MODE_PCM
	.word	DAC_MODE_MASK
	.word	DAC_INIT_CTRL2
	.word	DAC_MODE_I2S
	.word	DAC_MODE_LJM
	.word	DAC_MODE_RJM
	.size	rk3328_set_dai_fmt, .-rk3328_set_dai_fmt
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	SND_SOC_DAIFMT_FORMAT_MASK,4,4
	.comm	PIN_DIRECTION_OUT,4,4
	.comm	PIN_DIRECTION_MASK,4,4
	.comm	PIN_DIRECTION_IN,4,4
	.comm	EINVAL,4,4
	.comm	DAC_MODE_RJM,4,4
	.comm	DAC_MODE_PCM,4,4
	.comm	DAC_MODE_MASK,4,4
	.comm	DAC_MODE_LJM,4,4
	.comm	DAC_MODE_I2S,4,4
	.comm	DAC_INIT_CTRL2,4,4
	.comm	DAC_INIT_CTRL1,4,4
	.comm	DAC_I2S_MODE_SLAVE,4,4
	.comm	DAC_I2S_MODE_MASTER,4,4
	.comm	DAC_I2S_MODE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
