	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_localkeyid
_match_localkeyid:                      ## @match_localkeyid
	.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, %r14d
	cmpq	$0, 8(%rsi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	leaq	8(%rsi), %r13
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	__hx509_query_clear
	movq	_HX509_QUERY_MATCH_LOCAL_KEY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
	movq	%r13, -64(%rbp)
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_hx509_certs_find
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edi
	callq	__hx509_cert_assign_key
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_hx509_cert_free
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_HX509_LOCAL_ATTRIBUTE_MISSING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_LOCAL_ATTRIBUTE_MISSING,4,2 ## @HX509_LOCAL_ATTRIBUTE_MISSING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No local key attribute on private key"

	.comm	_HX509_QUERY_MATCH_LOCAL_KEY_ID,4,2 ## @HX509_QUERY_MATCH_LOCAL_KEY_ID
	.no_dead_strip	_match_localkeyid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_localkeyid
_match_localkeyid:                      ; @match_localkeyid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	mov	x22, x1
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	add	x0, sp, #8
	bl	__hx509_query_clear
Lloh0:
	adrp	x8, _HX509_QUERY_MATCH_LOCAL_KEY_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_QUERY_MATCH_LOCAL_KEY_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
	str	x22, [sp, #8]
	add	x2, sp, #8
	add	x3, sp, #28
	mov	x0, x20
	mov	x1, x21
	bl	_hx509_certs_find
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x19]
	cbz	w1, LBB0_4
; %bb.3:
	ldr	w0, [sp, #28]
	bl	__hx509_cert_assign_key
LBB0_4:
	ldr	w0, [sp, #28]
	bl	_hx509_cert_free
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x19, _HX509_LOCAL_ATTRIBUTE_MISSING@GOTPAGE
Lloh4:
	ldr	x19, [x19, _HX509_LOCAL_ATTRIBUTE_MISSING@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x19]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_LOCAL_ATTRIBUTE_MISSING,4,2 ; @HX509_LOCAL_ATTRIBUTE_MISSING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No local key attribute on private key"

	.comm	_HX509_QUERY_MATCH_LOCAL_KEY_ID,4,2 ; @HX509_QUERY_MATCH_LOCAL_KEY_ID
	.no_dead_strip	_match_localkeyid
.subsections_via_symbols
