	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_suspend                     ## -- Begin function vm_suspend
	.p2align	4, 0x90
_vm_suspend:                            ## @vm_suspend
	.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	_VM_SUSPEND_NONE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jae	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	_VM_SUSPEND_LAST@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_8
## %bb.2:
	movq	%rdi, %r12
	addq	$8, %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_VM_CTR1
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.4:
	leaq	4(%r12), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_vcpu_notify_event
	jmp	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_10:
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_VM_CTR2
	movq	_EALREADY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_SUSPEND_NONE,4,2            ## @VM_SUSPEND_NONE
	.comm	_VM_SUSPEND_LAST,4,2            ## @VM_SUSPEND_LAST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"virtual machine already suspended %d/%d"

	.comm	_EALREADY,4,2                   ## @EALREADY
L_.str.1:                               ## @.str.1
	.asciz	"virtual machine successfully suspended %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_suspend                     ; -- Begin function vm_suspend
	.p2align	2
_vm_suspend:                            ; @vm_suspend
	.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
Lloh0:
	adrp	x8, _VM_SUSPEND_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_SUSPEND_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VM_SUSPEND_LAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_SUSPEND_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, lo
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #8
	mov	w1, #0
	mov	x2, x20
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_9
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_VM_CTR1
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w20, #0
	add	x21, x19, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_CPU_ISSET
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_vcpu_notify_event
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	ldr	w2, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_VM_CTR2
Lloh12:
	adrp	x8, _EALREADY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_SUSPEND_NONE,4,2            ; @VM_SUSPEND_NONE
	.comm	_VM_SUSPEND_LAST,4,2            ; @VM_SUSPEND_LAST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"virtual machine already suspended %d/%d"

	.comm	_EALREADY,4,2                   ; @EALREADY
l_.str.1:                               ; @.str.1
	.asciz	"virtual machine successfully suspended %d"

.subsections_via_symbols
