	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_keys
_match_keys:                            ## @match_keys
	.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
	movl	%edi, %ebx
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	_HX509_CERT_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_hx509_certs_start_seq
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	$0, -56(%rbp)
	movl	-44(%rbp), %edx
	leaq	-56(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_hx509_certs_next_cert
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	callq	__hx509_cert_private_key
	movq	-56(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rsi
	callq	__hx509_match_keys
	movq	-56(%rbp), %rdi
	testl	%eax, %eax
	jne	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_hx509_cert_free
	movl	-44(%rbp), %edx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%r12, %rcx
	callq	_hx509_certs_next_cert
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
LBB0_9:
	movl	-44(%rbp), %edx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_hx509_certs_end_seq
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.13:
	movl	%ebx, %edi
	callq	_hx509_clear_error_string
	movl	%r13d, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_HX509_PRIVATE_KEY_MISSING@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%r14), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	(%r15), %rsi
	callq	__hx509_cert_assign_key
	movq	-56(%rbp), %rdi
	callq	_hx509_cert_free
	movl	-44(%rbp), %edx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_hx509_certs_end_seq
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_CERT_NOT_FOUND,4,2       ## @HX509_CERT_NOT_FOUND
	.comm	_HX509_PRIVATE_KEY_MISSING,4,2  ## @HX509_PRIVATE_KEY_MISSING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No private key to compare with"

	.no_dead_strip	_match_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_keys
_match_keys:                            ; @match_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _HX509_CERT_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_CERT_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_start_seq
	cbnz	w0, LBB0_12
; %bb.2:
	str	xzr, [sp]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_hx509_cert_free
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [sp, #12]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_next_cert
	mov	x8, x0
	ldr	x0, [sp]
	cmp	w8, #0
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	__hx509_cert_private_key
	mov	x8, x0
	ldr	x0, [sp]
	cbnz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21]
	bl	__hx509_match_keys
	mov	x8, x0
	ldr	x0, [sp]
	cbz	w8, LBB0_3
; %bb.7:
	ldr	x1, [x21]
	bl	__hx509_cert_assign_key
	ldr	x0, [sp]
	bl	_hx509_cert_free
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_end_seq
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x20, _HX509_PRIVATE_KEY_MISSING@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HX509_PRIVATE_KEY_MISSING@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x20]
	b	LBB0_12
LBB0_9:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_hx509_certs_end_seq
	cbz	w22, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_hx509_clear_error_string
	mov	x0, x22
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_CERT_NOT_FOUND,4,2       ; @HX509_CERT_NOT_FOUND
	.comm	_HX509_PRIVATE_KEY_MISSING,4,2  ; @HX509_PRIVATE_KEY_MISSING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No private key to compare with"

	.no_dead_strip	_match_keys
.subsections_via_symbols
