	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_clean_tx_irq
_e1000_clean_tx_irq:                    ## @e1000_clean_tx_irq
	.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, %r12
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %rbx
	movl	(%rdi), %r14d
	movq	16(%rdi), %rax
	leaq	(%r14,%r14,4), %rcx
	movl	(%rax,%rcx,8), %edi
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%edi, -76(%rbp)                 ## 4-byte Spill
	callq	_E1000_TX_DESC
	movl	(%rax), %r15d
	movq	_E1000_TXD_STAT_DD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%r15d, %eax
	je	LBB0_17
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	4(%r12), %r13d
	jae	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rax,%rcx,8), %rsi
	movq	%rdi, %r14
	xorl	%edx, %edx
	callq	_e1000_put_txbuf
	movl	$0, (%r12)
	movq	%r14, %r12
	leal	1(%r15), %r14d
	cmpl	4(%r12), %r14d
	movl	$0, %eax
	cmovel	%eax, %r14d
	incl	%r13d
	cmpl	%ebx, %r15d
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%r14d, %edi
	callq	_E1000_TX_DESC
	movl	%ebx, %edx
	movq	%r12, %rcx
	movq	%rax, %r12
	movq	%rcx, %rdi
	movq	16(%rcx), %rax
	movl	%r14d, %r15d
	leaq	(%r15,%r15,4), %rcx
	cmpl	%ebx, %r14d
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	addl	32(%rax,%rcx,8), %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	addl	24(%rax,%rcx,8), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	addl	(%rdx), %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	incl	-64(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	8(%r12), %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	%r14d, %ecx
	leaq	(%rcx,%rcx,4), %rcx
	movl	(%rax,%rcx,8), %ebx
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%ebx, %edi
	callq	_E1000_TX_DESC
	movl	(%rax), %r15d
	movq	_E1000_TXD_STAT_DD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%r15d, %eax
	jne	LBB0_2
LBB0_10:
	movl	%r14d, (%r12)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_netdev_completed_queue
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.11:
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%r12, %rdi
	callq	_e1000_desc_unused
	cmpq	$32, %rax
	jl	LBB0_19
## %bb.13:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	___E1000_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	28(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
	incl	24(%r15)
LBB0_16:
	movq	%r15, %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_21
	jmp	LBB0_25
LBB0_17:
	movl	%r14d, (%r12)
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_netdev_completed_queue
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	xorl	%r13d, %r13d
LBB0_19:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%rdx)
	je	LBB0_25
