	.file	"extr_zx-tdm.c_zx_tdm_set_fmt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown master/slave format\n"
	.text
	.p2align 4
	.type	zx_tdm_set_fmt, @function
zx_tdm_set_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	snd_soc_dai_get_drvdata@PLT
	mov	esi, DWORD PTR REG_TIMING_CTRL[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	zx_tdm_readl@PLT
	mov	rcx, QWORD PTR TIMING_WIDTH_SHIFT[rip]
	mov	rdx, QWORD PTR TIMING_DEFAULT_WIDTH[rip]
	mov	r8, rax
	mov	rax, QWORD PTR TIMING_SYNC_WIDTH_MASK[rip]
	and	ebx, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	or	rax, QWORD PTR TIMING_MS_MASK[rip]
	sal	rdx, cl
	not	rax
	and	rax, r8
	or	rax, rdx
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	jne	.L3
	mov	DWORD PTR 0[rbp], 1
	or	rax, QWORD PTR TIMING_MASTER_MODE[rip]
	mov	rdx, rax
.L4:
	mov	esi, DWORD PTR REG_TIMING_CTRL[rip]
	mov	rdi, rbp
	call	zx_tdm_writel@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	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	rdx, QWORD PTR TIMING_MASTER_MODE[rip]
	mov	DWORD PTR 0[rbp], 0
	not	rdx
	and	rdx, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	zx_tdm_set_fmt, .-zx_tdm_set_fmt
	.comm	TIMING_WIDTH_SHIFT,8,8
	.comm	TIMING_SYNC_WIDTH_MASK,8,8
	.comm	TIMING_MS_MASK,8,8
	.comm	TIMING_MASTER_MODE,8,8
	.comm	TIMING_DEFAULT_WIDTH,8,8
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	REG_TIMING_CTRL,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_zx-tdm.c_zx_tdm_set_fmt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown master/slave format\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zx_tdm_set_fmt, %function
zx_tdm_set_fmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	snd_soc_dai_get_drvdata
	ldr	r7, .L8
	mov	r5, r0
	ldr	r1, [r7]
	bl	zx_tdm_readl
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	ldr	r2, [r2]
	ldr	r1, .L8+12
	ldr	r3, [r3]
	ldr	ip, .L8+16
	orr	r3, r2, r3
	ldr	r1, [r1]
	ldr	r2, .L8+20
	ldr	lr, [ip]
	and	r1, r1, r4
	ldr	ip, [r2]
	cmp	r1, #128
	bic	r2, r0, r3
	orr	r2, r2, lr, lsl ip
	beq	.L2
	cmp	r1, #129
	bne	.L3
	mov	r1, #1
	ldr	r3, .L8+24
	str	r1, [r5]
	ldr	r0, [r3]
	orr	r2, r2, r0
.L4:
	mov	r0, r5
	ldr	r1, [r7]
	bl	zx_tdm_writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, #0
	ldr	r3, .L8+24
	str	r1, [r5]
	ldr	r0, [r3]
	bic	r2, r2, r0
	b	.L4
.L3:
	ldr	r0, [r6]
	ldr	r1, .L8+28
	bl	dev_err
	ldr	r3, .L8+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	REG_TIMING_CTRL
	.word	TIMING_SYNC_WIDTH_MASK
	.word	TIMING_MS_MASK
	.word	SND_SOC_DAIFMT_MASTER_MASK
	.word	TIMING_DEFAULT_WIDTH
	.word	TIMING_WIDTH_SHIFT
	.word	TIMING_MASTER_MODE
	.word	.LC0
	.word	EINVAL
	.size	zx_tdm_set_fmt, .-zx_tdm_set_fmt
	.comm	TIMING_WIDTH_SHIFT,4,4
	.comm	TIMING_SYNC_WIDTH_MASK,4,4
	.comm	TIMING_MS_MASK,4,4
	.comm	TIMING_MASTER_MODE,4,4
	.comm	TIMING_DEFAULT_WIDTH,4,4
	.comm	SND_SOC_DAIFMT_MASTER_MASK,4,4
	.comm	REG_TIMING_CTRL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
