	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_decode_PrivateKey
_try_decode_PrivateKey:                 ## @try_decode_PrivateKey
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	movq	_PEM_STRING_PKCS8INF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_pem_check_suffix
	testl	%eax, %eax
	jle	LBB0_22
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_EVP_PKEY_asn1_find_str
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	movl	4(%rax), %edi
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_d2i_PrivateKey
	movq	%rax, %r12
	jmp	LBB0_19
LBB0_1:
	movq	%rdx, %rbx
	xorl	%eax, %eax
	callq	_EVP_PKEY_asn1_get_count
	testl	%eax, %eax
	jle	LBB0_2
## %bb.10:
	movq	_ASN1_PKEY_ALIAS@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_EVP_PKEY_free
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	callq	_EVP_PKEY_asn1_get_count
	cmpl	%eax, %r13d
	jge	LBB0_18
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -64(%rbp)
	movl	%r13d, %edi
	callq	_EVP_PKEY_asn1_get0
	movl	(%r14), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%rax), %edi
	xorl	%esi, %esi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rcx
	callq	_d2i_PrivateKey
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	testq	%r12, %r12
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r12
	jmp	LBB0_16
LBB0_4:
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_d2i_PKCS8_PRIV_KEY_INFO
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_EVP_PKCS82PKEY
	movq	%rax, %r12
LBB0_6:
	movq	%rbx, %rdi
	callq	_PKCS8_PRIV_KEY_INFO_free
	jmp	LBB0_19
LBB0_2:
	xorl	%r12d, %r12d
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, (%rax)
	jge	LBB0_21
LBB0_19:
	testq	%r12, %r12
	je	LBB0_22
## %bb.20:
	movq	%r12, %rdi
	callq	_OSSL_STORE_INFO_new_PKEY
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_23
LBB0_21:
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_STRING_PKCS8INF,4,2        ## @PEM_STRING_PKCS8INF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PRIVATE KEY"

	.comm	_ASN1_PKEY_ALIAS,4,2            ## @ASN1_PKEY_ALIAS
	.no_dead_strip	_try_decode_PrivateKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_decode_PrivateKey
_try_decode_PrivateKey:                 ; @try_decode_PrivateKey
	.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	x19, x5
	mov	x20, x3
	str	x2, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _PEM_STRING_PKCS8INF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEM_STRING_PKCS8INF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pem_check_suffix
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.3:
	mov	x2, x0
	mov	x0, #0
	mov	x1, x21
	bl	_EVP_PKEY_asn1_find_str
	cbz	x0, LBB0_24
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x0, #4]
	add	x2, sp, #8
	mov	x1, #0
	mov	x3, x20
	bl	_d2i_PrivateKey
	mov	x21, x0
	cbnz	x21, LBB0_21
	b	LBB0_23
LBB0_5:
	mov	x22, x2
	bl	_EVP_PKEY_asn1_get_count
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.6:
	mov	w23, #0
	mov	x21, #0
Lloh5:
	adrp	x24, _ASN1_PKEY_ALIAS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ASN1_PKEY_ALIAS@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	bl	_EVP_PKEY_free
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w23, #1
	bl	_EVP_PKEY_asn1_get_count
	cmp	w23, w0
	b.ge	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x22, [sp]
	mov	x0, x23
	bl	_EVP_PKEY_asn1_get0
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x0, #4]
	mov	x2, sp
	mov	x1, #0
	mov	x3, x20
	bl	_d2i_PrivateKey
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x21, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x0
	b	LBB0_8
LBB0_14:
	add	x1, sp, #8
	mov	x2, x20
	bl	_d2i_PKCS8_PRIV_KEY_INFO
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19]
	cbz	x0, LBB0_19
; %bb.15:
	mov	x0, x20
	bl	_EVP_PKCS82PKEY
	mov	x21, x0
	b	LBB0_20
LBB0_16:
	mov	x21, #0
LBB0_17:
	ldr	w8, [x19]
	cmp	w8, #1
	b.gt	LBB0_22
; %bb.18:
	cbnz	x21, LBB0_21
	b	LBB0_23
LBB0_19:
	mov	x21, #0
LBB0_20:
	mov	x0, x20
	bl	_PKCS8_PRIV_KEY_INFO_free
	cbz	x21, LBB0_23
LBB0_21:
	mov	x0, x21
	bl	_OSSL_STORE_INFO_new_PKEY
	cbnz	x0, LBB0_24
LBB0_22:
	mov	x0, x21
	bl	_EVP_PKEY_free
LBB0_23:
	mov	x0, #0
LBB0_24:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_STRING_PKCS8INF,4,2        ; @PEM_STRING_PKCS8INF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PRIVATE KEY"

	.comm	_ASN1_PKEY_ALIAS,4,2            ; @ASN1_PKEY_ALIAS
	.no_dead_strip	_try_decode_PrivateKey
.subsections_via_symbols
