	.file	"extr_xgene-dma.c_xgene_dma_create_chan_rings.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Rx ring id 0x%X num %d desc 0x%p\n"
	.align 8
.LC1:
	.string	"Tx ring id 0x%X num %d desc 0x%p\n"
	.text
	.p2align 4
	.type	xgene_dma_create_chan_rings, @function
xgene_dma_create_chan_rings:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR XGENE_DMA_RING_OWNER_CPU[rip]
	mov	edx, DWORD PTR XGENE_DMA_RING_CFG_SIZE_64KB[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 56[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rsi, rbp
	mov	rbx, rdi
	mov	DWORD PTR 88[rdi], eax
	mov	rax, QWORD PTR XGENE_DMA_CPU_BUFNUM[rip]
	add	rax, QWORD PTR 8[rdi]
	mov	QWORD PTR 80[rdi], rax
	call	xgene_dma_create_ring_one@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	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
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR 64[rbx]
	mov	edx, DWORD PTR 68[rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	mov	r8d, DWORD PTR 60[rbx]
	call	chan_dbg@PLT
	mov	eax, DWORD PTR XGENE_DMA_RING_OWNER_DMA[rip]
	lea	rsi, 16[rbx]
	mov	rdi, rbx
	mov	edx, DWORD PTR XGENE_DMA_RING_CFG_SIZE_64KB[rip]
	mov	DWORD PTR 48[rbx], eax
	mov	rax, QWORD PTR XGENE_DMA_BUFNUM[rip]
	add	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 40[rbx], rax
	call	xgene_dma_create_ring_one@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	edi, DWORD PTR 64[rbx]
	call	XGENE_DMA_RING_DST_ID@PLT
	mov	ecx, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR 28[rbx]
	mov	rdi, rbx
	mov	DWORD PTR 32[rbx], eax
	mov	r8d, DWORD PTR 20[rbx]
	lea	rsi, .LC1[rip]
	call	chan_dbg@PLT
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR [rbx], eax
	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
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	xgene_dma_delete_ring_one@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xgene_dma_create_chan_rings, .-xgene_dma_create_chan_rings
	.comm	XGENE_DMA_RING_OWNER_DMA,4,4
	.comm	XGENE_DMA_RING_OWNER_CPU,4,4
	.comm	XGENE_DMA_RING_CFG_SIZE_64KB,4,4
	.comm	XGENE_DMA_CPU_BUFNUM,8,8
	.comm	XGENE_DMA_BUFNUM,8,8
	.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_xgene-dma.c_xgene_dma_create_chan_rings.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Rx ring id 0x%X num %d desc 0x%p\012\000"
	.align	2
.LC1:
	.ascii	"Tx ring id 0x%X num %d desc 0x%p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgene_dma_create_chan_rings, %function
xgene_dma_create_chan_rings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r1, .L8
	ldr	r2, .L8+4
	ldr	r1, [r1]
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	ldr	r6, .L8+8
	add	r3, r3, r1
	add	r7, r0, #36
	str	r2, [r0, #60]
	mov	r1, r7
	ldr	r2, [r6]
	sub	sp, sp, #12
	str	r3, [r0, #56]
	mov	r4, r0
	bl	xgene_dma_create_ring_one
	subs	r5, r0, #0
	beq	.L6
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r2, [r4, #40]
	ldr	r3, [r4, #44]
	str	r2, [sp]
	ldr	r2, [r4, #48]
	ldr	r1, .L8+12
	mov	r0, r4
	bl	chan_dbg
	ldr	r3, .L8+16
	ldr	r1, .L8+20
	ldr	r2, [r3]
	ldr	r3, [r4, #4]
	ldr	r1, [r1]
	add	r3, r3, r2
	str	r1, [r4, #32]
	mov	r0, r4
	ldr	r2, [r6]
	str	r3, [r4, #28]
	add	r1, r4, #8
	bl	xgene_dma_create_ring_one
	subs	r5, r0, #0
	bne	.L7
	ldr	r0, [r4, #44]
	bl	XGENE_DMA_RING_DST_ID
	ldr	r3, [r4, #12]
	str	r0, [r4, #24]
	str	r3, [sp]
	ldr	r3, [r4, #16]
	mov	r0, r4
	ldr	r2, [r4, #20]
	ldr	r1, .L8+24
	bl	chan_dbg
	mov	r0, r5
	ldr	r3, [r4, #8]
	str	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r7
	bl	xgene_dma_delete_ring_one
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	.align	2
.L8:
	.word	XGENE_DMA_CPU_BUFNUM
	.word	XGENE_DMA_RING_OWNER_CPU
	.word	XGENE_DMA_RING_CFG_SIZE_64KB
	.word	.LC0
	.word	XGENE_DMA_BUFNUM
	.word	XGENE_DMA_RING_OWNER_DMA
	.word	.LC1
	.size	xgene_dma_create_chan_rings, .-xgene_dma_create_chan_rings
	.comm	XGENE_DMA_RING_OWNER_DMA,4,4
	.comm	XGENE_DMA_RING_OWNER_CPU,4,4
	.comm	XGENE_DMA_RING_CFG_SIZE_64KB,4,4
	.comm	XGENE_DMA_CPU_BUFNUM,4,4
	.comm	XGENE_DMA_BUFNUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
