	.file	"extr_curve25519.c_ge_double_scalarmult_vartime.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ge_double_scalarmult_vartime, @function
ge_double_scalarmult_vartime:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 600
	.cfi_def_cfa_offset 656
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 584[rsp], rax
	xor	eax, eax
	lea	r13, 64[rsp]
	lea	rbx, 28[rsp]
	mov	rdi, r13
	lea	r14, 320[rsp]
	call	slide@PLT
	mov	rsi, rbp
	mov	rdi, r14
	lea	rbp, 20[rsp]
	call	slide@PLT
	lea	rax, 32[rsp]
	mov	rsi, r12
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	ge_p3_to_cached@PLT
	mov	rsi, r12
	mov	rdi, rbp
	lea	r12, 24[rsp]
	call	ge_p3_dbl@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	ge_p1p1_to_p3@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdx, 36[rsp]
	mov	rsi, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ge_p3_to_cached@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdx, 40[rsp]
	mov	rsi, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ge_p3_to_cached@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdx, 44[rsp]
	mov	rsi, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ge_p3_to_cached@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdx, 48[rsp]
	mov	rsi, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ge_p3_to_cached@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdx, 52[rsp]
	mov	rsi, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ge_p3_to_cached@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdx, 56[rsp]
	mov	rsi, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ge_p3_to_cached@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ge_add@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	lea	rdi, 60[rsp]
	mov	rsi, r12
	call	ge_p3_to_cached@PLT
	mov	rdi, r15
	call	ge_p2_0@PLT
	mov	eax, 255
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	BYTE PTR [r14+rax], 0
	jne	.L9
	sub	rax, 1
	cmp	rax, -1
	je	.L1
.L3:
	cmp	BYTE PTR 0[r13+rax], 0
	movsx	rbx, eax
	je	.L21
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	jne	.L22
.L6:
	cmp	BYTE PTR [r14+rbx], 0
	jg	.L23
.L7:
	jne	.L24
.L8:
	mov	rsi, rbp
	mov	rdi, r15
	sub	rbx, 1
	call	ge_p1p1_to_p2@PLT
	test	ebx, ebx
	js	.L1
.L9:
	mov	rsi, r15
	mov	rdi, rbp
	call	ge_p2_dbl@PLT
	cmp	BYTE PTR 0[r13+rbx], 0
	jle	.L5
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	rsi, r12
	mov	rdi, rbp
	movzx	edx, BYTE PTR 0[r13+rbx]
	mov	eax, edx
	shr	al, 7
	add	eax, edx
	sar	al
	movsx	rax, al
	lea	rdx, [rcx+rax*4]
	call	ge_add@PLT
	cmp	BYTE PTR [r14+rbx], 0
	jle	.L7
