	.file	"extr_ecp_nistp521.c_batch_mul.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	batch_mul, @function
batch_mul:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 200
	.cfi_def_cfa_offset 256
	mov	rax, QWORD PTR 264[rsp]
	mov	DWORD PTR 100[rsp], edi
	mov	DWORD PTR 104[rsp], esi
	mov	QWORD PTR 120[rsp], rax
	mov	rax, QWORD PTR 272[rsp]
	mov	DWORD PTR 108[rsp], edx
	mov	edx, 12
	mov	QWORD PTR 112[rsp], rcx
	mov	DWORD PTR 28[rsp], r8d
	mov	QWORD PTR 80[rsp], r9
	mov	QWORD PTR 88[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	test	r9, r9
	lea	rax, 148[rsp]
	setne	BYTE PTR 99[rsp]
	mov	rdi, rax
	xor	esi, esi
	mov	QWORD PTR 72[rsp], rax
	call	memset@PLT
	cmp	ebx, 1
	lea	rax, 144[rsp]
	mov	DWORD PTR 12[rsp], 1
	sbb	r14d, r14d
	mov	QWORD PTR 32[rsp], rax
	lea	rax, 140[rsp]
	and	r14d, -390
	mov	QWORD PTR 40[rsp], rax
	add	r14d, 520
	mov	r15d, r14d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	cmp	BYTE PTR 99[rsp], 0
	je	.L5
	mov	rdi, QWORD PTR 80[rsp]
	lea	esi, 390[r15]
	call	get_bit@PLT
	lea	r12d, 0[0+rax*8]
	cmp	r15d, 130
	jne	.L43
.L6:
	lea	rax, 160[rsp]
	mov	rdx, QWORD PTR 88[rsp]
	mov	edi, r12d
	mov	esi, 16
	mov	rcx, rax
	mov	QWORD PTR 16[rsp], rax
	call	select_point@PLT
	mov	edi, DWORD PTR 12[rsp]
	test	edi, edi
	jne	.L7
	mov	eax, DWORD PTR 168[rsp]
	mov	edx, DWORD PTR 156[rsp]
	mov	esi, DWORD PTR 152[rsp]
	mov	edi, DWORD PTR 148[rsp]
	push	rax
	.cfi_def_cfa_offset 264
	mov	eax, DWORD PTR 172[rsp]
	mov	r9d, edx
	mov	r8d, esi
	mov	ecx, edi
	push	rax
	.cfi_def_cfa_offset 272
	mov	eax, DWORD PTR 176[rsp]
	push	rax
	.cfi_def_cfa_offset 280
	push	1
	.cfi_def_cfa_offset 288
	call	point_add@PLT
	mov	esi, DWORD PTR 60[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 256
	test	esi, esi
	je	.L40
.L41:
	imul	eax, r15d, -858993459
	add	eax, 429496729
	cmp	eax, 858993458
	jbe	.L9
.L40:
	test	r14d, r14d
	js	.L11
.L10:
	mov	edx, DWORD PTR 156[rsp]
	mov	esi, DWORD PTR 152[rsp]
	mov	edi, DWORD PTR 148[rsp]
	mov	r9d, edx
	mov	r8d, esi
	mov	ecx, edi
	call	point_double@PLT
	mov	DWORD PTR 12[rsp], 0
.L4:
	mov	r15d, r14d
.L3:
	lea	r14d, -1[r15]
	cmp	r15d, 130
	jle	.L44
.L5:
	mov	edx, DWORD PTR 28[rsp]
	test	edx, edx
	je	.L13
	imul	eax, r15d, -858993459
	add	eax, 429496729
	cmp	eax, 858993458
	jbe	.L45
.L13:
	test	r14d, r14d
	js	.L11
	mov	r8d, DWORD PTR 12[rsp]
	test	r8d, r8d
	jne	.L4
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 72[rsp]
	mov	edx, 12
	call	memcpy@PLT
	mov	ecx, DWORD PTR 28[rsp]
	test	ecx, ecx
	je	.L40
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 148[rsp]
	mov	edi, DWORD PTR 100[rsp]
	call	felem_assign@PLT
	mov	esi, DWORD PTR 152[rsp]
	mov	edi, DWORD PTR 104[rsp]
	call	felem_assign@PLT
	mov	esi, DWORD PTR 156[rsp]
	mov	edi, DWORD PTR 108[rsp]
	call	felem_assign@PLT
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 200
	.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
.L45:
	.cfi_restore_state
	lea	rax, 160[rsp]
	mov	QWORD PTR 16[rsp], rax
.L14:
	lea	eax, 4[r15]
	mov	DWORD PTR 68[rsp], r15d
	mov	rbp, QWORD PTR 112[rsp]
	mov	DWORD PTR 56[rsp], eax
	lea	eax, 3[r15]
	mov	DWORD PTR 52[rsp], eax
	lea	eax, 2[r15]
	mov	DWORD PTR 64[rsp], eax
	lea	eax, 1[r15]
	mov	DWORD PTR 60[rsp], eax
	mov	rax, QWORD PTR 120[rsp]
	mov	DWORD PTR 24[rsp], 0
	mov	DWORD PTR 48[rsp], r14d
	mov	r15, rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	mov	eax, DWORD PTR 168[rsp]
	mov	edx, DWORD PTR 156[rsp]
	mov	esi, DWORD PTR 152[rsp]
	mov	edi, DWORD PTR 148[rsp]
	push	rax
	.cfi_def_cfa_offset 264
	mov	eax, DWORD PTR 172[rsp]
	mov	r9d, edx
	mov	r8d, esi
	mov	ecx, edi
	push	rax
	.cfi_def_cfa_offset 272
	mov	eax, DWORD PTR 176[rsp]
	push	rax
	.cfi_def_cfa_offset 280
	mov	eax, DWORD PTR 280[rsp]
	push	rax
	.cfi_def_cfa_offset 288
	call	point_add@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 256
.L16:
	add	DWORD PTR 24[rsp], 1
	add	rbp, 8
	mov	eax, DWORD PTR 24[rsp]
	add	r15, 204
	mov	DWORD PTR 12[rsp], 0
	cmp	DWORD PTR 28[rsp], eax
	jbe	.L47
.L17:
	mov	esi, DWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	call	get_bit@PLT
	mov	esi, DWORD PTR 52[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	sal	eax, 5
	mov	r12d, eax
	call	get_bit@PLT
	mov	esi, DWORD PTR 64[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	sal	eax, 4
	mov	ebx, eax
	call	get_bit@PLT
	mov	esi, DWORD PTR 60[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	or	ebx, r12d
	mov	r14d, eax
	call	get_bit@PLT
	mov	esi, DWORD PTR 68[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	sal	r14d, 3
	mov	r13d, eax
	call	get_bit@PLT
	mov	esi, DWORD PTR 48[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	sal	r13d, 2
	mov	r12d, eax
	call	get_bit@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	lea	edx, [r12+r12]
	or	ebx, eax
	or	ebx, r14d
	or	r13d, ebx
	or	edx, r13d
	call	ec_GFp_nistp_recode_scalar_bits@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, r15
	mov	edi, DWORD PTR 144[rsp]
	mov	esi, 17
	call	select_point@PLT
	mov	esi, DWORD PTR 164[rsp]
	mov	edi, DWORD PTR 172[rsp]
	call	felem_neg@PLT
	mov	edx, DWORD PTR 140[rsp]
	mov	esi, DWORD PTR 172[rsp]
	mov	edi, DWORD PTR 164[rsp]
	neg	edx
	call	copy_conditional@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L48
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 72[rsp]
	mov	edx, 12
	call	memcpy@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L47:
	mov	r14d, DWORD PTR 48[rsp]
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L43:
	mov	r13, QWORD PTR 80[rsp]
	lea	esi, 260[r15]
	mov	rdi, r13
	call	get_bit@PLT
	lea	esi, 130[r15]
	mov	rdi, r13
	mov	ebx, eax
	call	get_bit@PLT
	mov	esi, r15d
	mov	rdi, r13
	sal	ebx, 2
	mov	ebp, eax
	call	get_bit@PLT
	or	r12d, eax
	or	ebx, r12d
	lea	r12d, [rbp+rbp]
	or	r12d, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 12[rsp], 0
	jmp	.L14
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	batch_mul, .-batch_mul
	.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_batch_mul.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	batch_mul, %function
batch_mul:
	@ args = 20, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #132
	ldr	lr, [sp, #172]
	str	r3, [sp, #80]
	str	lr, [sp, #60]
	subs	lr, lr, ip
	movne	lr, #1
	ldr	r3, .L47
	str	lr, [sp, #56]
	str	r0, [sp, #68]
	str	r1, [sp, #72]
	str	r2, [sp, #76]
	ldr	r3, [r3]
	str	r3, [sp, #124]
	mov	r3,#0
	ldr	r3, [sp, #180]
	ldr	lr, [sp, #168]
	str	r3, [sp, #84]
	ldr	r3, [sp, #184]
	cmp	lr, ip
	movne	r9, #520
	moveq	r9, #130
	mov	fp, #1
	str	ip, [sp, #96]
	str	ip, [sp, #100]
	str	ip, [sp, #104]
	str	r3, [sp, #64]
	b	.L3
.L5:
	ldr	r3, [sp, #168]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L47+4
	smull	r2, r3, r9, r3
	asr	r2, r9, #31
	rsb	r3, r2, r3, asr #1
	add	r3, r3, r3, lsl #2
	cmp	r9, r3
	addeq	r6, sp, #108
	beq	.L14
.L13:
	cmp	r8, #0
	blt	.L21
	cmp	fp, #0
	beq	.L20
.L4:
	mov	r9, r8
.L3:
	ldr	r3, [sp, #56]
	sub	r8, r9, #1
	cmp	r9, #130
	movgt	r3, #0
	andle	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	add	r1, r9, #388
	ldr	r0, [sp, #60]
	add	r1, r1, #2
	bl	get_bit
	cmp	r9, #130
	lsl	r4, r0, #3
	bne	.L43
.L6:
	add	r6, sp, #108
	mov	r0, r4
	mov	r3, r6
	mov	r1, #16
	ldr	r2, [sp, #64]
	bl	select_point
	cmp	fp, #0
	beq	.L44
	ldm	r6, {r0, r1, r2}
	ldr	r3, [sp, #168]
	cmp	r3, #0
	add	r3, sp, #96
	stm	r3, {r0, r1, r2}
	beq	.L12
	ldr	r3, .L47+4
	smull	r2, r3, r9, r3
	asr	r2, r9, #31
	rsb	r3, r2, r3, asr #1
	add	r3, r3, r3, lsl #2
	cmp	r9, r3
	beq	.L9
	cmp	r8, #0
	mov	r7, r0
	ldr	r4, [sp, #100]
	ldr	r5, [sp, #104]
	blt	.L11
.L10:
	mov	r2, r5
	mov	r1, r4
	mov	r3, r7
	mov	r0, r7
	stm	sp, {r4, r5}
	bl	point_double
	mov	fp, #0
	b	.L4
.L46:
	cmp	r8, #0
	bge	.L20
.L21:
	ldr	r7, [sp, #96]
	ldr	r4, [sp, #100]
	ldr	r5, [sp, #104]
.L11:
	mov	r1, r7
	ldr	r0, [sp, #68]
	bl	felem_assign
	mov	r1, r4
	ldr	r0, [sp, #72]
	bl	felem_assign
	mov	r1, r5
	ldr	r0, [sp, #76]
	bl	felem_assign
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [sp, #124]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	add	sp, sp, #132
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	mov	r3, #1
	ldr	r7, [sp, #96]
	ldr	r4, [sp, #100]
	add	r5, sp, #104
	ldm	r5, {r5, r10, ip, lr}
	mov	r0, r7
	str	r3, [sp, #8]
	mov	r1, r4
	mov	r3, r7
	mov	r2, r5
	str	r4, [sp]
	str	r5, [sp, #4]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r10, [sp, #12]
	bl	point_add
	ldr	r3, [sp, #168]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L47+4
	smull	r2, r3, r9, r3
	asr	r2, r9, #31
	rsb	r3, r2, r3, asr #1
	add	r3, r3, r3, lsl #2
	cmp	r9, r3
	bne	.L8
.L9:
	mov	fp, #0
.L14:
	add	r3, r9, #4
	str	r3, [sp, #36]
	add	r3, r9, #3
	str	r3, [sp, #44]
	add	r3, r9, #2
	str	r3, [sp, #48]
	add	r3, r9, #1
	str	r3, [sp, #40]
	ldr	r3, [sp, #80]
	str	r9, [sp, #52]
	sub	r5, r3, #4
	mov	r3, #0
	ldr	r10, [sp, #84]
	mov	r9, r3
	b	.L17
.L15:
	add	r3, sp, #96
	ldm	r6, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
.L16:
	ldr	r3, [sp, #168]
	add	r9, r9, #1
	cmp	r3, r9
	mov	fp, #0
	add	r10, r10, #204
	bls	.L46
.L17:
	ldr	r0, [r5, #4]!
	ldr	r1, [sp, #36]
	bl	get_bit
	ldr	r1, [sp, #44]
	mov	r4, r0
	ldr	r0, [r5]
	bl	get_bit
	mov	r2, r0
	ldr	r1, [sp, #48]
	ldr	r0, [r5]
	lsl	r4, r4, #5
	orr	r4, r4, r2, lsl #4
	bl	get_bit
	mov	r3, r0
	ldr	r1, [sp, #40]
	ldr	r0, [r5]
	str	r3, [sp, #28]
	bl	get_bit
	mov	r3, r0
	ldr	r1, [sp, #52]
	ldr	r0, [r5]
	str	r3, [sp, #32]
	bl	get_bit
	mov	r1, r8
	mov	r7, r0
	ldr	r0, [r5]
	bl	get_bit
	ldr	r3, [sp, #28]
	orr	r2, r4, r0
	orr	r2, r2, r3, lsl #3
	ldr	r3, [sp, #32]
	add	r1, sp, #92
	orr	r2, r2, r3, lsl #2
	orr	r2, r2, r7, lsl #1
	add	r0, sp, #88
	bl	ec_GFp_nistp_recode_scalar_bits
	mov	r3, r6
	mov	r2, r10
	mov	r1, #17
	ldr	r0, [sp, #92]
	bl	select_point
	ldr	r1, [sp, #112]
	ldr	r0, [sp, #120]
	bl	felem_neg
	ldr	r2, [sp, #88]
	ldr	r1, [sp, #120]
	ldr	r0, [sp, #112]
	rsb	r2, r2, #0
	bl	copy_conditional
	cmp	fp, #0
	bne	.L15
	ldr	r0, [sp, #176]
	ldr	r3, [sp, #96]
	ldr	r1, [sp, #100]
	add	r2, sp, #104
	ldm	r2, {r2, r4, ip, lr}
	str	r0, [sp, #8]
	stm	sp, {r1, r2}
	mov	r0, r3
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r4, [sp, #12]
	bl	point_add
	b	.L16
.L12:
	cmp	r8, #0
	ldr	r7, [sp, #96]
	ldr	r4, [sp, #100]
	ldr	r5, [sp, #104]
	bge	.L10
	b	.L11
.L8:
	cmp	r8, #0
	bge	.L10
	b	.L11
.L43:
	ldr	r7, [sp, #60]
	add	r1, r9, #260
	mov	r0, r7
	bl	get_bit
	add	r1, r9, #130
	mov	r6, r0
	mov	r0, r7
	bl	get_bit
	mov	r1, r9
	mov	r5, r0
	mov	r0, r7
	bl	get_bit
	orr	r4, r4, r0
	orr	r4, r4, r6, lsl #2
	orr	r4, r4, r5, lsl #1
	b	.L6
.L20:
	ldr	r7, [sp, #96]
	ldr	r4, [sp, #100]
	ldr	r5, [sp, #104]
	b	.L10
.L45:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	.LC0
	.word	1717986919
	.size	batch_mul, .-batch_mul
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
