	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdc_ack
_vdc_ack:                               ## @vdc_ack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_VIO_DRIVER_TX_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rsi), %rax
	movl	$1, %edi
	cmpq	(%r15,%r12,8), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_VDC_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
LBB0_3:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	(%r15,%r12,8), %rsi
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	callq	_vdc_end_one
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ## @VIO_DRIVER_TX_RING
	.comm	_VDC_TX_RING_SIZE,8,3           ## @VDC_TX_RING_SIZE
	.no_dead_strip	_vdc_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdc_ack
_vdc_ack:                               ; @vdc_ack
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VIO_DRIVER_TX_RING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIO_DRIVER_TX_RING@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	add	x21, x9, x8, lsl #3
	ldr	x8, [x1]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _VDC_TX_RING_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VDC_TX_RING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cbnz	x0, LBB0_5
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_4:
	ldr	x2, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_vdc_end_one
LBB0_5:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ; @VIO_DRIVER_TX_RING
	.comm	_VDC_TX_RING_SIZE,8,3           ; @VDC_TX_RING_SIZE
	.no_dead_strip	_vdc_ack
.subsections_via_symbols
