	.file	"extr_bcmgenet.c_bcmgenet_dma_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcmgenet_dma_disable, @function
bcmgenet_dma_disable:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR DMA_RING_BUF_EN_SHIFT[rip]
	add	ecx, DWORD PTR DESC_INDEX[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sal	r12d, cl
	mov	esi, DWORD PTR DMA_CTRL[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	or	r12d, DWORD PTR DMA_EN[rip]
	mov	ebx, r12d
	not	ebx
	call	bcmgenet_tdma_readl@PLT
	mov	edx, DWORD PTR DMA_CTRL[rip]
	mov	rdi, rbp
	and	eax, ebx
	mov	esi, eax
	call	bcmgenet_tdma_writel@PLT
	mov	esi, DWORD PTR DMA_CTRL[rip]
	mov	rdi, rbp
	call	bcmgenet_rdma_readl@PLT
	mov	edx, DWORD PTR DMA_CTRL[rip]
	mov	rdi, rbp
	and	ebx, eax
	mov	esi, ebx
	call	bcmgenet_rdma_writel@PLT
	mov	edx, DWORD PTR UMAC_TX_FLUSH[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	bcmgenet_umac_writel@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	edx, DWORD PTR UMAC_TX_FLUSH[rip]
	mov	rdi, rbp
	xor	esi, esi
	call	bcmgenet_umac_writel@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	bcmgenet_dma_disable, .-bcmgenet_dma_disable
	.comm	UMAC_TX_FLUSH,4,4
	.comm	DMA_RING_BUF_EN_SHIFT,4,4
	.comm	DMA_EN,4,4
	.comm	DMA_CTRL,4,4
	.comm	DESC_INDEX,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_bcmgenet.c_bcmgenet_dma_disable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcmgenet_dma_disable, %function
bcmgenet_dma_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, #1
	ldr	r3, .L4
	ldr	r2, .L4+4
	ldr	r1, .L4+8
	ldr	r6, .L4+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r5, [r1]
	add	r3, r3, r2
	ldr	r1, [r6]
	orr	r5, r5, r8, lsl r3
	mov	r4, r0
	bl	bcmgenet_tdma_readl
	ldr	r2, [r6]
	bic	r1, r0, r5
	mov	r0, r4
	bl	bcmgenet_tdma_writel
	ldr	r1, [r6]
	mov	r0, r4
	bl	bcmgenet_rdma_readl
	mvn	r9, r5
	ldr	r7, .L4+16
	and	r1, r9, r0
	ldr	r2, [r6]
	mov	r0, r4
	bl	bcmgenet_rdma_writel
	mov	r1, r8
	ldr	r2, [r7]
	mov	r0, r4
	bl	bcmgenet_umac_writel
	mov	r0, #10
	bl	udelay
	mov	r0, r4
	mov	r1, #0
	ldr	r2, [r7]
	bl	bcmgenet_umac_writel
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	DESC_INDEX
	.word	DMA_RING_BUF_EN_SHIFT
	.word	DMA_EN
	.word	DMA_CTRL
	.word	UMAC_TX_FLUSH
	.size	bcmgenet_dma_disable, .-bcmgenet_dma_disable
	.comm	UMAC_TX_FLUSH,4,4
	.comm	DMA_RING_BUF_EN_SHIFT,4,4
	.comm	DMA_EN,4,4
	.comm	DMA_CTRL,4,4
	.comm	DESC_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
