	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_tx_complete
_ftgmac100_tx_complete:                 ## @ftgmac100_tx_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ftgmac100_tx_buf_cleanable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ftgmac100_tx_complete_packet
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_ftgmac100_tx_buf_avail
	movq	_TX_THRESHOLD@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	setge	%r15b
LBB0_5:
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_ftgmac100_tx_buf_avail
	movq	_TX_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___netif_tx_unlock              ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_THRESHOLD,8,3               ## @TX_THRESHOLD
	.no_dead_strip	_ftgmac100_tx_complete
.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
_ftgmac100_tx_complete:                 ; @ftgmac100_tx_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ftgmac100_tx_buf_cleanable
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_ftgmac100_tx_complete_packet
	cbnz	x0, LBB0_1
LBB0_3:
	bl	_smp_mb
	mov	x0, x19
	bl	_netif_queue_stopped
Lloh0:
	adrp	x22, _TX_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_THRESHOLD@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ftgmac100_tx_buf_avail
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, ge
LBB0_5:
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_netdev_get_tx_queue
	mov	x21, x0
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x21
	bl	___netif_tx_lock
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_ftgmac100_tx_buf_avail
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___netif_tx_unlock
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_THRESHOLD,8,3               ; @TX_THRESHOLD
	.no_dead_strip	_ftgmac100_tx_complete
.subsections_via_symbols
