	.file	"795004.c"
	.intel_syntax noprefix
	.text
	.globl	P
	.bss
	.align 32
	.type	P, @object
	.size	P, 4000
P:
	.zero	4000
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 4000
A:
	.zero	4000
	.text
	.globl	do_work
	.type	do_work, @function
do_work:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, P[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -12[rbp], xmm0
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	movss	xmm1, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
.L3:
	movss	xmm1, DWORD PTR -12[rbp]
	movss	xmm0, DWORD PTR .LC1[rip]
	mulss	xmm0, xmm1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	movss	DWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -12[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 998
	jle	.L4
	movss	xmm0, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	do_work, .-do_work
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4032
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4028[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4028[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, P[rip]
	mov	eax, DWORD PTR -4028[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -4028[rbp]
	movss	xmm0, DWORD PTR .LC1[rip]
	mulss	xmm0, xmm1
	mov	eax, DWORD PTR -4028[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	movss	DWORD PTR [rdx+rax], xmm0
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -4028[rbp]
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, xmm1
	mov	eax, DWORD PTR -4028[rbp]
	cdqe
	movss	DWORD PTR -4016[rbp+rax*4], xmm0
	add	DWORD PTR -4028[rbp], 1
.L7:
	cmp	DWORD PTR -4028[rbp], 999
	jle	.L8
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	do_work
	movd	eax, xmm0
	mov	DWORD PTR -4024[rbp], eax
	movss	xmm0, DWORD PTR -4024[rbp]
	movss	xmm1, DWORD PTR .LC3[rip]
	subss	xmm0, xmm1
	movss	DWORD PTR -4020[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -4020[rbp]
	comisd	xmm0, QWORD PTR .LC4[rip]
	ja	.L9
	movss	xmm0, DWORD PTR -4020[rbp]
	movss	xmm1, DWORD PTR .LC5[rip]
	xorps	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	comisd	xmm0, QWORD PTR .LC4[rip]
	jbe	.L14
.L9:
	call	abort@PLT
.L14:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1056964608
	.align 4
.LC1:
	.long	1069547520
	.align 4
.LC2:
	.long	1072064102
	.align 4
.LC3:
	.long	1174451456
	.align 8
.LC4:
	.long	1202590843
	.long	1064598241
	.align 16
.LC5:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.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	"795004.c"
	.text
	.comm	P,4000,4
	.comm	A,4000,4
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.align	2
	.global	do_work
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_work, %function
do_work:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r2, .L6
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	mov	r3, #1056964608
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, .L6+4
	ldr	r0, [r2, r3, lsl #2]	@ float
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
.L3:
	mov	r1, #1069547520
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L6+4
	ldr	r3, [fp, #-8]
	str	r1, [r2, r3, lsl #2]	@ float
	ldr	r2, .L6+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, .L6+8
	cmp	r3, r2
	ble	.L4
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	P
	.word	A
	.word	998
	.size	do_work, .-do_work
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-4020]
	b	.L9
.L10:
	ldr	r1, .L17+4
	ldr	r3, [fp, #-4020]
	ldr	r2, [fp, #-4020]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, [fp, #-4020]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1069547520
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L17+8
	ldr	r3, [fp, #-4020]
	str	r1, [r2, r3, lsl #2]	@ float
	ldr	r0, [fp, #-4020]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L17+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-4020]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-4004]	@ float
	ldr	r3, [fp, #-4020]
	add	r3, r3, #1
	str	r3, [fp, #-4020]
.L9:
	ldr	r3, [fp, #-4020]
	cmp	r3, #1000
	blt	.L10
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	do_work
	str	r0, [fp, #-4016]	@ float
	ldr	r1, .L17+16
	ldr	r0, [fp, #-4016]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-4012]	@ float
	ldr	r0, [fp, #-4012]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L17+20
	ldr	r3, .L17+24
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-4012]
	eor	r3, r3, #-2147483648
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L17+20
	ldr	r3, .L17+24
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
.L11:
	bl	abort
.L16:
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	P
	.word	A
	.word	1072064102
	.word	1174451456
	.word	1202590843
	.word	1064598241
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
