	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_decode_PKCS8Encrypted
_try_decode_PKCS8Encrypted:             ## @try_decode_PKCS8Encrypted
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -88(%rbp)
	movq	_PEM_BUFSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_PEM_STRING_PKCS8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movl	$1, (%r14)
LBB0_3:
	xorl	%ebx, %ebx
	leaq	-88(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_d2i_X509_SIG
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r15
	movl	$1, (%r14)
	xorl	%eax, %eax
	callq	_BUF_MEM_new
	movq	%rax, %r14
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	24(%rbp), %r8
	movq	16(%rbp), %rdi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rsi
	callq	_file_get_pass
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	callq	_X509_SIG_get0
	movq	-80(%rbp), %r12
	movq	%rbx, %rdi
	callq	_strlen
	movq	-72(%rbp), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	-52(%rbp), %r10
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	pushq	$0
	pushq	%r10
	callq	_PKCS12_pbe_crypt
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	-64(%rbp), %rax
	movq	%rax, (%r14)
	movslq	-52(%rbp), %rax
	movq	%rax, 16(%r14)
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_X509_SIG_free
	movq	_PEM_STRING_PKCS8INF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_ossl_store_info_new_EMBEDDED
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rcx
	jne	LBB0_12
	jmp	LBB0_9
LBB0_6:
	movq	_OSSL_STORE_R_BAD_PASSWORD_READ@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	_OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rcx), %esi
	callq	_OSSL_STOREerr
LBB0_10:
	movq	%r15, %rdi
	callq	_X509_SIG_free
	movq	%r14, %rdi
	callq	_BUF_MEM_free
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_BUFSIZE,4,2                ## @PEM_BUFSIZE
	.comm	_PEM_STRING_PKCS8,4,2           ## @PEM_STRING_PKCS8
	.comm	_OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED,4,2 ## @OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKCS8 decrypt password"

	.comm	_OSSL_STORE_R_BAD_PASSWORD_READ,4,2 ## @OSSL_STORE_R_BAD_PASSWORD_READ
	.comm	_PEM_STRING_PKCS8INF,4,2        ## @PEM_STRING_PKCS8INF
	.no_dead_strip	_try_decode_PKCS8Encrypted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_decode_PKCS8Encrypted
_try_decode_PKCS8Encrypted:             ; @try_decode_PKCS8Encrypted
	.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
	sub	sp, sp, #48
	mov	x21, x7
	mov	x22, x6
	mov	x20, x5
	mov	x19, x3
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	x2, [x29, #-64]
Lloh3:
	adrp	x24, _PEM_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PEM_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	stp	xzr, xzr, [x29, #-80]
	stur	xzr, [x29, #-88]
	cbz	x0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _PEM_STRING_PKCS8@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PEM_STRING_PKCS8@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	sub	x1, x29, #64
	mov	x0, #0
	mov	x2, x19
	bl	_d2i_X509_SIG
	cbz	x0, LBB0_13
; %bb.4:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x20]
	bl	_BUF_MEM_new
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w2, [x24]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x4, x21
	bl	_file_get_pass
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	sub	x1, x29, #72
	sub	x2, x29, #80
	mov	x0, x19
	bl	_X509_SIG_get0
	ldur	x22, [x29, #-72]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	ldur	x8, [x29, #-80]
	ldp	w4, w3, [x8]
	sub	x5, x29, #88
	sub	x6, x29, #92
	mov	x0, x22
	mov	x1, x21
	mov	w7, #0
	bl	_PKCS12_pbe_crypt
	cbz	w0, LBB0_11
; %bb.7:
	ldur	x8, [x29, #-88]
	ldursw	x9, [x29, #-92]
	stp	x9, x9, [x20, #8]
	str	x8, [x20]
	mov	x0, x19
	bl	_X509_SIG_free
Lloh12:
	adrp	x8, _PEM_STRING_PKCS8INF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PEM_STRING_PKCS8INF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ossl_store_info_new_EMBEDDED
	cbnz	x0, LBB0_13
LBB0_8:
Lloh15:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _OSSL_STORE_R_BAD_PASSWORD_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OSSL_STORE_R_BAD_PASSWORD_READ@GOTPAGEOFF]
LBB0_10:
Lloh19:
	adrp	x9, _OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_OSSL_STOREerr
LBB0_11:
	mov	x0, x19
	bl	_X509_SIG_free
	mov	x0, x20
	bl	_BUF_MEM_free
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #48
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_BUFSIZE,4,2                ; @PEM_BUFSIZE
	.comm	_PEM_STRING_PKCS8,4,2           ; @PEM_STRING_PKCS8
	.comm	_OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED,4,2 ; @OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKCS8 decrypt password"

	.comm	_OSSL_STORE_R_BAD_PASSWORD_READ,4,2 ; @OSSL_STORE_R_BAD_PASSWORD_READ
	.comm	_PEM_STRING_PKCS8INF,4,2        ; @PEM_STRING_PKCS8INF
	.no_dead_strip	_try_decode_PKCS8Encrypted
.subsections_via_symbols
