	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bcmgenet_dma_teardown
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bcmgenet_dma_teardown:                 ## @bcmgenet_dma_teardown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_DMA_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_bcmgenet_tdma_readl
	movq	_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_bcmgenet_tdma_writel
	movq	_DMA_TIMEOUT_VAL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	$1, %ebx
	movq	_DMA_STATUS@GOTPCREL(%rip), %r14
	movq	_DMA_DISABLED@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_tdma_readl
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
	leal	1(%rbx), %ecx
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	movl	%ecx, %ebx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movl	$1, %ecx
	jmp	LBB0_6
LBB0_4:
	movl	(%r13), %eax
	movl	%ebx, %ecx
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	%eax, %ecx
	jne	LBB0_8
## %bb.7:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	_DMA_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rdma_readl
	movq	_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_bcmgenet_rdma_writel
	movl	(%r13), %eax
	testl	%eax, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_9
## %bb.10:
	movl	$1, %ebx
	movq	_DMA_STATUS@GOTPCREL(%rip), %r12
	movq	_DMA_DISABLED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rdma_readl
	testl	%eax, (%r14)
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_udelay
	leal	1(%rbx), %ecx
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	movl	%ecx, %ebx
	jl	LBB0_11
	jmp	LBB0_14
LBB0_9:
	movl	$1, %ecx
LBB0_14:
	cmpl	%eax, %ecx
	jne	LBB0_16
LBB0_15:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_16:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	$-1, %r12d
	movl	$-1, %ebx
	testl	%eax, %eax
	movq	_DMA_CTRL@GOTPCREL(%rip), %r14
	jle	LBB0_28
## %bb.17:
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	movl	$0, %ebx
	cmpl	$8, %eax
	jb	LBB0_25
## %bb.18:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm8
	pshufd	$0, %xmm8, %xmm7                ## xmm7 = xmm8[0,0,0,0]
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_19
## %bb.20:
	movl	%esi, %edi
	andl	$-2, %edi
	movl	$4, %ebx
	movd	%ebx, %xmm1
	paddd	%xmm8, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [16,16,16,16]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm7, %xmm0
	paddd	%xmm3, %xmm0
	movdqa	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	pslld	$23, %xmm0
	paddd	%xmm6, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm2, %xmm0
	pslld	$23, %xmm5
	paddd	%xmm6, %xmm5
	cvttps2dq	%xmm5, %xmm5
	por	%xmm4, %xmm5
	movdqa	%xmm3, %xmm4
	paddd	%xmm9, %xmm4
	movdqa	%xmm7, %xmm2
	paddd	%xmm4, %xmm2
	paddd	%xmm1, %xmm4
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm0, %xmm2
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm5, %xmm4
	paddd	%xmm10, %xmm3
	addl	$-2, %edi
	jne	LBB0_21
## %bb.22:
	testb	$1, %sil
	je	LBB0_24
LBB0_23:
	paddd	%xmm3, %xmm7
	movl	$4, %esi
	movd	%esi, %xmm0
	paddd	%xmm0, %xmm8
	pshufd	$0, %xmm8, %xmm0                ## xmm0 = xmm8[0,0,0,0]
	paddd	%xmm3, %xmm0
	pslld	$23, %xmm7
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm1, %xmm7
	cvttps2dq	%xmm7, %xmm3
	por	%xmm3, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm1, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm0, %xmm4
LBB0_24:
	por	%xmm4, %xmm2
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	por	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpl	%edx, %eax
	je	LBB0_27
LBB0_25:
	subl	%edx, %eax
	addl	%edx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	btsl	%ecx, %ebx
	incl	%ecx
	decl	%eax
	jne	LBB0_26
LBB0_27:
	notl	%ebx
LBB0_28:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_rdma_readl
	andl	%eax, %ebx
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_rdma_writel
	movq	(%r15), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_40
## %bb.29:
	movq	_DMA_RING_BUF_EN_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	movl	$0, %r12d
	cmpl	$8, %eax
	jb	LBB0_37
## %bb.30:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm8
	pshufd	$0, %xmm8, %xmm7                ## xmm7 = xmm8[0,0,0,0]
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_31
## %bb.32:
	movl	%esi, %edi
	andl	$-2, %edi
	movl	$4, %ebx
	movd	%ebx, %xmm1
	paddd	%xmm8, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [16,16,16,16]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm7, %xmm0
	paddd	%xmm3, %xmm0
	movdqa	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	pslld	$23, %xmm0
	paddd	%xmm6, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm2, %xmm0
	pslld	$23, %xmm5
	paddd	%xmm6, %xmm5
	cvttps2dq	%xmm5, %xmm5
	por	%xmm4, %xmm5
	movdqa	%xmm3, %xmm4
	paddd	%xmm9, %xmm4
	movdqa	%xmm7, %xmm2
	paddd	%xmm4, %xmm2
	paddd	%xmm1, %xmm4
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm0, %xmm2
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm5, %xmm4
	paddd	%xmm10, %xmm3
	addl	$-2, %edi
	jne	LBB0_33
