	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_clean_tx_ring
_gfar_clean_tx_ring:                    ## @gfar_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movl	4(%rax), %r12d
	movq	24(%rax), %rbx
	movq	32(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	64(%r15), %r13
	movl	(%r15), %r14d
	movq	%r15, %rax
	addq	$40, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	32(%r15), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	incl	%r12d
	movl	%r14d, %edi
	callq	_TX_RING_MOD_MASK
	andl	%eax, %r12d
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	16(%r15), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, 16(%r15)
	movq	32(%r15), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_skip_txbd
	movl	(%rax), %r12d
	movq	_TXBD_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BD_LFLAG
	testl	%r12d, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BD_LENGTH_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r12d
	movq	%r15, %r14
	movq	56(%r15), %rdi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r13, %r15
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	_TXBD_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BD_LFLAG
	andl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_next_txbd
	movq	%rax, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %r13
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	56(%r13), %rdi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	_TXBD_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BD_LFLAG
	andl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_next_txbd
	movq	%rax, %rbx
	decl	%r12d
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_queue_len
	cmpq	8(%r13), %rax
	movq	%r13, %r15
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXBUF_ALIGNMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%r15), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_recycle_check
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	___skb_queue_head
	jmp	LBB0_14
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_5:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_15:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpl	$0, 16(%r15)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_18:
	movl	%r12d, 4(%r15)
	movq	%rbx, 24(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r14)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXBD_READY,4,2                 ## @TXBD_READY
	.comm	_BD_LENGTH_MASK,4,2             ## @BD_LENGTH_MASK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TXBD_WRAP,4,2                  ## @TXBD_WRAP
	.comm	_RXBUF_ALIGNMENT,8,3            ## @RXBUF_ALIGNMENT
	.no_dead_strip	_gfar_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 gfar_clean_tx_ring
_gfar_clean_tx_ring:                    ; @gfar_clean_tx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x0, [sp]                        ; 8-byte Folded Spill
	bl	_netdev_priv
	mov	x20, x0
	ldr	w28, [x0, #4]
	ldp	x22, x8, [x0, #24]
	ldr	x26, [x8, w28, sxtw #3]
	cbz	x26, LBB0_12
; %bb.1:
	mov	w27, #0
	ldr	x23, [x20, #64]
	ldr	w24, [x20]
	mov	x8, x28
	sxtw	x9, w8
	add	x8, x20, #40
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x19, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _TXBD_WRAP@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TXBD_WRAP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_dev_kfree_skb_any
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x8, [x20, #32]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	xzr, [x8, x9, lsl #3]
	add	w26, w28, #1
	mov	x0, x24
	bl	_TX_RING_MOD_MASK
	and	w28, w0, w26
	add	w27, w27, #1
	ldr	w8, [x20, #16]
	add	w8, w21, w8
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x20, #32]
	sxtw	x9, w28
	ldr	x26, [x8, w28, sxtw #3]
	cbz	x26, LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	str	w27, [sp, #28]                  ; 4-byte Folded Spill
	mov	x0, x26
	bl	_skb_shinfo
	ldr	w21, [x0]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_skip_txbd
	ldr	w27, [x0]
Lloh4:
	adrp	x8, _TXBD_READY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TXBD_READY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_BD_LFLAG
	tst	w0, w27
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _BD_LENGTH_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BD_LENGTH_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w27
	b.ne	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #56]
	ldp	w2, w1, [x22, #4]
	ldr	w3, [x19]
	bl	_dma_unmap_single
	ldr	w0, [x25]
	bl	_BD_LFLAG
	ldr	w8, [x22]
	and	w8, w8, w0
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_next_txbd
	mov	x22, x0
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x21
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x20, #56]
	ldp	w2, w1, [x22, #4]
	ldr	w3, [x19]
	bl	_dma_unmap_page
	ldr	w0, [x25]
	bl	_BD_LFLAG
	ldr	w8, [x22]
	and	w8, w8, w0
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_next_txbd
	mov	x22, x0
	subs	w27, w27, #1
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_skb_queue_len
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #48]
Lloh10:
	adrp	x9, _RXBUF_ALIGNMENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RXBUF_ALIGNMENT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x26
	bl	_skb_recycle_check
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x26
	bl	___skb_queue_head
	b	LBB0_3
LBB0_12:
	mov	w27, #0
	b	LBB0_14
LBB0_13:
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
LBB0_14:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_17:
	str	w28, [x20, #4]
	str	x22, [x20, #24]
	ldr	w8, [x19]
	add	w8, w8, w27
	str	w8, [x19]
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TXBD_READY,4,2                 ; @TXBD_READY
	.comm	_BD_LENGTH_MASK,4,2             ; @BD_LENGTH_MASK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TXBD_WRAP,4,2                  ; @TXBD_WRAP
	.comm	_RXBUF_ALIGNMENT,8,3            ; @RXBUF_ALIGNMENT
	.no_dead_strip	_gfar_clean_tx_ring
.subsections_via_symbols
