	.file	"extr_ectest.c_check_named_curve_lookup_test.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_named_curve_lookup_test, @function
check_named_curve_lookup_test:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rdi, edi
	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, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR curves[rip]
	mov	ebx, DWORD PTR [rax+rdi*4]
	xor	eax, eax
	call	BN_CTX_new@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	TEST_ptr@PLT
	test	eax, eax
	jne	.L19
	mov	r12d, eax
	xor	ebx, ebx
	xor	r14d, r14d
	xor	r15d, r15d
	xor	r13d, r13d
.L2:
	mov	rdi, r13
	call	EC_GROUP_free@PLT
	mov	rdi, r15
	call	EC_GROUP_free@PLT
	mov	rdi, r14
	call	ECPARAMETERS_free@PLT
	mov	rdi, rbx
	call	ECPARAMETERS_free@PLT
	mov	rdi, rbp
	call	BN_CTX_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	mov	edi, ebx
	call	EC_GROUP_new_by_curve_name@PLT
	mov	rdi, rax
	mov	r13, rax
	call	TEST_ptr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L4
	xor	esi, esi
	mov	rdi, r13
	call	EC_GROUP_get_ecparameters@PLT
	mov	rdi, rax
	mov	r14, rax
	call	TEST_ptr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
.L7:
	xor	ebx, ebx
	xor	r15d, r15d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	xor	ebx, ebx
	xor	r14d, r14d
	xor	r15d, r15d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r13
	call	EC_GROUP_free@PLT
	mov	rdi, r14
	call	EC_GROUP_new_from_ecparameters@PLT
	mov	rdi, rax
	mov	r13, rax
	call	TEST_ptr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	EC_GROUP_check_named_curve@PLT
	xor	esi, esi
	mov	edi, eax
	mov	r15d, eax
	call	TEST_int_gt@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	cmp	ebx, r15d
	je	.L8
	mov	edi, r15d
	xor	ebx, ebx
	call	EC_GROUP_new_by_curve_name@PLT
	mov	rdi, rax
	mov	r15, rax
	call	TEST_ptr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	xor	esi, esi
	mov	rdi, r15
	call	EC_GROUP_get_ecparameters@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	TEST_ptr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	mov	rdi, r15
	call	EC_GROUP_free@PLT
	mov	rdi, rbx
	call	EC_GROUP_new_from_ecparameters@PLT
	mov	rdi, rax
	mov	r15, rax
	call	TEST_ptr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	mov	rdx, rbp
	mov	rsi, r15
	mov	rdi, r13
	xor	r12d, r12d
	call	EC_GROUP_cmp@PLT
	xor	esi, esi
	mov	edi, eax
	call	TEST_int_eq@PLT
	test	eax, eax
	setne	r12b
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	xor	ebx, ebx
	xor	r15d, r15d
	mov	r12d, 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	check_named_curve_lookup_test, .-check_named_curve_lookup_test
	.comm	curves,8,8
	.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_ectest.c_check_named_curve_lookup_test.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_named_curve_lookup_test, %function
check_named_curve_lookup_test:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	ldr	r6, [r3, r0, lsl #2]
	bl	BN_CTX_new
	mov	r5, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	bne	.L18
	mov	r9, r4
	mov	r8, r4
	mov	r6, r4
	mov	r7, r4
.L2:
	mov	r0, r7
	bl	EC_GROUP_free
	mov	r0, r6
	bl	EC_GROUP_free
	mov	r0, r8
	bl	ECPARAMETERS_free
	mov	r0, r9
	bl	ECPARAMETERS_free
	mov	r0, r5
	bl	BN_CTX_free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r0, r6
	bl	EC_GROUP_new_by_curve_name
	mov	r7, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	beq	.L4
	mov	r1, #0
	mov	r0, r7
	bl	EC_GROUP_get_ecparameters
	mov	r8, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	bne	.L19
.L7:
	mov	r9, r4
	mov	r6, r4
	b	.L2
.L4:
	mov	r9, r4
	mov	r8, r4
	mov	r6, r4
	b	.L2
.L19:
	mov	r0, r7
	bl	EC_GROUP_free
	mov	r0, r8
	bl	EC_GROUP_new_from_ecparameters
	mov	r7, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	beq	.L7
	mov	r2, #0
	mov	r0, r7
	mov	r1, r2
	bl	EC_GROUP_check_named_curve
	mov	r1, #0
	mov	r9, r0
	bl	TEST_int_gt
	subs	r4, r0, #0
	beq	.L7
	cmp	r6, r9
	beq	.L8
	mov	r0, r9
	bl	EC_GROUP_new_by_curve_name
	mov	r6, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	moveq	r9, r4
	beq	.L2
	mov	r1, #0
	mov	r0, r6
	bl	EC_GROUP_get_ecparameters
	mov	r9, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	beq	.L2
	mov	r0, r6
	bl	EC_GROUP_free
	mov	r0, r9
	bl	EC_GROUP_new_from_ecparameters
	mov	r6, r0
	bl	TEST_ptr
	subs	r4, r0, #0
	beq	.L2
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	bl	EC_GROUP_cmp
	mov	r1, #0
	bl	TEST_int_eq
	subs	r4, r0, #0
	movne	r4, #1
	b	.L2
.L8:
	mov	r9, #0
	mov	r4, #1
	mov	r6, r9
	b	.L2
.L21:
	.align	2
.L20:
	.word	curves
	.size	check_named_curve_lookup_test, .-check_named_curve_lookup_test
	.comm	curves,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
