	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vi_reset_dev                   ## -- Begin function vi_reset_dev
	.p2align	4, 0x90
_vi_reset_dev:                          ## @vi_reset_dev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_pthread_mutex_isowned_np
	movl	%eax, %edi
	callq	_assert
LBB0_2:
	movq	48(%rbx), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.3:
	movq	40(%rbx), %rax
	leal	-1(%rcx), %edx
	cmpl	$3, %edx
	jb	LBB0_6
## %bb.4:
	movl	%ecx, %edx
	andl	$-4, %edx
	xorps	%xmm0, %xmm0
	movq	_VIRTIO_MSI_NO_VECTOR@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 8(%rax)
	movq	$0, 40(%rax)
	movq	(%rsi), %rdi
	movq	%rdi, (%rax)
	movups	%xmm0, 56(%rax)
	movups	%xmm0, 72(%rax)
	movq	$0, 88(%rax)
	movq	(%rsi), %rdi
	movq	%rdi, 48(%rax)
	movups	%xmm0, 104(%rax)
	movups	%xmm0, 120(%rax)
	movq	$0, 136(%rax)
	movq	%rdi, 96(%rax)
	movups	%xmm0, 152(%rax)
	movups	%xmm0, 168(%rax)
	movq	$0, 184(%rax)
	movq	(%rsi), %rdi
	movq	%rdi, 144(%rax)
	addq	$192, %rax
	addl	$-4, %edx
	jne	LBB0_5
LBB0_6:
	testb	$3, %cl
	je	LBB0_9
## %bb.7:
	addq	$8, %rax
	andl	$3, %ecx
	shlq	$4, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	movq	_VIRTIO_MSI_NO_VECTOR@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, 16(%rax,%rdx)
	movups	%xmm0, (%rax,%rdx)
	movq	$0, 32(%rax,%rdx)
	movq	(%rsi), %rdi
	movq	%rdi, -8(%rax,%rdx)
	addq	$48, %rdx
	cmpl	%edx, %ecx
	jne	LBB0_8
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.10:
	movl	16(%rbx), %edi
	callq	_pci_lintr_deassert
LBB0_11:
	movq	$0, 8(%rbx)
	movq	_VIRTIO_MSI_NO_VECTOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_MSI_NO_VECTOR,8,3       ## @VIRTIO_MSI_NO_VECTOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vi_reset_dev                   ; -- Begin function vi_reset_dev
	.p2align	2
_vi_reset_dev:                          ; @vi_reset_dev
	.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	x0, [x0, #56]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_pthread_mutex_isowned_np
	bl	_assert
LBB0_2:
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
Lloh0:
	adrp	x20, _VIRTIO_MSI_NO_VECTOR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VIRTIO_MSI_NO_VECTOR@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x19, #40]
	add	x9, x9, #8
	movi.2d	v0, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9, #32]
	stp	q0, q0, [x9]
	ldr	x10, [x20]
	stur	x10, [x9, #-8]
	add	x9, x9, #48
	subs	w8, w8, #1
	b.ne	LBB0_4
LBB0_5:
	stp	xzr, xzr, [x19, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_pci_lintr_deassert
LBB0_7:
	ldr	x8, [x20]
	stp	x8, xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_MSI_NO_VECTOR,8,3       ; @VIRTIO_MSI_NO_VECTOR
.subsections_via_symbols
