	.file	"extr_ec2_oct.c_ec_GF2m_simple_set_compressed_coordinates.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ec_GF2m_simple_set_compressed_coordinates
	.type	ec_GF2m_simple_set_compressed_coordinates, @function
ec_GF2m_simple_set_compressed_coordinates:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	DWORD PTR 20[rsp], ecx
	call	ERR_clear_error@PLT
	test	rbp, rbp
	je	.L40
.L2:
	mov	rdi, rbp
	call	BN_CTX_start@PLT
	mov	rdi, rbp
	call	BN_CTX_get@PLT
	mov	rdi, rbp
	mov	r15, rax
	call	BN_CTX_get@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	BN_CTX_get@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	BN_CTX_get@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR 8[r12]
	mov	rsi, r14
	mov	rdi, r13
	call	BN_GF2m_mod_arr@PLT
	test	eax, eax
	jne	.L41
.L6:
	xor	r14d, r14d
.L5:
	mov	rdi, rbp
	call	BN_CTX_end@PLT
	mov	rdi, rbx
	call	BN_CTX_free@PLT
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L41:
	.cfi_restore_state
	mov	rdi, r13
	call	BN_is_zero@PLT
	test	rax, rax
	jne	.L42
	mov	rax, QWORD PTR [r12]
	mov	rcx, rbp
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r12
	call	[QWORD PTR 16[rax]]
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR 24[r12]
	mov	r8, rbp
	mov	rcx, r15
	mov	rsi, r15
	mov	rdi, r12
	call	[QWORD PTR 8[rax]]
	test	eax, eax
	je	.L6
	mov	rsi, QWORD PTR 16[r12]
	mov	rdx, r15
	mov	rdi, r15
	call	BN_GF2m_add@PLT
	test	eax, eax
	je	.L6
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r15
	call	BN_GF2m_add@PLT
	test	eax, eax
	je	.L6
	mov	edx, DWORD PTR 8[r12]
	mov	rdi, QWORD PTR 24[rsp]
	mov	rcx, rbp
	mov	rsi, r15
	call	BN_GF2m_mod_solve_quad_arr@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L43
	mov	r15, QWORD PTR 24[rsp]
	mov	rdi, r15
	call	BN_is_odd@PLT
	mov	rcx, r15
	mov	r15, QWORD PTR [rsp]
	mov	r8, rbp
	mov	r14, rax
	mov	rax, QWORD PTR [r12]
	mov	rdx, r13
	mov	rdi, r12
	mov	rsi, r15
	call	[QWORD PTR [rax]]
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	setne	dl
	test	r14, r14
	setne	al
	cmp	dl, al
	je	.L10
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r15
	call	BN_GF2m_add@PLT
	test	eax, eax
	jne	.L10
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L40:
	xor	eax, eax
	call	BN_CTX_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
	mov	rbx, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edx, DWORD PTR 8[r12]
	mov	esi, DWORD PTR 24[r12]
	mov	rcx, rbp
	mov	rdi, QWORD PTR [rsp]
	call	BN_GF2m_mod_sqrt_arr@PLT
	test	eax, eax
	je	.L6
.L10:
	mov	rcx, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	r8, rbp
	mov	rdx, r13
	mov	rdi, r12
	xor	r14d, r14d
	call	EC_POINT_set_affine_coordinates@PLT
	test	eax, eax
	setne	r14b
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r14d, r14d
	jmp	.L1
.L43:
	xor	eax, eax
	call	ERR_peek_last_error@PLT
	mov	rdi, rax
	mov	r12, rax
	call	ERR_GET_LIB@PLT
	cmp	rax, QWORD PTR ERR_LIB_BN[rip]
	je	.L44
.L9:
	mov	esi, DWORD PTR ERR_R_BN_LIB[rip]
	mov	edi, DWORD PTR EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES[rip]
	call	ECerr@PLT
	jmp	.L5
.L44:
	mov	rdi, r12
	call	ERR_GET_REASON@PLT
	cmp	rax, QWORD PTR BN_R_NO_SOLUTION[rip]
	jne	.L9
	xor	eax, eax
	call	ERR_clear_error@PLT
	mov	esi, DWORD PTR EC_R_INVALID_COMPRESSED_POINT[rip]
	mov	edi, DWORD PTR EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES[rip]
	call	ECerr@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ec_GF2m_simple_set_compressed_coordinates, .-ec_GF2m_simple_set_compressed_coordinates
	.comm	ERR_R_BN_LIB,4,4
	.comm	ERR_LIB_BN,8,8
	.comm	EC_R_INVALID_COMPRESSED_POINT,4,4
	.comm	EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES,4,4
	.comm	BN_R_NO_SOLUTION,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_ec2_oct.c_ec_GF2m_simple_set_compressed_coordinates.c"
	.text
	.align	2
	.global	ec_GF2m_simple_set_compressed_coordinates
	.syntax unified
	.arm
	.fpu softvfp
	.type	ec_GF2m_simple_set_compressed_coordinates, %function
