	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_find_targets           ## -- Begin function pmcstat_find_targets
	.p2align	4, 0x90
_pmcstat_find_targets:                  ## @pmcstat_find_targets
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__POSIX2_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_strtol
	cmpq	%r15, -80(%rbp)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:
	movl	%ebx, (%rax)
	movq	_pt_next@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_args@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	callq	_SLIST_INSERT_HEAD
	jmp	LBB0_22
LBB0_4:
	movq	_pmcstat_kvm@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.9:
	movl	$0, -56(%rbp)
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_kvm_openfiles
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_err
	movq	(%rbx), %rax
LBB0_7:
	movq	_KERN_PROC_PROC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rcx
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_kvm_getprocs
	movq	_pmcstat_plist@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	callq	_kvm_geterr
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movq	_REG_NOSUB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-52(%rbp), %rdi
	movq	%r15, %rsi
	callq	_regcomp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	-52(%rbp), %rsi
	movl	%eax, %edi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_regerror
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	movq	_pmcstat_plist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _pmcstat_find_targets.kp(%rip)
	cmpl	$0, -56(%rbp)
	jle	LBB0_20
## %bb.13:
	leaq	-52(%rbp), %rbx
	leaq	-84(%rbp), %r15
	movq	_REG_NOMATCH@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r14d
	movq	_pmcstat_find_targets.kp(%rip), %rax
	addq	$8, %rax
	movq	%rax, _pmcstat_find_targets.kp(%rip)
	cmpl	-56(%rbp), %r14d
	jge	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_regexec
	testl	%eax, %eax
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_regerror
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_pmcstat_find_targets.kp(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_pt_next@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_args@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	callq	_SLIST_INSERT_HEAD
	jmp	LBB0_19
LBB0_20:
	leaq	-52(%rbp), %rdi
	callq	_regfree
	jmp	LBB0_22
LBB0_21:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_22:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__POSIX2_LINE_MAX,4,2           ## @_POSIX2_LINE_MAX
.zerofill __DATA,__bss,_pmcstat_find_targets.kp,8,3 ## @pmcstat_find_targets.kp
	.comm	_args,4,2                       ## @args
	.comm	_pt_next,4,2                    ## @pt_next
	.comm	_pmcstat_kvm,8,3                ## @pmcstat_kvm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/null"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.1:                               ## @.str.1
	.asciz	"ERROR: Cannot open kernel \"%s\""

	.comm	_KERN_PROC_PROC,4,2             ## @KERN_PROC_PROC
	.comm	_pmcstat_plist,8,3              ## @pmcstat_plist
L_.str.2:                               ## @.str.2
	.asciz	"ERROR: Cannot get process list: %s"

	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.comm	_REG_NOSUB,4,2                  ## @REG_NOSUB
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.3:                               ## @.str.3
	.asciz	"ERROR: Failed to compile regex \"%s\": %s"

	.comm	_REG_NOMATCH,4,2                ## @REG_NOMATCH
	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
L_.str.4:                               ## @.str.4
	.asciz	"ERROR: Regex evalation failed: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Out of memory."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_find_targets           ; -- Begin function pmcstat_find_targets
	.p2align	2
_pmcstat_find_targets:                  ; @pmcstat_find_targets
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x21, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, __POSIX2_LINE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, __POSIX2_LINE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	sub	x1, x29, #104
	mov	w2, #0
	bl	_strtol
	ldur	x8, [x29, #-104]
	cmp	x8, x21
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_21
; %bb.3:
	mov	x1, x0
	str	w22, [x0]
Lloh8:
	adrp	x8, _pt_next@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pt_next@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x0, _args@GOTPAGE
Lloh12:
	ldr	x0, [x0, _args@GOTPAGEOFF]
	bl	_SLIST_INSERT_HEAD
	b	LBB0_22
LBB0_4:
Lloh13:
	adrp	x25, _pmcstat_kvm@GOTPAGE
Lloh14:
	ldr	x25, [x25, _pmcstat_kvm@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh15:
	adrp	x24, _pmcstat_plist@GOTPAGE
Lloh16:
	ldr	x24, [x24, _pmcstat_plist@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	stur	wzr, [x29, #-92]
	b	LBB0_10
LBB0_6:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_kvm_openfiles
	str	x0, [x25]
	cbnz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_err
	ldr	x0, [x25]
LBB0_8:
Lloh24:
	adrp	x8, _KERN_PROC_PROC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KERN_PROC_PROC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	sub	x3, x29, #92
	mov	w2, #0
	bl	_kvm_getprocs
	str	x0, [x24]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh27:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	ldr	x0, [x25]
	bl	_kvm_geterr
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_err
LBB0_10:
Lloh32:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _REG_NOSUB@GOTPAGE
Lloh36:
	ldr	x9, [x9, _REG_NOSUB@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w2, w9, w8
	sub	x0, x29, #108
	mov	x1, x21
	bl	_regcomp
	cbz	w0, LBB0_12
; %bb.11:
	sub	x1, x29, #108
	mov	x2, x20
	mov	x3, x19
	bl	_regerror
Lloh38:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_err
	add	sp, sp, #16
LBB0_12:
	ldr	x8, [x24]
	adrp	x24, _pmcstat_find_targets.kp@PAGE
	str	x8, [x24, _pmcstat_find_targets.kp@PAGEOFF]
	ldur	w9, [x29, #-92]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.13:
	mov	w25, #0
Lloh43:
	adrp	x26, _pt_next@GOTPAGE
Lloh44:
	ldr	x26, [x26, _pt_next@GOTPAGEOFF]
Lloh45:
	adrp	x21, _args@GOTPAGE
Lloh46:
	ldr	x21, [x21, _args@GOTPAGEOFF]
Lloh47:
	adrp	x27, _REG_NOMATCH@GOTPAGE
Lloh48:
	ldr	x27, [x27, _REG_NOMATCH@GOTPAGEOFF]
Lloh49:
	adrp	x22, l_.str.4@PAGE
Lloh50:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh51:
	adrp	x28, _EX_SOFTWARE@GOTPAGE
Lloh52:
	ldr	x28, [x28, _EX_SOFTWARE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w25, w25, #1
	ldr	x8, [x24, _pmcstat_find_targets.kp@PAGEOFF]
	add	x8, x8, #8
	str	x8, [x24, _pmcstat_find_targets.kp@PAGEOFF]
	ldur	w9, [x29, #-92]
	cmp	w25, w9
	b.ge	LBB0_20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x8, #4]
	sub	x0, x29, #108
	sub	x3, x29, #112
	mov	w2, #1
	mov	w4, #0
	bl	_regexec
	cbz	w0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	x1, x29, #108
	mov	x2, x20
	mov	x3, x19
	bl	_regerror
	ldr	w0, [x28]
	str	x20, [sp, #-16]!
	mov	x1, x22
	bl	_errx
	add	sp, sp, #16
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x1, x0
	ldr	x8, [x24, _pmcstat_find_targets.kp@PAGEOFF]
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w2, [x26]
	mov	x0, x21
	bl	_SLIST_INSERT_HEAD
	b	LBB0_14
LBB0_20:
	sub	x0, x29, #108
	bl	_regfree
	b	LBB0_22
LBB0_21:
Lloh53:
	adrp	x8, _EX_SOFTWARE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EX_SOFTWARE@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
LBB0_22:
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	__POSIX2_LINE_MAX,4,2           ; @_POSIX2_LINE_MAX
.zerofill __DATA,__bss,_pmcstat_find_targets.kp,8,3 ; @pmcstat_find_targets.kp
	.comm	_args,4,2                       ; @args
	.comm	_pt_next,4,2                    ; @pt_next
	.comm	_pmcstat_kvm,8,3                ; @pmcstat_kvm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/null"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.1:                               ; @.str.1
	.asciz	"ERROR: Cannot open kernel \"%s\""

	.comm	_KERN_PROC_PROC,4,2             ; @KERN_PROC_PROC
	.comm	_pmcstat_plist,8,3              ; @pmcstat_plist
l_.str.2:                               ; @.str.2
	.asciz	"ERROR: Cannot get process list: %s"

	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.comm	_REG_NOSUB,4,2                  ; @REG_NOSUB
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.3:                               ; @.str.3
	.asciz	"ERROR: Failed to compile regex \"%s\": %s"

	.comm	_REG_NOMATCH,4,2                ; @REG_NOMATCH
	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
l_.str.4:                               ; @.str.4
	.asciz	"ERROR: Regex evalation failed: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Out of memory."

.subsections_via_symbols