## %bb.34:
	testb	$1, %sil
	je	LBB0_36
LBB0_35:
	paddd	%xmm3, %xmm7
	movl	$4, %esi
	movd	%esi, %xmm0
	paddd	%xmm0, %xmm8
	pshufd	$0, %xmm8, %xmm0                ## xmm0 = xmm8[0,0,0,0]
	paddd	%xmm3, %xmm0
	pslld	$23, %xmm7
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm1, %xmm7
	cvttps2dq	%xmm7, %xmm3
	por	%xmm3, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm1, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm0, %xmm4
LBB0_36:
	por	%xmm4, %xmm2
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	por	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %r12d
	cmpl	%edx, %eax
	je	LBB0_39
LBB0_37:
	subl	%edx, %eax
	addl	%edx, %ecx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	btsl	%ecx, %r12d
	incl	%ecx
	decl	%eax
	jne	LBB0_38
LBB0_39:
	notl	%r12d
LBB0_40:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_bcmgenet_tdma_readl
	andl	%eax, %r12d
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bcmgenet_tdma_writel
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r13), %eax
	movl	%ebx, %ecx
	cmpl	%eax, %ecx
	je	LBB0_15
	jmp	LBB0_16
LBB0_19:
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	pxor	%xmm4, %xmm4
	testb	$1, %sil
	jne	LBB0_23
	jmp	LBB0_24
LBB0_31:
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	pxor	%xmm4, %xmm4
	testb	$1, %sil
	jne	LBB0_35
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CTRL,4,2                   ## @DMA_CTRL
	.comm	_DMA_EN,4,2                     ## @DMA_EN
	.comm	_DMA_TIMEOUT_VAL,4,2            ## @DMA_TIMEOUT_VAL
	.comm	_DMA_STATUS,4,2                 ## @DMA_STATUS
	.comm	_DMA_DISABLED,4,2               ## @DMA_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timed out while disabling TX DMA\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"Timed out while disabling RX DMA\n"

	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ## @DMA_RING_BUF_EN_SHIFT
	.no_dead_strip	_bcmgenet_dma_teardown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bcmgenet_dma_teardown
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bcmgenet_dma_teardown:                 ; @bcmgenet_dma_teardown
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _DMA_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMA_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_bcmgenet_tdma_readl
Lloh2:
	adrp	x25, _DMA_EN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DMA_EN@GOTPAGEOFF]
	ldr	w8, [x25]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
Lloh4:
	adrp	x22, _DMA_TIMEOUT_VAL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DMA_TIMEOUT_VAL@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh6:
	adrp	x23, _DMA_STATUS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DMA_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x24, _DMA_DISABLED@GOTPAGE
Lloh9:
	ldr	x24, [x24, _DMA_DISABLED@GOTPAGEOFF]
	mov	w20, #1
	cmp	w8, #1
	b.lt	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bcmgenet_tdma_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w9, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	mov	x20, x9
	b.lt	LBB0_1
; %bb.3:
	mov	x20, x9
LBB0_4:
	cmp	w20, w8
	b.ne	LBB0_7
LBB0_5:
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_6:
	ldr	w8, [x22]
	cmp	w20, w8
	b.eq	LBB0_5
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcmgenet_rdma_readl
	ldr	w8, [x25]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_rdma_writel
	ldr	w8, [x22]
	mov	w25, #1
	cmp	w8, #1
	b.lt	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bcmgenet_rdma_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w9, w25, #1
	ldr	w8, [x22]
	cmp	w25, w8
	mov	x25, x9
	b.lt	LBB0_9
; %bb.11:
	mov	x25, x9
LBB0_12:
	cmp	w25, w8
	b.ne	LBB0_14
LBB0_13:
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh20:
	adrp	x22, _DMA_RING_BUF_EN_SHIFT@GOTPAGE
