	.file	"extr_curve25519.naclref.c_square.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	square, @function
square:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	r10, rdi
	xor	r11d, r11d
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r9d, r8d
	xor	edx, edx
	add	r8d, 1
	xor	eax, eax
	mov	ecx, r9d
	test	r11, r11
	je	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, eax
	mov	ebx, ecx
	add	eax, 1
	sub	ecx, 1
	mov	edi, DWORD PTR [rsi+rdi*4]
	imul	edi, DWORD PTR [rsi+rbx*4]
	add	edx, edi
	cmp	eax, ecx
	jb	.L3
	cmp	r8d, 30
	ja	.L4
.L8:
	mov	edi, r8d
	mov	ecx, 31
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, edi
	mov	ebx, ecx
	add	edi, 1
	sub	ecx, 1
	mov	eax, DWORD PTR [rsi+rax*4]
	imul	eax, DWORD PTR [rsi+rbx*4]
	imul	eax, eax, 38
	add	edx, eax
	cmp	edi, ecx
	jb	.L5
.L4:
	add	edx, edx
	test	r9b, 1
	jne	.L6
	shr	r9d
	mov	eax, r9d
	mov	edi, DWORD PTR [rsi+rax*4]
	lea	eax, 16[r9]
	mov	eax, DWORD PTR [rsi+rax*4]
	imul	edi, edi
	imul	eax, eax
	imul	ecx, eax, 38
	lea	eax, [rcx+rdi]
	add	edx, eax
.L6:
	mov	DWORD PTR [r10+r11*4], edx
	add	r11, 1
	cmp	r8d, 32
	jne	.L2
	mov	rdi, r10
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	squeeze@PLT
	.cfi_endproc
.LFE0:
	.size	square, .-square
	.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.naclref.c_square.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	square, %function
square:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r6, #0
	sub	r8, r0, #4
.L2:
	mov	r4, r6
	cmp	r6, #0
	moveq	r2, r4
	add	r6, r6, #1
	addeq	r7, r5, #4
	beq	.L9
	mov	r2, #0
	add	r7, r5, #4
	mov	r3, r2
	mov	lr, r7
	sub	ip, r1, #4
.L3:
	add	r3, r3, #1
	ldr	r9, [ip, #4]!
	ldr	r10, [lr, #-4]!
	sub	fp, r4, r3
	cmp	fp, r3
	mla	r2, r10, r9, r2
	bhi	.L3
	cmp	r6, #30
	bhi	.L4
.L9:
	mov	ip, r6
	add	r9, r1, #128
.L5:
	ldr	lr, [r9, #-4]!
	ldr	r3, [r5, #4]!
	add	ip, ip, #1
	mul	r3, lr, r3
	rsb	lr, ip, #32
	add	lr, lr, r4
	add	r10, r3, r3, lsl #3
	add	r3, r3, r10, lsl #1
	cmp	ip, lr
	add	r2, r2, r3, lsl #1
	bcc	.L5
.L4:
	tst	r4, #1
	lsl	r2, r2, #1
	bne	.L6
	lsr	r4, r4, #1
	add	r3, r1, r4, lsl #2
	ldr	r3, [r3, #64]
	ldr	ip, [r1, r4, lsl #2]
	mov	lr, r3
	mul	lr, r3, lr
	mov	r3, lr
	mov	lr, ip
	mul	lr, ip, lr
	mov	ip, lr
	add	lr, r3, r3, lsl #3
	add	r3, r3, lr, lsl #1
	add	r3, ip, r3, lsl #1
	add	r2, r2, r3
.L6:
	cmp	r6, #32
	mov	r5, r7
	str	r2, [r8, #4]!
	bne	.L2
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	squeeze
	.size	square, .-square
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
