	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptls_pem_parse_private_key
_ptls_pem_parse_private_key:            ## @ptls_pem_parse_private_key
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	$0, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_ptls_load_pem_objects
	movl	%eax, %ecx
	movq	-32(%rbp), %rdx
	cmpq	$1, %rdx
	je	LBB0_2
## %bb.1:
	movq	_PTLS_ERROR_PEM_LABEL_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	testl	%ecx, %ecx
	cmovnel	%ecx, %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	cmpq	$1, %rdx
	jne	LBB0_7
## %bb.4:
	movl	$0, -20(%rbp)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	*8(%r14)
LBB0_6:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ptls_minicrypto_asn1_decode_private_key
	movl	-20(%rbp), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PRIVATE KEY"

	.comm	_PTLS_ERROR_PEM_LABEL_NOT_FOUND,4,2 ## @PTLS_ERROR_PEM_LABEL_NOT_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"\nFound PRIVATE KEY, length = %d bytes\n"

	.no_dead_strip	_ptls_pem_parse_private_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptls_pem_parse_private_key
_ptls_pem_parse_private_key:            ; @ptls_pem_parse_private_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x2, x20
	mov	w3, #1
	bl	_ptls_load_pem_objects
	ldr	x8, [sp, #8]
	cmp	x8, #1
	ccmp	w0, #0, #0, ne
Lloh2:
	adrp	x9, _PTLS_ERROR_PEM_LABEL_NOT_FOUND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PTLS_ERROR_PEM_LABEL_NOT_FOUND@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	csel	w0, w9, w0, eq
	cmp	w0, #0
	ccmp	x8, #1, #0, eq
	b.ne	LBB0_4
; %bb.1:
	str	wzr, [sp, #4]
	cbz	x19, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	ldr	w2, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
LBB0_3:
	add	x1, sp, #4
	mov	x0, x20
	mov	x2, x19
	bl	_ptls_minicrypto_asn1_decode_private_key
	ldr	w0, [sp, #4]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PRIVATE KEY"

	.comm	_PTLS_ERROR_PEM_LABEL_NOT_FOUND,4,2 ; @PTLS_ERROR_PEM_LABEL_NOT_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"\nFound PRIVATE KEY, length = %d bytes\n"

	.no_dead_strip	_ptls_pem_parse_private_key
.subsections_via_symbols