Lloh21:
	ldr	x22, [x22, _DMA_RING_BUF_EN_SHIFT@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	ldr	w9, [x22]
	cmp	w8, #16
	b.hs	LBB0_19
; %bb.16:
	mov	w10, #0
	mov	w11, #0
	b	LBB0_22
LBB0_17:
	mov	w23, #-1
	b	LBB0_25
LBB0_18:
	ldr	w8, [x22]
	cmp	w25, w8
	b.eq	LBB0_13
	b	LBB0_14
LBB0_19:
	fmov	s3, w9
	dup.4s	v0, w9
	movi.4s	v1, #4
	add.4s	v1, v3, v1
	dup.4s	v1, v1[0]
	and	w10, w8, #0xfffffff0
	movi.4s	v2, #8
	add.4s	v2, v3, v2
	dup.4s	v2, v2[0]
	movi.4s	v4, #12
	add.4s	v3, v3, v4
	dup.4s	v3, v3[0]
Lloh22:
	adrp	x11, lCPI0_0@PAGE
Lloh23:
	ldr	q5, [x11, lCPI0_0@PAGEOFF]
	movi.2d	v4, #0000000000000000
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x11, x10
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v0, v5
	add.4s	v20, v1, v5
	add.4s	v21, v2, v5
	add.4s	v22, v3, v5
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	ushl.4s	v21, v6, v21
	ushl.4s	v22, v6, v22
	orr.16b	v4, v19, v4
	orr.16b	v16, v20, v16
	orr.16b	v17, v21, v17
	orr.16b	v18, v22, v18
	add.4s	v5, v5, v7
	subs	w11, w11, #16
	b.ne	LBB0_20
; %bb.21:
	orr.16b	v0, v16, v4
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	w8, w10
	b.eq	LBB0_24
LBB0_22:
	sub	w8, w8, w10
	add	w9, w10, w9
	mov	w10, #1
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	lsl	w12, w10, w9
	orr	w11, w12, w11
	add	w9, w9, #1
	subs	w8, w8, #1
	b.ne	LBB0_23
LBB0_24:
	mvn	w23, w11
LBB0_25:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcmgenet_rdma_readl
	and	w1, w0, w23
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_rdma_writel
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.26:
	ldr	w9, [x22]
	cmp	w8, #16
	b.hs	LBB0_29
; %bb.27:
	mov	w10, #0
	mov	w11, #0
	b	LBB0_32
LBB0_28:
	mov	w22, #-1
	b	LBB0_35
LBB0_29:
	fmov	s3, w9
	dup.4s	v0, w9
	movi.4s	v1, #4
	add.4s	v1, v3, v1
	dup.4s	v1, v1[0]
	and	w10, w8, #0xfffffff0
	movi.4s	v2, #8
	add.4s	v2, v3, v2
	dup.4s	v2, v2[0]
	movi.4s	v4, #12
	add.4s	v3, v3, v4
	dup.4s	v3, v3[0]
Lloh24:
	adrp	x11, lCPI0_0@PAGE
Lloh25:
	ldr	q5, [x11, lCPI0_0@PAGEOFF]
	movi.2d	v4, #0000000000000000
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x11, x10
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v0, v5
	add.4s	v20, v1, v5
	add.4s	v21, v2, v5
	add.4s	v22, v3, v5
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	ushl.4s	v21, v6, v21
	ushl.4s	v22, v6, v22
	orr.16b	v4, v19, v4
	orr.16b	v16, v20, v16
	orr.16b	v17, v21, v17
	orr.16b	v18, v22, v18
	add.4s	v5, v5, v7
	subs	w11, w11, #16
	b.ne	LBB0_30
; %bb.31:
	orr.16b	v0, v16, v4
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	w8, w10
	b.eq	LBB0_34
LBB0_32:
	sub	w8, w8, w10
	add	w9, w10, w9
	mov	w10, #1
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	lsl	w12, w10, w9
	orr	w11, w12, w11
	add	w9, w9, #1
	subs	w8, w8, #1
	b.ne	LBB0_33
LBB0_34:
	mvn	w22, w11
LBB0_35:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcmgenet_tdma_readl
	and	w1, w0, w22
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_tdma_writel
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdr	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CTRL,4,2                   ; @DMA_CTRL
	.comm	_DMA_EN,4,2                     ; @DMA_EN
	.comm	_DMA_TIMEOUT_VAL,4,2            ; @DMA_TIMEOUT_VAL
	.comm	_DMA_STATUS,4,2                 ; @DMA_STATUS
	.comm	_DMA_DISABLED,4,2               ; @DMA_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timed out while disabling TX DMA\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"Timed out while disabling RX DMA\n"

	.comm	_DMA_RING_BUF_EN_SHIFT,4,2      ; @DMA_RING_BUF_EN_SHIFT
	.no_dead_strip	_bcmgenet_dma_teardown
.subsections_via_symbols
