	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtnet_reset
_pci_vtnet_reset:                       ## @pci_vtnet_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movl	$1, (%r15)
	cmpq	$0, 24(%r15)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	cmpq	$0, 24(%r15)
	jne	LBB0_1
LBB0_3:
	movabsq	$17179869185, %rax              ## imm = 0x400000001
	movq	%rax, 4(%r15)
	leaq	20(%r15), %rdi
	callq	_vi_reset_dev
	movl	$0, (%r15)
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vtnet: device reset requested !\n"

	.no_dead_strip	_pci_vtnet_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pci_vtnet_reset
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pci_vtnet_reset:                       ; @pci_vtnet_reset
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	add	x20, x19, #12
	mov	x0, x20
	bl	_pthread_mutex_lock
	add	x21, x19, #16
	mov	x0, x21
	bl	_pthread_mutex_lock
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_pthread_mutex_unlock
	mov	w0, #10000
	bl	_usleep
	mov	x0, x21
	bl	_pthread_mutex_lock
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
LBB0_2:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	add	x0, x19, #20
	bl	_vi_reset_dev
	str	wzr, [x19]
	mov	x0, x21
	bl	_pthread_mutex_unlock
	mov	x0, x20
	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
	b	_pthread_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vtnet: device reset requested !\n"

	.no_dead_strip	_pci_vtnet_reset
.subsections_via_symbols