LBB0_21:
	movl	$0, (%rdx)
	movq	16(%r12), %rax
	movl	%r14d, %ecx
	leaq	(%rcx,%rcx,4), %rcx
	movq	8(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.22:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	4(%rdx), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	addq	%rcx, %rsi
	callq	_time_after
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_E1000_STATUS_TXOFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
LBB0_24:
	movl	$0, 8(%rdx)
LBB0_25:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 12(%rdx)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 16(%rdx)
	xorl	%eax, %eax
	cmpl	4(%r12), %r13d
	setb	%al
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	leaq	20(%rdx), %rdi
	callq	_schedule_work
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_TXD_STAT_DD,4,2          ## @E1000_TXD_STAT_DD
	.comm	___E1000_DOWN,4,2               ## @__E1000_DOWN
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_TXOFF,4,2         ## @E1000_STATUS_TXOFF
	.comm	_TX_WAKE_THRESHOLD,8,3          ## @TX_WAKE_THRESHOLD
	.no_dead_strip	_e1000_clean_tx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_clean_tx_irq
_e1000_clean_tx_irq:                    ; @e1000_clean_tx_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldp	x8, x23, [x0, #16]
	ldr	x25, [x23, #40]
	ldr	w20, [x0]
	mov	w28, #40
	mul	x9, x20, x28
	ldr	w24, [x8, x9]
	ldp	q0, q1, [x0]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	x1, x24
	bl	_E1000_TX_DESC
	ldr	w22, [x0]
Lloh0:
	adrp	x21, _E1000_TXD_STAT_DD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E1000_TXD_STAT_DD@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	tst	w0, w22
	b.eq	LBB0_16
; %bb.1:
	stp	x25, x23, [sp]                  ; 16-byte Folded Spill
	mov	w23, #0
	mov	w22, #0
	mov	w27, #0
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x19, #4]
	cmp	w27, w8
	b.hs	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_dma_rmb
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	umaddl	x1, w20, w28, x8
	mov	x0, x19
	mov	w2, #0
	bl	_e1000_put_txbuf
	str	wzr, [x25]
	add	w8, w26, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w20, wzr, w26, eq
	add	w27, w27, #1
	cmp	w26, w24
	b.eq	LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	x1, x20
	bl	_E1000_TX_DESC
	mov	x25, x0
	ldr	x8, [x19, #16]
	mov	w26, w20
	cmp	w20, w24
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	madd	x9, x26, x28, x8
	ldur	q0, [x9, #24]
	xtn.2s	v0, v0
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v1, v0
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w9, [x9]
	add	w22, w22, w9
	add	w23, w23, #1
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	umull	x9, w20, w28
	ldr	w24, [x8, x9]
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	x1, x24
	bl	_E1000_TX_DESC
	ldr	w25, [x0]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	tst	w0, w25
	b.ne	LBB0_2
LBB0_10:
	str	w20, [x19]
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_netdev_completed_queue
	cbz	w27, LBB0_23
; %bb.11:
	mov	x0, x21
	bl	_netif_carrier_ok
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_e1000_desc_unused
	cmp	x0, #32
	b.lt	LBB0_17
; %bb.13:
	bl	_smp_mb
	mov	x0, x21
	bl	_netif_queue_stopped
	cbz	x0, LBB0_17
; %bb.14:
Lloh2:
	adrp	x8, ___E1000_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___E1000_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x23, #28
	bl	_test_bit
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x21
	bl	_netif_wake_queue
	ldr	w8, [x23, #24]
	add	w8, w8, #1
	str	w8, [x23, #24]
	ldr	w8, [x23]
	cbnz	w8, LBB0_18
	b	LBB0_22
LBB0_16:
	str	w20, [x19]
	mov	x0, x25
	mov	w1, #0
	mov	w2, #0
	bl	_netdev_completed_queue
	mov	w27, #0
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
LBB0_17:
	ldr	w8, [x23]
	cbz	w8, LBB0_22
LBB0_18:
	str	wzr, [x23]
	ldr	x8, [x19, #16]
	mov	w9, #40
	umaddl	x8, w20, w9, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_21
; %bb.19:
Lloh5:
	adrp	x9, _jiffies@GOTPAGE
Lloh6:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ldrsw	x9, [x23, #4]
Lloh8:
	adrp	x10, _HZ@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh10:
	ldrsw	x10, [x10]
	madd	x1, x10, x9, x8
	bl	_time_after
	cbz	x0, LBB0_21
; %bb.20:
Lloh11:
	adrp	x8, _STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_er32
Lloh14:
	adrp	x8, _E1000_STATUS_TXOFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_STATUS_TXOFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_24
LBB0_21:
	str	wzr, [x23, #8]
LBB0_22:
	ldur	d0, [x23, #12]
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v0, v0, v1
	stur	d0, [x23, #12]
	ldr	w8, [x19, #4]
	cmp	w27, w8
	cset	w0, lo
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_23:
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x23]
	cbnz	w8, LBB0_18
	b	LBB0_22
LBB0_24:
	add	x0, x23, #20
	bl	_schedule_work
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_TXD_STAT_DD,4,2          ; @E1000_TXD_STAT_DD
	.comm	___E1000_DOWN,4,2               ; @__E1000_DOWN
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_TXOFF,4,2         ; @E1000_STATUS_TXOFF
	.comm	_TX_WAKE_THRESHOLD,8,3          ; @TX_WAKE_THRESHOLD
	.no_dead_strip	_e1000_clean_tx_irq
.subsections_via_symbols