ec_GF2m_simple_set_compressed_coordinates:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r4, [sp, #56]
	mov	r5, r0
	mov	r7, r1
	mov	r8, r2
	str	r3, [sp, #8]
	bl	ERR_clear_error
	cmp	r4, #0
	movne	fp, #0
	beq	.L39
.L2:
	mov	r0, r4
	bl	BN_CTX_start
	mov	r0, r4
	bl	BN_CTX_get
	mov	r9, r0
	mov	r0, r4
	bl	BN_CTX_get
	mov	r6, r0
	mov	r0, r4
	bl	BN_CTX_get
	mov	r10, r0
	mov	r0, r4
	bl	BN_CTX_get
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L6
	mov	r1, r8
	mov	r0, r6
	ldr	r2, [r5, #4]
	bl	BN_GF2m_mod_arr
	cmp	r0, #0
	bne	.L40
.L6:
	mov	r8, #0
.L5:
	mov	r0, r4
	bl	BN_CTX_end
	mov	r0, fp
	bl	BN_CTX_free
.L1:
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	mov	r0, r6
	bl	BN_is_zero
	cmp	r0, #0
	bne	.L41
	ldr	r2, [r5]
	mov	r3, r4
	ldr	r8, [r2, #8]
	mov	r1, r9
	mov	r2, r6
	mov	r0, r5
	blx	r8
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r5]
	str	r4, [sp]
	ldr	r8, [r3, #4]
	mov	r1, r9
	mov	r3, r9
	mov	r0, r5
	ldr	r2, [r5, #12]
	blx	r8
	cmp	r0, #0
	beq	.L6
	mov	r2, r9
	mov	r0, r9
	ldr	r1, [r5, #8]
	bl	BN_GF2m_add
	cmp	r0, #0
	beq	.L6
	mov	r2, r9
	mov	r1, r6
	mov	r0, r9
	bl	BN_GF2m_add
	cmp	r0, #0
	beq	.L6
	mov	r1, r9
	mov	r3, r4
	ldr	r2, [r5, #4]
	ldr	r0, [sp, #12]
	bl	BN_GF2m_mod_solve_quad_arr
	subs	r8, r0, #0
	beq	.L42
	ldr	r9, [sp, #12]
	mov	r0, r9
	bl	BN_is_odd
	ldr	r2, [r5]
	str	r4, [sp]
	mov	r3, r9
	mov	r8, r0
	ldr	r9, [r2]
	mov	r1, r10
	mov	r2, r6
	mov	r0, r5
	blx	r9
	cmp	r0, #0
	beq	.L6
	ldr	r3, [sp, #8]
	subs	r3, r3, #0
	movne	r3, #1
	subs	r8, r8, #0
	movne	r8, #1
	cmp	r3, r8
	beq	.L10
	mov	r2, r6
	mov	r1, r10
	mov	r0, r10
	bl	BN_GF2m_add
	cmp	r0, #0
	bne	.L10
	b	.L6
.L39:
	bl	BN_CTX_new
	subs	r4, r0, #0
	movne	fp, r4
	bne	.L2
	mov	r8, r4
	b	.L1
.L41:
	mov	r3, r4
	mov	r0, r10
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #12]
	bl	BN_GF2m_mod_sqrt_arr
	cmp	r0, #0
	beq	.L6
.L10:
	mov	r3, r10
	mov	r2, r6
	mov	r1, r7
	mov	r0, r5
	str	r4, [sp]
	bl	EC_POINT_set_affine_coordinates
	subs	r8, r0, #0
	movne	r8, #1
	b	.L5
.L42:
	bl	ERR_peek_last_error
	mov	r5, r0
	bl	ERR_GET_LIB
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L43
.L9:
	ldr	r2, .L44+4
	ldr	r3, .L44+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	b	.L5
.L43:
	mov	r0, r5
	bl	ERR_GET_REASON
	ldr	r3, .L44+12
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L9
	bl	ERR_clear_error
	ldr	r2, .L44+16
	ldr	r3, .L44+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ECerr
	b	.L5
.L45:
	.align	2
.L44:
	.word	ERR_LIB_BN
	.word	ERR_R_BN_LIB
	.word	EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES
	.word	BN_R_NO_SOLUTION
	.word	EC_R_INVALID_COMPRESSED_POINT
	.size	ec_GF2m_simple_set_compressed_coordinates, .-ec_GF2m_simple_set_compressed_coordinates
	.comm	ERR_R_BN_LIB,4,4
	.comm	ERR_LIB_BN,4,4
	.comm	EC_R_INVALID_COMPRESSED_POINT,4,4
	.comm	EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES,4,4
	.comm	BN_R_NO_SOLUTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
