	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sshkey_private_pem_to_blob
_sshkey_private_pem_to_blob:            ## @sshkey_private_pem_to_blob
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_strlen
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovgq	%rbx, %r14
	jle	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_EVP_aes_128_cbc
	movq	%rax, %rbx
	leal	-1(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.2:
	movq	_SSH_ERR_PASSPHRASE_TOO_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_5:
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %r15
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_13
## %bb.8:
	movl	12(%r13), %esi
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_PEM_write_bio_DSAPrivateKey
	testl	%eax, %eax
	je	LBB0_13
LBB0_9:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_BIO_get_mem_data
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_sshbuf_put
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_11:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movl	4(%r13), %esi
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_PEM_write_bio_RSAPrivateKey
	testl	%eax, %eax
	jne	LBB0_9
LBB0_13:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_BIO_free
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_PASSPHRASE_TOO_SHORT,4,2 ## @SSH_ERR_PASSPHRASE_TOO_SHORT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.no_dead_strip	_sshkey_private_pem_to_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sshkey_private_pem_to_blob
_sshkey_private_pem_to_blob:            ; @sshkey_private_pem_to_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	mov	x0, x2
	bl	_strlen
	mov	x21, x0
	cmp	w0, #0
	csel	x22, x20, xzr, gt
	b.le	LBB0_3
; %bb.1:
	bl	_EVP_aes_128_cbc
	sub	w8, w21, #1
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SSH_ERR_PASSPHRASE_TOO_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_PASSPHRASE_TOO_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_17
LBB0_3:
	mov	x24, #0
	b	LBB0_5
LBB0_4:
	mov	x24, x0
LBB0_5:
	bl	_BIO_s_mem
	bl	_BIO_new
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.8:
	ldr	w1, [x23, #12]
	mov	x0, x20
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, #0
	mov	x6, #0
	bl	_PEM_write_bio_DSAPrivateKey
	cbz	w0, LBB0_13
LBB0_9:
	add	x1, sp, #8
	mov	x0, x20
	bl	_BIO_get_mem_data
	cmp	w0, #0
	b.le	LBB0_14
; %bb.10:
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_sshbuf_put
	mov	x19, x0
	b	LBB0_16
LBB0_11:
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	b	LBB0_17
LBB0_12:
	ldr	w1, [x23, #4]
	mov	x0, x20
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, #0
	mov	x6, #0
	bl	_PEM_write_bio_RSAPrivateKey
	cbnz	w0, LBB0_9
LBB0_13:
Lloh6:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh8:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_15:
	ldr	w19, [x8]
LBB0_16:
	mov	x0, x20
	bl	_BIO_free
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_PASSPHRASE_TOO_SHORT,4,2 ; @SSH_ERR_PASSPHRASE_TOO_SHORT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.no_dead_strip	_sshkey_private_pem_to_blob
.subsections_via_symbols
