	.file	"extr_coda-common.c_coda_alloc_aux_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate %s buffer of size %zu\n"
	.align 8
.LC1:
	.string	"failed to create debugfs entry %s\n"
	.text
	.p2align 4
	.globl	coda_alloc_aux_buf
	.type	coda_alloc_aux_buf, @function
coda_alloc_aux_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	lea	rdx, 40[rsi]
	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	edi, DWORD PTR [rdi]
	mov	rbx, rsi
	mov	rsi, r12
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	je	.L12
	mov	QWORD PTR [rbx], r12
	test	r14, r14
	je	.L6
	test	r13, r13
	jne	.L4
.L6:
	xor	r12d, r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	mov	QWORD PTR 16[rbx], r12
	lea	rcx, 16[rbx]
	mov	rdx, r13
	mov	esi, 420
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, r14
	call	debugfs_create_blob@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	dev_warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, 4[rbp]
	mov	rcx, r12
	mov	rdx, r14
	lea	rsi, .LC0[rip]
	call	v4l2_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	coda_alloc_aux_buf, .-coda_alloc_aux_buf
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_coda-common.c_coda_alloc_aux_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate %s buffer of size %zu\012\000"
	.align	2
.LC1:
	.ascii	"failed to create debugfs entry %s\012\000"
	.text
	.align	2
	.global	coda_alloc_aux_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	coda_alloc_aux_buf, %function
coda_alloc_aux_buf:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r3
	ldr	r3, .L9
	mov	r4, r1
	add	r2, r1, #20
	mov	r7, r0
	mov	r1, r5
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r8, [sp, #24]
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #16]
	beq	.L8
	cmp	r6, #0
	cmpne	r8, #0
	str	r5, [r4]
	bne	.L4
.L5:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r3, r4
	str	r0, [r4, #12]
	mov	r2, r8
	str	r5, [r3, #8]!
	mov	r1, #420
	mov	r0, r6
	bl	debugfs_create_blob
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4, #4]
	bne	.L5
	mov	r2, r6
	ldr	r0, [r7]
	ldr	r1, .L9+4
	bl	dev_warn
	b	.L1
.L8:
	mov	r3, r5
	mov	r2, r6
	ldr	r1, .L9+8
	add	r0, r7, #4
	bl	v4l2_err
	ldr	r3, .L9+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	.LC1
	.word	.LC0
	.word	ENOMEM
	.size	coda_alloc_aux_buf, .-coda_alloc_aux_buf
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
