	.file	"423793.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"w"
.LC2:
	.string	"result.simple.txt"
.LC3:
	.string	"%f "
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -7999488[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 560
	mov	DWORD PTR -8000036[rbp], edi
	mov	QWORD PTR -8000048[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8000032[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -8000028[rbp], 0
	jmp	.L3
.L4:
	mov	edx, DWORD PTR -8000032[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -8000028[rbp]
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -8000028[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8000032[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	movsd	QWORD PTR -8000016[rbp+rax*8], xmm0
	add	DWORD PTR -8000028[rbp], 1
.L3:
	cmp	DWORD PTR -8000028[rbp], 999
	jle	.L4
	add	DWORD PTR -8000032[rbp], 1
.L2:
	cmp	DWORD PTR -8000032[rbp], 999
	jle	.L5
	mov	DWORD PTR -8000032[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -8000028[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -8000028[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8000032[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	movsd	xmm1, QWORD PTR -8000016[rbp+rax*8]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	mov	edx, DWORD PTR -8000028[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -8000032[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 1000
	add	rdx, rcx
	mov	QWORD PTR -8000016[rbp+rdx*8], rax
	add	DWORD PTR -8000028[rbp], 1
.L7:
	cmp	DWORD PTR -8000028[rbp], 999
	jle	.L8
	add	DWORD PTR -8000032[rbp], 1
.L6:
	cmp	DWORD PTR -8000032[rbp], 999
	jle	.L9
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -8000024[rbp], rax
	mov	DWORD PTR -8000032[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -8000028[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8000028[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8000032[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	mov	rdx, QWORD PTR -8000016[rbp+rax*8]
	mov	rax, QWORD PTR -8000024[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -8000028[rbp], 1
.L11:
	cmp	DWORD PTR -8000028[rbp], 999
	jle	.L12
	mov	rax, QWORD PTR -8000024[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -8000032[rbp], 1
.L10:
	cmp	DWORD PTR -8000032[rbp], 999
	jle	.L13
	mov	rax, QWORD PTR -8000024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-1998362383
	.long	1055193269
	.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	"423793.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"result.simple.txt\000"
	.align	2
.LC2:
	.ascii	"%f \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8000032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #7995392
	sub	sp, sp, #4608
	sub	sp, sp, #36
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	str	r0, [r3, #-540]
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	str	r1, [r3, #-544]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-532]
	b	.L2
.L5:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-528]
	b	.L3
.L4:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	ip, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #7995392
	sub	r2, r2, #12
	sub	r2, r2, #4096
	ldr	r2, [r2, #-528]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	sub	r3, r3, #520
	stm	r3, {r0-r1}
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	add	r3, r3, #1
	str	r3, [r2, #-528]
.L3:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	cmp	r3, #1000
	blt	.L4
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	add	r3, r3, #1
	str	r3, [r2, #-532]
.L2:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	cmp	r3, #1000
	blt	.L5
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-532]
	b	.L6
.L9:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-528]
	b	.L7
.L8:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r1, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #7995392
	sub	r2, r2, #12
	sub	r2, r2, #4096
	ldr	r2, [r2, #-528]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #520
	ldmia	r3, {r0-r1}
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	ip, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #7995392
	sub	r2, r2, #12
	sub	r2, r2, #4096
	ldr	r2, [r2, #-528]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	sub	r3, r3, #520
	stm	r3, {r0-r1}
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	add	r3, r3, #1
	str	r3, [r2, #-528]
.L7:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	cmp	r3, #1000
	blt	.L8
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	add	r3, r3, #1
	str	r3, [r2, #-532]
.L6:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	cmp	r3, #1000
	blt	.L9
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r4, r3
	ldr	r1, .L16+12
	ldr	r0, .L16+16
	bl	fopen
	str	r0, [r4, #-524]
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-532]
	b	.L10
.L13:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-528]
	b	.L11
.L12:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r1, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #7995392
	sub	r2, r2, #12
	sub	r2, r2, #4096
	ldr	r2, [r2, #-528]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #520
	ldmia	r3, {r0-r1}
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L16+20
	ldr	r0, [ip, #-524]
	bl	fprintf
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	add	r3, r3, #1
	str	r3, [r2, #-528]
.L11:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-528]
	cmp	r3, #1000
	blt	.L12
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r1, [r3, #-524]
	mov	r0, #10
	bl	fputc
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	add	r3, r3, #1
	str	r3, [r2, #-532]
.L10:
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	cmp	r3, #1000
	blt	.L13
	sub	r3, fp, #7995392
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r0, [r3, #-524]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	-1998362383
	.word	1055193269
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
