	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm4_set_event_filters
_etm4_set_event_filters:                ## @etm4_set_event_filters
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rcx
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_perf_event_addr_filters_sync
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	jle	LBB0_15
## %bb.3:
	leaq	4(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$4, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$9, %edi
	callq	_BIT
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 8(%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r15)
	incq	%r12
	movslq	(%rbx), %rax
	addq	$12, %r13
	cmpq	%rax, %r12
	jge	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movq	8(%rbx), %r15
	movl	-4(%r15,%r13), %ebx
	movq	%rcx, %rdi
	movl	%ebx, %esi
	callq	_etm4_get_next_comparator
	testl	%eax, %eax
	js	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %ebx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %ebx
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15,%r13), %edx
	movl	4(%r15,%r13), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_etm4_set_comparator_filter
	movq	%rbx, %r15
	movq	%r14, %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r13, %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r12,2), %rcx
	leaq	(%r15,%rcx,4), %r15
	addq	$8, %r15
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%r15), %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_etm4_set_start_stop_filter
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %rbx
	cmpl	$0, 4(%r14)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	movq	%rcx, %rdi
	callq	_etm4_set_default_filter
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_etm4_set_event_filters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm4_set_event_filters
_etm4_set_event_filters:                ; @etm4_set_event_filters
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x1]
	cbz	x21, LBB0_14
; %bb.1:
	mov	x0, x1
	bl	_perf_event_addr_filters_sync
	ldr	w8, [x21]
	cbz	w8, LBB0_14
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	add	x24, x19, #4
	mov	w25, #12
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #9
	bl	_BIT
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x20]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #12
	cmp	x23, x8
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, #8]
	ldr	w20, [x26, x22]
	mov	x0, x19
	mov	x1, x20
	bl	_etm4_get_next_comparator
	mov	x3, x0
	tbnz	w0, #31, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w20, #128
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w20, #129
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w20, #130
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x26, x22
	ldp	w2, w1, [x8, #4]
	mov	x0, x19
	bl	_etm4_set_comparator_filter
	mov	x20, x19
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x26, x22
	add	x8, x8, #4
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x23, x25, x26
	add	x8, x8, #8
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x3
	mov	x3, x20
	bl	_etm4_set_start_stop_filter
	ldr	w8, [x21, #4]
	mov	x20, x24
	cbnz	w8, LBB0_4
	b	LBB0_5
LBB0_14:
	mov	x0, x19
	bl	_etm4_set_default_filter
LBB0_15:
	mov	w3, #0
LBB0_16:
	mov	x0, x3
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w3, w8
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_etm4_set_event_filters
.subsections_via_symbols
