	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_clean_tx_ring
_enetc_clean_tx_ring:                   ## @enetc_clean_tx_ring
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	32(%rdi), %r13
	movl	$0, -60(%rbp)
	movl	(%rdi), %esi
	movq	24(%rdi), %rbx
	movl	%esi, %r14d
	callq	_enetc_bd_ready_count
	movq	_ENETC_DEFAULT_TX_WORK@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.2:
	movl	%eax, %ecx
	movl	%r14d, %r13d
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rbx,%rax,8), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %rbx
	movl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_priv
	movl	%r13d, %edi
	movq	%rax, %r15
	movq	32(%r12), %rax
	movq	%rax, 32(%rsp)
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_ENETC_TXBD
	movq	_ENETC_TXBD_FLAGS_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 32(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	movq	%rax, %rsi
	leaq	-60(%rbp), %rdx
	callq	_enetc_get_tx_tstamp
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r14), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_enetc_unmap_tx_buff
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rdi
	movl	-60(%rbp), %esi
	callq	_enetc_tstamp_tx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_napi_consume_skb
	movq	$0, 16(%r14)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	8(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	incl	%r13d
	xorl	%edi, %edi
	cmpl	4(%r12), %r13d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$40, %r14
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	8(%r12), %edi
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	20(%r12), %r13d
	movl	%eax, %r15d
	callq	_BIT
	movl	%eax, %ebx
	movl	8(%r12), %edi
	addl	$16, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	%r13d, %edi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%ebx, %esi
	callq	_enetc_wr_reg
	movl	%r15d, %eax
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ENETC_DEFAULT_TX_WORK@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movl	%eax, %ebx
	callq	_unlikely
	movl	%ebx, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_enetc_bd_ready_count
	movl	%eax, %ecx
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%r15), %eax
	jl	LBB0_3
	jmp	LBB0_23
LBB0_22:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, %r13d
LBB0_23:
	movl	%r13d, (%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 12(%r12)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, 16(%r12)
	testl	%eax, %eax
	je	LBB0_27
## %bb.24:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	___netif_subqueue_stopped
	testq	%rax, %rax
	movl	$0, %edi
	je	LBB0_29
## %bb.26:
	movq	%r12, %rdi
	callq	_enetc_bd_unused
	movq	_ENETC_TXBDS_MAX_NEEDED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	jmp	LBB0_29
LBB0_27:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_28:
	xorl	%edi, %edi
LBB0_29:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_netif_wake_subqueue
LBB0_31:
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%r15), %ecx
	setne	%al
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_DEFAULT_TX_WORK,4,2      ## @ENETC_DEFAULT_TX_WORK
	.comm	_ENETC_TXBD_FLAGS_W,4,2         ## @ENETC_TXBD_FLAGS_W
	.comm	_ENETC_TXBDS_MAX_NEEDED,8,3     ## @ENETC_TXBDS_MAX_NEEDED
	.no_dead_strip	_enetc_clean_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_clean_tx_ring
_enetc_clean_tx_ring:                   ; @enetc_clean_tx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	w1, [sp, #4]                    ; 4-byte Folded Spill
	mov	x19, x0
	str	wzr, [sp, #60]
	ldr	w21, [x0]
	ldp	x22, x8, [x0, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x21
	bl	_enetc_bd_ready_count
Lloh0:
	adrp	x8, _ENETC_DEFAULT_TX_WORK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_DEFAULT_TX_WORK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_6
; %bb.1:
	mov	w28, #0
	mov	w20, #0
LBB0_2:
	str	w21, [x19]
	ldp	w8, w9, [x19, #12]
	add	w8, w8, w20
	add	w9, w9, w28
	stp	w8, w9, [x19, #12]
	cbz	w20, LBB0_25
; %bb.3:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_26
; %bb.4:
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	___netif_subqueue_stopped
	cbz	x0, LBB0_26
; %bb.5:
	mov	x0, x19
	bl	_enetc_bd_unused
Lloh3:
	adrp	x8, _ENETC_TXBDS_MAX_NEEDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_TXBDS_MAX_NEEDED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ge
	b	LBB0_26
LBB0_6:
	mov	x23, x0
	mov	w20, #0
	mov	w28, #0
	mov	w25, #0
	sxtw	x8, w21
	mov	w9, #40
	madd	x24, x8, x9, x22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x24, #16]
	ldr	w0, [x24]
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_priv
	mov	x26, x0
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #16]
	ldr	x8, [x19, #32]
	str	x8, [sp, #48]
	add	x0, sp, #16
	mov	x1, x21
	bl	_ENETC_TXBD
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _ENETC_TXBD_FLAGS_W@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENETC_TXBD_FLAGS_W@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	ldr	x0, [x26]
	add	x2, sp, #60
	bl	_enetc_get_tx_tstamp
	mov	w25, #1
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24, #24]
	bl	_likely
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_enetc_unmap_tx_buff
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x27, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x24, #16]
	ldr	w1, [sp, #60]
	bl	_enetc_tstamp_tx
	mov	w25, #0
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x24, #16]
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_napi_consume_skb
	str	xzr, [x24, #16]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [x24, #8]
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w21, #0
	ldr	x24, [x19, #24]
	sub	w23, w23, #1
	cbz	x27, LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w20, w20, #1
	ldr	w26, [x19, #20]
	ldr	w0, [x19, #8]
	bl	_BIT
	mov	x27, x0
	ldr	w8, [x19, #8]
	add	w0, w8, #16
	bl	_BIT
	orr	w1, w0, w27
	mov	x0, x26
	bl	_enetc_wr_reg
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_enetc_bd_ready_count
	mov	x23, x0
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w28, w28, w22
	cbz	w23, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _ENETC_DEFAULT_TX_WORK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETC_DEFAULT_TX_WORK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, w8
	b.lt	LBB0_7
	b	LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #40
	sub	w23, w23, #1
	cbnz	x27, LBB0_19
	b	LBB0_20
LBB0_25:
	mov	w0, #0
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_26:
	bl	_unlikely
	cbz	x0, LBB0_28
; %bb.27:
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_netif_wake_subqueue
LBB0_28:
Lloh12:
	adrp	x8, _ENETC_DEFAULT_TX_WORK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENETC_DEFAULT_TX_WORK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, ne
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_DEFAULT_TX_WORK,4,2      ; @ENETC_DEFAULT_TX_WORK
	.comm	_ENETC_TXBD_FLAGS_W,4,2         ; @ENETC_TXBD_FLAGS_W
	.comm	_ENETC_TXBDS_MAX_NEEDED,8,3     ; @ENETC_TXBDS_MAX_NEEDED
	.no_dead_strip	_enetc_clean_tx_ring
.subsections_via_symbols
