	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_key                       ## -- Begin function load_key
	.p2align	4, 0x90
_load_key:                              ## @load_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movq	%rcx, -56(%rbp)
	movq	%rdi, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_FORMAT_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	testl	%edx, %edx
	je	LBB0_16
## %bb.3:
	movq	_FORMAT_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, %eax
	je	LBB0_16
LBB0_4:
	cmpl	%r12d, %eax
	jne	LBB0_9
## %bb.5:
	testq	%r15, %r15
	je	LBB0_18
## %bb.6:
	movq	%r15, %rdi
	callq	_ENGINE_init
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	_ui_method@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ENGINE_load_private_key
	movq	%rax, %rbx
	movq	%rax, -40(%rbp)
	movq	%r15, %rdi
	callq	_ENGINE_finish
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_17:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	callq	_ERR_print_errors
	jmp	LBB0_31
LBB0_9:
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.10:
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unbuffer
	movl	%r12d, %edi
	callq	_dup_bio_in
	jmp	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	movl	$114, %esi
	movl	%r12d, %edx
	callq	_bio_open_default
LBB0_13:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_22
## %bb.15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_d2i_PrivateKey_bio
	jmp	LBB0_30
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_31
LBB0_16:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_19
LBB0_18:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_19:
	xorl	%r15d, %r15d
LBB0_20:
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_31
LBB0_22:
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_24
## %bb.23:
	movq	_password_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_PEM_read_bio_PrivateKey
	jmp	LBB0_30
LBB0_24:
	movq	_FORMAT_PKCS12@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_26
