	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_certs_filter             ## -- Begin function hx509_certs_filter
	.p2align	4, 0x90
_hx509_certs_filter:                    ## @hx509_certs_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
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movl	%edi, %r13d
	xorl	%esi, %esi
	callq	__hx509_query_statistic
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_hx509_certs_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	leaq	-44(%rbp), %rdx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_hx509_certs_start_seq
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_hx509_certs_free
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$0, -56(%rbp)
	movl	-44(%rbp), %edx
	leaq	-56(%rbp), %rcx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_hx509_certs_next_cert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.5:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	__hx509_query_match_cert
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %esi
	movq	-56(%rbp), %rdx
	movl	%r13d, %edi
	callq	_hx509_certs_add
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	callq	_hx509_cert_free
	movl	-44(%rbp), %edx
	movl	%r13d, %edi
	movl	%r15d, %esi
	leaq	-56(%rbp), %rcx
	callq	_hx509_certs_next_cert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	jne	LBB0_6
LBB0_10:
	movl	-44(%rbp), %edx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_hx509_certs_end_seq
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.11:
	xorl	%ebx, %ebx
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
	jmp	LBB0_12
LBB0_13:
	movl	-44(%rbp), %edx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_hx509_certs_end_seq
	testl	%ebx, %ebx
	jne	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_hx509_certs_free
	movl	%r13d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_CERT_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MEMORY:filter-certs"

	.comm	_HX509_CERT_NOT_FOUND,4,2       ## @HX509_CERT_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_certs_filter             ; -- Begin function hx509_certs_filter
	.p2align	2
_hx509_certs_filter:                    ; @hx509_certs_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	w1, #0
	bl	__hx509_query_statistic
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_hx509_certs_init
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_certs_start_seq
	cbz	w0, LBB0_5
; %bb.2:
	mov	x23, x0
LBB0_3:
	mov	x0, x19
	bl	_hx509_certs_free
LBB0_4:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_5:
	str	xzr, [sp]
	ldr	w2, [sp, #12]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_certs_next_cert
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x2, [sp]
	cbz	x2, LBB0_11
; %bb.7:
	mov	w24, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp]
	bl	_hx509_cert_free
	ldr	w2, [sp, #12]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_certs_next_cert
	ldr	x2, [sp]
	cmp	w0, #0
	ccmp	x2, #0, #4, eq
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	__hx509_query_match_cert
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x19]
	ldr	x2, [sp]
	mov	x0, x20
	bl	_hx509_certs_add
	mov	w24, #1
	b	LBB0_8
LBB0_11:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_certs_end_seq
	cbnz	w23, LBB0_3
	b	LBB0_15
LBB0_12:
	mov	x23, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_certs_end_seq
	cbnz	w23, LBB0_3
; %bb.13:
	cbz	w24, LBB0_15
; %bb.14:
	mov	w23, #0
	b	LBB0_4
LBB0_15:
	mov	x0, x19
	bl	_hx509_certs_free
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh2:
	adrp	x8, _HX509_CERT_NOT_FOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HX509_CERT_NOT_FOUND@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MEMORY:filter-certs"

	.comm	_HX509_CERT_NOT_FOUND,4,2       ; @HX509_CERT_NOT_FOUND
.subsections_via_symbols
