	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_tx_complete_packet
_ftgmac100_tx_complete_packet:          ## @ftgmac100_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
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	movl	(%rdi), %r14d
	movq	16(%rdi), %r12
	movl	(%r12,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_FTGMAC100_TXDES0_TXDMA_OWN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r15d, (%rcx)
	jne	LBB0_2
## %bb.1:
	leaq	(%r12,%r14,4), %r12
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rdx
	incl	4(%r13)
	movl	(%rdx), %eax
	addl	%eax, (%r13)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rcx
	movl	%r15d, %r8d
	callq	_ftgmac100_free_tx_packet
	andl	4(%rbx), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ftgmac100_next_tx_pointer
	movl	%eax, (%rbx)
	movl	$1, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC100_TXDES0_TXDMA_OWN,4,2 ## @FTGMAC100_TXDES0_TXDMA_OWN
	.no_dead_strip	_ftgmac100_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 ftgmac100_tx_complete_packet
_ftgmac100_tx_complete_packet:          ; @ftgmac100_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
	mov	x19, x0
	ldr	w20, [x0]
	ldp	x8, x23, [x0, #16]
	add	x21, x8, x20, lsl #2
	ldr	w0, [x21]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _FTGMAC100_TXDES0_TXDMA_OWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTGMAC100_TXDES0_TXDMA_OWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x2, [x8, x20, lsl #3]
	ldr	d0, [x23]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x2]
	add.2s	v0, v0, v1
	str	d0, [x23]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	bl	_ftgmac100_free_tx_packet
	ldr	w8, [x19, #4]
	and	w0, w8, w22
	bl	_cpu_to_le32
	str	w0, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_ftgmac100_next_tx_pointer
	str	w0, [x19]
	mov	w0, #1
LBB0_3:
	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	_FTGMAC100_TXDES0_TXDMA_OWN,4,2 ; @FTGMAC100_TXDES0_TXDMA_OWN
	.no_dead_strip	_ftgmac100_tx_complete_packet
.subsections_via_symbols
