	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_init                   ## -- Begin function kvm_pmu_init
	.p2align	4, 0x90
_kvm_pmu_init:                          ## @kvm_pmu_init
	.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	%rdi, %rbx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_X86_PMC_MAX_GENERIC@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	16(%rbx), %rcx
	addq	$16, %rcx
	xorl	%edx, %edx
	movq	_KVM_PMC_GP@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx)
	movq	%rbx, -8(%rcx)
	movl	%edx, -16(%rcx)
	incq	%rdx
	movslq	(%rax), %rdi
	addq	$24, %rcx
	cmpq	%rdi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	_X86_PMC_MAX_FIXED@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_6
## %bb.4:
	movq	8(%rbx), %rcx
	addq	$16, %rcx
	xorl	%edx, %edx
	movq	_KVM_PMC_FIXED@GOTPCREL(%rip), %rsi
	movq	_X86_PMC_IDX_FIXED@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %eax
	movl	%eax, (%rcx)
	movq	%rbx, -8(%rcx)
	movq	(%rdi), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rcx)
	incq	%rdx
	movslq	(%r8), %rax
	addq	$24, %rcx
	cmpq	%rax, %rdx
	jl	LBB0_5
LBB0_6:
	movq	_trigger_pmi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_init_irq_work
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kvm_pmu_cpuid_update           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_PMC_MAX_GENERIC,4,2        ## @X86_PMC_MAX_GENERIC
	.comm	_KVM_PMC_GP,4,2                 ## @KVM_PMC_GP
	.comm	_X86_PMC_MAX_FIXED,4,2          ## @X86_PMC_MAX_FIXED
	.comm	_KVM_PMC_FIXED,4,2              ## @KVM_PMC_FIXED
	.comm	_X86_PMC_IDX_FIXED,8,3          ## @X86_PMC_IDX_FIXED
	.comm	_trigger_pmi,4,2                ## @trigger_pmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_pmu_init                   ; -- Begin function kvm_pmu_init
	.p2align	2
_kvm_pmu_init:                          ; @kvm_pmu_init
	.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, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _X86_PMC_MAX_GENERIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_PMC_MAX_GENERIC@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #16]
	add	x10, x10, #16
Lloh2:
	adrp	x11, _KVM_PMC_GP@GOTPAGE
Lloh3:
	ldr	x11, [x11, _KVM_PMC_GP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10]
	stur	x19, [x10, #-8]
	stur	w9, [x10, #-16]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	add	x10, x10, #24
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x8, _X86_PMC_MAX_FIXED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _X86_PMC_MAX_FIXED@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #16
Lloh6:
	adrp	x11, _KVM_PMC_FIXED@GOTPAGE
Lloh7:
	ldr	x11, [x11, _KVM_PMC_FIXED@GOTPAGEOFF]
Lloh8:
	adrp	x12, _X86_PMC_IDX_FIXED@GOTPAGE
Lloh9:
	ldr	x12, [x12, _X86_PMC_IDX_FIXED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	str	w13, [x10]
	ldr	x13, [x12]
	add	x13, x9, x13
	stp	x13, x19, [x10, #-16]
	add	x9, x9, #1
	ldrsw	x13, [x8]
	add	x10, x10, #24
	cmp	x9, x13
	b.lt	LBB0_5
LBB0_6:
Lloh10:
	adrp	x8, _trigger_pmi@GOTPAGE
Lloh11:
	ldr	x8, [x8, _trigger_pmi@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_init_irq_work
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kvm_pmu_cpuid_update
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_PMC_MAX_GENERIC,4,2        ; @X86_PMC_MAX_GENERIC
	.comm	_KVM_PMC_GP,4,2                 ; @KVM_PMC_GP
	.comm	_X86_PMC_MAX_FIXED,4,2          ; @X86_PMC_MAX_FIXED
	.comm	_KVM_PMC_FIXED,4,2              ; @KVM_PMC_FIXED
	.comm	_X86_PMC_IDX_FIXED,8,3          ; @X86_PMC_IDX_FIXED
	.comm	_trigger_pmi,4,2                ; @trigger_pmi
.subsections_via_symbols
