	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_vpid
_allocate_vpid:                         ## @allocate_vpid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rdi)
	movq	_enable_vpid@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_vmx_vpid_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_vmx_vpid_bitmap@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_VMX_NR_VPIDS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_first_zero_bit
	cmpl	(%r15), %eax
	jge	LBB0_3
## %bb.2:
	movl	%eax, (%rbx)
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	___set_bit
LBB0_3:
	movq	_vmx_vpid_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_enable_vpid,4,2                ## @enable_vpid
	.comm	_vmx_vpid_lock,4,2              ## @vmx_vpid_lock
	.comm	_vmx_vpid_bitmap,4,2            ## @vmx_vpid_bitmap
	.comm	_VMX_NR_VPIDS,4,2               ## @VMX_NR_VPIDS
	.no_dead_strip	_allocate_vpid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_vpid
_allocate_vpid:                         ; @allocate_vpid
	.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
	str	wzr, [x0]
Lloh0:
	adrp	x8, _enable_vpid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _enable_vpid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x0, _vmx_vpid_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _vmx_vpid_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh5:
	adrp	x20, _vmx_vpid_bitmap@GOTPAGE
Lloh6:
	ldr	x20, [x20, _vmx_vpid_bitmap@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x21, _VMX_NR_VPIDS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _VMX_NR_VPIDS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_find_first_zero_bit
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.2:
	str	w0, [x19]
	ldr	w1, [x20]
	bl	___set_bit
LBB0_3:
Lloh9:
	adrp	x0, _vmx_vpid_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _vmx_vpid_lock@GOTPAGEOFF]
	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
	b	_spin_unlock
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_enable_vpid,4,2                ; @enable_vpid
	.comm	_vmx_vpid_lock,4,2              ; @vmx_vpid_lock
	.comm	_vmx_vpid_bitmap,4,2            ; @vmx_vpid_bitmap
	.comm	_VMX_NR_VPIDS,4,2               ; @VMX_NR_VPIDS
	.no_dead_strip	_allocate_vpid
.subsections_via_symbols
