	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_new                     ## -- Begin function sshkey_new
	.p2align	4, 0x90
_sshkey_new:                            ## @sshkey_new
	.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
	movl	%edi, %r14d
	movl	$1, %edi
	movl	$72, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movl	$-1, 4(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 40(%rax)
	movups	%xmm0, 56(%rax)
	addl	$-128, %r14d
	cmpl	$6, %r14d
	ja	LBB0_3
## %bb.2:
	movl	$103, %eax
	btl	%r14d, %eax
	jae	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_sshkey_is_cert
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %r14
	addq	$8, %r14
	xorl	%eax, %eax
	callq	_cert_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_sshkey_free
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_new                     ; -- Begin function sshkey_new
	.p2align	2
_sshkey_new:                            ; @sshkey_new
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	mov	w0, #1
	mov	w1, #72
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	w8, #-1
	stp	w20, w8, [x19]
	movi.2d	v0, #0000000000000000
	mov	x21, x19
	str	q0, [x21, #8]!
	stp	xzr, xzr, [x19, #56]
	stur	q0, [x19, #24]
	sub	w8, w20, #128
	stur	q0, [x19, #40]
	cmp	w8, #6
	b.hi	LBB0_6
; %bb.2:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #103
	tst	w8, w9
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_sshkey_is_cert
	cbz	x0, LBB0_8
; %bb.4:
	bl	_cert_new
	str	x0, [x21]
	cbnz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_sshkey_free
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
