	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _gdb_cpu_suspend
__gdb_cpu_suspend:                      ## @_gdb_cpu_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_debug
	movq	_vcpus_waiting@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_CPU_SET
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	_vcpus_waiting@GOTPCREL(%rip), %rdi
	movq	_vcpus_suspended@GOTPCREL(%rip), %rsi
	callq	_CPU_CMP
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_gdb_finish_suspend_vcpus
LBB0_3:
	movq	_vcpus_suspended@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_stepping_vcpu@GOTPCREL(%rip), %r13
	cmpl	%ebx, (%r13)
	je	LBB0_8
## %bb.5:
	movq	_idle_vcpus@GOTPCREL(%rip), %r14
	movq	_gdb_lock@GOTPCREL(%rip), %r15
	movq	_vcpus_suspended@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%ebx, (%r13)
	jne	LBB0_6
LBB0_8:
	movq	_vcpus_waiting@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_CPU_CLR
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$vCPU %d suspending\n"

	.comm	_vcpus_waiting,4,2              ## @vcpus_waiting
	.comm	_vcpus_suspended,4,2            ## @vcpus_suspended
	.comm	_stepping_vcpu,4,2              ## @stepping_vcpu
	.comm	_idle_vcpus,4,2                 ## @idle_vcpus
	.comm	_gdb_lock,4,2                   ## @gdb_lock
L_.str.1:                               ## @.str.1
	.asciz	"$vCPU %d resuming\n"

	.no_dead_strip	__gdb_cpu_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gdb_cpu_suspend
__gdb_cpu_suspend:                      ; @_gdb_cpu_suspend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debug
Lloh2:
	adrp	x1, _vcpus_waiting@GOTPAGE
Lloh3:
	ldr	x1, [x1, _vcpus_waiting@GOTPAGEOFF]
	mov	x0, x19
	bl	_CPU_SET
	cbz	w20, LBB0_3
; %bb.1:
Lloh4:
	adrp	x0, _vcpus_waiting@GOTPAGE
Lloh5:
	ldr	x0, [x0, _vcpus_waiting@GOTPAGEOFF]
Lloh6:
	adrp	x1, _vcpus_suspended@GOTPAGE
Lloh7:
	ldr	x1, [x1, _vcpus_suspended@GOTPAGEOFF]
	bl	_CPU_CMP
	cbnz	x0, LBB0_3
; %bb.2:
	bl	_gdb_finish_suspend_vcpus
LBB0_3:
Lloh8:
	adrp	x1, _vcpus_suspended@GOTPAGE
Lloh9:
	ldr	x1, [x1, _vcpus_suspended@GOTPAGEOFF]
	mov	x0, x19
	bl	_CPU_ISSET
Lloh10:
	adrp	x23, _stepping_vcpu@GOTPAGE
Lloh11:
	ldr	x23, [x23, _stepping_vcpu@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	x0, #0
	ccmp	w8, w19, #4, ne
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x20, _idle_vcpus@GOTPAGE
Lloh13:
	ldr	x20, [x20, _idle_vcpus@GOTPAGEOFF]
Lloh14:
	adrp	x21, _gdb_lock@GOTPAGE
Lloh15:
	ldr	x21, [x21, _gdb_lock@GOTPAGEOFF]
Lloh16:
	adrp	x22, _vcpus_suspended@GOTPAGE
Lloh17:
	ldr	x22, [x22, _vcpus_suspended@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pthread_cond_wait
	mov	x0, x19
	mov	x1, x22
	bl	_CPU_ISSET
	ldr	w8, [x23]
	cmp	x0, #0
	ccmp	w8, w19, #4, ne
	b.ne	LBB0_5
LBB0_6:
Lloh18:
	adrp	x1, _vcpus_waiting@GOTPAGE
Lloh19:
	ldr	x1, [x1, _vcpus_waiting@GOTPAGEOFF]
	mov	x0, x19
	bl	_CPU_CLR
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_debug
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$vCPU %d suspending\n"

	.comm	_vcpus_waiting,4,2              ; @vcpus_waiting
	.comm	_vcpus_suspended,4,2            ; @vcpus_suspended
	.comm	_stepping_vcpu,4,2              ; @stepping_vcpu
	.comm	_idle_vcpus,4,2                 ; @idle_vcpus
	.comm	_gdb_lock,4,2                   ; @gdb_lock
l_.str.1:                               ; @.str.1
	.asciz	"$vCPU %d resuming\n"

	.no_dead_strip	__gdb_cpu_suspend
.subsections_via_symbols
