	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function create_perf_stat_counter
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_perf_stat_counter:              ## @create_perf_stat_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	%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
	movq	_scale@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PERF_FORMAT_TOTAL_TIME_ENABLED@GOTPCREL(%rip), %rax
	movq	_PERF_FORMAT_TOTAL_TIME_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	movq	_no_inherit@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	movl	%ecx, 4(%rbx)
	leaq	16(%rbx), %r12
	xorl	%r13d, %r13d
	movq	_target@GOTPCREL(%rip), %r14
	movq	_EINVAL@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movb	$1, %r13b
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r13b
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_perf_target__has_cpu
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_perf_evsel__cpus
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_perf_evsel__open_per_cpu
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_perf_target__has_task
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_perf_evsel__is_group_member
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rbx)
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_evsel_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_perf_evsel__open_per_thread
	testl	%eax, %eax
	je	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r15), %rcx
	setne	%cl
	orb	%cl, %r13b
	testb	$1, %r13b
	jne	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_17
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scale,8,3                      ## @scale
	.comm	_PERF_FORMAT_TOTAL_TIME_ENABLED,4,2 ## @PERF_FORMAT_TOTAL_TIME_ENABLED
	.comm	_PERF_FORMAT_TOTAL_TIME_RUNNING,4,2 ## @PERF_FORMAT_TOTAL_TIME_RUNNING
	.comm	_no_inherit,4,2                 ## @no_inherit
	.comm	_target,4,2                     ## @target
	.comm	_evsel_list,8,3                 ## @evsel_list
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Old kernel, cannot exclude guest or host samples.\n"

	.no_dead_strip	_create_perf_stat_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_perf_stat_counter
_create_perf_stat_counter:              ; @create_perf_stat_counter
	.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
Lloh0:
	adrp	x8, _scale@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scale@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PERF_FORMAT_TOTAL_TIME_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PERF_FORMAT_TOTAL_TIME_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PERF_FORMAT_TOTAL_TIME_RUNNING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PERF_FORMAT_TOTAL_TIME_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
Lloh9:
	adrp	x8, _no_inherit@GOTPAGE
Lloh10:
	ldr	x8, [x8, _no_inherit@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #4]
Lloh12:
	adrp	x0, _target@GOTPAGE
Lloh13:
	ldr	x0, [x0, _target@GOTPAGEOFF]
	bl	_perf_target__has_cpu
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_perf_evsel__cpus
	mov	x1, x0
	mov	x0, x19
	bl	_perf_evsel__open_per_cpu
	cbnz	w0, LBB0_8
	b	LBB0_17
LBB0_4:
Lloh14:
	adrp	x0, _target@GOTPAGE
Lloh15:
	ldr	x0, [x0, _target@GOTPAGEOFF]
	bl	_perf_target__has_task
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_perf_evsel__is_group_member
	cbnz	w0, LBB0_7
; %bb.6:
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_7:
Lloh16:
	adrp	x8, _evsel_list@GOTPAGE
Lloh17:
	ldr	x8, [x8, _evsel_list@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_perf_evsel__open_per_thread
	cbz	w0, LBB0_17
LBB0_8:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _EINVAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.9:
	add	x20, x19, #16
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
LBB0_11:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	stp	xzr, xzr, [x20]
Lloh27:
	adrp	x0, _target@GOTPAGE
Lloh28:
	ldr	x0, [x0, _target@GOTPAGEOFF]
	bl	_perf_target__has_cpu
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_perf_evsel__cpus
	mov	x1, x0
	mov	x0, x19
	bl	_perf_evsel__open_per_cpu
	b	LBB0_17
LBB0_13:
Lloh29:
	adrp	x0, _target@GOTPAGE
Lloh30:
	ldr	x0, [x0, _target@GOTPAGEOFF]
	bl	_perf_target__has_task
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_perf_evsel__is_group_member
	cbnz	w0, LBB0_16
; %bb.15:
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_16:
Lloh31:
	adrp	x8, _evsel_list@GOTPAGE
Lloh32:
	ldr	x8, [x8, _evsel_list@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_perf_evsel__open_per_thread
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_scale,8,3                      ; @scale
	.comm	_PERF_FORMAT_TOTAL_TIME_ENABLED,4,2 ; @PERF_FORMAT_TOTAL_TIME_ENABLED
	.comm	_PERF_FORMAT_TOTAL_TIME_RUNNING,4,2 ; @PERF_FORMAT_TOTAL_TIME_RUNNING
	.comm	_no_inherit,4,2                 ; @no_inherit
	.comm	_target,4,2                     ; @target
	.comm	_evsel_list,8,3                 ; @evsel_list
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Old kernel, cannot exclude guest or host samples.\n"

	.no_dead_strip	_create_perf_stat_counter
.subsections_via_symbols
