	.file	"519977.c"
	.intel_syntax noprefix
	.text
	.globl	histogram
	.bss
	.align 32
	.type	histogram, @object
	.size	histogram, 800
histogram:
	.zero	800
	.globl	currun
	.align 4
	.type	currun, @object
	.size	currun, 4
currun:
	.zero	4
	.globl	fline
	.align 32
	.type	fline, @object
	.size	fline, 905712
fline:
	.zero	905712
	.globl	fout
	.align 32
	.type	fout, @object
	.size	fout, 905712
fout:
	.zero	905712
	.globl	ppm
	.align 8
	.type	ppm, @object
	.size	ppm, 8
ppm:
	.zero	8
	.globl	ppm2
	.align 8
	.type	ppm2, @object
	.size	ppm2, 8
ppm2:
	.zero	8
	.globl	ftotal
	.align 8
	.type	ftotal, @object
	.size	ftotal, 8
ftotal:
	.zero	8
	.section	.rodata
.LC0:
	.string	"LINE %d %f\n"
.LC2:
	.string	"%d\t%f\n"
.LC5:
	.string	"%d\n"
	.text
	.globl	Emit
	.type	Emit, @function
Emit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	cmp	DWORD PTR -36[rbp], 0
	jns	.L2
	jmp	.L3
.L4:
	mov	rax, QWORD PTR ppm[rip]
	mov	rsi, rax
	mov	edi, 128
	call	fputc@PLT
	mov	eax, DWORD PTR x.5[rip]
	add	eax, 1
	mov	DWORD PTR x.5[rip], eax
.L3:
	mov	eax, DWORD PTR x.5[rip]
	cmp	eax, 113213
	jle	.L4
	mov	rdx, QWORD PTR ftotal[rip]
	mov	eax, DWORD PTR y.4[rip]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 1
	jmp	.L5
