	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vi_vq_init                     ## -- Begin function vi_vq_init
	.p2align	4, 0x90
_vi_vq_init:                            ## @vi_vq_init
	.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, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	16(%rdi), %r12
	leaq	(%rax,%rax,8), %rbx
	movq	%rsi, 64(%r12,%rbx,8)
	movq	_VRING_PFN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movl	(%r12,%rbx,8), %edi
	callq	_vring_size
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_paddr_guest2host
	movq	%rax, 56(%r12,%rbx,8)
	movslq	(%r12,%rbx,8), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 48(%r12,%rbx,8)
	leaq	(%rax,%rcx,4), %rdi
	addq	$12, %rdi
	movq	_VRING_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup2
	movq	%rax, 40(%r12,%rbx,8)
	movq	_VQ_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12,%rbx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12,%rbx,8)
	movq	$0, 24(%r12,%rbx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VRING_PFN,4,2                  ## @VRING_PFN
	.comm	_VRING_ALIGN,4,2                ## @VRING_ALIGN
	.comm	_VQ_ALLOC,4,2                   ## @VQ_ALLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vi_vq_init                     ; -- Begin function vi_vq_init
	.p2align	2
_vi_vq_init:                            ; @vi_vq_init
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	mov	w10, #72
	madd	x21, x9, x10, x8
	str	x1, [x21, #64]
Lloh0:
	adrp	x8, _VRING_PFN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VRING_PFN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w20, w1, w8
	ldr	w0, [x21]
	bl	_vring_size
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_paddr_guest2host
	ldrsw	x8, [x21]
	lsl	x8, x8, #2
	add	x9, x0, x8
	add	x8, x8, x9
	stp	x9, x0, [x21, #48]
	add	x0, x8, #12
Lloh3:
	adrp	x8, _VRING_ALIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VRING_ALIGN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_roundup2
Lloh6:
	adrp	x8, _VQ_ALLOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VQ_ALLOC@GOTPAGEOFF]
	str	x0, [x21, #40]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	stp	xzr, xzr, [x21, #16]
	str	xzr, [x21, #8]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VRING_PFN,4,2                  ; @VRING_PFN
	.comm	_VRING_ALIGN,4,2                ; @VRING_ALIGN
	.comm	_VQ_ALLOC,4,2                   ; @VQ_ALLOC
.subsections_via_symbols
