	.file	"extr_ste_dma40.c_d40_pool_lli_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	d40_pool_lli_alloc, @function
d40_pool_lli_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movsx	rbp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	chan_is_logical@PLT
	mov	r12d, eax
	cmp	ebp, 1
	jne	.L2
	mov	DWORD PTR [rbx], 8
	mov	rdi, QWORD PTR 24[rbx]
	mov	QWORD PTR 16[rbx], 0
.L3:
	mov	esi, 4
	test	r12d, r12d
	jne	.L12
	call	PTR_ALIGN@PLT
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edx, DWORD PTR [rbx]
	mov	rsi, rax
	add	rbp, rax
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR 40[rbx], rbp
	mov	edi, DWORD PTR [rax]
	call	dma_map_single@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	dma_mapping_error@PLT
	test	rax, rax
	jne	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	PTR_ALIGN@PLT
	xor	r12d, r12d
	mov	QWORD PTR 8[rbx], 0
	add	rbp, rax
	mov	QWORD PTR 48[rbx], rax
	mov	eax, r12d
	mov	QWORD PTR 56[rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	edi, 0[0+rbp*8]
	mov	esi, DWORD PTR GFP_NOWAIT[rip]
	mov	DWORD PTR [rbx], edi
	add	edi, 4
	call	kmalloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	test	rax, rax
	jne	.L3
.L10:
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	call	kfree@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	d40_pool_lli_alloc, .-d40_pool_lli_alloc
	.comm	GFP_NOWAIT,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,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_ste_dma40.c_d40_pool_lli_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d40_pool_lli_alloc, %function
d40_pool_lli_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r4, r1
	mov	r7, r0
	bl	chan_is_logical
	cmp	r5, #1
	mov	r6, r0
	bne	.L2
	mov	r2, #4
	mov	r3, #0
	ldr	r0, [r4, #12]
	str	r2, [r4]
	str	r3, [r4, #8]
.L3:
	cmp	r6, #0
	mov	r1, #4
	beq	.L5
	bl	PTR_ALIGN
	mov	r3, r0
	mov	r0, #0
	add	r5, r3, r5
	str	r5, [r4, #28]
	str	r3, [r4, #24]
	str	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	bl	PTR_ALIGN
	ldr	r2, [r7]
	ldr	r3, .L11
	add	r5, r0, r5
	mov	r1, r0
	ldr	r3, [r3]
	str	r0, [r4, #16]
	str	r5, [r4, #20]
	ldr	r0, [r2]
	ldr	r2, [r4]
	bl	dma_map_single
	ldr	r3, [r7]
	mov	r1, r0
	str	r0, [r4, #4]
	ldr	r0, [r3]
	bl	dma_mapping_error
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r4, #8]
	bl	kfree
	ldr	r3, .L11+4
	str	r6, [r4, #8]
	ldr	r3, [r3]
	str	r6, [r4, #4]
	rsb	r0, r3, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L11+8
	lsl	r0, r5, #3
	ldr	r1, [r3]
	str	r0, [r4]
	add	r0, r0, #4
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4, #8]
	bne	.L3
	ldr	r3, .L11+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	DMA_TO_DEVICE
	.word	ENOMEM
	.word	GFP_NOWAIT
	.size	d40_pool_lli_alloc, .-d40_pool_lli_alloc
	.comm	GFP_NOWAIT,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
