	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_private_cert       ## -- Begin function sshkey_load_private_cert
	.p2align	4, 0x90
_sshkey_load_private_cert:              ## @sshkey_load_private_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r9
	movq	%rcx, %r14
	movq	%rsi, %r15
                                        ## kill: def $edi killed $edi def $rdi
	movq	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	leal	-128(%rdi), %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.3:
	cmpl	$2, %eax
	je	LBB0_4
## %bb.5:
	leaq	-32(%rbp), %rcx
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_sshkey_load_private_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sshkey_load_cert
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_13:
	movq	-32(%rbp), %rdi
	callq	_sshkey_free
	movq	-40(%rbp), %rdi
	callq	_sshkey_free
	jmp	LBB0_14
LBB0_4:
	movq	_SSH_ERR_KEY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-32(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_sshkey_equal_public
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	-32(%rbp), %rdi
	callq	_sshkey_to_certified
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	-40(%rbp), %rdi
	movq	-32(%rbp), %rsi
	callq	_sshkey_cert_copy
	movl	%eax, %ebx
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.12:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	movq	$0, -32(%rbp)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	_SSH_ERR_KEY_CERT_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ## @SSH_ERR_KEY_TYPE_UNKNOWN
	.comm	_SSH_ERR_KEY_CERT_MISMATCH,4,2  ## @SSH_ERR_KEY_CERT_MISMATCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_load_private_cert       ; -- Begin function sshkey_load_private_cert
	.p2align	2
_sshkey_load_private_cert:              ; @sshkey_load_private_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	x5, x4
	mov	x19, x3
	mov	x21, x1
	stp	xzr, xzr, [sp]
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	sub	w8, w0, #128
	cmp	w8, #3
	ccmp	w8, #2, #4, ls
	b.eq	LBB0_6
; %bb.3:
	add	x3, sp, #8
	mov	x1, x21
	mov	x4, #0
	bl	_sshkey_load_private_type
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x1, sp
	mov	x0, x21
	bl	_sshkey_load_cert
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_sshkey_free
	ldr	x0, [sp]
	bl	_sshkey_free
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
LBB0_7:
	mov	x0, x20
	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
LBB0_8:
	ldp	x1, x0, [sp]
	bl	_sshkey_equal_public
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_sshkey_to_certified
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.10:
	ldp	x0, x1, [sp]
	bl	_sshkey_cert_copy
	mov	x20, x0
	cbz	x19, LBB0_5
; %bb.11:
	cbnz	w20, LBB0_5
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	str	xzr, [sp, #8]
	b	LBB0_5
LBB0_13:
Lloh3:
	adrp	x8, _SSH_ERR_KEY_CERT_MISMATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_KEY_CERT_MISMATCH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ; @SSH_ERR_KEY_TYPE_UNKNOWN
	.comm	_SSH_ERR_KEY_CERT_MISMATCH,4,2  ; @SSH_ERR_KEY_CERT_MISMATCH
.subsections_via_symbols
