	.file	"extr_xdma_mbuf.c_xdma_enqueue_mbuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xdma_enqueue_mbuf
	.type	xdma_enqueue_mbuf, @function
xdma_enqueue_mbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rsi
	call	xchan_bank_get@PLT
	test	rax, rax
	je	.L5
	mov	rsi, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], r15d
	mov	rbp, rax
	cmp	DWORD PTR XDMA_MEM_TO_DEV[rip], r15d
	mov	rax, QWORD PTR [rsi]
	mov	QWORD PTR 48[rbp], rax
	mov	eax, DWORD PTR XR_TYPE_MBUF[rip]
	mov	DWORD PTR 40[rbp], eax
	je	.L8
	mov	QWORD PTR 16[rbp], r14
	mov	QWORD PTR 8[rbp], 0
.L4:
	mov	QWORD PTR 32[rbp], r13
	mov	rdi, r12
	mov	QWORD PTR 24[rbp], rbx
	call	QUEUE_IN_LOCK@PLT
	mov	edx, DWORD PTR xr_next[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	TAILQ_INSERT_TAIL@PLT
	mov	rdi, r12
	call	QUEUE_IN_UNLOCK@PLT
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], r14
	mov	QWORD PTR 16[rbp], 0
	jmp	.L4
.L5:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xdma_enqueue_mbuf, .-xdma_enqueue_mbuf
	.comm	xr_next,4,4
	.comm	XR_TYPE_MBUF,4,4
	.comm	XDMA_MEM_TO_DEV,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_xdma_mbuf.c_xdma_enqueue_mbuf.c"
	.text
	.align	2
	.global	xdma_enqueue_mbuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	xdma_enqueue_mbuf, %function
xdma_enqueue_mbuf:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [sp, #36]
	mov	r8, r1
	mov	r7, r2
	mov	r9, r3
	mov	r5, r0
	bl	xchan_bank_get
	subs	r4, r0, #0
	beq	.L5
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r2, [r8]
	str	r3, [r4, #20]
	mov	r3, #0
	cmp	r1, r6
	stmibne	r4, {r3, r7}
	streq	r3, [r4, #8]
	ldr	r3, [sp, #32]
	streq	r7, [r4, #4]
	str	r2, [r4, #24]
	str	r3, [r4, #12]
	mov	r0, r5
	str	r6, [r4]
	str	r9, [r4, #16]
	bl	QUEUE_IN_LOCK
	ldr	r3, .L8+8
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, r5
	bl	TAILQ_INSERT_TAIL
	mov	r0, r5
	bl	QUEUE_IN_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	XR_TYPE_MBUF
	.word	XDMA_MEM_TO_DEV
	.word	xr_next
	.size	xdma_enqueue_mbuf, .-xdma_enqueue_mbuf
	.comm	xr_next,4,4
	.comm	XR_TYPE_MBUF,4,4
	.comm	XDMA_MEM_TO_DEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
