	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_maybe_stop_tx
_gve_maybe_stop_tx:                     ## @gve_maybe_stop_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_gve_skb_fifo_bytes_required
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_gve_can_tx
	movl	%eax, %edi
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	incl	8(%rbx)
	movl	4(%rbx), %edi
	callq	_netif_tx_stop_queue
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gve_can_tx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movl	4(%rbx), %edi
	callq	_netif_tx_start_queue
	incl	(%rbx)
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_gve_maybe_stop_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_maybe_stop_tx
_gve_maybe_stop_tx:                     ; @gve_maybe_stop_tx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_gve_skb_fifo_bytes_required
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_gve_can_tx
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldp	w0, w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #8]
	bl	_netif_tx_stop_queue
	bl	_smp_mb
	mov	x0, x19
	mov	x1, x20
	bl	_gve_can_tx
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_netif_tx_start_queue
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_gve_maybe_stop_tx
.subsections_via_symbols