## %bb.25:
	movq	_password_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	$0, (%rsp)
	leaq	-56(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r9d, %r9d
	callq	_load_pkcs12
	jmp	LBB0_31
LBB0_26:
	movq	_FORMAT_MSBLOB@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	_b2i_PrivateKey_bio
	jmp	LBB0_30
LBB0_28:
	movq	_FORMAT_PVK@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_34
## %bb.29:
	movq	_password_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_b2i_PVK_bio
LBB0_30:
	movq	%rax, -40(%rbp)
LBB0_31:
	movq	%r15, %rdi
	callq	_BIO_free
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_33
## %bb.32:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	callq	_ERR_print_errors
	movq	-40(%rbp), %rax
LBB0_33:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_ENGINE,4,2              ## @FORMAT_ENGINE
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no keyfile specified\n"

L_.str.1:                               ## @.str.1
	.asciz	"no engine specified\n"

	.comm	_ui_method,4,2                  ## @ui_method
L_.str.2:                               ## @.str.2
	.asciz	"cannot load %s from engine\n"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_FORMAT_ASN1,4,2                ## @FORMAT_ASN1
	.comm	_FORMAT_PEM,4,2                 ## @FORMAT_PEM
	.comm	_password_callback,8,3          ## @password_callback
	.comm	_FORMAT_PKCS12,4,2              ## @FORMAT_PKCS12
	.comm	_FORMAT_MSBLOB,4,2              ## @FORMAT_MSBLOB
	.comm	_FORMAT_PVK,4,2                 ## @FORMAT_PVK
L_.str.3:                               ## @.str.3
	.asciz	"bad input format specified for key file\n"

L_.str.4:                               ## @.str.4
	.asciz	"unable to load %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_key                       ; -- Begin function load_key
	.p2align	2
_load_key:                              ; @load_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, x5
	mov	x22, x4
	mov	x21, x1
	mov	x20, x0
	stp	x0, xzr, [sp, #16]
	str	x3, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FORMAT_ENGINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_ENGINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_4
LBB0_2:
	cbz	w2, LBB0_15
; %bb.3:
Lloh3:
	adrp	x8, _FORMAT_ENGINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FORMAT_ENGINE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_15
LBB0_4:
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.5:
	cbz	x22, LBB0_16
; %bb.6:
	mov	x0, x22
	bl	_ENGINE_init
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _ui_method@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ui_method@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_ENGINE_load_private_key
	mov	x20, x0
	str	x0, [sp, #24]
	mov	x0, x22
	bl	_ENGINE_finish
	cbnz	x20, LBB0_18
LBB0_8:
Lloh9:
	adrp	x20, _bio_err@GOTPAGE
Lloh10:
	ldr	x20, [x20, _bio_err@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x20]
	bl	_ERR_print_errors
	b	LBB0_18
LBB0_9:
	cbnz	x20, LBB0_12
; %bb.10:
	cbz	w2, LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _stdin@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_unbuffer
	mov	x0, x21
	bl	_dup_bio_in
	mov	x20, x0
	cbnz	x0, LBB0_13
	b	LBB0_19
LBB0_12:
	mov	x0, x20
	mov	w1, #114
	mov	x2, x21
	bl	_bio_open_default
	mov	x20, x0
	cbz	x0, LBB0_19
LBB0_13:
Lloh16:
	adrp	x8, _FORMAT_ASN1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FORMAT_ASN1@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_22
; %bb.14:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_PrivateKey_bio
	str	x0, [sp, #24]
	b	LBB0_19
LBB0_15:
Lloh19:
	adrp	x8, _bio_err@GOTPAGE
Lloh20:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh24:
	adrp	x8, _bio_err@GOTPAGE
Lloh25:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	bl	_BIO_printf
LBB0_18:
	mov	x20, #0
LBB0_19:
	mov	x0, x20
	bl	_BIO_free
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_21
; %bb.20:
Lloh29:
	adrp	x20, _bio_err@GOTPAGE
Lloh30:
	ldr	x20, [x20, _bio_err@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x20]
	bl	_ERR_print_errors
	ldr	x0, [sp, #24]
LBB0_21:
	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
LBB0_22:
Lloh33:
	adrp	x8, _FORMAT_PEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FORMAT_PEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_24
; %bb.23:
Lloh36:
	adrp	x8, _password_callback@GOTPAGE
Lloh37:
	ldr	x8, [x8, _password_callback@GOTPAGEOFF]
Lloh38:
	ldr	x2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, #0
	bl	_PEM_read_bio_PrivateKey
	str	x0, [sp, #24]
	b	LBB0_19
LBB0_24:
Lloh39:
	adrp	x8, _FORMAT_PKCS12@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FORMAT_PKCS12@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_26
; %bb.25:
Lloh42:
	adrp	x8, _password_callback@GOTPAGE
Lloh43:
	ldr	x8, [x8, _password_callback@GOTPAGEOFF]
Lloh44:
	ldr	x2, [x8]
	add	x3, sp, #8
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x5, #0
	mov	x6, #0
	bl	_load_pkcs12
	b	LBB0_19
LBB0_26:
Lloh45:
	adrp	x8, _FORMAT_MSBLOB@GOTPAGE
Lloh46:
	ldr	x8, [x8, _FORMAT_MSBLOB@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x20
	bl	_b2i_PrivateKey_bio
	str	x0, [sp, #24]
	b	LBB0_19
LBB0_28:
Lloh48:
	adrp	x8, _FORMAT_PVK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FORMAT_PVK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_30
; %bb.29:
Lloh51:
	adrp	x8, _password_callback@GOTPAGE
Lloh52:
	ldr	x8, [x8, _password_callback@GOTPAGEOFF]
Lloh53:
	ldr	x1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_b2i_PVK_bio
	str	x0, [sp, #24]
	b	LBB0_19
LBB0_30:
Lloh54:
	adrp	x8, _bio_err@GOTPAGE
Lloh55:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.3@PAGE
Lloh58:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_printf
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_ENGINE,4,2              ; @FORMAT_ENGINE
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no keyfile specified\n"

l_.str.1:                               ; @.str.1
	.asciz	"no engine specified\n"

	.comm	_ui_method,4,2                  ; @ui_method
l_.str.2:                               ; @.str.2
	.asciz	"cannot load %s from engine\n"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_FORMAT_ASN1,4,2                ; @FORMAT_ASN1
	.comm	_FORMAT_PEM,4,2                 ; @FORMAT_PEM
	.comm	_password_callback,8,3          ; @password_callback
	.comm	_FORMAT_PKCS12,4,2              ; @FORMAT_PKCS12
	.comm	_FORMAT_MSBLOB,4,2              ; @FORMAT_MSBLOB
	.comm	_FORMAT_PVK,4,2                 ; @FORMAT_PVK
l_.str.3:                               ; @.str.3
	.asciz	"bad input format specified for key file\n"

l_.str.4:                               ; @.str.4
	.asciz	"unable to load %s\n"

.subsections_via_symbols
