	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_private_serialize_opt   ## -- Begin function sshkey_private_serialize_opt
	.p2align	4, 0x90
_sshkey_private_serialize_opt:          ## @sshkey_private_serialize_opt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sshkey_ssh_name
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sshbuf_put_cstring
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$133, %eax
	jne	LBB0_8
LBB0_3:
	movl	36(%rbx), %esi
	movq	_ED25519_PK_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sshbuf_put_string
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	32(%rbx), %esi
	movq	_ED25519_SK_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sshbuf_put_string
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %edi
	callq	_sshbuf_len
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sshbuf_put_stringb
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_3
LBB0_8:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_ED25519_PK_SZ,4,2              ## @ED25519_PK_SZ
	.comm	_ED25519_SK_SZ,4,2              ## @ED25519_SK_SZ
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_private_serialize_opt   ; -- Begin function sshkey_private_serialize_opt
	.p2align	2
_sshkey_private_serialize_opt:          ; @sshkey_private_serialize_opt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_sshkey_ssh_name
	mov	x1, x0
	mov	x0, x19
	bl	_sshbuf_put_cstring
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #132
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #133
	b.ne	LBB0_9
LBB0_3:
	ldr	w1, [x20, #36]
Lloh0:
	adrp	x8, _ED25519_PK_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ED25519_PK_SZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sshbuf_put_string
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w1, [x20, #32]
Lloh3:
	adrp	x8, _ED25519_SK_SZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ED25519_SK_SZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sshbuf_put_string
	cbnz	w0, LBB0_10
; %bb.5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w0, [x8]
	bl	_sshbuf_len
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sshbuf_put_stringb
	cbnz	w0, LBB0_10
	b	LBB0_3
LBB0_9:
Lloh6:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_ED25519_PK_SZ,4,2              ; @ED25519_PK_SZ
	.comm	_ED25519_SK_SZ,4,2              ; @ED25519_SK_SZ
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
.subsections_via_symbols
