	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_parse_key_sec1_der
_pk_parse_key_sec1_der:                 ## @pk_parse_key_sec1_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	%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	%rdi, %r14
	movq	%rsi, -48(%rbp)
	addq	%rdx, %rsi
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r12
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %r15
	addq	-56(%rbp), %r15
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_int
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movl	%eax, %ebx
LBB0_3:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_4:
	addl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$1, -64(%rbp)
	jne	LBB0_11
## %bb.7:
	movq	_MBEDTLS_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_2
## %bb.8:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mbedtls_mpi_read_binary
	testl	%eax, %eax
	je	LBB0_12
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mbedtls_ecp_keypair_free
	jmp	LBB0_3
LBB0_11:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_12:
	movq	-48(%rbp), %rax
	addq	-56(%rbp), %rax
	movq	%rax, -48(%rbp)
	cmpq	%r15, %rax
	je	LBB0_17
## %bb.13:
	movq	_MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPCREL(%rip), %r13
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movl	%eax, %ebx
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
LBB0_15:
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	orl	$1, %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_23
## %bb.16:
	movl	%eax, %ebx
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
LBB0_17:
	leaq	4(%r14), %rcx
	leaq	8(%r14), %rsi
	movq	%rcx, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mbedtls_ecp_mul
	testl	%eax, %eax
	jne	LBB0_9
LBB0_18:
	leaq	4(%r14), %rdi
	movq	%r14, %rsi
	callq	_mbedtls_ecp_check_privkey
	testl	%eax, %eax
	je	LBB0_26
## %bb.19:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_20:
	movq	-48(%rbp), %rsi
	addq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdi
	leaq	-60(%rbp), %rdx
	callq	_pk_get_ecparams
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	leaq	4(%r14), %rsi
	leaq	-60(%rbp), %rdi
	callq	_pk_use_ecparams
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
LBB0_22:
	movq	%r14, %rdi
	callq	_mbedtls_ecp_keypair_free
	jmp	LBB0_5
LBB0_23:
	movq	-48(%rbp), %r15
	addq	-56(%rbp), %r15
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_bitstring_null
	testl	%eax, %eax
	jne	LBB0_2
## %bb.24:
	movq	-48(%rbp), %rax
	addq	-56(%rbp), %rax
	cmpq	%r15, %rax
	je	LBB0_27
## %bb.25:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_4
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_27:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_pk_get_ecpubkey
	testl	%eax, %eax
	je	LBB0_18
## %bb.28:
	movq	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.29:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.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_ASN1_CONTEXT_SPECIFIC,4,2 ## @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
	.no_dead_strip	_pk_parse_key_sec1_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_sec1_der
_pk_parse_key_sec1_der:                 ; @pk_parse_key_sec1_der
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	str	x1, [sp]
Lloh0:
	adrp	x22, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	add	x1, x1, x2
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, sp
	add	x2, sp, #16
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp]
	ldr	x9, [sp, #16]
	add	x20, x8, x9
	mov	x0, sp
	add	x2, sp, #28
	mov	x1, x20
	bl	_mbedtls_asn1_get_int
	cbz	w0, LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w21, w8, w0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, sp
	add	x2, sp, #16
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_2
; %bb.6:
	ldr	x1, [sp]
	ldr	x2, [sp, #16]
	mov	x0, x19
	bl	_mbedtls_mpi_read_binary
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, x0
LBB0_8:
	mov	x0, x19
	bl	_mbedtls_ecp_keypair_free
Lloh11:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w21, w8, w21
	b	LBB0_3
LBB0_9:
Lloh14:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_10:
	ldr	x8, [sp, #16]
	ldr	x9, [sp]
	add	x8, x9, x8
	cmp	x8, x20
	str	x8, [sp]
	b.eq	LBB0_15
; %bb.11:
Lloh17:
	adrp	x23, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGE
Lloh18:
	ldr	x23, [x23, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w3, w9, w8
	mov	x0, sp
	add	x2, sp, #16
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_18
; %bb.12:
	mov	x21, x0
Lloh19:
	adrp	x8, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_13:
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w8, w9
	orr	w3, w8, #0x1
	mov	x0, sp
	add	x2, sp, #16
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_20
; %bb.14:
	mov	x20, x0
Lloh22:
	adrp	x8, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_15:
	add	x0, x19, #4
	add	x1, x19, #8
	mov	x2, x19
	mov	x3, x0
	mov	x4, #0
	mov	x5, #0
	bl	_mbedtls_ecp_mul
	cbz	w0, LBB0_26
; %bb.16:
	mov	x20, x0
LBB0_17:
	mov	x0, x19
	bl	_mbedtls_ecp_keypair_free
Lloh25:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w21, w8, w20
	b	LBB0_3
LBB0_18:
	ldr	x8, [sp]
	ldr	x9, [sp, #16]
	add	x1, x8, x9
	mov	x0, sp
	add	x2, sp, #12
	bl	_pk_get_ecparams
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.19:
	add	x1, x19, #4
	add	x0, sp, #12
	bl	_pk_use_ecparams
	mov	x21, x0
	cbnz	w0, LBB0_27
	b	LBB0_13
LBB0_20:
	ldr	x8, [sp]
	ldr	x9, [sp, #16]
	add	x20, x8, x9
	mov	x0, sp
	add	x2, sp, #16
	mov	x1, x20
	bl	_mbedtls_asn1_get_bitstring_null
	cbnz	w0, LBB0_2
; %bb.21:
	ldr	x8, [sp]
	ldr	x9, [sp, #16]
	add	x8, x8, x9
	cmp	x8, x20
	b.eq	LBB0_23
; %bb.22:
Lloh28:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	add	w21, w9, w8
	b	LBB0_3
LBB0_23:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	_pk_get_ecpubkey
	cbz	w0, LBB0_26
; %bb.24:
Lloh34:
	adrp	x8, _MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.25:
Lloh37:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh39:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_26:
	add	x0, x19, #4
	mov	x1, x19
	bl	_mbedtls_ecp_check_privkey
	mov	x21, x0
	cbz	w0, LBB0_3
LBB0_27:
	mov	x0, x19
	bl	_mbedtls_ecp_keypair_free
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.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_ASN1_CONTEXT_SPECIFIC,4,2 ; @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE
	.no_dead_strip	_pk_parse_key_sec1_der
.subsections_via_symbols
