	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_public             ## -- Begin function sshkey_load_public
	.p2align	4, 0x90
_sshkey_load_public:                    ## @sshkey_load_public
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	$0, (%r15)
LBB0_4:
	movq	_KEY_UNSPEC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_sshkey_try_load_public
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_sshkey_free
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r12, %rdx
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.9:
	movl	(%r13), %edi
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_sshkey_try_load_public
	movl	%eax, %r15d
	testq	%r14, %r14
	je	LBB0_15
## %bb.12:
	testl	%r15d, %r15d
	je	LBB0_13
	jmp	LBB0_15
LBB0_5:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_16
LBB0_7:
	testq	%r14, %r14
	je	LBB0_14
LBB0_13:
	movq	%rbx, (%r14)
	xorl	%ebx, %ebx
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_10:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
LBB0_15:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_sshkey_free
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_UNSPEC,4,2                 ## @KEY_UNSPEC
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.pub"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_public             ; -- Begin function sshkey_load_public
	.p2align	2
_sshkey_load_public:                    ; @sshkey_load_public
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	str	xzr, [x21]
LBB0_4:
Lloh0:
	adrp	x23, _KEY_UNSPEC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KEY_UNSPEC@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_sshkey_new
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	mov	x1, x22
	mov	x2, x21
	bl	_sshkey_try_load_public
	cbz	w0, LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_sshkey_free
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x22
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.7:
	ldr	w0, [x23]
	bl	_sshkey_new
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_sshkey_try_load_public
	mov	x21, x0
	cbz	x19, LBB0_14
; %bb.9:
	cbz	w21, LBB0_12
	b	LBB0_14
LBB0_10:
Lloh4:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_11:
	mov	w21, #0
	cbz	x19, LBB0_14
LBB0_12:
	str	x20, [x19]
	mov	x20, #0
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x20
	bl	_sshkey_free
LBB0_15:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_UNSPEC,4,2                 ; @KEY_UNSPEC
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.pub"

.subsections_via_symbols
