	.file	"extr_dma.c_qce_dma_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tx"
.LC1:
	.string	"rx"
	.text
	.p2align 4
	.globl	qce_dma_request
	.type	qce_dma_request, @function
qce_dma_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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	rbx, rsi
	lea	rsi, .LC0[rip]
	call	dma_request_slave_channel_reason@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	dma_request_slave_channel_reason@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR QCE_IGNORE_BUF_SZ[rip]
	add	rdi, QWORD PTR QCE_RESULT_BUF_SZ[rip]
	call	kmalloc@PLT
	mov	QWORD PTR 16[rbx], rax
	test	rax, rax
	je	.L11
	add	rax, QWORD PTR QCE_RESULT_BUF_SZ[rip]
	xor	r12d, r12d
	mov	QWORD PTR 24[rbx], rax
	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
	mov	rdi, QWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
.L4:
	mov	rdi, QWORD PTR [rbx]
	call	dma_release_channel@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
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdi, QWORD PTR 8[rbx]
	neg	r12d
	call	dma_release_channel@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	qce_dma_request, .-qce_dma_request
	.comm	QCE_RESULT_BUF_SZ,8,8
	.comm	QCE_IGNORE_BUF_SZ,8,8
	.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_dma.c_qce_dma_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tx\000"
	.align	2
.LC1:
	.ascii	"rx\000"
	.text
	.align	2
	.global	qce_dma_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	qce_dma_request, %function
qce_dma_request:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, .L12
	mov	r5, r0
	bl	dma_request_slave_channel_reason
	str	r0, [r4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L9
	mov	r0, r5
	ldr	r1, .L12+4
	bl	dma_request_slave_channel_reason
	str	r0, [r4, #4]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L10
	ldr	r3, .L12+8
	ldr	r6, .L12+12
	ldr	r2, [r3]
	ldr	r0, [r6]
	ldr	r3, .L12+16
	add	r0, r0, r2
	ldr	r1, [r3]
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L11
	ldr	r3, [r6]
	add	r0, r3, r0
	str	r0, [r4, #12]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [r4, #4]
	bl	PTR_ERR
	mov	r5, r0
.L4:
	ldr	r0, [r4]
	bl	dma_release_channel
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L11:
	ldr	r3, .L12+20
	ldr	r0, [r4, #4]
	ldr	r5, [r3]
	rsb	r5, r5, #0
	bl	dma_release_channel
	b	.L4
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	QCE_IGNORE_BUF_SZ
	.word	QCE_RESULT_BUF_SZ
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	qce_dma_request, .-qce_dma_request
	.comm	QCE_RESULT_BUF_SZ,4,4
	.comm	QCE_IGNORE_BUF_SZ,4,4
	.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
