	.file	"extr_dma.c_b43legacy_destroy_dmaring.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TX"
.LC1:
	.string	"RX"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"DMA-%u 0x%04X (%s) max used slots: %d/%d\n"
	.text
	.p2align 4
	.type	b43legacy_destroy_dmaring, @function
b43legacy_destroy_dmaring:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 24[rdi], 0
	mov	rbp, rdi
	lea	rax, .LC1[rip]
	mov	edx, DWORD PTR 16[rdi]
	lea	r8, .LC0[rip]
	mov	ecx, DWORD PTR 32[rdi]
	lea	rsi, .LC2[rip]
	cmove	r8, rax
	mov	rax, QWORD PTR 48[rdi]
	sub	rsp, 8
	.cfi_def_cfa_offset 24
	push	rdx
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR 40[rdi]
	mov	r9d, DWORD PTR 20[rdi]
	mov	edi, DWORD PTR [rax]
	call	b43legacydbg@PLT
	mov	rdi, rbp
	call	dmacontroller_cleanup@PLT
	mov	rdi, rbp
	call	free_all_descbuffers@PLT
	mov	rdi, rbp
	call	free_ringmemory@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	kfree@PLT
	pop	rax
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rdx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	b43legacy_destroy_dmaring, .-b43legacy_destroy_dmaring
	.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_dma.c_b43legacy_destroy_dmaring.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX\000"
	.align	2
.LC1:
	.ascii	"RX\000"
	.align	2
.LC2:
	.ascii	"DMA-%u 0x%04X (%s) max used slots: %d/%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43legacy_destroy_dmaring, %function
b43legacy_destroy_dmaring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	sub	sp, sp, #16
	beq	.L1
	ldr	r0, [r4, #16]
	ldr	r1, .L7
	cmp	r0, #0
	ldr	r3, .L7+4
	moveq	r3, r1
	ldr	r2, [r4, #28]
	ldr	r1, [r4, #8]
	ldr	r0, [r2]
	ldr	r2, [r4, #12]
	str	r1, [sp, #8]
	str	r3, [sp]
	str	r2, [sp, #4]
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #24]
	ldr	r1, .L7+8
	bl	b43legacydbg
	mov	r0, r4
	bl	dmacontroller_cleanup
	mov	r0, r4
	bl	free_all_descbuffers
	mov	r0, r4
	bl	free_ringmemory
	ldr	r0, [r4, #4]
	bl	kfree
	ldr	r0, [r4]
	bl	kfree
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, lr}
	b	kfree
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	b43legacy_destroy_dmaring, .-b43legacy_destroy_dmaring
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
