	.file	"extr_twl4030.c_twl4030_tdm_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	twl4030_tdm_enable, @function
twl4030_tdm_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	mov	esi, DWORD PTR TWL4030_REG_OPTION[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	twl4030_read_reg_cache@PLT
	cmp	DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip], r12d
	mov	edx, eax
	je	.L8
	mov	ecx, DWORD PTR TWL4030_ATXL2_VTXL_EN[rip]
	or	ecx, DWORD PTR TWL4030_ATXR2_VTXR_EN[rip]
.L3:
	mov	eax, ecx
	not	ecx
	mov	esi, DWORD PTR TWL4030_REG_OPTION[rip]
	mov	rdi, rbp
	or	eax, edx
	and	ecx, edx
	test	ebx, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	cmove	eax, ecx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	mov	edx, eax
	jmp	twl4030_write@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR TWL4030_ARXL1_VRX_EN[rip]
	or	esi, DWORD PTR TWL4030_ARXR1_EN[rip]
	mov	ecx, esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	twl4030_tdm_enable, .-twl4030_tdm_enable
	.comm	TWL4030_REG_OPTION,4,4
	.comm	TWL4030_ATXR2_VTXR_EN,4,4
	.comm	TWL4030_ATXL2_VTXL_EN,4,4
	.comm	TWL4030_ARXR1_EN,4,4
	.comm	TWL4030_ARXL1_VRX_EN,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,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_twl4030.c_twl4030_tdm_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	twl4030_tdm_enable, %function
twl4030_tdm_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r7, .L8
	mov	r5, r2
	ldr	r1, [r7]
	mov	r4, r0
	bl	twl4030_read_reg_cache
	ldr	r3, .L8+4
	ldr	r1, [r7]
	ldr	r3, [r3]
	cmp	r3, r6
	ldreq	r3, .L8+8
	ldreq	r2, .L8+12
	ldrne	r3, .L8+16
	ldrne	r2, .L8+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r5, #0
	orr	r3, r3, r2
	orrne	r2, r3, r0
	biceq	r2, r0, r3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	twl4030_write
.L9:
	.align	2
.L8:
	.word	TWL4030_REG_OPTION
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	TWL4030_ARXL1_VRX_EN
	.word	TWL4030_ARXR1_EN
	.word	TWL4030_ATXL2_VTXL_EN
	.word	TWL4030_ATXR2_VTXR_EN
	.size	twl4030_tdm_enable, .-twl4030_tdm_enable
	.comm	TWL4030_REG_OPTION,4,4
	.comm	TWL4030_ATXR2_VTXR_EN,4,4
	.comm	TWL4030_ATXL2_VTXL_EN,4,4
	.comm	TWL4030_ARXR1_EN,4,4
	.comm	TWL4030_ARXL1_VRX_EN,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
