	.file	"extr_arizona.c_arizona_set_fmt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DSP_B not valid in slave mode\n"
	.align 8
.LC1:
	.string	"LEFT_J not valid in slave mode\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Unsupported DAI format %d\n"
.LC3:
	.string	"Unsupported master mode %d\n"
	.text
	.p2align 4
	.type	arizona_set_fmt, @function
arizona_set_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR 8[rdi]
	mov	ebx, esi
	call	snd_soc_component_get_drvdata@PLT
	mov	edx, DWORD PTR SND_SOC_DAIFMT_FORMAT_MASK[rip]
	and	edx, ebx
	cmp	edx, 134
	je	.L2
	ja	.L3
	cmp	edx, 130
	je	.L4
	cmp	edx, 133
	jne	.L6
	mov	r14d, DWORD PTR ARIZONA_FMT_I2S_MODE[rip]
.L7:
	mov	edx, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	and	edx, ebx
	cmp	edx, 137
	je	.L12
	jbe	.L39
	mov	ecx, DWORD PTR ARIZONA_AIF1_BCLK_MSTR[rip]
	xor	r12d, r12d
	cmp	edx, 138
	jne	.L40
	and	ebx, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	cmp	ebx, 131
	je	.L18
	.p2align 4,,10
	.p2align 3
.L41:
	ja	.L19
	cmp	ebx, 128
	je	.L20
	cmp	ebx, 129
	jne	.L36
	mov	edx, DWORD PTR ARIZONA_AIF1_BCLK_INV[rip]
	or	r12d, DWORD PTR ARIZONA_AIF1TX_LRCLK_INV[rip]
.L23:
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR ARIZONA_AIF_BCLK_CTRL[rip]
	or	edx, DWORD PTR ARIZONA_AIF1_BCLK_MSTR[rip]
	movsx	rbx, DWORD PTR [rax]
	mov	edi, DWORD PTR 0[r13]
	add	rsi, rbx
	call	regmap_update_bits_async@PLT
	mov	rsi, QWORD PTR ARIZONA_AIF_TX_PIN_CTRL[rip]
	mov	edi, DWORD PTR 0[r13]
	mov	ecx, r12d
	mov	edx, DWORD PTR ARIZONA_AIF1TX_LRCLK_INV[rip]
	or	edx, DWORD PTR ARIZONA_AIF1TX_LRCLK_MSTR[rip]
	add	rsi, rbx
	call	regmap_update_bits_async@PLT
	mov	rsi, QWORD PTR ARIZONA_AIF_RX_PIN_CTRL[rip]
	mov	edi, DWORD PTR 0[r13]
	mov	ecx, r12d
	mov	edx, DWORD PTR ARIZONA_AIF1RX_LRCLK_INV[rip]
	or	edx, DWORD PTR ARIZONA_AIF1RX_LRCLK_MSTR[rip]
	add	rsi, rbx
	call	regmap_update_bits_async@PLT
	add	rbx, QWORD PTR ARIZONA_AIF_FORMAT[rip]
	mov	edi, DWORD PTR 0[r13]
	mov	ecx, r14d
	mov	edx, DWORD PTR ARIZONA_AIF1_FMT_MASK[rip]
	mov	rsi, rbx
	call	regmap_update_bits@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	xor	ecx, ecx
	xor	r12d, r12d
	cmp	edx, 136
	jne	.L15
	and	ebx, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	cmp	ebx, 131
	jne	.L41
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L36:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	cmp	ebx, 132
	jne	.L36
	mov	edx, DWORD PTR ARIZONA_AIF1_BCLK_INV[rip]
	or	r12d, DWORD PTR ARIZONA_AIF1TX_LRCLK_INV[rip]
	or	ecx, edx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L40:
	cmp	edx, 139
	je	.L17
.L15:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	arizona_aif_err@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14d, DWORD PTR ARIZONA_FMT_DSP_MODE_A[rip]
	cmp	edx, 135
	je	.L7
.L6:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	arizona_aif_err@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, DWORD PTR ARIZONA_AIF1_BCLK_INV[rip]
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L12:
	and	ebx, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	mov	r12d, DWORD PTR ARIZONA_AIF1TX_LRCLK_MSTR[rip]
	xor	ecx, ecx
	cmp	ebx, 131
	jne	.L41
.L18:
	mov	edx, DWORD PTR ARIZONA_AIF1_BCLK_INV[rip]
	or	ecx, edx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	mov	r14d, DWORD PTR ARIZONA_FMT_DSP_MODE_B[rip]
	lea	rsi, .LC0[rip]
	and	edx, ebx
	cmp	edx, 139
	jne	.L33
