	.file	"extr_snps_udc_core.c_init_dma_pools.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"data_requests"
.LC1:
	.string	"can't get request data pool\n"
.LC2:
	.string	"setup requests"
.LC3:
	.string	"can't get stp request pool\n"
	.text
	.p2align 4
	.globl	init_dma_pools
	.type	init_dma_pools, @function
init_dma_pools:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR use_dma_ppb[rip], 0
	je	.L2
	mov	DWORD PTR use_dma_bufferfill_mode[rip], 0
.L3:
	mov	esi, DWORD PTR 24[rbp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, 4
	lea	rdi, .LC0[rip]
	call	dma_pool_create@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR UDC_EP0IN_IX[rip]
	mov	rsi, QWORD PTR 16[rbp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdx, QWORD PTR 32[rbp]
	lea	rdi, .LC2[rip]
	lea	rax, [rax+rax*4]
	lea	rax, [rsi+rax*8]
	mov	esi, DWORD PTR 24[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	edx, 4
	call	dma_pool_create@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR UDC_EP0OUT_IX[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, [rax+rax*4]
	mov	rax, QWORD PTR 16[rbp]
	lea	rdx, [rax+rdx*8]
	call	dma_pool_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR UDC_EP0OUT_IX[rip]
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rcx, [rdx+rdx*4]
	mov	rdx, QWORD PTR 16[rbp]
	lea	rdx, [rdx+rcx*8]
	mov	QWORD PTR 8[rdx], rax
	add	rdx, 24
	call	dma_pool_alloc@PLT
	test	rax, rax
	je	.L15
	mov	rdx, QWORD PTR UDC_EP0OUT_IX[rip]
	mov	rcx, QWORD PTR 16[rbp]
	xor	r12d, r12d
	lea	rdx, [rdx+rdx*4]
	lea	rdx, [rcx+rdx*8]
	mov	QWORD PTR 16[rdx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	QWORD PTR use_dma_ppb_du[rip], 0
	mov	DWORD PTR use_dma_bufferfill_mode[rip], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR UDC_EP0OUT_IX[rip]
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdi, QWORD PTR 8[rbp]
	lea	rdx, [rax+rax*4]
	mov	rax, QWORD PTR 16[rbp]
	neg	r12d
	lea	rax, [rax+rdx*8]
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	call	dma_pool_free@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	call	dma_pool_destroy@PLT
	mov	QWORD PTR 8[rbp], 0
.L7:
	mov	rdi, QWORD PTR 0[rbp]
	call	dma_pool_destroy@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	eax, r12d
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	DBG@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	DBG@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	init_dma_pools, .-init_dma_pools
	.comm	use_dma_ppb_du,8,8
	.comm	use_dma_ppb,8,8
	.comm	use_dma_bufferfill_mode,4,4
	.comm	UDC_EP0OUT_IX,8,8
	.comm	UDC_EP0IN_IX,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_snps_udc_core.c_init_dma_pools.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"data_requests\000"
	.align	2
.LC1:
	.ascii	"can't get request data pool\012\000"
	.align	2
.LC2:
	.ascii	"setup requests\000"
	.align	2
.LC3:
	.ascii	"can't get stp request pool\012\000"
	.text
	.align	2
	.global	init_dma_pools
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_dma_pools, %function
init_dma_pools:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, #0
	movne	r2, #0
	moveq	r0, #1
	mov	r5, #0
	ldrne	r3, .L17+4
	ldreq	r1, .L17+4
	ldreq	r2, .L17+8
	sub	sp, sp, #12
	strne	r2, [r3]
	streq	r0, [r1]
	streq	r3, [r2]
	str	r5, [sp]
	mov	r2, #4
	mov	r3, r5
	ldr	r1, [r4, #12]
	ldr	r0, .L17+12
	bl	dma_pool_create
	cmp	r0, r5
	str	r0, [r4]
	beq	.L13
	ldr	r3, .L17+16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r1, [r4, #16]
	add	r3, r3, r3, lsl #2
	add	r3, r2, r3, lsl #2
	str	r1, [r3, #16]
	str	r5, [sp]
	mov	r3, r5
	mov	r2, #4
	ldr	r1, [r4, #12]
	ldr	r0, .L17+20
	bl	dma_pool_create
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L14
	ldr	r6, .L17+24
	ldr	r2, [r4, #8]
	ldr	r3, [r6]
	ldr	r7, .L17+28
	add	r3, r3, r3, lsl #2
	ldr	r1, [r7]
	add	r2, r2, r3, lsl #2
	bl	dma_pool_alloc
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r6]
	ldr	r2, [r4, #8]
	add	r3, r3, r3, lsl #2
	add	r2, r2, r3, lsl #2
	str	r0, [r2, #4]
	ldr	r1, [r7]
	add	r2, r2, #12
	ldr	r0, [r4, #4]
	bl	dma_pool_alloc
	ldr	r3, [r6]
	cmp	r0, #0
	ldr	r2, [r4, #8]
	addne	r3, r3, r3, lsl #2
	addne	r3, r2, r3, lsl #2
	strne	r0, [r3, #8]
	beq	.L16
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r3, .L17+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L9:
	ldr	r0, [r4, #4]
	bl	dma_pool_destroy
	mov	r3, #0
	str	r3, [r4, #4]
.L7:
	ldr	r0, [r4]
	bl	dma_pool_destroy
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r0, r4
	ldr	r1, .L17+36
	bl	DBG
	ldr	r3, .L17+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r0, r4
	ldr	r1, .L17+40
	bl	DBG
	ldr	r3, .L17+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L7
.L16:
	ldr	r0, .L17+32
	add	r3, r3, r3, lsl #2
	add	r1, r2, r3, lsl #2
	ldr	r5, [r0]
	ldr	r1, [r1, #4]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, [r4, #4]
	rsb	r5, r5, #0
	bl	dma_pool_free
	b	.L9
.L18:
	.align	2
.L17:
	.word	use_dma_ppb
	.word	use_dma_bufferfill_mode
	.word	use_dma_ppb_du
	.word	.LC0
	.word	UDC_EP0IN_IX
	.word	.LC2
	.word	UDC_EP0OUT_IX
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC1
	.word	.LC3
	.size	init_dma_pools, .-init_dma_pools
	.comm	use_dma_ppb_du,4,4
	.comm	use_dma_ppb,4,4
	.comm	use_dma_bufferfill_mode,4,4
	.comm	UDC_EP0OUT_IX,4,4
	.comm	UDC_EP0IN_IX,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
