	.file	"extr_b44.c_b44_free_consistent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b44_free_consistent, @function
b44_free_consistent:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	rdi, QWORD PTR 56[rdi]
	call	kfree@PLT
	mov	QWORD PTR 56[rbx], 0
	mov	rdi, QWORD PTR 48[rbx]
	call	kfree@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	QWORD PTR 48[rbx], 0
	test	rdx, rdx
	je	.L2
	mov	rax, QWORD PTR 24[rbx]
	mov	r8d, DWORD PTR 40[rbx]
	mov	esi, DWORD PTR DMA_TABLE_BYTES[rip]
	mov	edi, DWORD PTR [rax]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR B44_FLAG_RX_RING_HACK[rip], eax
	jne	.L16
	mov	ecx, r8d
	call	dma_free_coherent@PLT
.L4:
	mov	eax, DWORD PTR B44_FLAG_RX_RING_HACK[rip]
	mov	QWORD PTR 32[rbx], 0
	not	eax
	and	DWORD PTR [rbx], eax
.L2:
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L1
	mov	rax, QWORD PTR 24[rbx]
	mov	r8d, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR DMA_TABLE_BYTES[rip]
	mov	edi, DWORD PTR [rax]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR B44_FLAG_TX_RING_HACK[rip], eax
	jne	.L17
	mov	ecx, r8d
	call	dma_free_coherent@PLT
.L7:
	mov	eax, DWORD PTR B44_FLAG_TX_RING_HACK[rip]
	mov	QWORD PTR 8[rbx], 0
	not	eax
	and	DWORD PTR [rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edx, esi
	mov	esi, r8d
	call	dma_unmap_single@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	kfree@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	mov	edx, esi
	mov	esi, r8d
	call	dma_unmap_single@PLT
	mov	rdi, QWORD PTR 32[rbx]
	call	kfree@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	b44_free_consistent, .-b44_free_consistent
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_TABLE_BYTES,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	B44_FLAG_TX_RING_HACK,4,4
	.comm	B44_FLAG_RX_RING_HACK,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_b44.c_b44_free_consistent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b44_free_consistent, %function
b44_free_consistent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, #0
	ldr	r0, [r0, #28]
	bl	kfree
	ldr	r0, [r4, #24]
	str	r5, [r4, #28]
	bl	kfree
	ldr	r2, [r4, #16]
	str	r5, [r4, #24]
	cmp	r2, r5
	beq	.L2
	ldr	r5, .L18
	ldr	ip, [r4]
	ldr	r0, [r5]
	ldr	r1, [r4, #12]
	ldr	r3, .L18+4
	tst	ip, r0
	ldr	r0, [r1]
	ldr	r1, [r3]
	ldr	r3, [r4, #20]
	bne	.L16
	bl	dma_free_coherent
.L4:
	mov	r1, #0
	ldr	r2, [r5]
	ldr	r3, [r4]
	str	r1, [r4, #16]
	bic	r3, r3, r2
	str	r3, [r4]
.L2:
	ldr	r2, [r4, #4]
	cmp	r2, #0
	popeq	{r4, r5, r6, pc}
	ldr	r5, .L18+8
	ldr	ip, [r4]
	ldr	r0, [r5]
	ldr	r1, [r4, #12]
	ldr	r3, .L18+4
	tst	ip, r0
	ldr	r0, [r1]
	ldr	r1, [r3]
	ldr	r3, [r4, #8]
	bne	.L17
	bl	dma_free_coherent
.L7:
	mov	r1, #0
	ldr	r2, [r5]
	ldr	r3, [r4]
	str	r1, [r4, #4]
	bic	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L17:
	ldr	ip, .L18+12
	mov	r2, r1
	mov	r1, r3
	ldr	r3, [ip]
	bl	dma_unmap_single
	ldr	r0, [r4, #4]
	bl	kfree
	b	.L7
.L16:
	ldr	ip, .L18+16
	mov	r2, r1
	mov	r1, r3
	ldr	r3, [ip]
	bl	dma_unmap_single
	ldr	r0, [r4, #16]
	bl	kfree
	b	.L4
.L19:
	.align	2
.L18:
	.word	B44_FLAG_RX_RING_HACK
	.word	DMA_TABLE_BYTES
	.word	B44_FLAG_TX_RING_HACK
	.word	DMA_TO_DEVICE
	.word	DMA_BIDIRECTIONAL
	.size	b44_free_consistent, .-b44_free_consistent
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_TABLE_BYTES,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	B44_FLAG_TX_RING_HACK,4,4
	.comm	B44_FLAG_RX_RING_HACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