.L17:
	and	ebx, DWORD PTR SND_SOC_DAIFMT_INV_MASK[rip]
	mov	ecx, DWORD PTR ARIZONA_AIF1_BCLK_MSTR[rip]
	mov	r12d, DWORD PTR ARIZONA_AIF1TX_LRCLK_MSTR[rip]
	cmp	ebx, 131
	jne	.L41
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR SND_SOC_DAIFMT_MASTER_MASK[rip]
	mov	r14d, DWORD PTR ARIZONA_FMT_LEFT_JUSTIFIED_MODE[rip]
	and	edx, ebx
	cmp	edx, 139
	je	.L17
	lea	rsi, .LC1[rip]
.L33:
	mov	rdi, rbp
	xor	eax, eax
	call	arizona_aif_err@PLT
	jmp	.L36
	.cfi_endproc
.LFE0:
	.size	arizona_set_fmt, .-arizona_set_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	ARIZONA_FMT_LEFT_JUSTIFIED_MODE,4,4
	.comm	ARIZONA_FMT_I2S_MODE,4,4
	.comm	ARIZONA_FMT_DSP_MODE_B,4,4
	.comm	ARIZONA_FMT_DSP_MODE_A,4,4
	.comm	ARIZONA_AIF_TX_PIN_CTRL,8,8
	.comm	ARIZONA_AIF_RX_PIN_CTRL,8,8
	.comm	ARIZONA_AIF_FORMAT,8,8
	.comm	ARIZONA_AIF_BCLK_CTRL,8,8
	.comm	ARIZONA_AIF1_FMT_MASK,4,4
	.comm	ARIZONA_AIF1_BCLK_MSTR,4,4
	.comm	ARIZONA_AIF1_BCLK_INV,4,4
	.comm	ARIZONA_AIF1TX_LRCLK_MSTR,4,4
	.comm	ARIZONA_AIF1TX_LRCLK_INV,4,4
	.comm	ARIZONA_AIF1RX_LRCLK_MSTR,4,4
	.comm	ARIZONA_AIF1RX_LRCLK_INV,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_arizona.c_arizona_set_fmt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DSP_B not valid in slave mode\012\000"
	.align	2
.LC1:
	.ascii	"LEFT_J not valid in slave mode\012\000"
	.align	2
.LC2:
	.ascii	"Unsupported DAI format %d\012\000"
	.align	2
.LC3:
	.ascii	"Unsupported master mode %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arizona_set_fmt, %function
