	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdc_end_one
_vdc_end_one:                           ## @vdc_end_one
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_vio_dring_entry
	movq	%rax, %r12
	movq	16(%r14), %r13
	movq	16(%rax), %rax
	movq	_VIO_DESC_DONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	callq	_ldc_unmap
	movq	_VIO_DESC_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	incl	%ebx
	movq	_VDC_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%ebx, %eax
	movl	%eax, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r13,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	$0, (%r13,%rax,8)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	subl	(%rax), %esi
	cmpq	$0, 8(%r12)
	cmovel	%ecx, %esi
	movl	(%r12), %edx
	callq	___blk_end_request
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_blk_queue_stopped
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_start_queue                ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vdc_end_special                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIO_DESC_DONE,8,3              ## @VIO_DESC_DONE
	.comm	_VIO_DESC_FREE,8,3              ## @VIO_DESC_FREE
	.comm	_VDC_TX_RING_SIZE,4,2           ## @VDC_TX_RING_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_vdc_end_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdc_end_one
_vdc_end_one:                           ; @vdc_end_one
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_vio_dring_entry
	mov	x20, x0
	ldr	x23, [x19, #16]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _VIO_DESC_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIO_DESC_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19, #8]
	ldp	w2, w1, [x20, #24]
	bl	_ldc_unmap
Lloh3:
	adrp	x8, _VIO_DESC_FREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIO_DESC_FREE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	add	w8, w21, #1
Lloh6:
	adrp	x9, _VDC_TX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VDC_TX_RING_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x22]
	ldr	x0, [x23, w21, uxtw #3]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w8, w21
	str	xzr, [x23, x8, lsl #3]
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _EIO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w1, wzr, w9, eq
	ldr	w2, [x20]
	bl	___blk_end_request
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_blk_queue_stopped
	cbz	x0, LBB0_1
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_blk_start_queue
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vdc_end_special
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VIO_DESC_DONE,8,3              ; @VIO_DESC_DONE
	.comm	_VIO_DESC_FREE,8,3              ; @VIO_DESC_FREE
	.comm	_VDC_TX_RING_SIZE,4,2           ; @VDC_TX_RING_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_vdc_end_one
.subsections_via_symbols
