	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_cpuid_update           ## -- Begin function kvm_pmu_cpuid_update
	.p2align	4, 0x90
_kvm_pmu_cpuid_update:                  ## @kvm_pmu_cpuid_update
	.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, %rbx
	movl	$0, (%rdi)
	movq	$0, 8(%rdi)
	movq	16(%rdi), %rax
	movq	_KVM_PMC_GP@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	_KVM_PMC_FIXED@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	$0, (%rax,%rcx,4)
	movl	$0, 24(%rdi)
	movl	$10, %esi
	xorl	%edx, %edx
	callq	_kvm_find_cpuid_entry
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	$255, %ecx
	movl	%ecx, 24(%rbx)
	je	LBB0_5
## %bb.2:
	movzbl	%ah, %edi
	movq	_X86_PMC_MAX_GENERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movl	%eax, (%rbx)
	movb	2(%r14), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	16(%rbx), %rcx
	movq	(%r12), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movb	3(%r14), %cl
	movq	$-1, %rax
	shlq	%cl, %rax
	movl	$-1, %r13d
	movq	$-1, %r12
	orq	8(%r14), %rax
	notq	%rax
	movq	%rax, 32(%rbx)
	cmpl	$1, 24(%rbx)
	jne	LBB0_4
## %bb.3:
	movb	(%rbx), %cl
	shll	%cl, %r13d
	notl	%r13d
	movl	%r13d, 40(%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	16(%r14), %edi
	andl	$31, %edi
	movq	_X86_PMC_MAX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	%rax, 8(%rbx)
	movl	16(%r14), %ecx
	shrl	$5, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	notl	%r13d
	movq	16(%rbx), %rdx
	movq	(%r15), %rsi
	movl	%eax, %ecx
	shlq	%cl, %r12
	movl	%r13d, (%rdx,%rsi,4)
	movb	(%rbx), %al
	notq	%r12
	movq	_X86_PMC_IDX_FIXED@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %r12
	notl	%r12d
	movl	%eax, %ecx
	shrl	%cl, %r12d
	shll	%cl, %r12d
	movl	%r12d, 44(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_PMC_GP,8,3                 ## @KVM_PMC_GP
	.comm	_KVM_PMC_FIXED,8,3              ## @KVM_PMC_FIXED
	.comm	_X86_PMC_MAX_GENERIC,4,2        ## @X86_PMC_MAX_GENERIC
	.comm	_X86_PMC_MAX_FIXED,4,2          ## @X86_PMC_MAX_FIXED
	.comm	_X86_PMC_IDX_FIXED,8,3          ## @X86_PMC_IDX_FIXED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_cpuid_update           ; -- Begin function kvm_pmu_cpuid_update
	.p2align	2
_kvm_pmu_cpuid_update:                  ; @kvm_pmu_cpuid_update
	.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	x19, x0
	str	wzr, [x0]
	str	xzr, [x0, #8]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x23, _KVM_PMC_GP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KVM_PMC_GP@GOTPAGEOFF]
	ldr	x9, [x23]
	str	wzr, [x8, x9, lsl #2]
Lloh2:
	adrp	x21, _KVM_PMC_FIXED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KVM_PMC_FIXED@GOTPAGEOFF]
	ldr	x9, [x21]
	str	wzr, [x8, x9, lsl #2]
	str	wzr, [x0, #24]
	mov	w1, #10
	mov	w2, #0
	bl	_kvm_find_cpuid_entry
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	ands	w9, w8, #0xff
	str	w9, [x19, #24]
	b.eq	LBB0_5
; %bb.2:
	ubfx	w0, w8, #8, #8
Lloh4:
	adrp	x8, _X86_PMC_MAX_GENERIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _X86_PMC_MAX_GENERIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_min
	str	w0, [x19]
	ldrb	w8, [x20, #2]
	mov	w22, #-1
	lsl	w8, w22, w8
	mvn	w8, w8
	ldr	x9, [x19, #16]
	ldr	x10, [x23]
	str	w8, [x9, x10, lsl #2]
	ldrb	w8, [x20, #3]
	ldr	x9, [x20, #8]
	mov	x23, #-1
	lsl	x8, x23, x8
	orr	x8, x8, x9
	mvn	x8, x8
	str	x8, [x19, #32]
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19]
	lsl	w8, w22, w8
	mvn	w8, w8
	str	w8, [x19, #40]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x20, #16]
	and	w0, w8, #0x1f
Lloh7:
	adrp	x8, _X86_PMC_MAX_FIXED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _X86_PMC_MAX_FIXED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_min
	str	x0, [x19, #8]
	ldr	w8, [x20, #16]
	lsr	w8, w8, #5
	lsl	w8, w22, w8
	mvn	w8, w8
	ldr	x9, [x19, #16]
	ldr	x10, [x21]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19]
	lsl	w8, w22, w8
	lsl	x9, x23, x0
	mvn	x9, x9
Lloh10:
	adrp	x10, _X86_PMC_IDX_FIXED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _X86_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	bic	w8, w8, w9
	str	w8, [x19, #44]
LBB0_5:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_PMC_GP,8,3                 ; @KVM_PMC_GP
	.comm	_KVM_PMC_FIXED,8,3              ; @KVM_PMC_FIXED
	.comm	_X86_PMC_MAX_GENERIC,4,2        ; @X86_PMC_MAX_GENERIC
	.comm	_X86_PMC_MAX_FIXED,4,2          ; @X86_PMC_MAX_FIXED
	.comm	_X86_PMC_IDX_FIXED,8,3          ; @X86_PMC_IDX_FIXED
.subsections_via_symbols
