	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sshkey_parse_private_pem_fileblob
_sshkey_parse_private_pem_fileblob:     ## @sshkey_parse_private_pem_fileblob
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r13)
LBB0_2:
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_sshbuf_len
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
LBB0_4:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_sshbuf_ptr
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_sshbuf_len
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_BIO_write
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_sshbuf_len
	cmpl	%eax, %r12d
	jne	LBB0_14
## %bb.6:
	xorl	%eax, %eax
	callq	_clear_libcrypto_errors
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_PEM_read_bio_PrivateKey
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_15
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_EVP_PKEY_base_id
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	_KEY_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_RSA@GOTPCREL(%rip), %rax
	cmpl	%ebx, %edi
	je	LBB0_16
## %bb.9:
	cmpl	%ebx, (%rax)
	je	LBB0_16
LBB0_10:
	movq	%r14, %rdi
	callq	_EVP_PKEY_base_id
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_KEY_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_DSA@GOTPCREL(%rip), %rax
	cmpl	%ebx, %edi
	je	LBB0_20
## %bb.12:
	cmpl	%ebx, (%rax)
	je	LBB0_20
LBB0_13:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_14:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_15:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_convert_libcrypto_error
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_16:
	movq	%rax, %rbx
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_25
## %bb.17:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_EVP_PKEY_get1_RSA
	movl	%eax, 20(%r12)
	movl	(%rbx), %ecx
	movl	%ecx, (%r12)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_RSA_blinding_on
	cmpl	$1, %eax
	jne	LBB0_30
## %bb.18:
	movl	20(%r12), %edi
	callq	_check_rsa_length
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_20:
	movq	%rax, %rbx
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_EVP_PKEY_get1_DSA
	movl	%eax, 16(%r12)
	movl	(%rbx), %eax
	movl	%eax, (%r12)
LBB0_22:
	testq	%r13, %r13
	je	LBB0_24
## %bb.23:
	movq	%r12, (%r13)
	xorl	%r12d, %r12d
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_25:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %ebx
LBB0_27:
	xorl	%r12d, %r12d
LBB0_28:
	movq	%r15, %rdi
	callq	_BIO_free
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
	movq	%r12, %rdi
	callq	_sshkey_free
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_EVP_PKEY_RSA,8,3               ## @EVP_PKEY_RSA
	.comm	_KEY_UNSPEC,4,2                 ## @KEY_UNSPEC
	.comm	_KEY_RSA,4,2                    ## @KEY_RSA
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_EVP_PKEY_DSA,8,3               ## @EVP_PKEY_DSA
	.comm	_KEY_DSA,4,2                    ## @KEY_DSA
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_EVP_PKEY_EC,8,3                ## @EVP_PKEY_EC
	.comm	_KEY_ECDSA,4,2                  ## @KEY_ECDSA
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_sshkey_parse_private_pem_fileblob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sshkey_parse_private_pem_fileblob
_sshkey_parse_private_pem_fileblob:     ; @sshkey_parse_private_pem_fileblob
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	bl	_BIO_s_mem
	bl	_BIO_new
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
	mov	x0, x23
	bl	_sshbuf_len
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_19
LBB0_5:
	mov	x0, x23
	bl	_sshbuf_ptr
	mov	x24, x0
	mov	x0, x23
	bl	_sshbuf_len
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_BIO_write
	mov	x24, x0
	mov	x0, x23
	bl	_sshbuf_len
	cmp	w24, w0
	b.ne	LBB0_14
; %bb.6:
	bl	_clear_libcrypto_errors
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, x20
	bl	_PEM_read_bio_PrivateKey
	mov	x20, x0
	cbz	x0, LBB0_16
; %bb.7:
	mov	x0, x20
	bl	_EVP_PKEY_base_id
Lloh6:
	adrp	x8, _EVP_PKEY_RSA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_PKEY_RSA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _KEY_UNSPEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KEY_UNSPEC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x23, _KEY_RSA@GOTPAGE
Lloh13:
	ldr	x23, [x23, _KEY_RSA@GOTPAGEOFF]
	cmp	w0, w22
	b.eq	LBB0_20
; %bb.9:
	ldr	w8, [x23]
	cmp	w8, w22
	b.eq	LBB0_20
LBB0_10:
	mov	x0, x20
	bl	_EVP_PKEY_base_id
Lloh14:
	adrp	x8, _EVP_PKEY_DSA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVP_PKEY_DSA@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
Lloh17:
	adrp	x8, _KEY_UNSPEC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KEY_UNSPEC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x23, _KEY_DSA@GOTPAGE
Lloh21:
	ldr	x23, [x23, _KEY_DSA@GOTPAGEOFF]
	cmp	w0, w22
	b.eq	LBB0_24
; %bb.12:
	ldr	w8, [x23]
	cmp	w8, w22
	b.eq	LBB0_24
LBB0_13:
	mov	x22, #0
Lloh22:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
Lloh24:
	ldr	w23, [x8]
	b	LBB0_18
LBB0_14:
	mov	x20, #0
	mov	x22, #0
LBB0_15:
Lloh25:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	b	LBB0_18
LBB0_16:
	bl	_convert_libcrypto_error
	mov	x23, x0
LBB0_17:
	mov	x22, #0
LBB0_18:
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	x0, x22
	bl	_sshkey_free
LBB0_19:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	_sshkey_new
	mov	x22, x0
	cbz	x0, LBB0_15
; %bb.21:
	mov	x0, x20
	bl	_EVP_PKEY_get1_RSA
	str	w0, [x22, #20]
	ldr	w8, [x23]
	str	w8, [x22]
	mov	x1, #0
	bl	_RSA_blinding_on
	cmp	w0, #1
	b.ne	LBB0_28
; %bb.22:
	ldr	w0, [x22, #20]
	bl	_check_rsa_length
	cbz	w0, LBB0_26
; %bb.23:
	mov	x23, x0
	b	LBB0_18
LBB0_24:
	bl	_sshkey_new
	mov	x22, x0
	cbz	x0, LBB0_15
; %bb.25:
	mov	x0, x20
	bl	_EVP_PKEY_get1_DSA
	str	w0, [x22, #16]
	ldr	w8, [x23]
	str	w8, [x22]
LBB0_26:
	mov	w23, #0
	cbz	x21, LBB0_18
; %bb.27:
	str	x22, [x21]
	b	LBB0_17
LBB0_28:
Lloh28:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w23, [x8]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_EVP_PKEY_RSA,8,3               ; @EVP_PKEY_RSA
	.comm	_KEY_UNSPEC,4,2                 ; @KEY_UNSPEC
	.comm	_KEY_RSA,4,2                    ; @KEY_RSA
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_EVP_PKEY_DSA,8,3               ; @EVP_PKEY_DSA
	.comm	_KEY_DSA,4,2                    ; @KEY_DSA
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_EVP_PKEY_EC,8,3                ; @EVP_PKEY_EC
	.comm	_KEY_ECDSA,4,2                  ; @KEY_ECDSA
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_sshkey_parse_private_pem_fileblob
.subsections_via_symbols