.L23:
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	movzx	edx, BYTE PTR [r14+rbx]
	mov	rsi, r12
	mov	rdi, rbp
	mov	eax, edx
	shr	al, 7
	add	eax, edx
	mov	rdx, QWORD PTR Bi[rip]
	sar	al
	movsx	rax, al
	lea	rdx, [rdx+rax*4]
	call	ge_madd@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	rsi, r12
	mov	rdi, rbp
	movsx	edx, BYTE PTR 0[r13+rbx]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	neg	eax
	cdqe
	lea	rdx, [rcx+rax*4]
	call	ge_sub@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, rbp
	mov	rdi, r12
	call	ge_p1p1_to_p3@PLT
	movsx	edx, BYTE PTR [r14+rbx]
	mov	rsi, r12
	mov	rdi, rbp
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	rdx, QWORD PTR Bi[rip]
	sar	eax
	neg	eax
	cdqe
	lea	rdx, [rdx+rax*4]
	call	ge_msub@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 584[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 600
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ge_double_scalarmult_vartime, .-ge_double_scalarmult_vartime
	.comm	Bi,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_curve25519.c_ge_double_scalarmult_vartime.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ge_double_scalarmult_vartime, %function
ge_double_scalarmult_vartime:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r3
	mov	r4, r2
	sub	sp, sp, #560
	ldr	r3, .L20
	add	r7, sp, #44
	mov	r6, r0
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #556]
	mov	r3,#0
	add	r8, sp, #12
	bl	slide
	mov	r1, r5
	add	r0, sp, #300
	bl	slide
	mov	r1, r4
	mov	r0, r8
	bl	ge_p3_to_cached
	mov	r1, r4
	mov	r4, #255
	mov	r0, sp
	bl	ge_p3_dbl
	mov	r1, sp
	add	r0, sp, #8
	bl	ge_p1p1_to_p3
	mov	r2, r8
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #16
	bl	ge_p3_to_cached
	add	r2, sp, #16
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #20
	bl	ge_p3_to_cached
	add	r2, sp, #20
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #24
	bl	ge_p3_to_cached
	add	r2, sp, #24
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #28
	bl	ge_p3_to_cached
	add	r2, sp, #28
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #32
	bl	ge_p3_to_cached
	add	r2, sp, #32
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #36
	bl	ge_p3_to_cached
	add	r2, sp, #36
	add	r1, sp, #8
	mov	r0, sp
	bl	ge_add
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	add	r1, sp, #4
	add	r0, sp, #40
	bl	ge_p3_to_cached
	mov	r0, r6
	bl	ge_p2_0
	add	r2, sp, #552
	add	r3, r7, r4
	add	r2, r2, #3
	b	.L3
.L15:
	ldrsb	r1, [r2], #-1
	cmp	r1, #0
	bne	.L2
	subs	r4, r4, #1
	bcc	.L1
.L3:
	ldrsb	r1, [r3], #-1
	cmp	r1, #0
	beq	.L15
.L2:
	add	r3, sp, #300
	add	r5, r3, r4
	ldr	r10, .L20+4
	add	r4, r7, r4
	b	.L9
.L5:
	bne	.L16
.L6:
	ldrsb	r3, [r5]
	cmp	r3, #0
	bgt	.L17
.L7:
	bne	.L18
.L8:
	mov	r1, sp
	mov	r0, r6
	bl	ge_p1p1_to_p2
	cmp	r9, r7
	sub	r5, r5, #1
	beq	.L1
.L9:
	mov	r1, r6
	mov	r0, sp
	bl	ge_p2_dbl
	ldrsb	r3, [r4]
	mov	r9, r4
	cmp	r3, #0
	sub	r4, r4, #1
	ble	.L5
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	ldrsb	r2, [r4, #1]
	mov	r0, sp
	add	r2, r2, r2, lsr #31
	asr	r2, r2, #1
	add	r1, sp, #4
	add	r2, r8, r2, lsl #2
	bl	ge_add
	ldrsb	r3, [r5]
	cmp	r3, #0
	ble	.L7
.L17:
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	ldrsb	r3, [r5]
	ldr	r2, [r10]
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	mov	r0, sp
	add	r2, r2, r3, lsl #2
	add	r1, sp, #4
	bl	ge_madd
	b	.L8
.L16:
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	ldrsb	r2, [r4, #1]
	mov	r0, sp
	add	r2, r2, r2, lsr #31
	asr	r2, r2, #1
	add	r1, sp, #4
	sub	r2, r8, r2, lsl #2
	bl	ge_sub
	b	.L6
.L18:
	mov	r1, sp
	add	r0, sp, #4
	bl	ge_p1p1_to_p3
	ldrsb	r3, [r5]
	ldr	r2, [r10]
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	mov	r0, sp
	sub	r2, r2, r3, lsl #2
	add	r1, sp, #4
	bl	ge_msub
	b	.L8
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #556]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #560
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	Bi
	.size	ge_double_scalarmult_vartime, .-ge_double_scalarmult_vartime
	.comm	Bi,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
