	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_clean_tx
_greth_clean_tx:                        ## @greth_clean_tx
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %eax
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %r12
	movq	_GRETH_TXBD_NUM@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	4(%r14)
	movq	16(%r15), %rax
	movslq	(%r15), %rdi
	movl	(%rax,%rdi,8), %eax
	addl	%eax, (%r14)
	callq	_NEXT_TX
	movl	%eax, (%r15)
	incq	8(%r15)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rbx
	movq	24(%r15), %rax
	movq	_GRETH_INT_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GRETH_INT_TE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	shlq	$2, %rbx
	addq	32(%r15), %rbx
	callq	_GRETH_REGSAVE
	xorl	%eax, %eax
	callq	_mb
	movq	%rbx, %rdi
	callq	_greth_read_bd
	movl	%eax, %ebx
	movl	(%r12), %edi
	andl	%eax, %edi
	callq	_unlikely
	movq	8(%r15), %rcx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r13), %rcx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_GRETH_TXBD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	16(%r14)
	movq	_GRETH_TXBD_ERR_AL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	12(%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_GRETH_TXBD_ERR_UE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	8(%r14)
	jmp	LBB0_8
LBB0_9:
	testq	%rcx, %rcx
	jle	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRETH_INT_TE,4,2               ## @GRETH_INT_TE
	.comm	_GRETH_INT_TX,4,2               ## @GRETH_INT_TX
	.comm	_GRETH_BD_EN,4,2                ## @GRETH_BD_EN
	.comm	_GRETH_TXBD_NUM,8,3             ## @GRETH_TXBD_NUM
	.comm	_GRETH_TXBD_STATUS,4,2          ## @GRETH_TXBD_STATUS
	.comm	_GRETH_TXBD_ERR_AL,4,2          ## @GRETH_TXBD_ERR_AL
	.comm	_GRETH_TXBD_ERR_UE,4,2          ## @GRETH_TXBD_ERR_UE
	.no_dead_strip	_greth_clean_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greth_clean_tx
_greth_clean_tx:                        ; @greth_clean_tx
	.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
	ldr	w21, [x0]
Lloh0:
	adrp	x22, _GRETH_INT_TE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GRETH_INT_TE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _GRETH_INT_TX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GRETH_INT_TX@GOTPAGEOFF]
Lloh4:
	adrp	x24, _GRETH_BD_EN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GRETH_BD_EN@GOTPAGEOFF]
Lloh6:
	adrp	x25, _GRETH_TXBD_NUM@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GRETH_TXBD_NUM@GOTPAGEOFF]
Lloh8:
	adrp	x26, _GRETH_TXBD_STATUS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GRETH_TXBD_STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x28, _GRETH_TXBD_ERR_UE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _GRETH_TXBD_ERR_UE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #16]
	ldrsw	x0, [x20]
	ldr	x8, [x8, x0, lsl #3]
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v0, v1
	str	d0, [x19]
	bl	_NEXT_TX
	mov	x21, x0
	str	w21, [x20]
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x27, [x20, #24]
	ldr	w0, [x8]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
	bl	_GRETH_REGSAVE
	bl	_mb
	add	x0, x27, w21, sxtw #2
	bl	_greth_read_bd
	mov	x21, x0
	ldr	w8, [x24]
	and	w0, w8, w0
	bl	_unlikely
	ldr	x8, [x20, #8]
	ldr	x9, [x25]
	cmp	x0, #0
	ccmp	x8, x9, #4, eq
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	and	w0, w8, w21
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
Lloh12:
	adrp	x8, _GRETH_TXBD_ERR_AL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GRETH_TXBD_ERR_AL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_1
LBB0_8:
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	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_10:
	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	Lloh10, Lloh11
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_GRETH_INT_TE,4,2               ; @GRETH_INT_TE
	.comm	_GRETH_INT_TX,4,2               ; @GRETH_INT_TX
	.comm	_GRETH_BD_EN,4,2                ; @GRETH_BD_EN
	.comm	_GRETH_TXBD_NUM,8,3             ; @GRETH_TXBD_NUM
	.comm	_GRETH_TXBD_STATUS,4,2          ; @GRETH_TXBD_STATUS
	.comm	_GRETH_TXBD_ERR_AL,4,2          ; @GRETH_TXBD_ERR_AL
	.comm	_GRETH_TXBD_ERR_UE,4,2          ; @GRETH_TXBD_ERR_UE
	.no_dead_strip	_greth_clean_tx
.subsections_via_symbols
