	.file	"848304.c"
	.intel_syntax noprefix
	.text
	.globl	applyR
	.type	applyR, @function
applyR:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 184
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	movsd	QWORD PTR -144[rbp], xmm0
	mov	DWORD PTR -120[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	r8d, DWORD PTR -116[rbp]
	movsx	rax, r8d
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	movsx	rax, r8d
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	mov	rax, rsp
	mov	rbx, rax
	mov	esi, DWORD PTR -116[rbp]
	mov	edi, DWORD PTR -116[rbp]
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, esi
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	movsx	rax, esi
	lea	r9, 0[0+rax*8]
	movsx	rax, edi
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, esi
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	movsx	rax, edi
	mov	r14, rax
	mov	r15d, 0
	mov	rdx, QWORD PTR -152[rbp]
	imul	rdx, r14
	mov	rax, QWORD PTR -160[rbp]
	imul	rax, r15
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -160[rbp]
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rax, esi
	mov	r12, rax
	mov	r13d, 0
	movsx	rax, edi
	mov	r10, rax
	mov	r11d, 0
	mov	rdx, r13
	imul	rdx, r10
	mov	rax, r11
	imul	rax, r12
	lea	rcx, [rdx+rax]
	mov	rax, r12
	mul	r10
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, esi
	movsx	rax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -208[rbp], rdx
	mov	QWORD PTR -200[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -224[rbp], rdx
	mov	QWORD PTR -216[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax+rdx*8], xmm0
	add	DWORD PTR -108[rbp], 1
.L8:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L9
	mov	DWORD PTR -112[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	movsx	rax, r8d
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movsd	xmm0, QWORD PTR [rdx+rax*8]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	movsd	xmm0, QWORD PTR [rax+rdx*8]
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	movsd	QWORD PTR [rax+rdx*8], xmm0
	add	DWORD PTR -108[rbp], 1
.L11:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L12
	add	DWORD PTR -112[rbp], 1
.L10:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L13
	mov	DWORD PTR -108[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -112[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	movsd	xmm0, QWORD PTR [rax+rdx*8]
	mov	rcx, r9
	shr	rcx, 3
	mulsd	xmm0, xmm1
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movsd	QWORD PTR [rax+rdx*8], xmm0
	add	DWORD PTR -112[rbp], 1
.L15:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L16
	add	DWORD PTR -108[rbp], 1
.L14:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L17
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L18
.L21:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	movsx	rax, r8d
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movsd	xmm0, QWORD PTR [rdx+rax*8]
	mov	rcx, r9
	shr	rcx, 3
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movsd	xmm1, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	movsx	rax, r8d
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	subsd	xmm0, xmm1
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movsd	QWORD PTR [rdx+rax*8], xmm0
	add	DWORD PTR -112[rbp], 1
.L19:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L20
	add	DWORD PTR -108[rbp], 1
.L18:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L21
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	applyR, .-applyR
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"848304.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	applyR
	.syntax unified
	.arm
	.fpu softvfp
	.type	applyR, %function
applyR:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r6, [fp, #-72]
	sub	r3, r6, #1
	str	r3, [fp, #-56]
	mov	r3, r6
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, sp
	mov	r9, r3
	ldr	ip, [fp, #-72]
	ldr	lr, [fp, #-72]
	sub	r3, ip, #1
	str	r3, [fp, #-52]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r7, r3, #3
	sub	r3, lr, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r8, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r8, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r8, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r8, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-44]
	ldr	ip, [fp, #-72]
	sub	r3, ip, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L2
.L3:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L2:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L4
.L7:
	ldr	r3, [fp, #12]
	str	r3, [fp, #-60]
	b	.L5
.L6:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, r6
	ldr	r3, [fp, #-60]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-36]
	ldr	r1, [fp, #-64]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L5:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L4:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L8
.L11:
	ldr	r3, [fp, #12]
	str	r3, [fp, #-64]
	b	.L9
.L10:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldmib	fp, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	lsr	r4, r7, #3
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-44]
	ldr	r1, [fp, #-64]
	mul	ip, r1, r4
	ldr	r1, [fp, #-60]
	add	r1, ip, r1
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L9:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L8:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #12]
	str	r3, [fp, #-60]
	b	.L12
.L15:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L13
.L14:
	mov	r2, r6
	ldr	r3, [fp, #-60]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	lsr	r3, r7, #3
	ldr	r2, [fp, #-44]
	ldr	ip, [fp, #-60]
	mul	ip, r3, ip
	ldr	r3, [fp, #-64]
	add	r3, ip, r3
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	lr, r6
	ldr	ip, [fp, #-60]
	mul	ip, lr, ip
	lsl	ip, ip, #3
	ldr	lr, [fp, #-76]
	add	r4, lr, ip
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-64]
	lsl	r1, r1, #3
	add	r1, r4, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L13:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L12:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L15
	mov	sp, r9
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	applyR, .-applyR
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
