	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arc_emac_tx_clean
_arc_emac_tx_clean:                     ## @arc_emac_tx_clean
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TX_BD_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12,8), %rbx
	addq	%r13, %r14
	addq	$8, %r14
	movq	_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %r15
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movl	%eax, %r13d
	movq	_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_consume_skb_irq
	movq	$0, (%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	$0, (%rbx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	incl	%eax
	xorl	%edx, %edx
	movq	_TX_BD_NUM@GOTPCREL(%rip), %rsi
	divl	(%rsi)
	movl	%edx, (%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%rsi), %eax
	jae	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movq	16(%rax), %r13
	movl	%edx, %r12d
	movq	(%r15,%r12,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	shlq	$4, %r14
	movl	(%r13,%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_FOR_EMAC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r13,%r14)
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEFR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DROP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_LTCL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	(%r14,%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_UFLO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	28(%rcx)
	incl	24(%rcx)
	movq	_DEFR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%rcx)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_LTCL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_UFLO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%rcx)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_FIRST_OR_LAST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%rcx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	%eax, 4(%rcx)
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_arc_emac_tx_avail
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BD_NUM,4,2                  ## @TX_BD_NUM
	.comm	_FOR_EMAC,4,2                   ## @FOR_EMAC
	.comm	_DROP,4,2                       ## @DROP
	.comm	_DEFR,4,2                       ## @DEFR
	.comm	_LTCL,4,2                       ## @LTCL
	.comm	_UFLO,4,2                       ## @UFLO
	.comm	_FIRST_OR_LAST_MASK,4,2         ## @FIRST_OR_LAST_MASK
	.comm	_addr,4,2                       ## @addr
	.comm	_len,4,2                        ## @len
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_arc_emac_tx_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arc_emac_tx_clean
_arc_emac_tx_clean:                     ; @arc_emac_tx_clean
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x24, _TX_BD_NUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_BD_NUM@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_14
; %bb.1:
	mov	w25, #0
	ldr	w27, [x20]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dma_unmap_addr
	mov	x23, x0
Lloh5:
	adrp	x8, _len@GOTPAGE
Lloh6:
	ldr	x8, [x8, _len@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dma_unmap_len
	mov	x2, x0
Lloh8:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_dma_unmap_single
	mov	x0, x22
	bl	_dev_consume_skb_irq
	str	xzr, [x27]
	str	wzr, [x28]
	str	xzr, [x21]
	ldr	w8, [x20]
	add	w8, w8, #1
	ldr	w9, [x24]
	udiv	w10, w8, w9
	msub	w27, w10, w9, w8
	str	w27, [x20]
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.hs	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x26, [x20, #8]
	add	x21, x8, w27, uxtw #3
	ldr	x22, [x21]
	add	x28, x26, w27, uxtw #4
	ldr	w0, [x28]
	bl	_le32_to_cpu
Lloh11:
	adrp	x8, _FOR_EMAC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FOR_EMAC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w27
	add	x27, x26, x8, lsl #4
	ldr	x8, [x27, #8]!
	cmp	x8, #0
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
Lloh14:
	adrp	x8, _DROP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DROP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x26, _DEFR@GOTPAGE
Lloh18:
	ldr	x26, [x26, _DEFR@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _LTCL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LTCL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _UFLO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _UFLO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	d0, [x19, #24]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19, #24]
	ldr	w8, [x26]
	tst	w8, w23
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x8, _LTCL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LTCL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x8, _UFLO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UFLO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh31:
	adrp	x8, _FIRST_OR_LAST_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FIRST_OR_LAST_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w0, w8, w23
	bl	_likely
	cbz	x0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x22]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	b	LBB0_2
LBB0_14:
	bl	_smp_mb
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_arc_emac_tx_avail
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netif_wake_queue
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BD_NUM,4,2                  ; @TX_BD_NUM
	.comm	_FOR_EMAC,4,2                   ; @FOR_EMAC
	.comm	_DROP,4,2                       ; @DROP
	.comm	_DEFR,4,2                       ; @DEFR
	.comm	_LTCL,4,2                       ; @LTCL
	.comm	_UFLO,4,2                       ; @UFLO
	.comm	_FIRST_OR_LAST_MASK,4,2         ; @FIRST_OR_LAST_MASK
	.comm	_addr,4,2                       ; @addr
	.comm	_len,4,2                        ; @len
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_arc_emac_tx_clean
.subsections_via_symbols