arizona_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	r5, r0
	ldr	r0, [r0, #4]
	bl	snd_soc_component_get_drvdata
	ldr	r3, .L31
	ldr	r2, [r3]
	and	r2, r2, r4
	sub	r3, r2, #130
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L2
	.word	.L2
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, .L31+4
	ldr	r6, [r3]
.L8:
	ldr	r3, .L31+8
	ldr	r2, [r3]
	and	r2, r2, r4
	sub	r3, r2, #136
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L15:
	.word	.L26
	.word	.L17
	.word	.L16
	.word	.L14
.L2:
	mov	r0, r5
	ldr	r1, .L31+12
	bl	arizona_aif_err
	ldr	r3, .L31+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	and	r3, r3, r4
	cmp	r3, #139
	bne	.L29
	ldr	r3, .L31+20
	ldr	r6, [r3]
.L14:
	ldr	r3, .L31+24
	ldr	r2, .L31+28
	ldr	r3, [r3]
	ldr	r7, [r2]
.L18:
	ldr	r2, .L31+32
	ldr	r1, [r2]
	and	r4, r4, r1
	sub	r4, r4, #128
	cmp	r4, #4
	ldrls	pc, [pc, r4, asl #2]
	b	.L19
.L21:
	.word	.L24
	.word	.L23
	.word	.L19
	.word	.L22
	.word	.L20
.L6:
	ldr	r3, .L31+36
	ldr	r6, [r3]
	b	.L8
.L5:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	and	r3, r3, r4
	cmp	r3, #139
	bne	.L30
	ldr	r3, .L31+40
	ldr	r6, [r3]
	b	.L14
.L17:
	ldr	r2, .L31+28
	mov	r3, #0
	ldr	r7, [r2]
	b	.L18
.L16:
	ldr	r3, .L31+24
	mov	r7, #0
	ldr	r3, [r3]
	b	.L18
.L26:
	mov	r3, #0
	mov	r7, r3
	b	.L18
.L20:
	ldr	r2, .L31+44
	ldr	r8, .L31+48
	ldr	r2, [r2]
	ldr	r1, [r8]
	orr	r3, r3, r2
	orr	r7, r7, r1
.L25:
	ldr	lr, [r5]
	ldr	ip, .L31+24
	ldr	r1, .L31+52
	ldr	r4, [lr]
	ldr	r5, [r0]
	ldr	r1, [r1]
	ldr	r0, [ip]
	add	r1, r4, r1
	orr	r2, r2, r0
	ldr	r0, [r5]
	bl	regmap_update_bits_async
	ldr	r3, .L31+28
	ldr	r1, .L31+56
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r2, r2, r3
	add	r1, r4, r1
	mov	r3, r7
	ldr	r0, [r5]
	bl	regmap_update_bits_async
	ldr	r2, .L31+60
	ldr	r3, .L31+64
	ldr	r1, .L31+68
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r3]
	add	r1, r4, r1
	mov	r3, r7
	orr	r2, r0, r2
	ldr	r0, [r5]
	bl	regmap_update_bits_async
	ldr	r3, .L31+72
	ldr	r2, .L31+76
	ldr	r1, [r3]
	ldr	r0, [r5]
	mov	r3, r6
	ldr	r2, [r2]
	add	r1, r4, r1
	bl	regmap_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r2, .L31+44
	ldr	r8, .L31+48
	ldr	r2, [r2]
	orr	r3, r3, r2
	b	.L25
.L23:
	ldr	r8, .L31+48
	ldr	r2, .L31+44
	ldr	r1, [r8]
	ldr	r2, [r2]
	orr	r7, r7, r1
	b	.L25
.L24:
	ldr	r2, .L31+44
	ldr	r8, .L31+48
	ldr	r2, [r2]
	b	.L25
.L19:
	ldr	r3, .L31+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	mov	r0, r5
	ldr	r1, .L31+80
	bl	arizona_aif_err
	ldr	r3, .L31+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	mov	r0, r5
	ldr	r1, .L31+84
	bl	arizona_aif_err
	ldr	r3, .L31+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r5
	ldr	r1, .L31+88
	bl	arizona_aif_err
	ldr	r3, .L31+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	.align	2
.L31:
	.word	SND_SOC_DAIFMT_FORMAT_MASK
	.word	ARIZONA_FMT_DSP_MODE_A
	.word	SND_SOC_DAIFMT_MASTER_MASK
	.word	.LC2
	.word	EINVAL
	.word	ARIZONA_FMT_LEFT_JUSTIFIED_MODE
	.word	ARIZONA_AIF1_BCLK_MSTR
	.word	ARIZONA_AIF1TX_LRCLK_MSTR
	.word	SND_SOC_DAIFMT_INV_MASK
	.word	ARIZONA_FMT_I2S_MODE
	.word	ARIZONA_FMT_DSP_MODE_B
	.word	ARIZONA_AIF1_BCLK_INV
	.word	ARIZONA_AIF1TX_LRCLK_INV
	.word	ARIZONA_AIF_BCLK_CTRL
	.word	ARIZONA_AIF_TX_PIN_CTRL
	.word	ARIZONA_AIF1RX_LRCLK_INV
	.word	ARIZONA_AIF1RX_LRCLK_MSTR
	.word	ARIZONA_AIF_RX_PIN_CTRL
	.word	ARIZONA_AIF_FORMAT
	.word	ARIZONA_AIF1_FMT_MASK
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	arizona_set_fmt, .-arizona_set_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	ARIZONA_FMT_LEFT_JUSTIFIED_MODE,4,4
	.comm	ARIZONA_FMT_I2S_MODE,4,4
	.comm	ARIZONA_FMT_DSP_MODE_B,4,4
	.comm	ARIZONA_FMT_DSP_MODE_A,4,4
	.comm	ARIZONA_AIF_TX_PIN_CTRL,4,4
	.comm	ARIZONA_AIF_RX_PIN_CTRL,4,4
	.comm	ARIZONA_AIF_FORMAT,4,4
	.comm	ARIZONA_AIF_BCLK_CTRL,4,4
	.comm	ARIZONA_AIF1_FMT_MASK,4,4
	.comm	ARIZONA_AIF1_BCLK_MSTR,4,4
	.comm	ARIZONA_AIF1_BCLK_INV,4,4
	.comm	ARIZONA_AIF1TX_LRCLK_MSTR,4,4
	.comm	ARIZONA_AIF1TX_LRCLK_INV,4,4
	.comm	ARIZONA_AIF1RX_LRCLK_MSTR,4,4
	.comm	ARIZONA_AIF1RX_LRCLK_INV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
