	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfv_release_used_buf
_cfv_release_used_buf:                  ## @cfv_release_used_buf
	.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, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	xorl	%edi, %edi
	cmpq	%r14, 16(%r13)
	setne	%dil
	callq	_BUG_ON
	leaq	48(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_virtqueue_get_buf
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	leaq	-44(%rbp), %r12
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rdi
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_virtqueue_get_vring_size
	cltq
	movq	%rax, (%r13)
	movl	28(%r13), %edi
	callq	_netif_tx_wake_all_queues
	movq	16(%r13), %rdi
	callq	_virtqueue_disable_cb
	incl	24(%r13)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_virtqueue_get_buf
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_free_buf_info
	movq	16(%r13), %rdi
	movq	(%rdi), %rax
	cmpq	(%r13), %rax
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r13)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r13), %esi
	callq	_gen_pool_alloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rbx
	movq	16(%r13), %rdi
	callq	_virtqueue_get_vring_size
	cltq
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setg	%dil
	callq	_WARN_ON
	movq	16(%r13), %rdi
	callq	_virtqueue_get_vring_size
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	addq	%rax, (%r13)
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cfv_release_used_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfv_release_used_buf
_cfv_release_used_buf:                  ; @cfv_release_used_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x8, [x20, #16]
	cmp	x8, x0
	cset	w0, ne
	bl	_BUG_ON
	add	x21, x20, #48
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_virtqueue_get_vring_size
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x20]
	ldr	w0, [x20, #28]
	bl	_netif_tx_wake_all_queues
	ldr	x0, [x20, #16]
	bl	_virtqueue_disable_cb
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x1, sp, #12
	mov	x0, x19
	bl	_virtqueue_get_buf
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x22, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_free_buf_info
	ldr	x0, [x20, #16]
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_3
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, #32]
	bl	_gen_pool_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #16]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x20]
	ldr	x0, [x20, #16]
	bl	_virtqueue_get_vring_size
	cmp	x22, w0, sxtw
	cset	w0, gt
	bl	_WARN_ON
	ldr	x0, [x20, #16]
	bl	_virtqueue_get_vring_size
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #2
	ldr	x9, [x20]
	add	x8, x9, w8, sxtw
	str	x8, [x20]
	b	LBB0_3
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cfv_release_used_buf
.subsections_via_symbols
