	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_complete_tx
_smsc9420_complete_tx:                  ## @smsc9420_complete_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	%rdi, %r14
	callq	_netdev_priv
	movl	(%rax), %ebx
	cmpl	4(%rax), %ebx
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	8(%r15), %rax
	movslq	%ebx, %r13
	shlq	$4, %r13
	movl	(%rax,%r13), %ebx
	movl	4(%rax,%r13), %r12d
	movq	_TDES0_OWN_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_smsc9420_tx_update_stats
	movq	16(%r15), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%r13)
	sete	%dil
	callq	_BUG_ON
	movq	16(%r15), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax,%r13)
	sete	%dil
	callq	_BUG_ON
	movl	24(%r15), %edi
	movq	16(%r15), %rax
	movq	(%rax,%r13), %rcx
	movq	8(%rax,%r13), %rsi
	movl	(%rcx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	16(%r15), %rax
	movq	$0, 8(%rax,%r13)
	movq	(%rax,%r13), %rdi
	callq	_dev_kfree_skb_any
	movq	16(%r15), %rax
	movq	$0, (%rax,%r13)
	movq	8(%r15), %rax
	movq	$0, 8(%rax,%r13)
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r15), %eax
	incl	%eax
	cltd
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %ebx
	movl	%edx, (%r15)
	cmpl	4(%r15), %edx
	jne	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDES0_OWN_,4,2                 ## @TDES0_OWN_
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.no_dead_strip	_smsc9420_complete_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_complete_tx
_smsc9420_complete_tx:                  ; @smsc9420_complete_tx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	ldp	w26, w8, [x0]
	cmp	w26, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _TDES0_OWN_@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TDES0_OWN_@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _TX_RING_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TX_RING_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rmb
	ldr	x8, [x20, #8]
	add	x8, x8, w26, sxtw #4
	ldp	w21, w22, [x8]
	ldr	w8, [x23]
	and	w0, w8, w21
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x26, w26
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_smsc9420_tx_update_stats
	ldr	x8, [x20, #16]
	lsl	x21, x26, #4
	ldr	x8, [x8, x21]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x20, #16]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x20, #24]
	ldr	x8, [x20, #16]
	add	x8, x8, x21
	ldp	x8, x1, [x8]
	ldr	w2, [x8]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	ldr	x8, [x20, #16]
	add	x8, x8, x21
	str	xzr, [x8, #8]
	ldr	x0, [x8]
	bl	_dev_kfree_skb_any
	ldp	x9, x8, [x20, #8]
	str	xzr, [x8, x21]
	add	x8, x9, x21
	str	xzr, [x8, #8]
	bl	_wmb
	ldp	w8, w9, [x20]
	add	w8, w8, #1
	ldr	w10, [x25]
	sdiv	w11, w8, w10
	msub	w26, w11, w10, w8
	str	w26, [x20]
	cmp	w26, w9
	b.ne	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TDES0_OWN_,4,2                 ; @TDES0_OWN_
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.no_dead_strip	_smsc9420_complete_tx
.subsections_via_symbols
