	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_turndown
_gve_turndown:                          ## @gve_turndown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_netif_carrier_off
LBB0_2:
	movq	%r14, %rdi
	callq	_gve_get_napi_enabled
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$0, 20(%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gve_tx_idx_to_ntfy
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	callq	_napi_disable
	incl	%ebx
	cmpl	20(%r14), %ebx
	jl	LBB0_5
LBB0_6:
	cmpl	$0, 16(%r14)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gve_rx_idx_to_ntfy
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	callq	_napi_disable
	incl	%ebx
	cmpl	16(%r14), %ebx
	jl	LBB0_8
LBB0_9:
	movl	(%r14), %edi
	callq	_netif_tx_disable
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gve_clear_napi_enabled         ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gve_turndown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_turndown
_gve_turndown:                          ; @gve_turndown
	.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
	ldr	w0, [x0]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_netif_carrier_off
LBB0_2:
	mov	x0, x19
	bl	_gve_get_napi_enabled
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_gve_tx_idx_to_ntfy
	ldr	x8, [x19, #8]
	add	x0, x8, w0, sxtw #2
	bl	_napi_disable
	add	w20, w20, #1
	ldr	w8, [x19, #20]
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_6:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_gve_rx_idx_to_ntfy
	ldr	x8, [x19, #8]
	add	x0, x8, w0, sxtw #2
	bl	_napi_disable
	add	w20, w20, #1
	ldr	w8, [x19, #16]
	cmp	w20, w8
	b.lt	LBB0_8
LBB0_9:
	ldr	w0, [x19]
	bl	_netif_tx_disable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gve_clear_napi_enabled
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gve_turndown
.subsections_via_symbols
