	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epic_tx
_epic_tx:                               ## @epic_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	movl	4(%rsi), %r13d
	movl	%ecx, %ebx
	cmpl	%r13d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_epic_tx_error
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %rbx
	movq	(%rbx), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	32(%r12), %edi
	movq	24(%r12), %rax
	movl	4(%rax,%r15,8), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	%rbx, %rdi
	callq	_dev_consume_skb_irq
	movq	16(%r12), %rax
	movq	$0, (%rax,%r15,8)
	incl	%r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r13d, %ecx
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rsi
	divl	(%rsi)
	movq	24(%r12), %rax
	movslq	%edx, %r15
	movl	(%rax,%r15,8), %ebx
	movq	_DescOwn@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	andl	$1, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	shrl	$8, %ebx
	andl	$15, %ebx
	addl	%ebx, (%r14)
	incl	8(%r14)
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %rbx
	movq	(%rbx), %rdx
	addl	%edx, 4(%r14)
	jmp	LBB0_6
LBB0_7:
	movl	%ecx, %ebx
	jmp	LBB0_8
LBB0_2:
	movl	%r13d, %ebx
LBB0_8:
	movl	%ecx, %eax
	subl	%ebx, %eax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jbe	LBB0_10
## %bb.9:
	movl	8(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_netdev_warn
	addl	(%r15), %ebx
LBB0_10:
	movl	%ebx, 4(%r12)
	cmpl	$0, 8(%r12)
	je	LBB0_12
## %bb.11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	subl	%ebx, %ecx
	movq	_TX_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-4, %eax
	cmpl	%eax, %ecx
	jae	LBB0_12
## %bb.13:
	movl	$0, 8(%r12)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_DescOwn,4,2                    ## @DescOwn
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out-of-sync dirty pointer, %d vs. %d, full=%d.\n"

	.comm	_TX_QUEUE_LEN,4,2               ## @TX_QUEUE_LEN
	.no_dead_strip	_epic_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epic_tx
_epic_tx:                               ; @epic_tx
	.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	x20, x1
	mov	x19, x0
	ldp	w21, w8, [x1]
Lloh0:
	adrp	x24, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_RING_SIZE@GOTPAGEOFF]
	mov	x22, x21
	cmp	w21, w8
	b.eq	LBB0_8
; %bb.1:
Lloh2:
	adrp	x25, _DescOwn@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DescOwn@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	mov	x22, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_epic_tx_error
	ldr	x8, [x20, #16]
	ldr	x23, [x8, x27, lsl #3]
	ldr	x2, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #32]
	ldr	x8, [x20, #24]
	lsl	x27, x27, #3
	add	x8, x8, x27
	ldr	w1, [x8, #4]
	ldr	w3, [x26]
	bl	_pci_unmap_single
	mov	x0, x23
	bl	_dev_consume_skb_irq
	ldr	x8, [x20, #16]
	str	xzr, [x8, x27]
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	udiv	w9, w22, w8
	msub	w8, w9, w8, w22
	ldr	x9, [x20, #24]
	sbfiz	x10, x8, #3, #32
	ldr	w23, [x9, x10]
	ldr	w9, [x25]
	tst	w9, w23
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x27, w8
	and	w0, w23, #0x1
	bl	_likely
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfx	w8, w23, #8, #4
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x20, #16]
	ldr	x23, [x8, x27, lsl #3]
	ldr	x2, [x23]
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	mov.s	v1[0], w2
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	b	LBB0_3
LBB0_7:
	mov	x22, x21
LBB0_8:
	ldr	w8, [x24]
	sub	w9, w21, w22
	cmp	w9, w8
	b.ls	LBB0_10
; %bb.9:
	ldr	w4, [x20, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_netdev_warn
	ldr	w8, [x24]
	add	w22, w8, w22
LBB0_10:
	str	w22, [x20, #4]
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_13
; %bb.11:
Lloh8:
	adrp	x8, _TX_QUEUE_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TX_QUEUE_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w8, w8, #4
	sub	w9, w21, w22
	cmp	w9, w8
	b.hs	LBB0_13
; %bb.12:
	str	wzr, [x20, #8]
	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_13:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_DescOwn,4,2                    ; @DescOwn
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out-of-sync dirty pointer, %d vs. %d, full=%d.\n"

	.comm	_TX_QUEUE_LEN,4,2               ; @TX_QUEUE_LEN
	.no_dead_strip	_epic_tx
.subsections_via_symbols
