	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_cpu_add                    ## -- Begin function gdb_cpu_add
	.p2align	4, 0x90
_gdb_cpu_add:                           ## @gdb_cpu_add
	.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
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_debug
	movq	_gdb_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_vcpus_active@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_CPU_SET
	movq	_vcpus_suspended@GOTPCREL(%rip), %rdi
	callq	_CPU_EMPTY
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_vcpus_suspended@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_CPU_SET
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	__gdb_cpu_suspend
LBB0_2:
	movq	_gdb_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$vCPU %d starting\n"

	.comm	_gdb_lock,4,2                   ## @gdb_lock
	.comm	_vcpus_active,4,2               ## @vcpus_active
	.comm	_vcpus_suspended,4,2            ## @vcpus_suspended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_cpu_add                    ; -- Begin function gdb_cpu_add
	.p2align	2
_gdb_cpu_add:                           ; @gdb_cpu_add
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debug
Lloh2:
	adrp	x0, _gdb_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _gdb_lock@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh4:
	adrp	x1, _vcpus_active@GOTPAGE
Lloh5:
	ldr	x1, [x1, _vcpus_active@GOTPAGEOFF]
	mov	x0, x19
	bl	_CPU_SET
Lloh6:
	adrp	x0, _vcpus_suspended@GOTPAGE
Lloh7:
	ldr	x0, [x0, _vcpus_suspended@GOTPAGEOFF]
	bl	_CPU_EMPTY
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, _vcpus_suspended@GOTPAGE
Lloh9:
	ldr	x1, [x1, _vcpus_suspended@GOTPAGEOFF]
	mov	x0, x19
	bl	_CPU_SET
	mov	x0, x19
	mov	w1, #0
	bl	__gdb_cpu_suspend
LBB0_2:
Lloh10:
	adrp	x0, _gdb_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _gdb_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$vCPU %d starting\n"

	.comm	_gdb_lock,4,2                   ; @gdb_lock
	.comm	_vcpus_active,4,2               ; @vcpus_active
	.comm	_vcpus_suspended,4,2            ; @vcpus_suspended
.subsections_via_symbols
