	.file	"extr_omap-mcpdm.c_omap_mcpdm_prepare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap_mcpdm_prepare, @function
omap_mcpdm_prepare:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, rsi
	call	snd_soc_dai_get_drvdata@PLT
	mov	rbp, rax
	lea	r13, 12[rax]
	movsx	rax, DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	DWORD PTR [rbx], eax
	je	.L2
	movsx	rdx, DWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
.L11:
	mov	rcx, QWORD PTR 0[rbp]
	mov	rdi, r13
	mov	r12d, DWORD PTR [rcx+rax*4]
	mov	r14d, DWORD PTR [rcx+rdx*4]
	test	r12d, r12d
	je	.L3
	cmp	r12d, r14d
	jle	.L4
.L3:
	call	pm_qos_request_active@PLT
	test	rax, rax
	jne	.L9
	test	r14d, r14d
	jne	.L22
.L6:
	mov	rdi, rbp
	call	omap_mcpdm_active@PLT
	test	eax, eax
	je	.L23
.L7:
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jne	.L24
	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
.L4:
	.cfi_restore_state
	call	pm_qos_request_active@PLT
	test	rax, rax
	jne	.L25
.L10:
	mov	esi, DWORD PTR PM_QOS_CPU_DMA_LATENCY[rip]
	mov	rdi, r13
	mov	edx, r12d
	call	pm_qos_add_request@PLT
	mov	rdi, rbp
	call	omap_mcpdm_active@PLT
	test	eax, eax
	jne	.L7
.L23:
	mov	rdi, rbp
	call	omap_mcpdm_start@PLT
	mov	rdi, rbp
	call	omap_mcpdm_reg_dump@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
.L24:
	.cfi_restore_state
	mov	rdi, rbp
	call	omap_mcpdm_stop@PLT
	mov	rdi, rbp
	call	omap_mcpdm_start@PLT
	mov	DWORD PTR 8[rbp], 0
	mov	rdi, rbp
	call	omap_mcpdm_reg_dump@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
.L2:
	.cfi_restore_state
	movsx	rdx, eax
	movsx	rax, DWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r14d, r12d
.L9:
	mov	esi, r14d
	mov	rdi, r13
	call	pm_qos_update_request@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r12d, r14d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	omap_mcpdm_prepare, .-omap_mcpdm_prepare
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	PM_QOS_CPU_DMA_LATENCY,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_omap-mcpdm.c_omap_mcpdm_prepare.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_mcpdm_prepare, %function
omap_mcpdm_prepare:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	bl	snd_soc_dai_get_drvdata
	ldr	r3, .L29
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	add	r6, r0, #8
	beq	.L2
	ldr	r2, .L29+4
	ldr	r2, [r2]
.L11:
	ldr	r1, [r4]
	mov	r0, r6
	ldr	r5, [r1, r3, lsl #2]
	ldr	r7, [r1, r2, lsl #2]
	cmp	r5, #0
	beq	.L3
	cmp	r5, r7
	ble	.L4
.L3:
	bl	pm_qos_request_active
	cmp	r0, #0
	bne	.L9
	cmp	r7, #0
	bne	.L25
.L6:
	mov	r0, r4
	bl	omap_mcpdm_active
	cmp	r0, #0
	beq	.L26
.L7:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L27
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	pm_qos_request_active
	cmp	r0, #0
	bne	.L28
.L10:
	ldr	r3, .L29+8
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r6
	bl	pm_qos_add_request
	mov	r0, r4
	bl	omap_mcpdm_active
	cmp	r0, #0
	bne	.L7
.L26:
	mov	r0, r4
	bl	omap_mcpdm_start
	mov	r0, r4
	bl	omap_mcpdm_reg_dump
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	mov	r0, r4
	bl	omap_mcpdm_stop
	mov	r0, r4
	bl	omap_mcpdm_start
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #4]
	bl	omap_mcpdm_reg_dump
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, .L29+4
	mov	r2, r3
	ldr	r3, [r1]
	b	.L11
.L28:
	mov	r7, r5
.L9:
	mov	r1, r7
	mov	r0, r6
	bl	pm_qos_update_request
	b	.L6
.L25:
	mov	r5, r7
	b	.L10
.L30:
	.align	2
.L29:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	SNDRV_PCM_STREAM_CAPTURE
	.word	PM_QOS_CPU_DMA_LATENCY
	.size	omap_mcpdm_prepare, .-omap_mcpdm_prepare
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	PM_QOS_CPU_DMA_LATENCY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
