	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vp_index
_get_vp_index:                          ## @get_vp_index
	.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
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_num_online_cpus
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IDE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_MAX_PERF_CHN@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	jge	LBB0_4
## %bb.1:
	movq	_hp_devs@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	sete	%r12b
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VERSION_WS2008@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	_VERSION_WIN7@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	xorb	$1, %r12b
	orb	%al, %r12b
	jne	LBB0_5
## %bb.7:
	movq	_next_vp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	incq	%rax
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %rcx
	orq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_10
## %bb.8:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:
	movq	_hv_context@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE,4,2                        ## @IDE
	.comm	_MAX_PERF_CHN,4,2               ## @MAX_PERF_CHN
	.comm	_hp_devs,8,3                    ## @hp_devs
	.comm	_vmbus_proto_version,8,3        ## @vmbus_proto_version
	.comm	_VERSION_WS2008,8,3             ## @VERSION_WS2008
	.comm	_VERSION_WIN7,8,3               ## @VERSION_WIN7
	.comm	_next_vp,8,3                    ## @next_vp
	.comm	_hv_context,8,3                 ## @hv_context
	.no_dead_strip	_get_vp_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vp_index
_get_vp_index:                          ; @get_vp_index
	.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, x0
	bl	_num_online_cpus
	mov	x19, x0
Lloh0:
	adrp	x8, _IDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDE@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
Lloh3:
	adrp	x22, _MAX_PERF_CHN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_PERF_CHN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_4
; %bb.1:
Lloh5:
	adrp	x23, _hp_devs@GOTPAGE
Lloh6:
	ldr	x23, [x23, _hp_devs@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [x23]
	ldr	w1, [x8, x21, lsl #2]
	mov	w2, #4
	bl	_memcmp
	cmp	w0, #0
	cset	w8, eq
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x22]
	cmp	x21, x9
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh7:
	adrp	x9, _vmbus_proto_version@GOTPAGE
Lloh8:
	ldr	x9, [x9, _vmbus_proto_version@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _VERSION_WS2008@GOTPAGE
Lloh11:
	ldr	x10, [x10, _VERSION_WS2008@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.6:
Lloh13:
	adrp	x10, _VERSION_WIN7@GOTPAGE
Lloh14:
	ldr	x10, [x10, _VERSION_WIN7@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, eq
	eor	w8, w8, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _next_vp@GOTPAGE
Lloh17:
	ldr	x8, [x8, _next_vp@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	udiv	x8, x9, x19
	msub	x8, x8, x19, x9
Lloh18:
	adrp	x9, _hv_context@GOTPAGE
Lloh19:
	ldr	x9, [x9, _hv_context@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x0, [x9, x8, lsl #3]
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE,4,2                        ; @IDE
	.comm	_MAX_PERF_CHN,4,2               ; @MAX_PERF_CHN
	.comm	_hp_devs,8,3                    ; @hp_devs
	.comm	_vmbus_proto_version,8,3        ; @vmbus_proto_version
	.comm	_VERSION_WS2008,8,3             ; @VERSION_WS2008
	.comm	_VERSION_WIN7,8,3               ; @VERSION_WIN7
	.comm	_next_vp,8,3                    ; @next_vp
	.comm	_hv_context,8,3                 ; @hv_context
	.no_dead_strip	_get_vp_index
.subsections_via_symbols
