	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_tx_clean
_e100_tx_clean:                         ## @e100_tx_clean
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	32(%r13), %r12
	movl	(%r12), %r15d
	movq	_cb_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	testl	%r15d, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%r12)
	incl	12(%r13)
	movq	24(%r12), %r12
	movq	%r12, 32(%r13)
	movl	(%r12), %ebx
	movq	_cb_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	testl	%ebx, %eax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r13), %rcx
	movq	%r12, %r9
	subq	24(%r13), %r9
	shrq	$5, %r9
	movl	(%r12), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	leaq	L_.str(%rip), %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_netif_printk
	xorl	%edi, %edi
	cmpq	$0, 8(%r12)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	4(%r14)
	movq	8(%r12), %rax
	movl	(%rax), %eax
	addl	%eax, (%r14)
	movl	16(%r13), %r15d
	movl	20(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pci_unmap_single
	movq	8(%r12), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, 8(%r12)
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.8:
	movq	(%r13), %rdi
	callq	_netif_queue_stopped
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_9
LBB0_1:
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
LBB0_9:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r13), %rdi
	callq	_netif_wake_queue
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cb_complete,4,2                ## @cb_complete
	.comm	_tx_done,4,2                    ## @tx_done
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cb[%d]->status = 0x%04X\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_e100_tx_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_tx_clean
_e100_tx_clean:                         ; @e100_tx_clean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x24, [x0]
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x25, [x19, #32]
	ldr	w20, [x25]
Lloh0:
	adrp	x26, _cb_complete@GOTPAGE
Lloh1:
	ldr	x26, [x26, _cb_complete@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_cpu_to_le16
	tst	w0, w20
	b.eq	LBB0_7
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	w21, #0
Lloh2:
	adrp	x27, _tx_done@GOTPAGE
Lloh3:
	ldr	x27, [x27, _tx_done@GOTPAGEOFF]
Lloh4:
	adrp	x28, _KERN_DEBUG@GOTPAGE
Lloh5:
	ldr	x28, [x28, _KERN_DEBUG@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
Lloh8:
	adrp	x20, _PCI_DMA_TODEVICE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x25]
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	x25, [x25, #24]
	str	x25, [x19, #32]
	ldr	w23, [x25]
	ldr	w0, [x26]
	bl	_cpu_to_le16
	tst	w0, w23
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldr	w1, [x27]
	ldr	w2, [x28]
	ldr	x3, [x19]
	ldr	x8, [x19, #24]
	sub	x8, x25, x8
	lsr	x5, x8, #5
	ldr	w6, [x25]
	mov	x0, x19
	mov	x4, x22
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_netif_printk
	ldr	x8, [x25, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]
	ldr	d0, [x24]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x24]
	ldr	w21, [x19, #16]
	ldr	w0, [x25, #20]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	w0, [x25, #16]
	bl	_le16_to_cpu
	mov	x2, x0
	ldr	w3, [x20]
	mov	x0, x21
	mov	x1, x23
	bl	_pci_unmap_single
	ldr	x0, [x25, #8]
	bl	_dev_kfree_skb_any
	str	xzr, [x25, #8]
	mov	w21, #1
	b	LBB0_2
LBB0_5:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_spin_unlock
	cbz	w21, LBB0_8
; %bb.6:
	ldr	x0, [x19]
	bl	_netif_queue_stopped
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_7:
	mov	x0, x21
	bl	_spin_unlock
	mov	w21, #0
LBB0_8:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_9:
	ldr	x0, [x19]
	bl	_netif_wake_queue
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_cb_complete,4,2                ; @cb_complete
	.comm	_tx_done,4,2                    ; @tx_done
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cb[%d]->status = 0x%04X\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_e100_tx_clean
.subsections_via_symbols
