	.file	"extr_pkparse.c_pk_get_ecparams.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pk_get_ecparams, @function
pk_get_ecparams:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	movzx	ecx, BYTE PTR [rax]
	mov	BYTE PTR [rdx], cl
	cmp	cl, BYTE PTR MBEDTLS_ASN1_OID[rip]
	je	.L2
	mov	eax, DWORD PTR MBEDTLS_ERR_ASN1_UNEXPECTED_TAG[rip]
	add	eax, DWORD PTR MBEDTLS_ERR_PK_KEY_INVALID_FORMAT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	lea	rdx, 16[rdx]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	mbedtls_asn1_get_tag@PLT
	test	eax, eax
	jne	.L8
	mov	rdx, QWORD PTR [rbx]
	movsx	rcx, DWORD PTR 16[rbp]
	mov	QWORD PTR 8[rbp], rdx
	add	rdx, rcx
	mov	QWORD PTR [rbx], rdx
	cmp	rdx, r12
	je	.L1
	mov	eax, DWORD PTR MBEDTLS_ERR_ASN1_LENGTH_MISMATCH[rip]
.L8:
	add	eax, DWORD PTR MBEDTLS_ERR_PK_KEY_INVALID_FORMAT[rip]
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pk_get_ecparams, .-pk_get_ecparams
	.comm	MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,4
	.comm	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,4
	.comm	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,4
	.comm	MBEDTLS_ASN1_SEQUENCE,4,4
	.comm	MBEDTLS_ASN1_OID,1,1
	.comm	MBEDTLS_ASN1_CONSTRUCTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pkparse.c_pk_get_ecparams.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pk_get_ecparams, %function
pk_get_ecparams:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r2, [r0]
	ldr	r3, .L8
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L2:
	add	r2, r4, #8
	mov	r5, r0
	mov	r6, r1
	bl	mbedtls_asn1_get_tag
	cmp	r0, #0
	bne	.L7
	ldr	r2, [r4, #8]
	ldr	r3, [r5]
	str	r3, [r4, #4]
	add	r3, r3, r2
	cmp	r3, r6
	str	r3, [r5]
	ldrne	r2, .L8+4
	ldrne	r3, .L8+12
	ldrne	r0, [r2]
	ldrne	r3, [r3]
	addne	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	add	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	MBEDTLS_ASN1_OID
	.word	MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.word	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.word	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.size	pk_get_ecparams, .-pk_get_ecparams
	.comm	MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,4
	.comm	MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,4
	.comm	MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,4
	.comm	MBEDTLS_ASN1_SEQUENCE,4,4
	.comm	MBEDTLS_ASN1_OID,1,1
	.comm	MBEDTLS_ASN1_CONSTRUCTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
