	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_filter_type
_add_filter_type:                       ## @add_filter_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_find_filter_type
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	8(%r14), %rdi
	movl	(%r14), %eax
	leal	(%rax,%rax,2), %eax
	leal	24(,%rax,8), %esi
	callq	_realloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_3:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	8(%r14), %rsi
	leal	-1(%rax), %ecx
	incq	%rcx
	leal	(,%rax,8), %edx
	leal	(%rdx,%rdx,2), %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rsi)
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	addq	$24, %rsi
	addl	$-24, %edx
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.8:
	movq	%rcx, %rbx
	jmp	LBB0_10
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	24(%rsi), %rdi
	callq	_memmove
LBB0_10:
	movq	8(%r14), %r12
	movl	%ebx, %eax
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,8), %rbx
	movl	%r15d, (%r12,%r13,8)
	movl	4(%r14), %edi
	movl	%r15d, %esi
	callq	_pevent_find_event
	movl	%eax, 16(%r12,%r13,8)
	movq	$0, 8(%r12,%r13,8)
	incl	(%r14)
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate filter"

	.no_dead_strip	_add_filter_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_filter_type
_add_filter_type:                       ; @add_filter_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_find_filter_type
	mov	x21, x0
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	mov	w9, #24
	orr	w10, wzr, #0x18
	madd	w1, w8, w9, w10
	bl	_realloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
	ldr	x1, [x19, #8]
	sub	w9, w8, #1
	add	x9, x9, #1
	add	w10, w8, w8, lsl #1
	lsl	w2, w10, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1]
	cmp	w10, w20
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	add	x1, x1, #24
	sub	w2, w2, #24
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.7:
	mov	x21, x9
	b	LBB0_10
LBB0_8:
	mov	x21, #0
	b	LBB0_10
LBB0_9:
	add	x0, x1, #24
	bl	_memmove
LBB0_10:
	ldr	x8, [x19, #8]
	and	x9, x21, #0xffffffff
	mov	w10, #24
	madd	x21, x9, x10, x8
	str	w20, [x21]
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_pevent_find_event
	str	w0, [x21, #16]
	str	xzr, [x21, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate filter"

	.no_dead_strip	_add_filter_type
.subsections_via_symbols
