	.file	"extr_dscc4.c_dscc4_release_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dscc4_release_ring, @function
dscc4_release_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 40[rdi]
	mov	r15, QWORD PTR 32[rdi]
	mov	ecx, DWORD PTR 20[rdi]
	mov	esi, DWORD PTR TX_TOTAL_SIZE[rip]
	mov	rbp, QWORD PTR [rax]
	mov	r12, QWORD PTR 24[rdi]
	mov	rdx, r15
	mov	rdi, rbp
	call	pci_free_consistent@PLT
	mov	ecx, DWORD PTR 16[r13]
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, DWORD PTR RX_TOTAL_SIZE[rip]
	call	pci_free_consistent@PLT
	mov	edx, DWORD PTR TX_RING_SIZE[rip]
	mov	r14, QWORD PTR 8[r13]
	test	edx, edx
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r14+rbx*8]
	test	rax, rax
	je	.L3
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	edx, DWORD PTR [rax]
	mov	edi, DWORD PTR [r15+rbx*4]
	mov	DWORD PTR 12[rsp], ecx
	mov	DWORD PTR 8[rsp], edx
	call	le32_to_cpu@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	esi, eax
	call	pci_unmap_single@PLT
	mov	rdi, QWORD PTR [r14+rbx*8]
	call	dev_kfree_skb@PLT
.L3:
	add	rbx, 1
	cmp	DWORD PTR TX_RING_SIZE[rip], ebx
	jg	.L4
.L2:
	mov	eax, DWORD PTR RX_RING_SIZE[rip]
	mov	r14, QWORD PTR 0[r13]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	QWORD PTR [r14+rbx*8], 0
	je	.L6
	mov	edi, DWORD PTR HDLC_MAX_MRU[rip]
	mov	r15d, DWORD PTR PCI_DMA_FROMDEVICE[rip]
	call	RX_MAX@PLT
	mov	edi, DWORD PTR [r12+rbx*4]
	mov	r13d, eax
	call	le32_to_cpu@PLT
	mov	rdi, rbp
	mov	ecx, r15d
	mov	edx, r13d
	mov	esi, eax
	call	pci_unmap_single@PLT
	mov	rdi, QWORD PTR [r14+rbx*8]
	call	dev_kfree_skb@PLT
.L6:
	add	rbx, 1
	cmp	DWORD PTR RX_RING_SIZE[rip], ebx
	jg	.L7
.L1:
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	dscc4_release_ring, .-dscc4_release_ring
	.comm	TX_TOTAL_SIZE,4,4
	.comm	TX_RING_SIZE,4,4
	.comm	RX_TOTAL_SIZE,4,4
	.comm	RX_RING_SIZE,4,4
	.comm	PCI_DMA_TODEVICE,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.comm	HDLC_MAX_MRU,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_dscc4.c_dscc4_release_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dscc4_release_ring, %function
dscc4_release_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	ldr	r3, [r0, #24]
	ldr	r8, [r0, #20]
	ldr	r7, [r3]
	ldr	r1, .L18
	mov	r2, r8
	ldr	r3, [r10, #12]
	ldr	r1, [r1]
	mov	r0, r7
	ldr	r9, [r10, #16]
	bl	pci_free_consistent
	ldr	r1, .L18+4
	ldr	r6, .L18+8
	ldr	r3, [r10, #8]
	mov	r0, r7
	mov	r2, r9
	ldr	r1, [r1]
	bl	pci_free_consistent
	ldr	r3, [r6]
	ldr	r5, [r10, #4]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	fp, .L18+12
	sub	r5, r5, #4
.L4:
	ldr	r3, [r5, #4]!
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r8, r4, lsl #2]
	bl	le32_to_cpu
	ldr	r3, [r5]
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r7
	ldr	r3, [fp]
	bl	pci_unmap_single
	ldr	r0, [r5]
	bl	dev_kfree_skb
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L2:
	ldr	r8, .L18+16
	ldr	r5, [r10]
	ldr	r3, [r8]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r4, #0
	ldr	fp, .L18+20
	ldr	r10, .L18+24
	sub	r5, r5, #4
.L7:
	ldr	r3, [r5, #4]!
	cmp	r3, #0
	beq	.L6
	ldr	r0, [r9, r4, lsl #2]
	bl	le32_to_cpu
	mov	r6, r0
	ldr	r0, [fp]
	bl	RX_MAX
	mov	r1, r6
	mov	r2, r0
	ldr	r3, [r10]
	mov	r0, r7
	bl	pci_unmap_single
	ldr	r0, [r5]
	bl	dev_kfree_skb
.L6:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	TX_TOTAL_SIZE
	.word	RX_TOTAL_SIZE
	.word	TX_RING_SIZE
	.word	PCI_DMA_TODEVICE
	.word	RX_RING_SIZE
	.word	HDLC_MAX_MRU
	.word	PCI_DMA_FROMDEVICE
	.size	dscc4_release_ring, .-dscc4_release_ring
	.comm	TX_TOTAL_SIZE,4,4
	.comm	TX_RING_SIZE,4,4
	.comm	RX_TOTAL_SIZE,4,4
	.comm	RX_RING_SIZE,4,4
	.comm	PCI_DMA_TODEVICE,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.comm	HDLC_MAX_MRU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