.L8:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, fline[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, fline[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -20[rbp], 1
.L6:
	mov	eax, DWORD PTR x.5[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L7
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -24[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L5:
	mov	eax, DWORD PTR x.5[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L8
	mov	DWORD PTR -24[rbp], 0
	jmp	.L9
.L10:
	mov	rdx, QWORD PTR ppm2[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, fout[rip]
	movsd	xmm0, QWORD PTR [rcx+rax]
	cvttsd2si	eax, xmm0
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -24[rbp], 1
.L9:
	cmp	DWORD PTR -24[rbp], 113213
	jle	.L10
	mov	DWORD PTR x.5[rip], 0
	mov	eax, DWORD PTR y.4[rip]
	add	eax, 1
	mov	DWORD PTR y.4[rip], eax
.L2:
	mov	eax, DWORD PTR y.4[rip]
	cmp	eax, 421
	jg	.L11
	mov	eax, DWORD PTR x.5[rip]
	cmp	eax, 113213
	jg	.L11
	cmp	DWORD PTR -36[rbp], 0
	je	.L12
	movsd	xmm0, QWORD PTR .LC3[rip]
	jmp	.L13
.L12:
	movsd	xmm0, QWORD PTR .LC4[rip]
.L13:
	mov	eax, DWORD PTR x.5[rip]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*8]
	lea	rdx, fline[rip]
	movsd	QWORD PTR [rcx+rdx], xmm0
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, fline[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	movsd	xmm0, QWORD PTR ftotal[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR ftotal[rip], xmm0
	mov	rax, QWORD PTR ppm[rip]
	cmp	DWORD PTR -36[rbp], 0
	je	.L14
	mov	edx, 255
	jmp	.L15
.L14:
	mov	edx, 0
.L15:
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
.L11:
	mov	eax, DWORD PTR x.5[rip]
	cmp	eax, 113214
	jle	.L16
	mov	eax, DWORD PTR x.5[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR x.5[rip]
	add	eax, 1
	mov	DWORD PTR x.5[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Emit, .-Emit
	.section	.rodata
	.align 8
.LC6:
	.string	"Error: Tracking problem, asymmetric shorts\n"
	.align 8
.LC7:
	.string	"Bad or corrupt data event. %d %d %d\n"
	.text
	.globl	HandleTransition
	.type	HandleTransition, @function
HandleTransition:
.LFB1:
	.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
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	jg	.L18
	mov	edx, DWORD PTR runlen.3[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR runlen.3[rip], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR runlen.3[rip], eax
	mov	eax, DWORD PTR runlen.3[rip]
	cmp	eax, 4
	jle	.L20
	mov	eax, DWORD PTR runlen.3[rip]
	cmp	eax, 10
	jg	.L20
	mov	eax, DWORD PTR place_in_line.2[rip]
	add	eax, 1
	mov	DWORD PTR place_in_line.2[rip], eax
	mov	eax, DWORD PTR was_short.1[rip]
	test	eax, eax
	je	.L21
	mov	edi, 1
	call	Emit
	mov	DWORD PTR was_short.1[rip], 0
	jmp	.L17
.L21:
	mov	DWORD PTR was_short.1[rip], 1
	jmp	.L17
.L20:
	mov	eax, DWORD PTR runlen.3[rip]
	cmp	eax, 12
	jle	.L23
	mov	eax, DWORD PTR runlen.3[rip]
	cmp	eax, 19
	jg	.L23
	mov	eax, DWORD PTR place_in_line.2[rip]
	add	eax, 1
	mov	DWORD PTR place_in_line.2[rip], eax
	mov	eax, DWORD PTR was_short.1[rip]
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR was_long_wait.0[rip]
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
.L25:
	mov	DWORD PTR was_short.1[rip], 0
	jmp	.L26
.L24:
	mov	edi, 0
	call	Emit
.L26:
	mov	DWORD PTR was_long_wait.0[rip], 0
	jmp	.L17
.L23:
	mov	eax, DWORD PTR runlen.3[rip]
	cmp	eax, 98
	jle	.L27
	mov	DWORD PTR was_long_wait.0[rip], 1
	mov	DWORD PTR was_short.1[rip], 0
	mov	DWORD PTR place_in_line.2[rip], 0
	mov	edi, -1
	call	Emit
	jmp	.L17
.L27:
	mov	eax, DWORD PTR was_long_wait.0[rip]
	test	eax, eax
	jne	.L28
	mov	esi, DWORD PTR place_in_line.2[rip]
	mov	ecx, DWORD PTR was_long_wait.0[rip]
	mov	edx, DWORD PTR runlen.3[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, esi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L28:
	mov	DWORD PTR was_long_wait.0[rip], 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	HandleTransition, .-HandleTransition
	.section	.rodata
.LC8:
	.string	"rb"
	.align 8
.LC9:
	.string	"_CHAN_AFTER_BUTTON_Data_20180805170303.8.dat"
.LC10:
	.string	"wb"
.LC11:
	.string	"_CHAN_AFTER_BUTTON_.ppm"
.LC12:
	.string	"FFTW.ppm"
	.align 8
.LC13:
	.string	"P5\n#Is a comment required\n%d %d\n255\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	lea	rsi, .LC8[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR ppm[rip], rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR ppm2[rip], rax
	mov	rax, QWORD PTR ppm[rip]
	mov	ecx, 422
	mov	edx, 113214
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR ppm2[rip]
	mov	ecx, 422
	mov	edx, 113214
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -10[rbp], al
	mov	DWORD PTR currun[rip], 1
	jmp	.L30
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, BYTE PTR -9[rbp]
	je	.L31
	mov	eax, DWORD PTR currun[rip]
	cmp	eax, 99
	jle	.L32
	mov	DWORD PTR currun[rip], 99
.L32:
	mov	eax, DWORD PTR currun[rip]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*8]
	lea	rdx, histogram[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	lea	rcx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, histogram[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR currun[rip]
	mov	edi, eax
	call	HandleTransition
	mov	DWORD PTR currun[rip], 1
	jmp	.L33
.L31:
	mov	eax, DWORD PTR currun[rip]
	add	eax, 1
	mov	DWORD PTR currun[rip], eax
.L33:
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR -10[rbp], al
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L34
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.local	x.5
	.comm	x.5,4,4
	.local	y.4
	.comm	y.4,4,4
	.local	runlen.3
	.comm	runlen.3,4,4
	.local	place_in_line.2
	.comm	place_in_line.2,4,4
	.local	was_short.1
	.comm	was_short.1,4,4
	.local	was_long_wait.0
	.comm	was_long_wait.0,4,4
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	-1074790400
	.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	"519977.c"
	.text
	.comm	histogram,400,4
	.global	currun
	.bss
	.align	2
	.type	currun, %object
	.size	currun, 4
currun:
	.space	4
	.comm	fline,905712,8
	.comm	fout,905712,8
	.comm	ppm,4,4
	.comm	ppm2,4,4
	.comm	ftotal,8,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"LINE %d %f\012\000"
	.global	__aeabi_idivmod
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"%d\011%f\012\000"
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	Emit
	.syntax unified
	.arm
	.fpu softvfp
	.type	Emit, %function
Emit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L2
	b	.L3
.L4:
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #128
	bl	fputc
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
.L3:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, .L17+8
	cmp	r3, r2
	ble	.L4
	ldr	r3, .L17+12
	ldr	r1, [r3]
	ldr	r3, .L17+16
	ldmia	r3, {r2-r3}
	ldr	r0, .L17+20
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L8:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r2, .L17+24
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, .L17+24
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L7
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-28]
	ldr	r0, .L17+28
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L5:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L9
.L10:
	ldr	r2, .L17+32
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, .L17+36
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	fputc
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, .L17+8
	cmp	r3, r2
	ble	.L10
	ldr	r3, .L17+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L17+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+12
	str	r3, [r2]
.L2:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	ldr	r2, .L17+40
	cmp	r3, r2
	bgt	.L11
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, .L17+8
	cmp	r3, r2
	bgt	.L11
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L12
	mov	r2, #0
	ldr	r3, .L17+44
	b	.L13
.L12:
	mov	r2, #0
	ldr	r3, .L17+48
.L13:
	ldr	r1, .L17+4
	ldr	r1, [r1]
	ldr	ip, .L17+24
	lsl	r0, r1, #3
	add	r0, ip, r0
	stm	r0, {r2-r3}
	ldr	r2, .L17+24
	lsl	r3, r1, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L17+16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L17+16
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L14
	mov	r3, #255
	b	.L15
.L14:
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputc
.L11:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, .L17+52
	cmp	r3, r2
	ble	.L16
	ldr	r3, .L17+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+56
	bl	printf
.L16:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	ppm
	.word	x.4636
	.word	113213
	.word	y.4637
	.word	ftotal
	.word	.LC0
	.word	fline
	.word	.LC1
	.word	fout
	.word	ppm2
	.word	421
	.word	1072693248
	.word	-1074790400
	.word	113214
	.word	.LC2
	.size	Emit, .-Emit
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Error: Tracking problem, asymmetric shorts\012\000"
	.align	2
.LC4:
	.ascii	"Bad or corrupt data event. %d %d %d\012\000"
	.text
	.align	2
	.global	HandleTransition
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleTransition, %function
HandleTransition:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L20
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L31
	str	r3, [r2]
	b	.L19
.L20:
	ldr	r2, .L31
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #4
	ble	.L22
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #10
	bgt	.L22
	ldr	r3, .L31+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+4
	str	r3, [r2]
	ldr	r3, .L31+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	mov	r0, #1
	bl	Emit
	ldr	r3, .L31+8
	mov	r2, #0
	str	r2, [r3]
	b	.L19
.L23:
	ldr	r3, .L31+8
	mov	r2, #1
	str	r2, [r3]
	b	.L19
.L22:
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #12
	ble	.L25
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #19
	bgt	.L25
	ldr	r3, .L31+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+4
	str	r3, [r2]
	ldr	r3, .L31+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L31+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L31+16
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L31+20
	bl	fwrite
.L27:
	ldr	r3, .L31+8
	mov	r2, #0
	str	r2, [r3]
	b	.L28
.L26:
	mov	r0, #0
	bl	Emit
.L28:
	ldr	r3, .L31+12
	mov	r2, #0
	str	r2, [r3]
	b	.L19
.L25:
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #98
	ble	.L29
	ldr	r3, .L31+12
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L31+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+4
	mov	r2, #0
	str	r2, [r3]
	mvn	r0, #0
	bl	Emit
	b	.L19
.L29:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L31+16
	ldr	r0, [r3]
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, .L31+12
	ldr	r1, [r3]
	ldr	r3, .L31+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L31+24
	bl	fprintf
.L30:
	ldr	r3, .L31+12
	mov	r2, #0
	str	r2, [r3]
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	runlen.4660
	.word	place_in_line.4658
	.word	was_short.4659
	.word	was_long_wait.4661
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	HandleTransition, .-HandleTransition
	.section	.rodata
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"_CHAN_AFTER_BUTTON_Data_20180805170303.8.dat\000"
	.align	2
.LC7:
	.ascii	"wb\000"
	.align	2
.LC8:
	.ascii	"_CHAN_AFTER_BUTTON_.ppm\000"
	.align	2
.LC9:
	.ascii	"FFTW.ppm\000"
	.align	2
.LC10:
	.ascii	"P5\012#Is a comment required\012%d %d\012255\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L40
	ldr	r0, .L40+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r1, .L40+8
	ldr	r0, .L40+12
	bl	fopen
	mov	r3, r0
	ldr	r2, .L40+16
	str	r3, [r2]
	ldr	r1, .L40+8
	ldr	r0, .L40+20
	bl	fopen
	mov	r3, r0
	ldr	r2, .L40+24
	str	r3, [r2]
	ldr	r3, .L40+16
	ldr	r0, [r3]
	ldr	r3, .L40+28
	ldr	r2, .L40+32
	ldr	r1, .L40+36
	bl	fprintf
	ldr	r3, .L40+24
	ldr	r0, [r3]
	ldr	r3, .L40+28
	ldr	r2, .L40+32
	ldr	r1, .L40+36
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-10]
	ldr	r3, .L40+40
	mov	r2, #1
	str	r2, [r3]
	b	.L34
.L38:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L35
	ldr	r3, .L40+40
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L36
	ldr	r3, .L40+40
	mov	r2, #99
	str	r2, [r3]
.L36:
	ldr	r3, .L40+40
	ldr	r3, [r3]
	ldr	r2, .L40+44
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L40+44
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L40+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	HandleTransition
	ldr	r3, .L40+40
	mov	r2, #1
	str	r2, [r3]
	b	.L37
.L35:
	ldr	r3, .L40+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L40+40
	str	r3, [r2]
.L37:
	ldrb	r3, [fp, #-9]
	strb	r3, [fp, #-10]
.L34:
	ldr	r0, [fp, #-8]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	ppm
	.word	.LC9
	.word	ppm2
	.word	422
	.word	113214
	.word	.LC10
	.word	currun
	.word	histogram
	.size	main, .-main
	.local	x.4636
	.comm	x.4636,4,4
	.local	y.4637
	.comm	y.4637,4,4
	.local	runlen.4660
	.comm	runlen.4660,4,4
	.local	place_in_line.4658
	.comm	place_in_line.4658,4,4
	.local	was_short.4659
	.comm	was_short.4659,4,4
	.local	was_long_wait.4661
	.comm	was_long_wait.4661,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
