	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_private_deserialize     ## -- Begin function sshkey_private_deserialize
	.p2align	4, 0x90
_sshkey_private_deserialize:            ## @sshkey_private_deserialize
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_sshbuf_get_cstring
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_20:
	movq	-80(%rbp), %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_free
	movq	-72(%rbp), %rdi
	callq	_sshkey_free
	movq	-64(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_freezero
	movq	-56(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_freezero
	xorl	%edi, %edi
	callq	_free
	movq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_freezero
	movq	-40(%rbp), %rsi
	xorl	%edi, %edi
	callq	_freezero
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-80(%rbp), %rdi
	callq	_sshkey_type_from_name
	cmpl	$132, %eax
	je	LBB0_12
## %bb.4:
	cmpl	$133, %eax
	jne	LBB0_21
## %bb.5:
	movl	$133, %edi
	callq	_sshkey_new_private
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sshbuf_get_string
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sshbuf_get_string
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	movq	-48(%rbp), %rax
	movq	_ED25519_PK_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	-40(%rbp), %rax
	movq	_ED25519_SK_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
	jmp	LBB0_11
LBB0_12:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sshkey_froms
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sshbuf_get_string
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.14:
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sshbuf_get_string
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movq	-48(%rbp), %rax
	movq	_ED25519_PK_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.16:
	movq	-40(%rbp), %rax
	movq	_ED25519_SK_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.17:
	movq	-72(%rbp), %r12
LBB0_18:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rax
	movq	%rax, 48(%r12)
	movq	-56(%rbp), %rax
	movq	%rax, 40(%r12)
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movq	%r12, (%r14)
	movq	$0, -72(%rbp)
	jmp	LBB0_20
LBB0_21:
	movq	_SSH_ERR_KEY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_11:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_ED25519_PK_SZ,8,3              ## @ED25519_PK_SZ
	.comm	_ED25519_SK_SZ,8,3              ## @ED25519_SK_SZ
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ## @SSH_ERR_KEY_TYPE_UNKNOWN
	.comm	_SSH_ERR_EC_CURVE_MISMATCH,4,2  ## @SSH_ERR_EC_CURVE_MISMATCH
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_private_deserialize     ; -- Begin function sshkey_private_deserialize
	.p2align	2
_sshkey_private_deserialize:            ; @sshkey_private_deserialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, #0
	bl	_sshbuf_get_cstring
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_3:
	ldr	x0, [sp, #40]
	bl	_free
	mov	x0, #0
	bl	_free
	ldr	x0, [sp, #32]
	bl	_sshkey_free
	ldr	x0, [sp, #8]
	ldr	x1, [sp, #24]
	bl	_freezero
	ldr	x0, [sp]
	ldr	x1, [sp, #16]
	bl	_freezero
	mov	x0, #0
	bl	_free
	ldr	x1, [sp, #24]
	mov	x0, #0
	bl	_freezero
	ldr	x1, [sp, #16]
	mov	x0, #0
	bl	_freezero
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x0, [sp, #40]
	bl	_sshkey_type_from_name
	cmp	w0, #132
	b.eq	LBB0_11
; %bb.5:
	cmp	w0, #133
	b.ne	LBB0_19
; %bb.6:
	bl	_sshkey_new_private
	str	x0, [sp, #32]
	cbz	x0, LBB0_20
; %bb.7:
	mov	x22, x0
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x20
	bl	_sshbuf_get_string
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.8:
	mov	x1, sp
	add	x2, sp, #16
	mov	x0, x20
	bl	_sshbuf_get_string
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.9:
	ldr	x8, [sp, #24]
Lloh0:
	adrp	x9, _ED25519_PK_SZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ED25519_PK_SZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.10:
	ldr	x8, [sp, #16]
Lloh3:
	adrp	x9, _ED25519_SK_SZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ED25519_SK_SZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
	b	LBB0_21
LBB0_11:
	add	x1, sp, #32
	mov	x0, x20
	bl	_sshkey_froms
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.12:
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x20
	bl	_sshbuf_get_string
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.13:
	mov	x1, sp
	add	x2, sp, #16
	mov	x0, x20
	bl	_sshbuf_get_string
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.14:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, _ED25519_PK_SZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ED25519_PK_SZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.15:
	ldr	x8, [sp, #16]
Lloh9:
	adrp	x9, _ED25519_SK_SZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ED25519_SK_SZ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.16:
	ldr	x22, [sp, #32]
LBB0_17:
	ldp	x9, x8, [sp]
	stp	x9, x8, [x22, #40]
	stp	xzr, xzr, [sp]
	mov	w21, #0
	cbz	x19, LBB0_3
; %bb.18:
	str	x22, [x19]
	str	xzr, [sp, #32]
	b	LBB0_3
LBB0_19:
Lloh12:
	adrp	x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_20:
Lloh15:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_21:
Lloh18:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_ED25519_PK_SZ,8,3              ; @ED25519_PK_SZ
	.comm	_ED25519_SK_SZ,8,3              ; @ED25519_SK_SZ
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ; @SSH_ERR_KEY_TYPE_UNKNOWN
	.comm	_SSH_ERR_EC_CURVE_MISMATCH,4,2  ; @SSH_ERR_EC_CURVE_MISMATCH
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols
