	.file	"extr_bn_sqr.c_bn_sqr_recursive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bn_sqr_recursive
	.type	bn_sqr_recursive, @function
bn_sqr_recursive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	cmp	edx, 4
	je	.L18
	mov	r12d, edx
	mov	edx, 8
	cmp	r12d, 8
	je	.L16
	cmp	DWORD PTR BN_SQR_RECURSIVE_SIZE_NORMAL[rip], r12d
	jg	.L19
	mov	ebx, r12d
	mov	rdi, r13
	shr	ebx, 31
	add	ebx, r12d
	sar	ebx
	movsx	rax, ebx
	mov	edx, ebx
	sal	rax, 2
	mov	QWORD PTR 16[rsp], rax
	add	rax, rsi
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	bn_cmp_words@PLT
	mov	r8d, eax
	lea	eax, [r12+r12]
	cdqe
	lea	rdi, [r14+rax*4]
	movsx	rax, r12d
	lea	rcx, 0[0+rax*4]
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 24[rsp], rcx
	lea	r15, [r14+rcx]
	test	r8d, r8d
	jg	.L20
	jne	.L7
	lea	edx, 0[0+r12*4]
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
.L8:
	mov	rcx, QWORD PTR [rsp]
	mov	rsi, r13
	mov	edx, ebx
	mov	rdi, rbp
	call	bn_sqr_recursive
	mov	r13, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	edx, ebx
	mov	rsi, QWORD PTR 8[rsp]
	add	r13, rbp
	mov	rdi, r13
	call	bn_sqr_recursive
	mov	rdx, r13
	mov	ecx, r12d
	mov	rsi, rbp
	mov	rdi, r14
	call	bn_add_words@PLT
	mov	ecx, r12d
	mov	rdx, r15
	mov	rsi, r14
	mov	rdi, r15
	mov	r13, rax
	call	bn_sub_words@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	ecx, r12d
	mov	rdx, r15
	sub	r13d, eax
	add	rdi, rbp
	mov	rsi, rdi
	call	bn_add_words@PLT
	add	r13d, eax
	je	.L1
	add	ebx, r12d
	movsx	rbx, ebx
	lea	rdx, 0[rbp+rbx*4]
	mov	eax, DWORD PTR [rdx]
	add	eax, r13d
	and	eax, DWORD PTR BN_MASK2[rip]
	mov	DWORD PTR [rdx], eax
	cmp	r13d, eax
	jle	.L1
	mov	ecx, DWORD PTR BN_MASK2[rip]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 4[rdx]
	add	rdx, 4
	add	eax, 1
	and	eax, ecx
	mov	DWORD PTR [rdx], eax
	je	.L12
.L1:
	add	rsp, 40
	.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
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rsp]
	mov	ecx, ebx
	mov	rsi, r13
	mov	rdi, r14
	call	bn_sub_words@PLT
.L6:
	mov	rcx, QWORD PTR [rsp]
	mov	edx, ebx
	mov	rsi, r14
	mov	rdi, r15
	call	bn_sqr_recursive
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, r12d
.L16:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r13
	mov	rdi, rbp
	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
	jmp	bn_sqr_normal@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, 4
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, ebx
	mov	rdx, r13
	mov	rdi, r14
	call	bn_sub_words@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bn_sqr_recursive, .-bn_sqr_recursive
	.comm	BN_SQR_RECURSIVE_SIZE_NORMAL,4,4
	.comm	BN_MASK2,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_bn_sqr.c_bn_sqr_recursive.c"
	.text
	.align	2
	.global	bn_sqr_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	bn_sqr_recursive, %function
bn_sqr_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #4
	beq	.L17
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r2, #8
	mov	r4, r2
	sub	sp, sp, #12
	beq	.L18
	ldr	ip, .L21
	ldr	ip, [ip]
	cmp	ip, r2
	bgt	.L18
	mov	r8, r1
	add	r7, r2, r2, lsr #31
	asr	r7, r7, #1
	add	fp, r1, r7, lsl #2
	mov	r1, fp
	mov	r5, r0
	mov	r2, r7
	mov	r0, r8
	mov	r6, r3
	bl	bn_cmp_words
	add	r3, r6, r4, lsl #3
	subs	r1, r0, #0
	str	r3, [sp, #4]
	lsl	r9, r4, #2
	add	r10, r6, r4, lsl #2
	bgt	.L20
	bne	.L7
	mov	r2, r9
	mov	r0, r10
	bl	memset
.L8:
	mov	r1, r8
	add	r8, r6, r4, lsl #3
	mov	r3, r8
	mov	r2, r7
	mov	r0, r5
	add	r9, r5, r9
	bl	bn_sqr_recursive
	mov	r3, r8
	mov	r1, fp
	mov	r0, r9
	mov	r2, r7
	bl	bn_sqr_recursive
	mov	r3, r4
	mov	r2, r9
	mov	r1, r5
	mov	r0, r6
	bl	bn_add_words
	mov	ip, r0
	mov	r1, r6
	mov	r3, r4
	mov	r2, r10
	mov	r0, r10
	mov	r6, ip
	bl	bn_sub_words
	mov	ip, r0
	lsl	r3, r7, #2
	add	r1, r5, r3
	mov	r2, r10
	mov	r0, r1
	mov	r3, r4
	sub	r6, r6, ip
	bl	bn_add_words
	adds	r6, r6, r0
	beq	.L1
	add	r4, r4, r7
	ldr	r2, .L21+4
	ldr	r3, [r5, r4, lsl #2]
	ldr	r1, [r2]
	add	r3, r6, r3
	and	r3, r3, r1
	cmp	r6, r3
	str	r3, [r5, r4, lsl #2]
	add	r4, r5, r4, lsl #2
	ble	.L1
	ldr	r2, [r2]
.L12:
	ldr	r3, [r4, #4]!
	add	r3, r3, #1
	and	r3, r3, r2
	cmp	r3, #0
	str	r3, [r4]
	beq	.L12
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r3, r7
	mov	r2, fp
	mov	r1, r8
	mov	r0, r6
	bl	bn_sub_words
.L6:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r10
	add	r3, r6, r4, lsl #3
	bl	bn_sqr_recursive
	b	.L8
.L18:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
.L17:
	b	bn_sqr_normal
.L7:
	mov	r3, r7
	mov	r2, r8
	mov	r1, fp
	mov	r0, r6
	bl	bn_sub_words
	b	.L6
.L22:
	.align	2
.L21:
	.word	BN_SQR_RECURSIVE_SIZE_NORMAL
	.word	BN_MASK2
	.size	bn_sqr_recursive, .-bn_sqr_recursive
	.comm	BN_SQR_RECURSIVE_SIZE_NORMAL,4,4
	.comm	BN_MASK2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
