	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_clean_tx
_pch_gbe_clean_tx:                      ## @pch_gbe_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%r15), %r12d
	movq	16(%r15), %rax
	movq	%rax, 16(%rsp)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r12d, %edi
	callq	_PCH_GBE_TX_DESC
	movq	%rax, %rbx
	movl	(%r14), %edi
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%r15, %rdi
	callq	_PCH_GBE_DESC_UNUSED
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	movq	_DSC_INIT16@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_10
## %bb.1:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %ecx
	movq	_PCH_GBE_TX_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_11
## %bb.2:
	cmpl	$7, %ebx
	jg	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	(%r15), %edx
	movl	16(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_PCH_GBE_TX_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	testl	%eax, %eax
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	movq	%r13, %r14
	jle	LBB0_12
## %bb.5:
	xorl	%r13d, %r13d
                                        ## kill: def $r12d killed $r12d def $r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	%rax, 16(%rsp)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r12d, %edi
	callq	_PCH_GBE_TX_DESC
	movq	%rax, %rcx
	movl	(%rax), %eax
	cmpl	(%r14), %eax
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r12d
	cmpl	4(%r15), %r12d
	movq	_PCH_GBE_TX_WEIGHT@GOTPCREL(%rip), %rax
	jl	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_10:
	movq	%r14, %rbx
                                        ## kill: def $r12d killed $r12d def $r12
	jmp	LBB0_18
LBB0_11:
	movq	%r14, %rbx
                                        ## kill: def $r12d killed $r12d def $r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_12:
	xorl	%r13d, %r13d
                                        ## kill: def $r12d killed $r12d def $r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_13:
	cmpl	%eax, %r13d
	jge	LBB0_16
LBB0_14:
	movl	(%rbx), %edi
	movl	16(%r15), %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_15:
	movq	_PCH_GBE_TX_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jl	LBB0_14
LBB0_16:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
LBB0_17:
	movq	%r14, %r13
LBB0_18:
	movl	(%rcx), %edx
	testl	%edx, (%r13)
	je	LBB0_20
## %bb.19:
	movl	(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_49
LBB0_20:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	8(%r15), %r14
	movl	%r12d, %r12d
	leaq	(%r12,%r12,2), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_PCH_GBE_TXD_GMAC_STAT_ABT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	20(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_PCH_GBE_TXD_GMAC_STAT_CRSER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	24(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_PCH_GBE_TXD_GMAC_STAT_EXCOL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	20(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	callq	_netdev_err
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$0, (%r14,%r15,8)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	(%r14,%r15,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	leaq	L_.str.9(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	32(%r13), %rdi
	movq	%rbx, %r13
	movl	16(%r14,%r15,8), %edx
	movl	20(%r14,%r15,8), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	leaq	(%r14,%r15,8), %rbx
	addq	$8, %rbx
	cmpq	$0, (%rbx)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	leal	-1(%rdx), %r14d
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	incl	%r12d
	xorl	%edi, %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpl	4(%r15), %r12d
	sete	%dil
	callq	_unlikely
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_21 Depth=1
	xorl	%r12d, %r12d
LBB0_35:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r15), %rax
	movq	%rax, 16(%rsp)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r12d, %edi
	callq	_PCH_GBE_TX_DESC
	movq	%rax, %rcx
	movq	_PCH_GBE_TX_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r14d
	je	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rcx), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	testl	%edx, (%r13)
	je	LBB0_21
	jmp	LBB0_41
LBB0_37:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%r14,%r15,8), %rcx
	movq	_PCH_GBE_TXD_GMAC_STAT_MLTCOL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_PCH_GBE_TXD_GMAC_STAT_SNGCOL@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	testl	%eax, %edx
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	16(%rbx)
	incl	12(%rbx)
	movl	(%rcx), %eax
	addl	%eax, 8(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_28
LBB0_39:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_PCH_GBE_TXD_GMAC_STAT_CMPLT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_29
## %bb.40:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	12(%rbx)
	movl	(%rcx), %eax
	addl	%eax, 8(%rbx)
	jmp	LBB0_29
LBB0_41:
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_42:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	testl	%r13d, %r13d
	je	LBB0_48
## %bb.43:
	movl	(%r15), %edi
	callq	_netif_tx_lock
	cmpl	%ebx, %r14d
	movl	$0, %edi
	je	LBB0_45
## %bb.44:
	movl	(%r15), %edi
	callq	_netif_queue_stopped
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_45:
	callq	_unlikely
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_47
## %bb.46:
	movl	(%r15), %edi
	callq	_netif_wake_queue
	incl	4(%r15)
	movl	(%r15), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
LBB0_47:
	movl	%r12d, (%r14)
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%r15), %edi
	callq	_netif_tx_unlock
LBB0_48:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_49:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"next_to_clean : %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"gbec_status:0x%04x  dma_status:0x%04x\n"

	.comm	_PCH_GBE_TX_WEIGHT,4,2          ## @PCH_GBE_TX_WEIGHT
	.comm	_DSC_INIT16,4,2                 ## @DSC_INIT16
L_.str.2:                               ## @.str.2
	.asciz	"clean_tx: transmit queue warning (%x,%x) unused=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"clean_tx: unused=%d loops=%d found tx_desc[%x,%x:%x].gbec_status=%04x\n"

L_.str.4:                               ## @.str.4
	.asciz	"gbec_status:0x%04x\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_ABT,4,2  ## @PCH_GBE_TXD_GMAC_STAT_ABT
L_.str.5:                               ## @.str.5
	.asciz	"Transfer Abort Error\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_CRSER,4,2 ## @PCH_GBE_TXD_GMAC_STAT_CRSER
L_.str.6:                               ## @.str.6
	.asciz	"Transfer Carrier Sense Error\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_EXCOL,4,2 ## @PCH_GBE_TXD_GMAC_STAT_EXCOL
L_.str.7:                               ## @.str.7
	.asciz	"Transfer Collision Abort Error\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_SNGCOL,4,2 ## @PCH_GBE_TXD_GMAC_STAT_SNGCOL
	.comm	_PCH_GBE_TXD_GMAC_STAT_MLTCOL,4,2 ## @PCH_GBE_TXD_GMAC_STAT_MLTCOL
L_.str.8:                               ## @.str.8
	.asciz	"Transfer Collision\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_CMPLT,4,2 ## @PCH_GBE_TXD_GMAC_STAT_CMPLT
L_.str.9:                               ## @.str.9
	.asciz	"unmap buffer_info->dma : %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.10:                              ## @.str.10
	.asciz	"trim buffer_info->skb : %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"called pch_gbe_unmap_and_free_tx_resource() %d count\n"

L_.str.12:                              ## @.str.12
	.asciz	"Tx wake queue\n"

	.no_dead_strip	_pch_gbe_clean_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_clean_tx
_pch_gbe_clean_tx:                      ; @pch_gbe_clean_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w8, [x1]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	ldr	w23, [x20]
	ldr	q0, [x20]
	str	q0, [sp, #48]
	ldr	x8, [x20, #16]
	str	x8, [sp, #64]
	add	x0, sp, #48
	mov	x1, x23
	bl	_PCH_GBE_TX_DESC
	mov	x21, x0
	ldr	w0, [x19]
	ldp	w8, w9, [x21]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x20
	bl	_PCH_GBE_DESC_UNUSED
	ldr	w8, [x21]
Lloh4:
	adrp	x25, _DSC_INIT16@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DSC_INIT16@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.1:
	mov	x24, x0
	ldr	w9, [x20, #4]
Lloh6:
	adrp	x27, _PCH_GBE_TX_WEIGHT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PCH_GBE_TX_WEIGHT@GOTPAGEOFF]
	ldr	w8, [x27]
	sub	w9, w9, w8
	cmp	w0, w9
	b.ge	LBB0_12
; %bb.2:
	cmp	w24, #7
	b.gt	LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	w8, [x20]
	ldr	w9, [x20, #16]
	stp	x9, x24, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
	ldr	w8, [x27]
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w26, #0
	mov	x22, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x20]
	str	q0, [sp, #48]
	ldr	x8, [x20, #16]
	str	x8, [sp, #64]
	add	x0, sp, #48
	mov	x1, x22
	bl	_PCH_GBE_TX_DESC
	mov	x21, x0
	ldr	w8, [x0]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w22, #1
	ldr	w9, [x20, #4]
	cmp	w8, w9
	csinc	w22, wzr, w22, ge
	add	w26, w26, #1
	ldr	w8, [x27]
	cmp	w26, w8
	b.lt	LBB0_6
; %bb.8:
	cmp	w26, w8
	b.ge	LBB0_12
LBB0_9:
	ldr	w0, [x19]
	ldr	w8, [x20, #16]
	ldr	w9, [x21]
	stp	x8, x9, [sp, #32]
	mov	x8, x22
	stp	x23, x8, [sp, #16]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x26, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_dbg
	b	LBB0_13
LBB0_10:
	mov	w26, #0
	mov	x22, x23
	cmp	w26, w8
	b.ge	LBB0_12
	b	LBB0_9
LBB0_11:
	ldr	w8, [x27]
	cmp	w26, w8
	b.lt	LBB0_9
LBB0_12:
	mov	x22, x23
LBB0_13:
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x19]
	str	xzr, [sp]
Lloh12:
	adrp	x1, l_.str.11@PAGE
Lloh13:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_netdev_dbg
	mov	w21, #0
	b	LBB0_40
LBB0_15:
	mov	w9, #1
	mov	w26, #24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x28, x9
	ldr	w0, [x19]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_dbg
	ldr	x23, [x20, #8]
	umaddl	x27, w22, w26, x23
	ldr	x8, [x27, #8]!
	ldr	w9, [x21]
Lloh16:
	adrp	x10, _PCH_GBE_TXD_GMAC_STAT_ABT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PCH_GBE_TXD_GMAC_STAT_ABT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_err
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh21:
	adrp	x10, _PCH_GBE_TXD_GMAC_STAT_CRSER@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PCH_GBE_TXD_GMAC_STAT_CRSER@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_netdev_err
	b	LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh26:
	adrp	x10, _PCH_GBE_TXD_GMAC_STAT_EXCOL@GOTPAGE
Lloh27:
	ldr	x10, [x10, _PCH_GBE_TXD_GMAC_STAT_EXCOL@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_netdev_err
	b	LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh31:
	adrp	x10, _PCH_GBE_TXD_GMAC_STAT_SNGCOL@GOTPAGE
Lloh32:
	ldr	x10, [x10, _PCH_GBE_TXD_GMAC_STAT_SNGCOL@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
Lloh34:
	adrp	x11, _PCH_GBE_TXD_GMAC_STAT_MLTCOL@GOTPAGE
Lloh35:
	ldr	x11, [x11, _PCH_GBE_TXD_GMAC_STAT_MLTCOL@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #16]
	ldr	d0, [x19, #8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19, #8]
	ldr	w0, [x19]
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_netdev_dbg
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh39:
	adrp	x10, _PCH_GBE_TXD_GMAC_STAT_CMPLT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _PCH_GBE_TXD_GMAC_STAT_CMPLT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	d0, [x19, #8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19, #8]
LBB0_26:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w22, w22
	madd	x24, x22, x26, x23
	ldr	w8, [x24]
	cbz	w8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19]
	str	x22, [sp]
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_netdev_dbg
	ldr	x0, [x19, #32]
	madd	x8, x22, x26, x23
	ldp	w2, w1, [x8, #16]
Lloh44:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	str	wzr, [x24]
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w23, w28, #1
	ldr	x8, [x27]
	cbz	x8, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19]
	str	x22, [sp]
Lloh47:
	adrp	x1, l_.str.10@PAGE
Lloh48:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_netdev_dbg
	ldr	x0, [x27]
	mov	w1, #0
	bl	_skb_trim
LBB0_30:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x25]
	str	w8, [x21]
	add	w8, w22, #1
	ldr	w9, [x20, #4]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w22, wzr, w22, ne
	ldr	q0, [x20]
	str	q0, [sp, #48]
	ldr	x8, [x20, #16]
	str	x8, [sp, #64]
	add	x0, sp, #48
	mov	x1, x22
	bl	_PCH_GBE_TX_DESC
Lloh49:
	adrp	x8, _PCH_GBE_TX_WEIGHT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PCH_GBE_TX_WEIGHT@GOTPAGEOFF]
Lloh51:
	ldr	w27, [x8]
	cmp	w23, w27
	b.eq	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x21, x0
	ldr	w8, [x0]
	ldr	w10, [x25]
	add	w9, w28, #1
	tst	w10, w8
	b.eq	LBB0_16
; %bb.32:
	mov	w21, #1
	b	LBB0_34
LBB0_33:
	mov	w21, #0
LBB0_34:
	ldr	w0, [x19]
	str	x28, [sp]
Lloh52:
	adrp	x1, l_.str.11@PAGE
Lloh53:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_netdev_dbg
	cbz	w28, LBB0_40
; %bb.35:
	ldr	w0, [x19]
	bl	_netif_tx_lock
	cmp	w23, w27
	b.ne	LBB0_37
; %bb.36:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_38
	b	LBB0_39
LBB0_37:
	ldr	w0, [x19]
	bl	_netif_queue_stopped
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_39
LBB0_38:
	ldr	w0, [x19]
	bl	_netif_wake_queue
	ldp	w0, w8, [x19]
	add	w8, w8, #1
	str	w8, [x19, #4]
Lloh54:
	adrp	x1, l_.str.12@PAGE
Lloh55:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_netdev_dbg
LBB0_39:
	str	w22, [x20]
	ldr	w0, [x19]
	str	x22, [sp]
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	ldr	w0, [x19]
	bl	_netif_tx_unlock
LBB0_40:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"next_to_clean : %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"gbec_status:0x%04x  dma_status:0x%04x\n"

	.comm	_PCH_GBE_TX_WEIGHT,4,2          ; @PCH_GBE_TX_WEIGHT
	.comm	_DSC_INIT16,4,2                 ; @DSC_INIT16
l_.str.2:                               ; @.str.2
	.asciz	"clean_tx: transmit queue warning (%x,%x) unused=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"clean_tx: unused=%d loops=%d found tx_desc[%x,%x:%x].gbec_status=%04x\n"

l_.str.4:                               ; @.str.4
	.asciz	"gbec_status:0x%04x\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_ABT,4,2  ; @PCH_GBE_TXD_GMAC_STAT_ABT
l_.str.5:                               ; @.str.5
	.asciz	"Transfer Abort Error\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_CRSER,4,2 ; @PCH_GBE_TXD_GMAC_STAT_CRSER
l_.str.6:                               ; @.str.6
	.asciz	"Transfer Carrier Sense Error\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_EXCOL,4,2 ; @PCH_GBE_TXD_GMAC_STAT_EXCOL
l_.str.7:                               ; @.str.7
	.asciz	"Transfer Collision Abort Error\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_SNGCOL,4,2 ; @PCH_GBE_TXD_GMAC_STAT_SNGCOL
	.comm	_PCH_GBE_TXD_GMAC_STAT_MLTCOL,4,2 ; @PCH_GBE_TXD_GMAC_STAT_MLTCOL
l_.str.8:                               ; @.str.8
	.asciz	"Transfer Collision\n"

	.comm	_PCH_GBE_TXD_GMAC_STAT_CMPLT,4,2 ; @PCH_GBE_TXD_GMAC_STAT_CMPLT
l_.str.9:                               ; @.str.9
	.asciz	"unmap buffer_info->dma : %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.10:                              ; @.str.10
	.asciz	"trim buffer_info->skb : %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"called pch_gbe_unmap_and_free_tx_resource() %d count\n"

l_.str.12:                              ; @.str.12
	.asciz	"Tx wake queue\n"

	.no_dead_strip	_pch_gbe_clean_tx
.subsections_via_symbols
