	.file	"extr_ecp_nistp521.c_select_point.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	select_point, @function
select_point:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	mov	edx, 24
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	mov	rdi, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rcx]
	call	memset@PLT
	test	ebp, ebp
	je	.L1
	mov	r9, r13
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, r12d
	mov	rdi, QWORD PTR [r9]
	xor	esi, r8d
	mov	eax, esi
	shr	eax, 4
	or	eax, esi
	mov	esi, eax
	shr	esi, 2
	or	eax, esi
	mov	esi, eax
	shr	esi
	or	esi, eax
	mov	eax, DWORD PTR NLIMBS[rip]
	and	esi, 1
	sub	esi, 1
	test	eax, eax
	je	.L3
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, eax
	add	eax, 1
	mov	ecx, DWORD PTR [rdi+rdx*4]
	and	ecx, esi
	or	DWORD PTR [rbx+rdx*4], ecx
	mov	edx, DWORD PTR NLIMBS[rip]
	lea	edx, [rdx+rdx*2]
	cmp	edx, eax
	ja	.L4
.L3:
	add	r8d, 1
	add	r9, 24
	cmp	ebp, r8d
	jne	.L5
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	select_point, .-select_point
	.comm	NLIMBS,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_ecp_nistp521.c_select_point.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	select_point, %function
select_point:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r7, r2
	mov	r0, r3
	mov	r2, #12
	mov	r1, #0
	ldr	r6, [r3]
	bl	memset
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r8, #0
	mov	r2, r7
	ldr	r7, .L16
.L5:
	eor	r1, r5, r8
	orr	r1, r1, r1, lsr #4
	ldr	r3, [r7]
	orr	r1, r1, r1, lsr #2
	orr	r1, r1, r1, lsr #1
	and	r1, r1, #1
	cmp	r3, #0
	ldr	r0, [r2]
	sub	r1, r1, #1
	beq	.L3
	mov	lr, #0
	sub	r0, r0, #4
	sub	ip, r6, #4
.L4:
	ldr	r9, [r0, #4]!
	ldr	r3, [ip, #4]!
	and	r9, r9, r1
	orr	r3, r3, r9
	str	r3, [ip]
	ldr	r3, [r7]
	add	lr, lr, #1
	add	r3, r3, r3, lsl #1
	cmp	r3, lr
	bhi	.L4
.L3:
	add	r8, r8, #1
	cmp	r4, r8
	add	r2, r2, #12
	bne	.L5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	NLIMBS
	.size	select_point, .-select_point
	.comm	NLIMBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
