	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_counter_u64_fetch          ## -- Begin function kvm_counter_u64_fetch
	.p2align	4, 0x90
_kvm_counter_u64_fetch:                 ## @kvm_counter_u64_fetch
	.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
	movq	%rdi, %r15
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	jg	LBB0_5
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_3:
	movq	%r15, %rdi
	callq	__kvm_pcpu_init
	xorl	%r13d, %r13d
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
LBB0_5:
	leaq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	$8, %ecx
	movl	%ebx, %r8d
	callq	_kvm_read_zpcpu
	cmpl	$8, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	-48(%rbp), %r13
	incl	%ebx
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_6
LBB0_9:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_counter_u64_fetch          ; -- Begin function kvm_counter_u64_fetch
	.p2align	2
_kvm_counter_u64_fetch:                 ; @kvm_counter_u64_fetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _mp_ncpus@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mp_ncpus@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ge	LBB0_5
LBB0_2:
	mov	x21, #0
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	bl	__kvm_pcpu_init
	mov	x21, #0
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	w8, [x23]
	cmp	w8, #0
	b.le	LBB0_8
LBB0_5:
	mov	w22, #0
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #8
	mov	x4, x22
	bl	_kvm_read_zpcpu
	cmp	w0, #8
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	add	x21, x8, x21
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_6
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
.subsections_via_symbols
