	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdb_suspend_vcpus
_gdb_suspend_vcpus:                     ## @gdb_suspend_vcpus
	.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	_gdb_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_isowned_np
	movl	%eax, %edi
	callq	_assert
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	_vcpus_active@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_vcpus_suspended@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_vm_suspend_cpu
	movq	_vcpus_waiting@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_CPU_CMP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gdb_finish_suspend_vcpus       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gdb_lock,4,2                   ## @gdb_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suspending all CPUs\n"

	.comm	_vcpus_active,4,2               ## @vcpus_active
	.comm	_vcpus_suspended,4,2            ## @vcpus_suspended
	.comm	_ctx,4,2                        ## @ctx
	.comm	_vcpus_waiting,4,2              ## @vcpus_waiting
	.no_dead_strip	_gdb_suspend_vcpus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdb_suspend_vcpus
_gdb_suspend_vcpus:                     ; @gdb_suspend_vcpus
	.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
Lloh0:
	adrp	x0, _gdb_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _gdb_lock@GOTPAGEOFF]
	bl	_pthread_mutex_isowned_np
	bl	_assert
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh4:
	adrp	x8, _vcpus_active@GOTPAGE
Lloh5:
	ldr	x8, [x8, _vcpus_active@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x19, _vcpus_suspended@GOTPAGE
Lloh8:
	ldr	x19, [x19, _vcpus_suspended@GOTPAGEOFF]
	str	w8, [x19]
Lloh9:
	adrp	x8, _ctx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_vm_suspend_cpu
Lloh12:
	adrp	x0, _vcpus_waiting@GOTPAGE
Lloh13:
	ldr	x0, [x0, _vcpus_waiting@GOTPAGEOFF]
	mov	x1, x19
	bl	_CPU_CMP
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gdb_finish_suspend_vcpus
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gdb_lock,4,2                   ; @gdb_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suspending all CPUs\n"

	.comm	_vcpus_active,4,2               ; @vcpus_active
	.comm	_vcpus_suspended,4,2            ; @vcpus_suspended
	.comm	_ctx,4,2                        ; @ctx
	.comm	_vcpus_waiting,4,2              ; @vcpus_waiting
	.no_dead_strip	_gdb_suspend_vcpus
.subsections_via_symbols
