	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_clean_tx_gbit
_greth_clean_tx_gbit:                   ## @greth_clean_tx_gbit
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	(%rax), %r14
	cmpq	8(%rax), %r14
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	cmpq	8(%r13), %r14
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	32(%r13), %rax
	movq	(%rax,%r14,8), %rbx
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	24(%r13), %r15
	movq	%r14, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_SKIP_TX
	movslq	%eax, %r12
	movq	40(%r13), %rax
	movl	(%rax), %edi
	movq	_GRETH_INT_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GRETH_INT_TE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_GRETH_REGSAVE
	xorl	%eax, %eax
	callq	_mb
	leaq	(%r15,%r12,8), %rdi
	addq	$4, %rdi
	callq	_greth_read_bd
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rcx
	leaq	(,%r14,8), %r15
	movq	$0, (%rcx,%r14,8)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_greth_update_tx_stats
	movl	(%rbx), %eax
	addl	%eax, (%r12)
	addq	24(%r13), %r15
	movq	%r14, %rdi
	callq	_NEXT_TX
	movq	%rax, %r14
	movl	16(%r13), %r12d
	movq	%r15, %rdi
	callq	_greth_read_bd
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$2, -56(%rbp)                   ## 8-byte Folded Spill
	xorl	%r15d, %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r15, %rbx
	movl	16(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	(,%r14,8), %rdi
	addq	24(%r13), %rdi
	callq	_greth_read_bd
	movq	%r14, %r12
	movq	%r13, %r14
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movq	%r14, %r13
	movl	%eax, %edx
	callq	_dma_unmap_page
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_NEXT_TX
	movq	%rax, %r14
	addq	$4, %r15
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, (%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_greth_num_free_bds
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_10
## %bb.11:
	movq	-48(%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_10:
	addq	$40, %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	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.no_dead_strip	_greth_clean_tx_gbit
.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_gbit
_greth_clean_tx_gbit:                   ; @greth_clean_tx_gbit
	.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
	ldp	x21, x8, [x0]
	cmp	x21, x8
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_dev_kfree_skb
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20, #32]
	ldr	x22, [x8, x21, lsl #3]
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w23, [x0]
	ldr	x25, [x20, #24]
	mov	x0, x21
	mov	x1, x23
	bl	_SKIP_TX
	mov	x24, x0
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _GRETH_INT_TE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRETH_INT_TE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GRETH_INT_TX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GRETH_INT_TX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_GRETH_REGSAVE
	bl	_mb
	add	x8, x25, w24, sxtw #3
	add	x0, x8, #4
	bl	_greth_read_bd
Lloh8:
	adrp	x8, _GRETH_BD_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GRETH_BD_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	x8, [x20, #32]
	lsl	x25, x21, #3
	str	xzr, [x8, x25]
	mov	x0, x19
	bl	_greth_update_tx_stats
	ldr	w8, [x22]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	x27, [x20, #24]
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	ldr	w24, [x20, #16]
	add	x0, x27, x25
	bl	_greth_read_bd
	mov	x25, x0
	mov	x0, x22
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x24
	mov	x1, x25
	bl	_dma_unmap_single
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	lsl	x28, x23, #2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x23, x8, x27
	ldr	x8, [x20, #24]
	ldr	w24, [x20, #16]
	add	x0, x8, x21, lsl #3
	bl	_greth_read_bd
	mov	x25, x0
	mov	x0, x23
	bl	_skb_frag_size
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x24
	mov	x1, x25
	bl	_dma_unmap_page
	mov	x0, x21
	bl	_NEXT_TX
	mov	x21, x0
	add	x27, x27, #4
	cmp	x28, x27
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:
	cbz	x22, LBB0_11
; %bb.8:
	bl	_wmb
	str	x21, [x20]
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x1, [x20, #8]
	mov	x0, x21
	bl	_greth_num_free_bds
Lloh11:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x0, x8
	b.le	LBB0_11
; %bb.10:
	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_11:
	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
	.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	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.no_dead_strip	_greth_clean_tx_gbit
.subsections_via_symbols
