	.file	"extr_ec_curve.c_ec_group_new_from_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ec_group_new_from_data, @function
ec_group_new_from_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbp, QWORD PTR 144[rsp]
	mov	rbx, QWORD PTR 136[rsp]
	test	rbp, rbp
	je	.L46
	xor	eax, eax
	call	BN_CTX_new@PLT
	mov	r12, rax
	test	rax, rax
	je	.L47
	movsx	rax, DWORD PTR 0[rbp]
	mov	r15d, DWORD PTR 4[rbp]
	xor	edx, edx
	lea	r14, 24[rbp+rax]
	mov	esi, r15d
	mov	DWORD PTR 44[rsp], eax
	mov	rdi, r14
	call	BN_bin2bn@PLT
	mov	r13, rax
	test	rax, rax
	je	.L8
	movsx	rax, r15d
	xor	edx, edx
	mov	esi, r15d
	lea	rcx, [r14+rax]
	mov	QWORD PTR 32[rsp], rax
	mov	rdi, rcx
	mov	QWORD PTR 8[rsp], rcx
	call	BN_bin2bn@PLT
	mov	r14, rax
	test	rax, rax
	je	.L8
	mov	rcx, QWORD PTR 8[rsp]
	add	rcx, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	esi, r15d
	mov	rdi, rcx
	mov	QWORD PTR 16[rsp], rcx
	call	BN_bin2bn@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L7
	test	rbx, rbx
	je	.L10
	xor	eax, eax
	call	rbx
	mov	rdi, rax
	call	EC_GROUP_new@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L44
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 8[rsp]
	mov	r8, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	test	eax, eax
	je	.L44
.L13:
	mov	esi, DWORD PTR 128[rsp]
	mov	rdi, rbx
	call	EC_GROUP_set_curve_name@PLT
	mov	rdi, rbx
	call	EC_POINT_new@PLT
	test	rax, rax
	je	.L48
	mov	rdi, QWORD PTR 16[rsp]
	xor	edx, edx
	add	rdi, QWORD PTR 32[rsp]
	mov	esi, r15d
	mov	QWORD PTR 24[rsp], rdi
	mov	QWORD PTR 48[rsp], rax
	call	BN_bin2bn@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r10, QWORD PTR 48[rsp]
	test	rax, rax
	mov	QWORD PTR 16[rsp], rax
	je	.L17
	add	rdi, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	esi, r15d
	mov	QWORD PTR 48[rsp], r10
	mov	QWORD PTR 56[rsp], rdi
	call	BN_bin2bn@PLT
	mov	r10, QWORD PTR 48[rsp]
	test	rax, rax
	mov	QWORD PTR 24[rsp], rax
	mov	rcx, rax
	je	.L17
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r10
	mov	r8, r12
	mov	rdi, rbx
	call	EC_POINT_set_affine_coordinates@PLT
	mov	r10, QWORD PTR 48[rsp]
	test	eax, eax
	je	.L49
	mov	rdi, QWORD PTR 56[rsp]
	xor	edx, edx
	add	rdi, QWORD PTR 32[rsp]
	mov	esi, r15d
	mov	QWORD PTR 48[rsp], r10
	call	BN_bin2bn@PLT
	mov	r10, QWORD PTR 48[rsp]
	test	rax, rax
	mov	r15, rax
	je	.L20
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR 32[rsp], r10
	call	BN_set_word@PLT
	mov	r10, QWORD PTR 32[rsp]
	test	eax, eax
	je	.L20
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, r10
	mov	rdx, r15
	mov	rdi, rbx
	call	EC_GROUP_set_generator@PLT
	mov	r10, QWORD PTR 32[rsp]
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR 44[rsp]
	test	eax, eax
	je	.L22
	mov	edx, DWORD PTR 44[rsp]
	lea	rsi, 24[rbp]
	mov	rdi, rbx
	mov	QWORD PTR 32[rsp], r10
	call	EC_GROUP_set_seed@PLT
	mov	r10, QWORD PTR 32[rsp]
	test	eax, eax
	jne	.L22
