	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pevent_update_trivial          ## -- Begin function pevent_update_trivial
	.p2align	4, 0x90
_pevent_update_trivial:                 ## @pevent_update_trivial
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.1:
	cmpl	$0, (%rsi)
	je	LBB0_19
## %bb.2:
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.3:
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r15d, %r15d
	movq	_FILTER_ARG_BOOLEAN@GOTPCREL(%rip), %rdi
	movq	_FILTER_TRIVIAL_FALSE@GOTPCREL(%rip), %r8
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_free
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_FILTER_ARG_BOOLEAN@GOTPCREL(%rip), %rdi
	movq	_FILTER_TRIVIAL_FALSE@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r14), %rcx
	movq	(%rcx), %rsi
	cmpq	(%rdi), %rsi
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, (%r8)
	je	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_FILTER_TRIVIAL_TRUE@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	je	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-8(%rax,%r14), %r13
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmpq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	callq	_pevent_find_event_by_name
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pevent_filter_make_string
	testq	%rax, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_FILTER_ARG_BOOLEAN@GOTPCREL(%rip), %rdi
	movq	_FILTER_TRIVIAL_FALSE@GOTPCREL(%rip), %r8
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_filter_event
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_ARG_BOOLEAN,8,3         ## @FILTER_ARG_BOOLEAN
	.comm	_FILTER_TRIVIAL_FALSE,4,2       ## @FILTER_TRIVIAL_FALSE
	.comm	_FILTER_TRIVIAL_TRUE,4,2        ## @FILTER_TRIVIAL_TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TRUE"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pevent_update_trivial          ; -- Begin function pevent_update_trivial
	.p2align	2
_pevent_update_trivial:                 ; @pevent_update_trivial
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	w9, [x1]
	cmp	w9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x19, x2
	mov	x21, x0
	mov	x27, #0
	mov	x28, #0
	ldr	x22, [x20, #16]
	ldr	x8, [x0, #16]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x23, _FILTER_ARG_BOOLEAN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FILTER_ARG_BOOLEAN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _FILTER_TRIVIAL_FALSE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FILTER_TRIVIAL_FALSE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_free
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x21]
	add	x27, x27, #16
	cmp	x28, x8
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x9, x8, x27
	ldr	x9, [x9, #8]
	ldr	x10, [x9]
	ldr	x11, [x23]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x9, #8]
	ldr	w10, [x24]
	cmp	x9, #0
	ccmp	w10, w19, #0, ne
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh4:
	adrp	x10, _FILTER_TRIVIAL_TRUE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _FILTER_TRIVIAL_TRUE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	cmp	x9, #0
	ccmp	w10, w19, #0, eq
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x25, [x8, x27]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x22, x8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	w2, w1, [x25, #4]
	mov	x0, x22
	bl	_pevent_find_event_by_name
	mov	x25, x0
	cbz	x0, LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_pevent_filter_make_string
	cbz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x26
	mov	x3, #0
	bl	_filter_event
	b	LBB0_5
LBB0_16:
	mov	w0, #-1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_ARG_BOOLEAN,8,3         ; @FILTER_ARG_BOOLEAN
	.comm	_FILTER_TRIVIAL_FALSE,4,2       ; @FILTER_TRIVIAL_FALSE
	.comm	_FILTER_TRIVIAL_TRUE,4,2        ; @FILTER_TRIVIAL_TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TRUE"

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

.subsections_via_symbols
