	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_pubkey                    ## -- Begin function load_pubkey
	.p2align	4, 0x90
_load_pubkey:                           ## @load_pubkey
	.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	%r9, %r14
	movl	%esi, %ebx
	movq	%rdi, %rsi
	movq	%rcx, -48(%rbp)
	movq	%rdi, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_FORMAT_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_5:
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:
	movq	_FORMAT_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	je	LBB0_7
LBB0_2:
	cmpl	%ebx, %eax
	jne	LBB0_11
## %bb.3:
	testq	%r8, %r8
	je	LBB0_4
## %bb.9:
	movq	_ui_method@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r8, %rdi
	callq	_ENGINE_load_public_key
	testq	%rax, %rax
	je	LBB0_33
## %bb.10:
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_BIO_free
	jmp	LBB0_36
LBB0_11:
	testq	%rsi, %rsi
	jne	LBB0_14
## %bb.12:
	testl	%edx, %edx
	je	LBB0_14
## %bb.13:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unbuffer
	movl	%ebx, %edi
	callq	_dup_bio_in
	jmp	LBB0_15
LBB0_14:
	movq	%rsi, %rdi
	movl	$114, %esi
	movl	%ebx, %edx
	callq	_bio_open_default
LBB0_15:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_d2i_PUBKEY_bio
LBB0_31:
	movq	%rax, %rbx
	jmp	LBB0_32
LBB0_7:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_34
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_34
LBB0_19:
	movq	_FORMAT_ASN1RSA@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_25
## %bb.20:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_d2i_RSAPublicKey_bio
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_34
LBB0_33:
	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
LBB0_34:
	movq	%r15, %rdi
	callq	_BIO_free
LBB0_35:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_36:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_FORMAT_PEMRSA@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_27
## %bb.26:
	movq	_password_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_PEM_read_bio_RSAPublicKey
	testq	%rax, %rax
	je	LBB0_34
LBB0_22:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_EVP_PKEY_set1_RSA
LBB0_24:
	movq	%r12, %rdi
	callq	_RSA_free
LBB0_32:
	movq	%r15, %rdi
	callq	_BIO_free
	testq	%rbx, %rbx
	jne	LBB0_36
	jmp	LBB0_35
LBB0_27:
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_29
## %bb.28:
	movq	_password_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_PEM_read_bio_PUBKEY
	jmp	LBB0_31
LBB0_29:
	movq	_FORMAT_MSBLOB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_34
## %bb.30:
	movq	%r15, %rdi
	callq	_b2i_PublicKey_bio
	jmp	LBB0_31
	.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_ASN1RSA,4,2             ## @FORMAT_ASN1RSA
	.comm	_FORMAT_PEMRSA,4,2              ## @FORMAT_PEMRSA
	.comm	_password_callback,8,3          ## @password_callback
	.comm	_FORMAT_PEM,4,2                 ## @FORMAT_PEM
	.comm	_FORMAT_MSBLOB,4,2              ## @FORMAT_MSBLOB
L_.str.3:                               ## @.str.3
	.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_pubkey                    ; -- Begin function load_pubkey
	.p2align	2
