	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_clean_txq
_gmac_clean_txq:                        ## @gmac_clean_txq
	.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	%edx, %r14d
	movq	%rsi, %r13
	callq	_netdev_priv
	movb	(%rax), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	movl	(%r13), %r12d
	cmpl	%r14d, %r12d
	je	LBB0_11
## %bb.1:
	notl	%edx
	movq	48(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	$32, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %r12d
	movq	_SOF_BIT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %r12d
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %r15
	movl	%r12d, %r14d
	movq	%r14, %rbx
	shlq	$5, %rbx
	movl	16(%r15,%rbx), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	20(%r15,%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	24(%r15,%rbx), %edx
	movl	(%r15,%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	8(%r15,%rbx), %r13d
	movl	12(%r15,%rbx), %esi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	_EOF_BIT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r14,4), %edi
	callq	_dev_kfree_skb
	jmp	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r15
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TSS_CHECKUM_ENABLE@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	andl	(%rax), %ecx
	cmpl	$1, %ecx
	sbbl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	decw	%bx
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_MAX_FRAGS@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movl	%eax, %ecx
	decl	%ecx
	cmpw	%ax, %bx
	cmovael	%ecx, %ebx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_u64_stats_update_begin
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movzwl	%bx, %ecx
	incl	(%rax,%rcx,4)
	movq	%r15, %rdi
	callq	_u64_stats_update_end
	jmp	LBB0_2
LBB0_10:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_u64_stats_update_begin
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 16(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 20(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, 24(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_u64_stats_update_end
	movl	%r14d, (%r13)
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EOF_BIT,4,2                    ## @EOF_BIT
	.comm	_SOF_BIT,4,2                    ## @SOF_BIT
	.comm	_TSS_CHECKUM_ENABLE,4,2         ## @TSS_CHECKUM_ENABLE
	.comm	_TX_MAX_FRAGS,2,1               ## @TX_MAX_FRAGS
	.no_dead_strip	_gmac_clean_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_clean_txq
_gmac_clean_txq:                        ; @gmac_clean_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x28, x2
	mov	x20, x1
	bl	_netdev_priv
	ldr	w27, [x20]
	cmp	w27, w28
	b.eq	LBB0_11
; %bb.1:
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	stp	wzr, wzr, [sp, #36]             ; 8-byte Folded Spill
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	ldr	w8, [x0]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x22, [x0, #48]
	add	x8, x0, #32
	stp	x8, x0, [sp]                    ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w27, #1
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	and	w27, w8, w9
Lloh0:
	adrp	x8, _SOF_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOF_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w26
	b.ne	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, w28
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	mov	w19, w27
	add	x21, x8, x19, lsl #5
	ldp	w25, w24, [x21, #16]
	ldr	w2, [x21, #24]
	ldr	w23, [x21]
	ldp	w26, w1, [x21, #8]
	ldr	w0, [x22]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_unmap_single
Lloh6:
	adrp	x8, _EOF_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x19, lsl #2]
	bl	_dev_kfree_skb
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x21]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x8, x9
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _TSS_CHECKUM_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TSS_CHECKUM_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cinc	w8, w8, ne
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	sub	w8, w25, #1
	tst	w8, #0xffff
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x9, _TX_MAX_FRAGS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TX_MAX_FRAGS@GOTPAGEOFF]
	ldrh	w9, [x9]
	sub	w10, w9, #1
	cmp	w9, w8, uxth
	csel	w19, w8, w10, hi
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	mov	x0, x21
	bl	_u64_stats_update_begin
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #40]
	and	x9, x19, #0xffff
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x21
	bl	_u64_stats_update_end
	b	LBB0_3
LBB0_10:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	add	x22, x19, #8
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldp	w8, w9, [x19, #16]
	ldr	w10, [sp, #40]                  ; 4-byte Folded Reload
	add	w8, w8, w10
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	add	w9, w9, w10
	stp	w8, w9, [x19, #16]
	ldr	x8, [x19, #24]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x9
	str	x8, [x19, #24]
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_u64_stats_update_end
	str	w28, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EOF_BIT,4,2                    ; @EOF_BIT
	.comm	_SOF_BIT,4,2                    ; @SOF_BIT
	.comm	_TSS_CHECKUM_ENABLE,4,2         ; @TSS_CHECKUM_ENABLE
	.comm	_TX_MAX_FRAGS,2,1               ; @TX_MAX_FRAGS
	.no_dead_strip	_gmac_clean_txq
.subsections_via_symbols
