	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function reprogram_counter
LCPI0_0:
	.long	36                              ## 0x24
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_reprogram_counter:                     ## @reprogram_counter
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%rdi, %r14
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [36,1,1,1]
	movaps	%xmm0, -64(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -44(%rbp)
	movl	%edx, -40(%rbp)
	movl	%esi, -32(%rbp)
	xorl	%ebx, %ebx
	subl	(%rdi), %ebx
	callq	_pmc_bitmask
	andl	%ebx, %eax
	movl	%eax, -36(%rbp)
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r15d, %r15d
	jne	LBB0_1
## %bb.2:
	movq	_kvm_perf_overflow@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_kvm_perf_overflow_intr@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rdi
	movl	$-1, %esi
	movq	%r14, %r8
	callq	_perf_event_create_kernel_counter
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printk_once
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, 24(%r14)
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	callq	_clear_bit
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_kvm_perf_overflow_intr,4,2     ## @kvm_perf_overflow_intr
	.comm	_kvm_perf_overflow,4,2          ## @kvm_perf_overflow
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kvm: pmu event creation failed %ld\n"

	.no_dead_strip	_reprogram_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function reprogram_counter
lCPI0_0:
	.long	36                              ; 0x24
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_reprogram_counter:                     ; @reprogram_counter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x5
	mov	x19, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	stp	w3, w4, [sp, #16]
	str	w2, [sp, #24]
	str	w1, [sp, #32]
	ldr	w8, [x0]
	neg	w21, w8
	bl	_pmc_bitmask
	and	w8, w0, w21
	str	w8, [sp, #28]
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	adrp	x9, _kvm_perf_overflow_intr@GOTPAGE
Lloh5:
	ldr	x9, [x9, _kvm_perf_overflow_intr@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _kvm_perf_overflow@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kvm_perf_overflow@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x0, sp
	mov	w1, #-1
	mov	x4, x19
	bl	_perf_event_create_kernel_counter
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk_once
	b	LBB0_3
LBB0_2:
	str	x20, [x19, #24]
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	bl	_clear_bit
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_kvm_perf_overflow_intr,4,2     ; @kvm_perf_overflow_intr
	.comm	_kvm_perf_overflow,4,2          ; @kvm_perf_overflow
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kvm: pmu event creation failed %ld\n"

	.no_dead_strip	_reprogram_counter
.subsections_via_symbols