_load_pubkey:                           ; @load_pubkey
	.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	x21, x1
	mov	x1, x0
	stp	x3, x0, [sp, #16]
Lloh0:
	adrp	x8, _FORMAT_ENGINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_ENGINE@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	b	LBB0_4
LBB0_2:
	cbz	w2, LBB0_15
; %bb.3:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_15
LBB0_4:
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.5:
	cbz	x4, LBB0_16
; %bb.6:
Lloh2:
	adrp	x8, _ui_method@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ui_method@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x4
	bl	_ENGINE_load_public_key
	cbz	x0, LBB0_19
; %bb.7:
	mov	x21, x0
	mov	x0, #0
	bl	_BIO_free
	b	LBB0_23
LBB0_8:
	cbnz	x1, LBB0_11
; %bb.9:
	cbz	w2, LBB0_11
; %bb.10:
Lloh5:
	adrp	x8, _stdin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_unbuffer
	mov	x0, x21
	bl	_dup_bio_in
	mov	x20, x0
	cbnz	x0, LBB0_12
	b	LBB0_21
LBB0_11:
	mov	x0, x1
	mov	w1, #114
	mov	x2, x21
	bl	_bio_open_default
	mov	x20, x0
	cbz	x0, LBB0_21
LBB0_12:
Lloh8:
	adrp	x8, _FORMAT_ASN1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FORMAT_ASN1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.13:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_PUBKEY_bio
LBB0_14:
	mov	x21, x0
	b	LBB0_29
LBB0_15:
Lloh11:
	adrp	x8, _bio_err@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	b	LBB0_20
LBB0_16:
Lloh16:
	adrp	x8, _bio_err@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	b	LBB0_20
LBB0_17:
Lloh21:
	adrp	x8, _FORMAT_ASN1RSA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FORMAT_ASN1RSA@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_24
; %bb.18:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_RSAPublicKey_bio
	cbnz	x0, LBB0_26
	b	LBB0_21
LBB0_19:
Lloh24:
	adrp	x20, _bio_err@GOTPAGE
Lloh25:
	ldr	x20, [x20, _bio_err@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x20]
	bl	_ERR_print_errors
LBB0_20:
	mov	x20, #0
LBB0_21:
	mov	x0, x20
	bl	_BIO_free
LBB0_22:
Lloh28:
	adrp	x8, _bio_err@GOTPAGE
Lloh29:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_printf
	mov	x21, #0
LBB0_23:
	mov	x0, 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
	add	sp, sp, #80
	ret
LBB0_24:
Lloh33:
	adrp	x8, _FORMAT_PEMRSA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FORMAT_PEMRSA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_30
; %bb.25:
Lloh36:
	adrp	x8, _password_callback@GOTPAGE
Lloh37:
	ldr	x8, [x8, _password_callback@GOTPAGEOFF]
Lloh38:
	ldr	x2, [x8]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, #0
	bl	_PEM_read_bio_RSAPublicKey
	cbz	x0, LBB0_21
LBB0_26:
	mov	x22, x0
	bl	_EVP_PKEY_new
	mov	x21, x0
	cbz	x0, LBB0_28
; %bb.27:
	mov	x0, x21
	mov	x1, x22
	bl	_EVP_PKEY_set1_RSA
LBB0_28:
	mov	x0, x22
	bl	_RSA_free
LBB0_29:
	mov	x0, x20
	bl	_BIO_free
	cbnz	x21, LBB0_23
	b	LBB0_22
LBB0_30:
Lloh39:
	adrp	x8, _FORMAT_PEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FORMAT_PEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_32
; %bb.31:
Lloh42:
	adrp	x8, _password_callback@GOTPAGE
Lloh43:
	ldr	x8, [x8, _password_callback@GOTPAGEOFF]
Lloh44:
	ldr	x2, [x8]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, #0
	bl	_PEM_read_bio_PUBKEY
	b	LBB0_14
LBB0_32:
Lloh45:
	adrp	x8, _FORMAT_MSBLOB@GOTPAGE
Lloh46:
	ldr	x8, [x8, _FORMAT_MSBLOB@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_21
; %bb.33:
	mov	x0, x20
	bl	_b2i_PublicKey_bio
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, 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
	.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_ASN1RSA,4,2             ; @FORMAT_ASN1RSA
	.comm	_FORMAT_PEMRSA,4,2              ; @FORMAT_PEMRSA
	.comm	_password_callback,8,3          ; @password_callback
	.comm	_FORMAT_PEM,4,2                 ; @FORMAT_PEM
	.comm	_FORMAT_MSBLOB,4,2              ; @FORMAT_MSBLOB
l_.str.3:                               ; @.str.3
	.asciz	"unable to load %s\n"

.subsections_via_symbols
