	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_msr                    ## -- Begin function kvm_pmu_msr
	.p2align	4, 0x90
_kvm_pmu_msr:                           ## @kvm_pmu_msr
	.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
	movq	%rdi, %r14
	movl	%esi, %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$2, (%r14)
	setge	%r15b
	jmp	LBB0_5
LBB0_2:
	movl	%esi, %ebx
	movq	_MSR_IA32_PERFCTR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_get_gp_pmc
	movb	$1, %r15b
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MSR_P6_EVNTSEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_get_gp_pmc
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_get_fixed_pmc
	testl	%eax, %eax
	setne	%r15b
LBB0_5:
	movzbl	%r15b, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_IA32_PERFCTR0,4,2          ## @MSR_IA32_PERFCTR0
	.comm	_MSR_P6_EVNTSEL0,4,2            ## @MSR_P6_EVNTSEL0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_msr                    ; -- Begin function kvm_pmu_msr
	.p2align	2
_kvm_pmu_msr:                           ; @kvm_pmu_msr
	.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	x20, x0
	and	w8, w1, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w0, gt
	b	LBB0_5
LBB0_2:
	mov	x19, x1
Lloh0:
	adrp	x8, _MSR_IA32_PERFCTR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_IA32_PERFCTR0@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_get_gp_pmc
	cbnz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _MSR_P6_EVNTSEL0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_P6_EVNTSEL0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_get_gp_pmc
	cbz	w0, LBB0_6
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_get_fixed_pmc
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_IA32_PERFCTR0,4,2          ; @MSR_IA32_PERFCTR0
	.comm	_MSR_P6_EVNTSEL0,4,2            ; @MSR_P6_EVNTSEL0
.subsections_via_symbols