.L43:
	mov	esi, DWORD PTR ERR_R_EC_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	call	ECerr@PLT
	mov	r10, QWORD PTR 32[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r14d, r14d
.L7:
	mov	esi, DWORD PTR ERR_R_BN_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	xor	r15d, r15d
	xor	ebx, ebx
	call	ECerr@PLT
	xor	r10d, r10d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 0
.L5:
	mov	rdi, rbx
	mov	QWORD PTR 32[rsp], r10
	xor	ebx, ebx
	call	EC_GROUP_free@PLT
	mov	r10, QWORD PTR 32[rsp]
.L22:
	mov	rdi, r10
	call	EC_POINT_free@PLT
	mov	rdi, r12
	call	BN_CTX_free@PLT
	mov	rdi, r13
	call	BN_free@PLT
	mov	rdi, r14
	call	BN_free@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	BN_free@PLT
	mov	rdi, r15
	call	BN_free@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	BN_free@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	BN_free@PLT
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	test	rbx, rbx
	je	.L3
	xor	eax, eax
	call	rbx
	mov	rbp, rax
.L3:
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	EC_GROUP_new@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR NID_X9_62_prime_field[rip]
	mov	rcx, r12
	mov	rsi, r14
	mov	rdi, r13
	mov	rdx, QWORD PTR 8[rsp]
	cmp	QWORD PTR 8[rbp], rax
	je	.L50
	call	EC_GROUP_new_curve_GF2m@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L44:
	mov	esi, DWORD PTR ERR_R_EC_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	xor	r15d, r15d
	call	ECerr@PLT
	xor	r10d, r10d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	xor	r15d, r15d
	xor	r14d, r14d
	xor	r13d, r13d
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	xor	ebx, ebx
	call	ECerr@PLT
	xor	r10d, r10d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR ERR_R_BN_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	mov	QWORD PTR 32[rsp], r10
	xor	r15d, r15d
	call	ECerr@PLT
	mov	r10, QWORD PTR 32[rsp]
	mov	QWORD PTR 24[rsp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR ERR_R_BN_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	mov	QWORD PTR 32[rsp], r10
	call	ECerr@PLT
	mov	r10, QWORD PTR 32[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L48:
	mov	esi, DWORD PTR ERR_R_EC_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	mov	QWORD PTR 32[rsp], rax
	xor	r15d, r15d
	call	ECerr@PLT
	mov	r10, QWORD PTR 32[rsp]
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L49:
	mov	esi, DWORD PTR ERR_R_EC_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GROUP_NEW_FROM_DATA[rip]
	mov	QWORD PTR 32[rsp], r10
	xor	r15d, r15d
	call	ECerr@PLT
	mov	r10, QWORD PTR 32[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L50:
	call	EC_GROUP_new_curve_GFp@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L13
	jmp	.L44
	.cfi_endproc
.LFE0:
	.size	ec_group_new_from_data, .-ec_group_new_from_data
	.comm	NID_X9_62_prime_field,8,8
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	ERR_R_EC_LIB,4,4
	.comm	ERR_R_BN_LIB,4,4
	.comm	EC_F_EC_GROUP_NEW_FROM_DATA,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_ec_curve.c_ec_group_new_from_data.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ec_group_new_from_data, %function
ec_group_new_from_data:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #44
	add	r3, sp, #40
	stmdb	r3, {r0, r1, r2}
	ldr	r4, [sp, #36]
	ldr	r7, [sp, #32]
	cmp	r4, #0
	beq	.L46
	bl	BN_CTX_new
	subs	r5, r0, #0
	beq	.L47
	ldr	r3, [r4]
	ldr	r6, [r4, #4]
	add	r10, r3, #16
	add	r10, r4, r10
	mov	r0, r10
	mov	r1, r6
	mov	r2, #0
	str	r3, [sp, #20]
	bl	BN_bin2bn
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L8
	add	r10, r10, r6
	mov	r0, r10
	mov	r2, #0
	mov	r1, r6
	bl	BN_bin2bn
	subs	r8, r0, #0
	beq	.L8
	add	r10, r10, r6
	mov	r0, r10
	mov	r2, #0
	mov	r1, r6
	bl	BN_bin2bn
	subs	r9, r0, #0
	beq	.L7
	cmp	r7, #0
	beq	.L10
	blx	r7
	bl	EC_GROUP_new
	subs	r7, r0, #0
	beq	.L12
	ldr	r3, [r7]
	str	r5, [sp]
	ldr	fp, [r3]
	mov	r2, r8
	mov	r3, r9
	ldr	r1, [sp, #12]
	blx	fp
	cmp	r0, #0
	beq	.L12
.L13:
	ldr	r1, [sp, #28]
	mov	r0, r7
	bl	EC_GROUP_set_curve_name
	mov	r0, r7
	bl	EC_POINT_new
	subs	r3, r0, #0
	str	r3, [sp, #16]
	beq	.L48
	add	fp, r10, r6
	mov	r0, fp
	mov	r2, #0
	mov	r1, r6
	bl	BN_bin2bn
	subs	r10, r0, #0
	beq	.L17
	add	r3, fp, r6
	mov	r0, r3
	mov	r2, #0
	mov	r1, r6
	str	r3, [sp, #24]
	bl	BN_bin2bn
	subs	fp, r0, #0
	beq	.L17
	mov	r3, fp
	mov	r2, r10
	mov	r0, r7
	ldr	r1, [sp, #16]
	str	r5, [sp]
	bl	EC_POINT_set_affine_coordinates
	subs	r3, r0, #0
	beq	.L49
	ldr	r3, [sp, #24]
	mov	r1, r6
	add	r0, r3, r6
	mov	r2, #0
	bl	BN_bin2bn
	subs	r6, r0, #0
	beq	.L20
	mov	r0, r10
	ldr	r1, [r4, #12]
	bl	BN_set_word
	cmp	r0, #0
	beq	.L20
	mov	r3, r10
	mov	r2, r6
	mov	r0, r7
	ldr	r1, [sp, #16]
	bl	EC_GROUP_set_generator
	cmp	r0, #0
	beq	.L43
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L22
	mov	r2, r3
	mov	r0, r7
	add	r1, r4, #16
	bl	EC_GROUP_set_seed
	cmp	r0, #0
	bne	.L22
.L43:
	ldr	r2, .L51
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	b	.L5
.L8:
	mov	r8, #0
.L7:
	mov	r6, #0
	mov	fp, r6
	mov	r10, r6
	mov	r9, r6
	mov	r7, r6
	ldr	r2, .L51+8
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	str	r6, [sp, #16]
.L5:
	mov	r0, r7
	bl	EC_GROUP_free
	mov	r7, #0
.L22:
	ldr	r0, [sp, #16]
	bl	EC_POINT_free
	mov	r0, r5
	bl	BN_CTX_free
	ldr	r0, [sp, #12]
	bl	BN_free
	mov	r0, r8
	bl	BN_free
	mov	r0, r9
	bl	BN_free
	mov	r0, r6
	bl	BN_free
	mov	r0, r10
	bl	BN_free
	mov	r0, fp
	bl	BN_free
	mov	r0, r7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	cmp	r7, #0
	beq	.L3
	blx	r7
	mov	r4, r0
.L3:
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	EC_GROUP_new
.L10:
	ldr	r3, .L51+12
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	mov	r1, r8
	cmp	r2, r3
	ldr	r0, [sp, #12]
	mov	r3, r5
	mov	r2, r9
	beq	.L50
	bl	EC_GROUP_new_curve_GF2m
	subs	r7, r0, #0
	bne	.L13
.L44:
	ldr	r2, .L51
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	mov	r6, r7
	mov	fp, r7
	mov	r10, r7
	str	r7, [sp, #16]
	b	.L5
.L47:
	ldr	r2, .L51+16
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	mov	r6, r5
	mov	fp, r5
	mov	r10, r5
	mov	r9, r5
	mov	r8, r5
	mov	r7, r5
	str	r5, [sp, #12]
	str	r5, [sp, #16]
	b	.L5
.L12:
	mov	r6, #0
	ldr	r2, .L51
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	mov	fp, r6
	mov	r10, r6
	str	r6, [sp, #16]
	b	.L5
.L17:
	mov	r6, #0
	ldr	r2, .L51+8
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	mov	fp, r6
	b	.L5
.L20:
	ldr	r2, .L51+8
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	b	.L5
.L48:
	ldr	r2, .L51
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	ldr	r10, [sp, #16]
	mov	r6, r10
	mov	fp, r10
	b	.L5
.L49:
	ldr	r2, .L51+4
	ldr	r1, .L51
	ldr	r0, [r2]
	ldr	r1, [r1]
	mov	r6, r3
	bl	ECerr
	b	.L5
.L50:
	bl	EC_GROUP_new_curve_GFp
	subs	r7, r0, #0
	bne	.L13
	b	.L44
.L52:
	.align	2
.L51:
	.word	ERR_R_EC_LIB
	.word	EC_F_EC_GROUP_NEW_FROM_DATA
	.word	ERR_R_BN_LIB
	.word	NID_X9_62_prime_field
	.word	ERR_R_MALLOC_FAILURE
	.size	ec_group_new_from_data, .-ec_group_new_from_data
	.comm	NID_X9_62_prime_field,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	ERR_R_EC_LIB,4,4
	.comm	ERR_R_BN_LIB,4,4
	.comm	EC_F_EC_GROUP_NEW_FROM_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
