	.file	"extr_audio_amrnb.c_audamrnb_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"audio: busy\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"audio: could not allocate DMA buffers\n"
	.section	.rodata.str1.1
.LC2:
	.string	"AUDPLAY0TASK"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"audio: failed to get audplay0 dsp module\n"
	.text
	.p2align 4
	.type	audamrnb_open, @function
audamrnb_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, the_amrnb_audio[rip+12]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	mutex_lock@PLT
	mov	eax, DWORD PTR the_amrnb_audio[rip]
	test	eax, eax
	jne	.L8
	cmp	QWORD PTR the_amrnb_audio[rip+24], 0
	je	.L9
.L4:
	lea	rdi, the_amrnb_audio[rip+40]
	call	audmgr_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L3:
	lea	rdi, the_amrnb_audio[rip+12]
	call	mutex_unlock@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rcx, the_amrnb_audio[rip]
	lea	rdx, audplay_adsp_ops_amrnb[rip]
	lea	rsi, 44[rcx]
	lea	rdi, .LC2[rip]
	call	msm_adsp_get@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	rsi, QWORD PTR the_amrnb_audio[rip+24]
	mov	rax, QWORD PTR the_amrnb_audio[rip+16]
	mov	QWORD PTR the_amrnb_audio[rip+32], 0
	lea	rbp, the_amrnb_audio[rip]
	movsx	rdi, DWORD PTR BUFSZ[rip]
	mov	ecx, DWORD PTR the_amrnb_audio[rip+4]
	mov	QWORD PTR 8[rax], rsi
	mov	DWORD PTR [rax], ecx
	lea	rsi, [rsi+rdi*4]
	add	ecx, edi
	mov	DWORD PTR 4[rax], edi
	mov	DWORD PTR 20[rax], edi
	mov	rdi, rbp
	mov	QWORD PTR 24[rax], rsi
	mov	DWORD PTR 16[rax], ecx
	mov	DWORD PTR the_amrnb_audio[rip+8], 8192
	call	audamrnb_flush@PLT
	mov	QWORD PTR [rbx], rbp
	mov	DWORD PTR the_amrnb_audio[rip], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR DMASZ[rip]
	lea	rdx, the_amrnb_audio[rip+4]
	xor	edi, edi
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR the_amrnb_audio[rip+24], rax
	test	rax, rax
	jne	.L4
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	lea	rdi, the_amrnb_audio[rip+40]
	call	audmgr_disable@PLT
	mov	ecx, DWORD PTR the_amrnb_audio[rip+4]
	mov	rdx, QWORD PTR the_amrnb_audio[rip+24]
	xor	edi, edi
	mov	esi, DWORD PTR DMASZ[rip]
	call	dma_free_coherent@PLT
	mov	QWORD PTR the_amrnb_audio[rip+24], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	audamrnb_open, .-audamrnb_open
	.comm	the_amrnb_audio,48,32
	.comm	audplay_adsp_ops_amrnb,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	DMASZ,4,4
	.comm	BUFSZ,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_audio_amrnb.c_audamrnb_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"audio: busy\012\000"
	.align	2
.LC1:
	.ascii	"audio: could not allocate DMA buffers\012\000"
	.align	2
.LC2:
	.ascii	"AUDPLAY0TASK\000"
	.align	2
.LC3:
	.ascii	"audio: failed to get audplay0 dsp module\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	audamrnb_open, %function
audamrnb_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L12
	mov	r6, r1
	mov	r0, r4
	bl	mutex_lock
	ldr	r3, [r4, #-12]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [r4, #8]
	sub	r4, r4, #12
	cmp	r0, #0
	beq	.L9
.L4:
	ldr	r7, .L12+4
	mov	r0, r7
	bl	audmgr_open
	subs	r5, r0, #0
	beq	.L10
.L3:
	ldr	r0, .L12
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r2, .L12+8
	ldr	r0, .L12+12
	sub	r3, r7, #28
	add	r1, r7, #4
	bl	msm_adsp_get
	subs	r5, r0, #0
	bne	.L11
	mov	ip, #8192
	ldr	r3, .L12+16
	ldr	r0, [r4, #20]
	ldr	r2, [r3]
	ldr	r1, [r4, #4]
	ldr	r3, [r4, #16]
	str	r5, [r4, #24]
	add	lr, r0, r2, lsl #2
	str	r0, [r3, #8]
	add	r0, r1, r2
	str	r2, [r3, #4]
	str	r0, [r3, #12]
	str	r1, [r3]
	str	lr, [r3, #20]
	str	r2, [r3, #16]
	sub	r0, r7, #28
	str	ip, [r4, #8]
	bl	audamrnb_flush
	mov	r3, #1
	str	r4, [r6]
	str	r3, [r7, #-28]
	b	.L3
.L9:
	ldr	r2, .L12+20
	ldr	r3, .L12+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	add	r2, r4, #4
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #20]
	bne	.L4
	ldr	r0, .L12+28
	bl	pr_err
	ldr	r3, .L12+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L8:
	ldr	r0, .L12+36
	bl	pr_err
	ldr	r3, .L12+40
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L11:
	ldr	r0, .L12+44
	bl	pr_err
	mov	r0, r7
	bl	audmgr_disable
	ldr	r2, .L12+20
	ldr	r3, [r4, #4]
	ldr	r1, [r2]
	mov	r0, #0
	ldr	r2, [r4, #20]
	bl	dma_free_coherent
	mov	r3, #0
	str	r3, [r4, #20]
	b	.L3
.L13:
	.align	2
.L12:
	.word	the_amrnb_audio+12
	.word	the_amrnb_audio+28
	.word	audplay_adsp_ops_amrnb
	.word	.LC2
	.word	BUFSZ
	.word	DMASZ
	.word	GFP_KERNEL
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	EBUSY
	.word	.LC3
	.size	audamrnb_open, .-audamrnb_open
	.comm	the_amrnb_audio,36,4
	.comm	audplay_adsp_ops_amrnb,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	DMASZ,4,4
	.comm	BUFSZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
