	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_advanced_filter
_create_advanced_filter:                ## @create_advanced_filter
	.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
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$16, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-56(%rbp), %rsi
	movl	$1, %edi
	callq	_WTHelperGetKnownUsages
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	xorl	%eax, %eax
	callq	_get_cert_mgr_usages
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_convert_usages_str_to_usage
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_add_oid_to_usage
	movq	%rax, %r15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$8, %rbx
	testq	%r15, %r15
	je	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpq	$0, (%rbx)
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	$-1, %r13
	movl	$8, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%r13
	cmpq	(%r12), %r13
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	16(%rcx), %r15
	movq	8(%r12), %rax
	movq	(%rbx), %rdx
	movq	(%rdx), %rdx
	movq	-8(%rax,%rcx), %rdi
	movq	(%rax,%rcx), %rsi
	callq	_strcmp
	movq	%r15, %rcx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, (%r14)
	movq	%r15, %rcx
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r12), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_19:
	leaq	-56(%rbp), %rsi
	movl	$2, %edi
	callq	_WTHelperGetKnownUsages
LBB0_20:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_create_advanced_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_advanced_filter
_create_advanced_filter:                ; @create_advanced_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	bl	_GetProcessHeap
Lloh0:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #16
	bl	_HeapAlloc
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.1:
	add	x1, sp, #8
	mov	w0, #1
	bl	_WTHelperGetKnownUsages
	cbz	x0, LBB0_15
; %bb.2:
	bl	_get_cert_mgr_usages
	cbz	x0, LBB0_14
; %bb.3:
	mov	x20, x0
	bl	_convert_usages_str_to_usage
	cbz	x0, LBB0_13
; %bb.4:
	mov	x21, x0
	ldr	x22, [sp, #8]
Lloh3:
	adrp	x23, _FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
Lloh5:
	adrp	x24, _TRUE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_add_oid_to_usage
	mov	x19, x0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #8
	cbz	x19, LBB0_12
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	cbnz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, #-1
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21]
	add	x25, x25, #1
	cmp	x25, x9
	b.hs	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x26, x8, #16
	ldr	x9, [x21, #8]
	ldr	x10, [x22]
	ldr	x2, [x10]
	add	x8, x9, x8
	ldp	x0, x1, [x8]
	bl	_strcmp
	ldr	x8, [x24]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	mov	x8, x26
	b.eq	LBB0_10
	b	LBB0_6
LBB0_12:
	bl	_GetProcessHeap
	ldr	x2, [x21, #8]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_13:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
LBB0_14:
	add	x1, sp, #8
	mov	w0, #2
	bl	_WTHelperGetKnownUsages
LBB0_15:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_create_advanced_filter
.subsections_via_symbols
