	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_parse_key_pkcs8_unencrypted_der
_pk_parse_key_pkcs8_unencrypted_der:    ## @pk_parse_key_pkcs8_unencrypted_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	%rsi, -24(%rbp)
	addq	%rdx, %rsi
	movq	_MBEDTLS_PK_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-24(%rbp), %rbx
	addq	-32(%rbp), %rbx
	leaq	-24(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_int
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rcx
LBB0_3:
	addl	(%rcx), %eax
LBB0_4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, -36(%rbp)
	je	LBB0_8
## %bb.6:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_8:
	leaq	-24(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_pk_get_pk_alg
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	movq	_MBEDTLS_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_2
## %bb.10:
	cmpq	$0, -32(%rbp)
	je	LBB0_14
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_mbedtls_pk_info_from_type
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mbedtls_pk_setup
	testl	%eax, %eax
	jne	LBB0_4
LBB0_13:
	movq	_MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_PK_NONE,8,3            ## @MBEDTLS_PK_NONE
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_VERSION
	.comm	_MBEDTLS_ASN1_OCTET_STRING,4,2  ## @MBEDTLS_ASN1_OCTET_STRING
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ## @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ERR_PK_UNKNOWN_PK_ALG,4,2 ## @MBEDTLS_ERR_PK_UNKNOWN_PK_ALG
	.comm	_MBEDTLS_PK_ECKEY,8,3           ## @MBEDTLS_PK_ECKEY
	.comm	_MBEDTLS_PK_ECKEY_DH,8,3        ## @MBEDTLS_PK_ECKEY_DH
	.comm	_MBEDTLS_PK_RSA,8,3             ## @MBEDTLS_PK_RSA
	.no_dead_strip	_pk_parse_key_pkcs8_unencrypted_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_unencrypted_der
_pk_parse_key_pkcs8_unencrypted_der:    ; @pk_parse_key_pkcs8_unencrypted_der
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	x1, [sp, #16]
	add	x1, x1, x2
Lloh0:
	adrp	x8, _MBEDTLS_PK_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_PK_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	str	x8, [sp, #8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x0, sp, #16
	add	x2, sp, #32
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x9, [sp, #32]
	add	x20, x8, x9
	add	x0, sp, #16
	sub	x2, x29, #20
	mov	x1, x20
	bl	_mbedtls_asn1_get_int
	cbz	w0, LBB0_4
LBB0_2:
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
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	ldur	w8, [x29, #-20]
	cbz	w8, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_6:
	add	x0, sp, #16
	add	x2, sp, #8
	add	x3, sp, #28
	mov	x1, x20
	bl	_pk_get_pk_alg
	cbnz	w0, LBB0_2
; %bb.7:
Lloh15:
	adrp	x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x0, sp, #16
	add	x2, sp, #32
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_2
; %bb.8:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_mbedtls_pk_info_from_type
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x0
	mov	x0, x19
	bl	_mbedtls_pk_setup
Lloh18:
	adrp	x8, _MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_3
LBB0_11:
Lloh21:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	add	w0, w9, w8
	b	LBB0_3
LBB0_12:
Lloh27:
	adrp	x8, _MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_PK_NONE,8,3            ; @MBEDTLS_PK_NONE
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_VERSION
	.comm	_MBEDTLS_ASN1_OCTET_STRING,4,2  ; @MBEDTLS_ASN1_OCTET_STRING
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ; @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ERR_PK_UNKNOWN_PK_ALG,4,2 ; @MBEDTLS_ERR_PK_UNKNOWN_PK_ALG
	.comm	_MBEDTLS_PK_ECKEY,8,3           ; @MBEDTLS_PK_ECKEY
	.comm	_MBEDTLS_PK_ECKEY_DH,8,3        ; @MBEDTLS_PK_ECKEY_DH
	.comm	_MBEDTLS_PK_RSA,8,3             ; @MBEDTLS_PK_RSA
	.no_dead_strip	_pk_parse_key_pkcs8_unencrypted_der
.subsections_via_symbols
