	.file	"353213.c"
	.intel_syntax noprefix
	.text
	.globl	sumX
	.bss
	.align 8
	.type	sumX, @object
	.size	sumX, 8
sumX:
	.zero	8
	.globl	sumY
	.align 8
	.type	sumY, @object
	.size	sumY, 8
sumY:
	.zero	8
	.globl	signal_pre
	.align 8
	.type	signal_pre, @object
	.size	signal_pre, 8
signal_pre:
	.zero	8
	.globl	d
	.data
	.align 8
	.type	d, @object
	.size	d, 8
d:
	.long	1202590843
	.long	1065646817
	.globl	DOWN
	.bss
	.align 4
	.type	DOWN, @object
	.size	DOWN, 4
DOWN:
	.zero	4
	.globl	UP
	.align 4
	.type	UP, @object
	.size	UP, 4
UP:
	.zero	4
	.local	tick
	.comm	tick,8,8
	.globl	fo
	.align 8
	.type	fo, @object
	.size	fo, 8
fo:
	.zero	8
	.text
	.globl	readInput
	.type	readInput, @function
readInput:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	xmm0, QWORD PTR signal_u[rip]
	movsd	xmm1, QWORD PTR signal_pre[rip]
	ucomisd	xmm0, xmm1
	jp	.L8
	comisd	xmm0, xmm1
	je	.L10
.L8:
	movsd	xmm0, QWORD PTR signal_u[rip]
	movsd	xmm1, QWORD PTR .LC0[rip]
	ucomisd	xmm0, xmm1
	jp	.L4
	movsd	xmm1, QWORD PTR .LC0[rip]
	ucomisd	xmm0, xmm1
	jne	.L4
	mov	DWORD PTR DOWN[rip], 1
	mov	DWORD PTR UP[rip], 0
	jmp	.L6
.L4:
	mov	DWORD PTR DOWN[rip], 0
	mov	DWORD PTR UP[rip], 1
.L6:
	movsd	xmm0, QWORD PTR signal_u[rip]
	movsd	QWORD PTR signal_pre[rip], xmm0
	jmp	.L11
.L10:
	mov	DWORD PTR DOWN[rip], 0
	mov	DWORD PTR UP[rip], 0
.L11:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readInput, .-readInput
	.section	.rodata
.LC1:
	.string	"w"
.LC2:
	.string	"train_gate.csv"
.LC4:
	.string	"%ld,%f,%f\n"
	.text
	.globl	writeOutput
	.type	writeOutput, @function
writeOutput:
.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, 16
	movzx	eax, BYTE PTR count.0[rip]
	test	al, al
	jne	.L13
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR fo[rip], rax
	mov	rax, QWORD PTR fo[rip]
	test	rax, rax
	jne	.L14
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	movzx	eax, BYTE PTR count.0[rip]
	add	eax, 1
	mov	BYTE PTR count.0[rip], al
.L13:
	movsd	xmm1, QWORD PTR sumX[rip]
	movsd	xmm0, QWORD PTR x[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR sumX[rip], xmm0
	movsd	xmm1, QWORD PTR sumY[rip]
	movsd	xmm0, QWORD PTR y[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR sumY[rip], xmm0
	mov	rax, QWORD PTR tick[rip]
	add	rax, 1
	mov	QWORD PTR tick[rip], rax
	mov	rax, QWORD PTR tick[rip]
	cmp	rax, 10000000
	jne	.L16
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR sumY[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR sumX[rip]
	divsd	xmm0, QWORD PTR -8[rbp]
	movq	rcx, xmm0
	mov	rdx, QWORD PTR tick[rip]
	mov	rax, QWORD PTR fo[rip]
	movq	xmm0, rcx
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 2
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	writeOutput, .-writeOutput
	.local	count.0
	.comm	count.0,1,1
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1097011920
	.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	"353213.c"
	.text
	.global	sumX
	.bss
	.align	3
	.type	sumX, %object
	.size	sumX, 8
sumX:
	.space	8
	.global	sumY
	.align	3
	.type	sumY, %object
	.size	sumY, 8
sumY:
	.space	8
	.global	signal_pre
	.align	3
	.type	signal_pre, %object
	.size	signal_pre, 8
signal_pre:
	.space	8
	.global	d
	.data
	.align	3
	.type	d, %object
	.size	d, 8
d:
	.word	1202590843
	.word	1065646817
	.global	DOWN
	.bss
	.align	2
	.type	DOWN, %object
	.size	DOWN, 4
DOWN:
	.space	4
	.global	UP
	.align	2
	.type	UP, %object
	.size	UP, 4
UP:
	.space	4
	.local	tick
	.comm	tick,4,4
	.global	fo
	.align	2
	.type	fo, %object
	.size	fo, 4
fo:
	.space	4
	.global	__aeabi_dcmpeq
	.text
	.align	2
	.global	readInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	readInput, %function
readInput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldmia	r3, {r0-r1}
	ldr	r3, .L13+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L13
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L13+8
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L13+12
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L13+16
	mov	r2, #0
	str	r2, [r3]
	b	.L6
.L11:
	ldr	r3, .L13+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L13+16
	mov	r2, #1
	str	r2, [r3]
.L6:
	ldr	r3, .L13
	ldmia	r3, {r2-r3}
	ldr	r1, .L13+4
	stm	r1, {r2-r3}
	b	.L12
.L10:
	ldr	r3, .L13+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L13+16
	mov	r2, #0
	str	r2, [r3]
.L12:
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	signal_u
	.word	signal_pre
	.word	1072693248
	.word	DOWN
	.word	UP
	.size	readInput, .-readInput
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"train_gate.csv\000"
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.align	2
.LC2:
	.ascii	"%ld,%f,%f\012\000"
	.text
	.align	2
	.global	writeOutput
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeOutput, %function
writeOutput:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	ldr	r3, .L20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L20+12
	str	r3, [r2]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L20+8
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, .L20
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L20
	strb	r2, [r3]
.L16:
	ldr	r3, .L20+16
	ldmia	r3, {r0-r1}
	ldr	r3, .L20+20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L20+16
	stm	r1, {r2-r3}
	ldr	r3, .L20+24
	ldmia	r3, {r0-r1}
	ldr	r3, .L20+28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L20+24
	stm	r1, {r2-r3}
	ldr	r3, .L20+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20+32
	str	r3, [r2]
	ldr	r3, .L20+32
	ldr	r3, [r3]
	ldr	r2, .L20+36
	cmp	r3, r2
	bne	.L19
	mov	r2, #0
	ldr	r3, .L20+40
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L20+12
	ldr	r6, [r3]
	ldr	r3, .L20+32
	ldr	r7, [r3]
	ldr	r3, .L20+16
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L20+24
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r7
	ldr	r1, .L20+44
	mov	r0, r6
	bl	fprintf
	mov	r0, #1
	bl	exit
.L19:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L21:
	.align	2
.L20:
	.word	count.5324
	.word	.LC0
	.word	.LC1
	.word	fo
	.word	sumX
	.word	x
	.word	sumY
	.word	y
	.word	tick
	.word	10000000
	.word	1097011920
	.word	.LC2
	.size	writeOutput, .-writeOutput
	.local	count.5324
	.comm	count.5324,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
