	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_private_key
_read_private_key:                      ## @read_private_key
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, (%rsi)
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-36(%rbp), %r8
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_2:
	movl	(%r12), %edi
	movl	-36(%rbp), %esi
	leaq	-48(%rbp), %rdx
	callq	__hx509_certs_keys_get
	movl	%eax, %ebx
	leaq	-36(%rbp), %rdi
	callq	_hx509_certs_free
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_4:
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_errx
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
LBB0_6:
	callq	__hx509_private_key_ref
	movq	%rax, (%r14)
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	callq	__hx509_certs_keys_free
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hx509_certs_init: %s"

L_.str.1:                               ## @.str.1
	.asciz	"hx509_certs_keys_get"

L_.str.2:                               ## @.str.2
	.asciz	"no keys in key store: %s"

	.no_dead_strip	_read_private_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_private_key
_read_private_key:                      ; @read_private_key
	.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	x19, x1
	mov	x20, x0
	str	xzr, [x1]
Lloh0:
	adrp	x22, _context@GOTPAGE
Lloh1:
	ldr	x22, [x22, _context@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x4, sp, #20
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x22]
	str	x20, [sp]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_2:
	ldr	w0, [x22]
	ldr	w1, [sp, #20]
	add	x2, sp, #24
	bl	__hx509_certs_keys_get
	mov	x21, x0
	add	x0, sp, #20
	bl	_hx509_certs_free
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w1, #1
	mov	x2, x21
	bl	_hx509_err
LBB0_4:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
LBB0_6:
	bl	__hx509_private_key_ref
	str	x0, [x19]
	ldr	w0, [x22]
	ldr	x1, [sp, #24]
	bl	__hx509_certs_keys_free
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hx509_certs_init: %s"

l_.str.1:                               ; @.str.1
	.asciz	"hx509_certs_keys_get"

l_.str.2:                               ; @.str.2
	.asciz	"no keys in key store: %s"

	.no_dead_strip	_read_private_key
.subsections_via_symbols
