	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmc_pmu_print_counters         ## -- Begin function pmc_pmu_print_counters
	.p2align	4, 0x90
_pmc_pmu_print_counters:                ## @pmc_pmu_print_counters
	.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, %r13
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	setne	%r12b
	jmp	LBB0_3
LBB0_1:
	movb	$1, %r12b
LBB0_3:
	xorl	%edi, %edi
	callq	_pmu_events_map_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%rax), %rbx
	leaq	L_.str.2(%rip), %r14
	leaq	-48(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %rbx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r13, %r13
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %rdi
	movq	%r13, %rsi
	callq	_strcasestr
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rsi
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_printf
	testb	%r12b, %r12b
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_pmu_parse_event
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_14
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMUDEBUG"

L_.str.1:                               ## @.str.1
	.asciz	"true"

L_.str.2:                               ## @.str.2
	.asciz	"\t%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmc_pmu_print_counters         ; -- Begin function pmc_pmu_print_counters
	.p2align	2
_pmc_pmu_print_counters:                ; @pmc_pmu_print_counters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w21, ne
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
	mov	x0, #0
	bl	_pmu_events_map_get
	cbz	x0, LBB0_14
; %bb.4:
	ldr	x8, [x0]
	add	x22, x8, #8
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x22, #-8]
	cbz	x1, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x19, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x1
	mov	x1, x19
	bl	_strcasestr
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldur	x1, [x22, #-8]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_printf
	tbnz	w21, #0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x22]
	add	x0, sp, #8
	bl	_pmu_parse_event
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_6
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMUDEBUG"

l_.str.1:                               ; @.str.1
	.asciz	"true"

l_.str.2:                               ; @.str.2
	.asciz	"\t%s\n"

.subsections_via_symbols
