	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_suspend_cpu                 ## -- Begin function vm_suspend_cpu
	.p2align	4, 0x90
_vm_suspend_cpu:                        ## @vm_suspend_cpu
	.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
	cmpl	$-1, %esi
	jl	LBB0_2
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jle	LBB0_2
## %bb.3:
	leaq	8(%r12), %r14
	cmpl	$-1, %r15d
	je	LBB0_4
## %bb.9:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	leaq	4(%r12), %rsi
	movl	%r15d, %edi
	callq	_CPU_SET_ATOMIC
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_vcpu_notify_event
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r12), %ecx
	movl	%ecx, 4(%r12)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jg	LBB0_5
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_vcpu_notify_event
	jmp	LBB0_7
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_suspend_cpu                 ; -- Begin function vm_suspend_cpu
	.p2align	2
_vm_suspend_cpu:                        ; @vm_suspend_cpu
	.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
	cmn	w1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.2:
	add	x20, x19, #8
	cmn	w21, #1
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_CPU_ISSET
	cbz	x0, LBB0_5
; %bb.4:
	add	x1, x19, #4
	mov	x0, x21
	bl	_CPU_SET_ATOMIC
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_vcpu_notify_event
	b	LBB0_12
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_6:
	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
LBB0_7:
	ldr	w9, [x19, #8]
	str	w9, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	w21, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_CPU_ISSET
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_vcpu_notify_event
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
