	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_for_a_pmc
_test_for_a_pmc:                        ## @test_for_a_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$3096, %rsp                     ## imm = 0xC18
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -3124(%rbp)
	cmpl	$49, %esi
	jg	LBB0_3
## %bb.1:
	movl	$50, %eax
	subl	%esi, %eax
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$32, %edi
	callq	_putchar
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	leaq	L_.str.2(%rip), %rsi
	leaq	-3124(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_my_popen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	leaq	-3120(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stpcpy
	movq	%rax, %r15
	leaq	-2096(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r13, -3136(%rbp)               ## 8-byte Spill
	subl	%r12d, %r15d
	leaq	-2096(%rbp), %rdi
	callq	_strlen
	movslq	%eax, %rcx
	cmpb	$10, -2097(%rbp,%rcx)
	jne	LBB0_9
## %bb.8:
	decq	%rcx
	movb	$0, -2096(%rbp,%rcx)
	movl	%ecx, %eax
LBB0_9:
	subl	%r15d, %eax
	cmpl	$3, %eax
	jl	LBB0_26
## %bb.10:
	movl	%eax, %r14d
	leaq	-2094(%rbp), %rbx
	addq	$-2, %r14
	leaq	L_.str.6(%rip), %r12
	leaq	-3120(%rbp), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	decq	%r14
	jne	LBB0_12
LBB0_26:
	leaq	L_.str.11(%rip), %rdi
	leaq	-2096(%rbp), %rsi
	leaq	-3120(%rbp), %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_27
LBB0_4:
	leaq	L_str.13(%rip), %rdi
	callq	_puts
	jmp	LBB0_29
LBB0_6:
	leaq	L_str.12(%rip), %rdi
	callq	_puts
	jmp	LBB0_28
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
	leaq	-2096(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_27:
	movq	-3136(%rbp), %r13               ## 8-byte Reload
LBB0_28:
	movl	-3124(%rbp), %esi
	movq	%r13, %rdi
	callq	_my_pclose
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	addq	$3096, %rsp                     ## imm = 0xC18
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	-2096(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	-3136(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	leaq	-2096(%rbp), %rdi
	callq	_strlen
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, -2096(%rbp,%rbx)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	$2, %rbx
	cmpl	%ebx, %eax
	jg	LBB0_18
LBB0_20:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %eax
	leaq	(%rax,%rbp), %r15
	addq	$-2096, %r15                    ## imm = 0xF7D0
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$19, %eax
	jg	LBB0_24
## %bb.21:
	movl	%eax, %r14d
	movl	$20, %eax
	subl	%r14d, %eax
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	$32, %edi
	callq	_putchar
	decl	%ebx
	jne	LBB0_22
## %bb.23:
	testl	%r14d, %r14d
	je	LBB0_25
LBB0_24:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_28
LBB0_16:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_28
LBB0_25:
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_28
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"/usr/sbin/pmcstat -w .25 -c 0 -s %s"

L_.str.2:                               ## @.str.2
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

L_.str.6:                               ## @.str.6
	.asciz	"ERROR"

L_.str.7:                               ## @.str.7
	.asciz	"Failed %s\n"

L_.str.9:                               ## @.str.9
	.asciz	"Pass"

L_.str.11:                              ## @.str.11
	.asciz	"Failed -- '%s' not '%s'\n"

L_str:                                  ## @str
	.asciz	"Failed -- no second output from pmstat"

L_str.12:                               ## @str.12
	.asciz	"Failed -- no output from pmstat"

L_str.13:                               ## @str.13
	.asciz	"Failed -- popen fails"

	.no_dead_strip	_test_for_a_pmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_for_a_pmc
_test_for_a_pmc:                        ; @test_for_a_pmc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #3104
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	wzr, [sp, #20]
	cmp	w1, #49
	b.gt	LBB0_3
; %bb.1:
	mov	w8, #50
	sub	w8, w8, w1
	cmp	w8, #1
	csinc	w19, w8, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #32
	bl	_putchar
	subs	w19, w19, #1
	b.ne	LBB0_2
LBB0_3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #2072
	mov	x2, x20
	bl	_sprintf
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #2072
	add	x2, sp, #20
	bl	_my_popen
	cbz	x0, LBB0_13
; %bb.4:
	mov	x19, x0
	add	x22, sp, #24
	add	x0, sp, #24
	mov	x1, x20
	bl	_stpcpy
	mov	x20, x0
	add	x21, sp, #1048
	add	x0, sp, #1048
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_14
; %bb.5:
	sub	w20, w20, w22
	add	x0, sp, #1048
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x8, x8, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #10
	b.ne	LBB0_7
; %bb.6:
	add	x9, sp, #1048
	strb	wzr, [x9, x8]
	mov	x0, x8
LBB0_7:
	sub	w8, w0, w20
	cmp	w8, #3
	b.lt	LBB0_12
; %bb.8:
	add	x9, sp, #1048
	add	x21, x9, #2
	sub	x23, x8, #2
Lloh7:
	adrp	x22, l_.str.6@PAGE
Lloh8:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, x20
	bl	_strncmp
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	subs	x23, x23, #1
	b.ne	LBB0_9
LBB0_12:
	add	x8, sp, #24
	add	x9, sp, #1048
	stp	x9, x8, [sp]
Lloh9:
	adrp	x0, l_.str.11@PAGE
Lloh10:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_28
LBB0_13:
Lloh11:
	adrp	x0, l_str.13@PAGE
Lloh12:
	add	x0, x0, l_str.13@PAGEOFF
	bl	_puts
	b	LBB0_30
LBB0_14:
Lloh13:
	adrp	x0, l_str.12@PAGE
Lloh14:
	add	x0, x0, l_str.12@PAGEOFF
	bl	_puts
	b	LBB0_29
LBB0_15:
	add	x8, sp, #1048
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.7@PAGE
Lloh16:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_16:
	add	x0, sp, #1048
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_21
; %bb.17:
	add	x20, sp, #1048
	add	x0, sp, #1048
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_22
; %bb.18:
	mov	x21, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x21]
	cmp	w8, #32
	b.ne	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #2
	cmp	w0, w21
	b.gt	LBB0_19
	b	LBB0_23
LBB0_21:
Lloh17:
	adrp	x0, l_str@PAGE
Lloh18:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_29
LBB0_22:
	mov	x21, #0
LBB0_23:
Lloh19:
	adrp	x0, l_.str.9@PAGE
Lloh20:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	add	x20, x20, w21, uxtw
	mov	x0, x20
	bl	_strlen
	cmp	w0, #19
	b.gt	LBB0_27
; %bb.24:
	mov	x21, x0
	mov	w8, #20
	sub	w8, w8, w0
	cmp	w8, #1
	csinc	w22, w8, wzr, gt
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #32
	bl	_putchar
	subs	w22, w22, #1
	b.ne	LBB0_25
; %bb.26:
	cbz	w21, LBB0_32
LBB0_27:
	str	x20, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_28:
	bl	_printf
LBB0_29:
	ldr	w1, [sp, #20]
	mov	x0, x19
	bl	_my_pclose
LBB0_30:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.31:
	add	sp, sp, #3104
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_32:
	mov	w0, #10
	bl	_putchar
	b	LBB0_29
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"/usr/sbin/pmcstat -w .25 -c 0 -s %s"

l_.str.2:                               ; @.str.2
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

l_.str.6:                               ; @.str.6
	.asciz	"ERROR"

l_.str.7:                               ; @.str.7
	.asciz	"Failed %s\n"

l_.str.9:                               ; @.str.9
	.asciz	"Pass"

l_.str.11:                              ; @.str.11
	.asciz	"Failed -- '%s' not '%s'\n"

l_str:                                  ; @str
	.asciz	"Failed -- no second output from pmstat"

l_str.12:                               ; @str.12
	.asciz	"Failed -- no output from pmstat"

l_str.13:                               ; @str.13
	.asciz	"Failed -- popen fails"

	.no_dead_strip	_test_for_a_pmc
.subsections_via_symbols
