	.file	"extr_adau1977.c_adau1977_set_dai_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adau1977_set_dai_fmt, @function
adau1977_set_dai_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	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, 137
	je	.L2
	cmp	eax, 138
	jne	.L12
	mov	eax, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	mov	r12d, DWORD PTR ADAU1977_SAI_CTRL1_MASTER[rip]
	mov	DWORD PTR 0[rbp], 1
	and	eax, ebx
	cmp	eax, 132
	je	.L7
.L30:
	ja	.L8
	cmp	eax, 129
	je	.L21
	cmp	eax, 130
	jne	.L12
	mov	esi, 1
	xor	ecx, ecx
.L9:
	and	ebx, DWORD PTR SND_SOC_DAIFMT_FORMAT_MASK[rip]
	mov	DWORD PTR 4[rbp], 0
	add	ebx, -128
	cmp	ebx, 8
	ja	.L12
	lea	rdx, .L14[rip]
	movsx	rax, DWORD PTR [rdx+rbx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L18-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L17-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L16-.L14
	.long	.L15-.L14
	.long	.L13-.L14
	.text
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, DWORD PTR ADAU1977_BLOCK_POWER_SAI_BCLK_EDGE[rip]
	mov	esi, 1
	cmp	eax, 133
	je	.L9
.L12:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	xor	esi, esi
	xor	ecx, ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	mov	DWORD PTR 0[rbp], 0
	xor	r12d, r12d
	and	eax, ebx
	cmp	eax, 132
	jne	.L30
.L7:
	mov	ecx, DWORD PTR ADAU1977_BLOCK_POWER_SAI_BCLK_EDGE[rip]
	xor	esi, esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13d, DWORD PTR ADAU1977_SAI_CTRL0_FMT_I2S[rip]
	mov	edx, DWORD PTR ADAU1977_BLOCK_POWER_SAI_LR_POL[rip]
	or	r12d, DWORD PTR ADAU1977_SAI_CTRL1_LRCLK_PULSE[rip]
.L20:
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR ADAU1977_REG_BLOCK_POWER_SAI[rip]
	or	edx, DWORD PTR ADAU1977_BLOCK_POWER_SAI_BCLK_EDGE[rip]
	call	regmap_update_bits@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR ADAU1977_SAI_CTRL0_FMT_MASK[rip]
	mov	ecx, r13d
	mov	esi, DWORD PTR ADAU1977_REG_SAI_CTRL0[rip]
	call	regmap_update_bits@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR ADAU1977_SAI_CTRL1_MASTER[rip]
	mov	edi, DWORD PTR 8[rbp]
	mov	ecx, r12d
	mov	esi, DWORD PTR ADAU1977_REG_SAI_CTRL1[rip]
	or	edx, DWORD PTR ADAU1977_SAI_CTRL1_LRCLK_PULSE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r13d, DWORD PTR ADAU1977_SAI_CTRL0_FMT_LJ[rip]
	mov	edx, DWORD PTR ADAU1977_BLOCK_POWER_SAI_LR_POL[rip]
	or	r12d, DWORD PTR ADAU1977_SAI_CTRL1_LRCLK_PULSE[rip]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r13d, DWORD PTR ADAU1977_SAI_CTRL0_FMT_I2S[rip]
.L19:
	mov	edx, DWORD PTR ADAU1977_BLOCK_POWER_SAI_LR_POL[rip]
	test	esi, esi
	je	.L20
	or	ecx, edx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r13d, DWORD PTR ADAU1977_SAI_CTRL0_FMT_LJ[rip]
	xor	esi, 1
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR 4[rbp], 1
	mov	r13d, DWORD PTR ADAU1977_SAI_CTRL0_FMT_RJ_24BIT[rip]
	xor	esi, 1
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	adau1977_set_dai_fmt, .-adau1977_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	EINVAL,4,4
	.comm	ADAU1977_SAI_CTRL1_MASTER,4,4
	.comm	ADAU1977_SAI_CTRL1_LRCLK_PULSE,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_RJ_24BIT,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_MASK,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_LJ,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_I2S,4,4
	.comm	ADAU1977_REG_SAI_CTRL1,4,4
	.comm	ADAU1977_REG_SAI_CTRL0,4,4
	.comm	ADAU1977_REG_BLOCK_POWER_SAI,4,4
	.comm	ADAU1977_BLOCK_POWER_SAI_LR_POL,4,4
	.comm	ADAU1977_BLOCK_POWER_SAI_BCLK_EDGE,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_adau1977.c_adau1977_set_dai_fmt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adau1977_set_dai_fmt, %function
adau1977_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, .L30
	mov	r5, r0
	ldr	r3, [r3]
	and	r3, r3, r4
	cmp	r3, #137
	beq	.L2
	cmp	r3, #138
	bne	.L13
	mov	r3, #1
	ldr	r2, .L30+4
	ldr	r6, [r2]
	str	r3, [r0]
.L5:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	and	r3, r3, r4
	sub	r3, r3, #129
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L9:
	.word	.L22
	.word	.L11
	.word	.L13
	.word	.L10
	.word	.L8
.L13:
	ldr	r3, .L30+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r6, #0
	str	r6, [r0]
	b	.L5
.L22:
	mov	r2, #0
	mov	r3, r2
.L12:
	mov	r0, #0
	ldr	r1, .L30+16
	str	r0, [r5, #4]
	ldr	r1, [r1]
	and	r4, r4, r1
	sub	r4, r4, #128
	cmp	r4, #8
	ldrls	pc, [pc, r4, asl #2]
	b	.L13
.L15:
	.word	.L19
	.word	.L13
	.word	.L13
	.word	.L18
	.word	.L13
	.word	.L13
	.word	.L17
	.word	.L16
	.word	.L14
.L11:
	mov	r2, #1
	mov	r3, #0
	b	.L12
.L10:
	ldr	r3, .L30+20
	mov	r2, #0
	ldr	r3, [r3]
	b	.L12
.L8:
	ldr	r3, .L30+20
	mov	r2, #1
	ldr	r3, [r3]
	b	.L12
.L14:
	ldr	r2, .L30+24
	ldr	r1, .L30+28
.L28:
	ldr	r0, [r2]
	ldr	r2, .L30+32
	ldr	r4, [r1]
	ldr	r2, [r2]
	orr	r6, r6, r0
.L21:
	ldr	r0, .L30+20
	ldr	r1, .L30+36
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r2, r2, r0
	ldr	r0, [r5, #8]
	bl	regmap_update_bits
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L30+40
	ldr	r1, .L30+44
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r5, #8]
	bl	regmap_update_bits
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L30+4
	ldr	r3, .L30+24
	ldr	ip, [r2]
	ldr	r1, .L30+48
	ldr	r2, [r3]
	ldr	r0, [r5, #8]
	mov	r3, r6
	pop	{r4, r5, r6, lr}
	ldr	r1, [r1]
	orr	r2, ip, r2
	b	regmap_update_bits
.L16:
	ldr	r2, .L30+24
	ldr	r1, .L30+52
	b	.L28
.L17:
	ldr	r1, .L30+28
	ldr	r4, [r1]
.L20:
	ldr	r1, .L30+32
	cmp	r2, #0
	ldr	r2, [r1]
	orrne	r3, r3, r2
	b	.L21
.L18:
	ldr	r1, .L30+52
	eor	r2, r2, #1
	ldr	r4, [r1]
	b	.L20
.L19:
	mov	r0, #1
	ldr	r1, .L30+56
	str	r0, [r5, #4]
	ldr	r4, [r1]
	eor	r2, r2, r0
	b	.L20
.L31:
	.align	2
.L30:
	.word	SND_SOC_DAIFMT_MASTER_MASK
	.word	ADAU1977_SAI_CTRL1_MASTER
	.word	SND_SOC_DAIFMT_INV_MASK
	.word	EINVAL
	.word	SND_SOC_DAIFMT_FORMAT_MASK
	.word	ADAU1977_BLOCK_POWER_SAI_BCLK_EDGE
	.word	ADAU1977_SAI_CTRL1_LRCLK_PULSE
	.word	ADAU1977_SAI_CTRL0_FMT_I2S
	.word	ADAU1977_BLOCK_POWER_SAI_LR_POL
	.word	ADAU1977_REG_BLOCK_POWER_SAI
	.word	ADAU1977_SAI_CTRL0_FMT_MASK
	.word	ADAU1977_REG_SAI_CTRL0
	.word	ADAU1977_REG_SAI_CTRL1
	.word	ADAU1977_SAI_CTRL0_FMT_LJ
	.word	ADAU1977_SAI_CTRL0_FMT_RJ_24BIT
	.size	adau1977_set_dai_fmt, .-adau1977_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	EINVAL,4,4
	.comm	ADAU1977_SAI_CTRL1_MASTER,4,4
	.comm	ADAU1977_SAI_CTRL1_LRCLK_PULSE,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_RJ_24BIT,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_MASK,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_LJ,4,4
	.comm	ADAU1977_SAI_CTRL0_FMT_I2S,4,4
	.comm	ADAU1977_REG_SAI_CTRL1,4,4
	.comm	ADAU1977_REG_SAI_CTRL0,4,4
	.comm	ADAU1977_REG_BLOCK_POWER_SAI,4,4
	.comm	ADAU1977_BLOCK_POWER_SAI_LR_POL,4,4
	.comm	ADAU1977_BLOCK_POWER_SAI_BCLK_EDGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
