	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_parse_key_pkcs8_encrypted_der
_pk_parse_key_pkcs8_encrypted_der:      ## @pk_parse_key_pkcs8_encrypted_der
	.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	%rbx
	subq	$2088, %rsp                     ## imm = 0x828
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-2080(%rbp), %rdi
	xorl	%esi, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memset
	movq	%rbx, -2088(%rbp)
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	addq	%r14, %rbx
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movzbl	%cl, %ecx
	leaq	-2088(%rbp), %rdi
	leaq	-2096(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	-2088(%rbp), %rbx
	addq	-2096(%rbp), %rbx
	leaq	-2088(%rbp), %rdi
	leaq	-2104(%rbp), %rdx
	leaq	-2100(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_alg
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	_MBEDTLS_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	leaq	-2088(%rbp), %rdi
	leaq	-2096(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_10
LBB0_1:
	movq	_MBEDTLS_ERR_PK_PASSWORD_REQUIRED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$2088, %rsp                     ## imm = 0x828
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$2049, -2096(%rbp)              ## imm = 0x801
	jb	LBB0_8
## %bb.7:
	movq	_MBEDTLS_ERR_PK_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_PK_PASSWORD_REQUIRED,4,2 ## @MBEDTLS_ERR_PK_PASSWORD_REQUIRED
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,1,0   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,1,0      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ASN1_OCTET_STRING,1,0  ## @MBEDTLS_ASN1_OCTET_STRING
	.comm	_MBEDTLS_ERR_PK_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_PK_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH,4,2 ## @MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH
	.comm	_MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH,4,2 ## @MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH
	.comm	_MBEDTLS_ERR_PK_PASSWORD_MISMATCH,4,2 ## @MBEDTLS_ERR_PK_PASSWORD_MISMATCH
	.comm	_MBEDTLS_OID_PKCS12_PBE_SHA1_RC4_128,4,2 ## @MBEDTLS_OID_PKCS12_PBE_SHA1_RC4_128
	.comm	_MBEDTLS_OID_PKCS5_PBES2,4,2    ## @MBEDTLS_OID_PKCS5_PBES2
	.comm	_MBEDTLS_PKCS12_PBE_DECRYPT,4,2 ## @MBEDTLS_PKCS12_PBE_DECRYPT
	.comm	_MBEDTLS_PKCS5_DECRYPT,4,2      ## @MBEDTLS_PKCS5_DECRYPT
	.no_dead_strip	_pk_parse_key_pkcs8_encrypted_der
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_parse_key_pkcs8_encrypted_der
_pk_parse_key_pkcs8_encrypted_der:      ; @pk_parse_key_pkcs8_encrypted_der
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #2080
	mov	x21, x4
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #2048
	bl	_memset
	str	x20, [sp, #8]
	cbz	x21, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	add	x1, x20, x19
	ldrb	w8, [x8]
Lloh5:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w3, w9, w8
	add	x0, sp, #8
	add	x2, sp, #16
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_4
; %bb.2:
	ldp	x8, x9, [sp, #8]
	add	x19, x8, x9
	add	x0, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x1, x19
	bl	_mbedtls_asn1_get_alg
	cbnz	w0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGEOFF]
	ldrb	w3, [x8]
	add	x0, sp, #8
	add	x2, sp, #16
	mov	x1, x19
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_PK_PASSWORD_REQUIRED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_PASSWORD_REQUIRED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.8:
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [sp, #16]
	cmp	x8, #2049
	b.lo	LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _MBEDTLS_ERR_PK_BAD_INPUT_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_BAD_INPUT_DATA@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
Lloh19:
	adrp	x8, _MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_PK_PASSWORD_REQUIRED,4,2 ; @MBEDTLS_ERR_PK_PASSWORD_REQUIRED
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,1,0   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,1,0      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ASN1_OCTET_STRING,1,0  ; @MBEDTLS_ASN1_OCTET_STRING
	.comm	_MBEDTLS_ERR_PK_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_PK_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH,4,2 ; @MBEDTLS_ERR_PKCS12_PASSWORD_MISMATCH
	.comm	_MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH,4,2 ; @MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH
	.comm	_MBEDTLS_ERR_PK_PASSWORD_MISMATCH,4,2 ; @MBEDTLS_ERR_PK_PASSWORD_MISMATCH
	.comm	_MBEDTLS_OID_PKCS12_PBE_SHA1_RC4_128,4,2 ; @MBEDTLS_OID_PKCS12_PBE_SHA1_RC4_128
	.comm	_MBEDTLS_OID_PKCS5_PBES2,4,2    ; @MBEDTLS_OID_PKCS5_PBES2
	.comm	_MBEDTLS_PKCS12_PBE_DECRYPT,4,2 ; @MBEDTLS_PKCS12_PBE_DECRYPT
	.comm	_MBEDTLS_PKCS5_DECRYPT,4,2      ; @MBEDTLS_PKCS5_DECRYPT
	.no_dead_strip	_pk_parse_key_pkcs8_encrypted_der
.subsections_via_symbols
