	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_read_pmc               ## -- Begin function kvm_pmu_read_pmc
	.p2align	4, 0x90
_kvm_pmu_read_pmc:                      ## @kvm_pmu_read_pmc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, %ecx
	andl	$1073741823, %ecx               ## imm = 0x3FFFFFFF
	movl	$1, %eax
	testl	$1073741824, %esi               ## imm = 0x40000000
	jne	LBB0_3
## %bb.1:
	cmpl	(%rdi), %ecx
	jae	LBB0_6
## %bb.2:
	addq	$8, %rdi
	jmp	LBB0_5
LBB0_3:
	cmpl	4(%rdi), %ecx
	jae	LBB0_6
## %bb.4:
	addq	$16, %rdi
LBB0_5:
	movl	%ecx, %eax
	shlq	$2, %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_read_pmc
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_read_pmc               ; -- Begin function kvm_pmu_read_pmc
	.p2align	2
_kvm_pmu_read_pmc:                      ; @kvm_pmu_read_pmc
	.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	x19, x2
	and	w8, w1, #0x3fffffff
	tbnz	w1, #30, LBB0_3
; %bb.1:
	ldr	w9, [x0]
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.2:
	add	x9, x0, #8
	b	LBB0_5
LBB0_3:
	ldr	w9, [x0, #4]
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.4:
	add	x9, x0, #16
LBB0_5:
	ldr	x9, [x9]
	add	x0, x9, w8, uxtw #2
	bl	_read_pmc
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
