	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_cert               ## -- Begin function sshkey_load_cert
	.p2align	4, 0x90
_sshkey_load_cert:                      ## @sshkey_load_cert
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %rdx
	movq	$0, -32(%rbp)
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_asprintf
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	_KEY_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_sshkey_try_load_public
	movl	%eax, %r14d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.8:
	movq	%r15, (%rbx)
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_3:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	xorl	%r15d, %r15d
LBB0_9:
	movq	-32(%rbp), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_sshkey_free
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-cert.pub"

	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_KEY_UNSPEC,4,2                 ## @KEY_UNSPEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_cert               ; -- Begin function sshkey_load_cert
	.p2align	2
_sshkey_load_cert:                      ; @sshkey_load_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x2, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.3:
Lloh5:
	adrp	x8, _KEY_UNSPEC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_UNSPEC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_sshkey_new
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, #0
	bl	_sshkey_try_load_public
	mov	x19, x0
	cbz	x20, LBB0_7
; %bb.5:
	cbnz	w19, LBB0_7
; %bb.6:
	str	x21, [x20]
	mov	x21, #0
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x21
	bl	_sshkey_free
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-cert.pub"

	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_KEY_UNSPEC,4,2                 ; @KEY_UNSPEC
.subsections_via_symbols
