	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_eth_txq_egress_update   ## -- Begin function t4_sge_eth_txq_egress_update
	.p2align	4, 0x90
_t4_sge_eth_txq_egress_update:          ## @t4_sge_eth_txq_egress_update
	.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	%r14d, %r14d
	cmpl	$0, 12(%rsi)
	je	LBB0_6
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %edi
	callq	___netif_tx_trylock
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	leaq	4(%rbx), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_reclaim_completed_tx
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_txq_avail
	movl	(%r15), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jle	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_netif_tx_wake_queue
	incl	8(%rbx)
LBB0_5:
	movl	(%rbx), %edi
	callq	___netif_tx_unlock
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_eth_txq_egress_update   ; -- Begin function t4_sge_eth_txq_egress_update
	.p2align	2
_t4_sge_eth_txq_egress_update:          ; @t4_sge_eth_txq_egress_update
	.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
	ldr	w8, [x1, #12]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1]
	bl	___netif_tx_trylock
	cbz	w0, LBB0_6
; %bb.2:
	add	x21, x19, #4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	_reclaim_completed_tx
	mov	x20, x0
	ldr	w0, [x19]
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_txq_avail
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w0, w8, asr #1
	b.le	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_netif_tx_wake_queue
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_5:
	ldr	w0, [x19]
	bl	___netif_tx_unlock
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
