	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_certs_find               ## -- Begin function hx509_certs_find
	.p2align	4, 0x90
_hx509_certs_find:                      ## @hx509_certs_find
	.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, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	$0, (%rcx)
	xorl	%esi, %esi
	callq	__hx509_query_statistic
	movq	8(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movl	(%r13), %edx
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%r12, %rcx
	movq	%r15, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_hx509_certs_start_seq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movl	-44(%rbp), %edx
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	movq	%r13, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_hx509_certs_next_cert
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%r15b
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__hx509_query_match_cert
	movq	-56(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_hx509_cert_free
	movl	-44(%rbp), %edx
	movl	%r14d, %edi
	movq	%r13, %rsi
	leaq	-56(%rbp), %rcx
	jmp	LBB0_3
LBB0_8:
	movl	-44(%rbp), %edx
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_hx509_certs_end_seq
	testb	%r15b, %r15b
	jne	LBB0_11
	jmp	LBB0_9
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movl	-44(%rbp), %edx
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_hx509_certs_end_seq
LBB0_9:
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_CERT_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.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_find               ; -- Begin function hx509_certs_find
	.p2align	2
_hx509_certs_find:                      ; @hx509_certs_find
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x3]
	mov	w1, #0
	bl	__hx509_query_statistic
	ldr	x8, [x20, #8]
	ldr	x5, [x8]
	cbz	x5, LBB0_2
; %bb.1:
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	mov	x4, x21
	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
	br	x5
LBB0_2:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_start_seq
	mov	x23, x0
	cbz	w0, LBB0_4
LBB0_3:
	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_4:
	str	xzr, [sp]
	ldr	w2, [sp, #12]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_next_cert
	mov	x23, x0
	cmp	w0, #0
	cset	w24, ne
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x2, [sp]
	cbz	x2, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	__hx509_query_match_cert
	mov	x8, x0
	ldr	x0, [sp]
	cbnz	x8, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_hx509_cert_free
	ldr	w2, [sp, #12]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_next_cert
	cmp	w0, #0
	cset	w24, ne
	ldr	x2, [sp]
	ccmp	x2, #0, #4, eq
	b.ne	LBB0_6
; %bb.8:
	mov	x23, x0
LBB0_9:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_end_seq
	tbnz	w24, #0, LBB0_3
; %bb.10:
	ldr	x8, [sp]
	cbz	x8, LBB0_13
LBB0_11:
	mov	w23, #0
	b	LBB0_3
LBB0_12:
	str	x0, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_end_seq
	ldr	x8, [sp]
	cbnz	x8, LBB0_11
LBB0_13:
	mov	x0, x19
	bl	_hx509_clear_error_string
Lloh0:
	adrp	x8, _HX509_CERT_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_CERT_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_CERT_NOT_FOUND,4,2       ; @HX509_CERT_NOT_FOUND
.subsections_via_symbols
