	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pevent_filter_add_filter_str   ## -- Begin function pevent_filter_add_filter_str
	.p2align	4, 0x90
_pevent_filter_add_filter_str:          ## @pevent_filter_add_filter_str
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_pevent_buffer_init
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_strlen
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	sete	%bl
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_strchr
	cmpq	%r14, %rax
	setb	%cl
	testq	%rax, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	orb	%cl, %bl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	subl	%r15d, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %ebx
	subl	%r15d, %ebx
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %edi
	callq	_malloc_or_die
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	movb	$0, (%r13,%rax)
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rsi
	leaq	-88(%rbp), %r12
	movq	%r12, %rdx
	callq	_strtok_r
	movq	%rax, %rbx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strtok_r
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strim
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_strim
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_find_event
	testl	%eax, %eax
	js	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	1(%rbx), %r15
	movq	%r13, %rdi
	callq	_free
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.16:
	leaq	1(%r14), %r15
	testq	%r14, %r14
	cmoveq	%r14, %r15
	movq	-56(%rbp), %rbx
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.18:
	leaq	L_.str.5(%rip), %r14
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_filter_event
	testl	%eax, %eax
	cmovsl	%eax, %r12d
	js	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pevent_filter_make_string
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_printf
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_show_error
	jmp	LBB0_27
LBB0_13:
	testq	%r15, %r15
	je	LBB0_26
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_show_error
	jmp	LBB0_27
LBB0_23:
	movq	-56(%rbp), %rdi
	callq	_free_events
	testl	%r12d, %r12d
	jns	LBB0_24
	jmp	LBB0_28
LBB0_26:
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_show_error
LBB0_27:
	movq	-56(%rbp), %rdi
	callq	_free_events
	movq	%r13, %rdi
	callq	_free
	movl	$-1, %r12d
	jmp	LBB0_28
LBB0_17:
	xorl	%edi, %edi
	callq	_free_events
LBB0_24:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_25
LBB0_28:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

L_.str.2:                               ## @.str.2
	.asciz	"No filter found"

L_.str.3:                               ## @.str.3
	.asciz	"No event found under '%s.%s'"

L_.str.4:                               ## @.str.4
	.asciz	"No event found under '%s'"

L_.str.5:                               ## @.str.5
	.asciz	" '%s: %s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pevent_filter_add_filter_str   ; -- Begin function pevent_filter_add_filter_str
	.p2align	2
_pevent_filter_add_filter_str:          ; @pevent_filter_add_filter_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x19, [x0]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_pevent_buffer_init
	cbz	x20, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	mov	x0, x24
	mov	w1, #58
	bl	_strchr
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x24
	bl	_strlen
LBB0_4:
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	w1, #44
	bl	_strchr
	mov	x25, x0
	cmp	x22, #0
	ccmp	x0, x22, #0, ne
	cset	w8, lo
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w27, w25, w24
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w27, w22, w24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_strlen
	mov	x27, x0
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w27, #1
	bl	_malloc_or_die
	mov	x26, x0
	mov	x1, x24
	mov	x2, x27
	bl	_memcpy
	strb	wzr, [x26, w27, sxtw]
	add	x2, sp, #16
	mov	x0, x26
	mov	x1, x23
	bl	_strtok_r
	mov	x24, x0
	add	x2, sp, #16
	mov	x0, #0
	mov	x1, x23
	bl	_strtok_r
	cbz	x24, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x0
	mov	x0, x24
	bl	_strim
	mov	x28, x0
	mov	x0, x27
	bl	_strim
	mov	x3, x0
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x28
	bl	_find_event
	tbnz	w0, #31, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x25, #1
	mov	x0, x26
	bl	_free
	cbnz	x25, LBB0_5
; %bb.14:
	cmp	x22, #0
	csinc	x23, xzr, x22, eq
	ldr	x26, [sp, #24]
	cbz	x26, LBB0_26
; %bb.15:
	mov	w22, #0
Lloh4:
	adrp	x24, l_.str.5@PAGE
Lloh5:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x26, [x26, #8]
	cbz	x26, LBB0_23
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x26]
	mov	x0, x21
	mov	x2, x23
	mov	x3, x20
	bl	_filter_event
	cmp	w0, #0
	csel	w22, w0, w22, lt
	tbnz	w0, #31, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_pevent_filter_make_string
	mov	x25, x0
	ldr	x8, [x26]
	ldr	x1, [x8]
	mov	x0, x24
	mov	x2, x25
	bl	_printf
	mov	x0, x25
	bl	_free
	b	LBB0_16
LBB0_20:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_21:
	cbz	x27, LBB0_24
; %bb.22:
	stp	x24, x27, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_23:
	ldr	x0, [sp, #24]
	bl	_free_events
	tbz	w22, #31, LBB0_27
	b	LBB0_28
LBB0_24:
	str	x24, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_25:
	mov	x0, x20
	bl	_show_error
	ldr	x0, [sp, #24]
	bl	_free_events
	mov	x0, x26
	bl	_free
	mov	w22, #-1
	b	LBB0_28
LBB0_26:
	mov	x0, #0
	bl	_free_events
	mov	w22, #0
LBB0_27:
	ldr	x8, [x19]
	cbnz	x8, LBB0_29
LBB0_28:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_29:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

l_.str.2:                               ; @.str.2
	.asciz	"No filter found"

l_.str.3:                               ; @.str.3
	.asciz	"No event found under '%s.%s'"

l_.str.4:                               ; @.str.4
	.asciz	"No event found under '%s'"

l_.str.5:                               ; @.str.5
	.asciz	" '%s: %s'\n"

.subsections_via_symbols
