	.file	"extr_ep93xx-i2s.c_ep93xx_i2s_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ep93xx_i2s_disable, @function
ep93xx_i2s_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR CONFIG_SND_EP93XX_SOC_I2S_WATCHDOG[rip]
	call	IS_ENABLED@PLT
	test	rax, rax
	je	.L2
	cmp	DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip], ebp
	je	.L13
.L3:
	mov	esi, DWORD PTR EP93XX_I2S_RX0EN[rip]
.L4:
	xor	edx, edx
	mov	rdi, rbx
	call	ep93xx_i2s_write_reg@PLT
	mov	esi, DWORD PTR EP93XX_I2S_TX0EN[rip]
	mov	rdi, rbx
	call	ep93xx_i2s_read_reg@PLT
	test	al, 1
	je	.L14
.L1:
	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
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR EP93XX_I2S_TXCTRL[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	ep93xx_i2s_write_reg@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip], ebp
	mov	esi, DWORD PTR EP93XX_I2S_TX0EN[rip]
	je	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR EP93XX_I2S_RX0EN[rip]
	mov	rdi, rbx
	call	ep93xx_i2s_read_reg@PLT
	test	al, 1
	jne	.L1
	mov	esi, DWORD PTR EP93XX_I2S_GLCTRL[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	ep93xx_i2s_write_reg@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	clk_disable@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	clk_disable@PLT
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	clk_disable@PLT
	.cfi_endproc
.LFE0:
	.size	ep93xx_i2s_disable, .-ep93xx_i2s_disable
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	EP93XX_I2S_TXCTRL,4,4
	.comm	EP93XX_I2S_TX0EN,4,4
	.comm	EP93XX_I2S_RX0EN,4,4
	.comm	EP93XX_I2S_GLCTRL,4,4
	.comm	CONFIG_SND_EP93XX_SOC_I2S_WATCHDOG,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_ep93xx-i2s.c_ep93xx_i2s_disable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ep93xx_i2s_disable, %function
ep93xx_i2s_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r3]
	mov	r5, r1
	bl	IS_ENABLED
	cmp	r0, #0
	ldr	r6, .L14+4
	beq	.L2
	ldr	r3, [r6]
	cmp	r3, r5
	beq	.L13
.L3:
	ldr	r3, .L14+8
	ldr	r5, .L14+12
	ldr	r1, [r3]
.L4:
	mov	r2, #0
	mov	r0, r4
	bl	ep93xx_i2s_write_reg
	mov	r0, r4
	ldr	r1, [r5]
	bl	ep93xx_i2s_read_reg
	tst	r0, #1
	popne	{r4, r5, r6, pc}
	ldr	r3, .L14+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	ep93xx_i2s_read_reg
	ands	r2, r0, #1
	popne	{r4, r5, r6, pc}
	ldr	r3, .L14+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	ep93xx_i2s_write_reg
	ldr	r0, [r4, #8]
	bl	clk_disable
	ldr	r0, [r4, #4]
	bl	clk_disable
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	clk_disable
.L13:
	ldr	r3, .L14+20
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r3]
	bl	ep93xx_i2s_write_reg
.L2:
	ldr	r3, [r6]
	cmp	r3, r5
	bne	.L3
	ldr	r5, .L14+12
	ldr	r1, [r5]
	b	.L4
.L15:
	.align	2
.L14:
	.word	CONFIG_SND_EP93XX_SOC_I2S_WATCHDOG
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	EP93XX_I2S_RX0EN
	.word	EP93XX_I2S_TX0EN
	.word	EP93XX_I2S_GLCTRL
	.word	EP93XX_I2S_TXCTRL
	.size	ep93xx_i2s_disable, .-ep93xx_i2s_disable
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	EP93XX_I2S_TXCTRL,4,4
	.comm	EP93XX_I2S_TX0EN,4,4
	.comm	EP93XX_I2S_RX0EN,4,4
	.comm	EP93XX_I2S_GLCTRL,4,4
	.comm	CONFIG_SND_EP93XX_SOC_I2S_WATCHDOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
