	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftmac100_tx_complete_packet
_ftmac100_tx_complete_packet:           ## @ftmac100_tx_complete_packet
	.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
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	callq	_ftmac100_current_clean_txdes
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ftmac100_txdes_owned_by_dma
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	callq	_ftmac100_txdes_get_skb
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ftmac100_txdes_get_dma_addr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ftmac100_txdes_excessive_collision
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_ftmac100_txdes_late_collision
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	incl	8(%r14)
	jmp	LBB0_7
LBB0_6:
	incl	4(%r14)
	movl	(%r12), %eax
	addl	%eax, (%r14)
LBB0_7:
	movl	12(%r13), %ebx
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	movq	%r15, %rdi
	callq	_ftmac100_txdes_reset
	movq	%r13, %rdi
	callq	_ftmac100_tx_clean_pointer_advance
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	decq	(%r13)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ftmac100_tx_complete_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftmac100_tx_complete_packet
_ftmac100_tx_complete_packet:           ; @ftmac100_tx_complete_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #16]
	bl	_ftmac100_current_clean_txdes
	mov	x21, x0
	bl	_ftmac100_txdes_owned_by_dma
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x21
	bl	_ftmac100_txdes_get_skb
	mov	x22, x0
	mov	x0, x21
	bl	_ftmac100_txdes_get_dma_addr
	mov	x23, x0
	mov	x0, x21
	bl	_ftmac100_txdes_excessive_collision
	cbz	x0, LBB0_6
; %bb.4:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_5:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_ftmac100_txdes_late_collision
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_7:
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x22]
	add.2s	v0, v0, v1
	str	d0, [x19]
LBB0_8:
	ldr	w24, [x20, #12]
	mov	x0, x22
	bl	_skb_headlen
	mov	x2, x0
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_dma_unmap_single
	mov	x0, x22
	bl	_dev_kfree_skb
	mov	x0, x21
	bl	_ftmac100_txdes_reset
	mov	x0, x20
	bl	_ftmac100_tx_clean_pointer_advance
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	bl	_netif_wake_queue
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ftmac100_tx_complete_packet
.subsections_via_symbols
