	.file	"573960.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"C:"
.LC1:
	.string	"Z:"
	.align 8
.LC2:
	.string	"----------------------------------------------------------------------\n"
	.align 8
.LC3:
	.string	"xe-O2-readmed2 v 4: 12.June.2018 [JRH]"
.LC4:
	.string	"%s\n"
	.align 8
.LC5:
	.string	"Convert a Med-Associates file for amperometry data\n"
.LC6:
	.string	"Assumes:\n"
	.align 8
.LC7:
	.string	"\t- input is white-space delimited file\n"
	.align 8
.LC8:
	.string	"\t- multiple consecutive delimiters are treated as one\n"
	.align 8
.LC9:
	.string	"\t- leading blank-spaces distinguish section labels from data\n"
	.align 8
.LC10:
	.string	"\t- input has sections for trial data trial-type definition\n"
	.align 8
.LC11:
	.string	"\t- data section has multiple fixed-length blocks of trials\n"
	.align 8
.LC12:
	.string	"\t- trials-per-block is defined in the trial-definition section\n"
	.align 8
.LC13:
	.string	"\t\tNOTE: trial definition section known to have one extra entry\n"
	.align 8
.LC14:
	.string	"\t\tNOTE: this extra should always be trial-type zero\n"
.LC15:
	.string	"USAGE:\n"
.LC16:
	.string	"xe-O2-readmed2"
.LC17:
	.string	"\t%s [input] [options]\n"
	.align 8
.LC18:
	.string	"\t[input]: Med-Associates input file (.txt) or \"stdin\"\n"
	.align 8
.LC19:
	.string	"VALID OPTIONS (defaults in []):\n"
	.align 8
.LC20:
	.string	"\t-h : number of header entries in data-section to ignore [%d]\n"
.LC21:
	.string	"\t-s1 : data section [%s]\n"
	.align 8
.LC22:
	.string	"\t-s2 : trial-definition section [%s]\n"
	.align 8
.LC23:
	.string	"\t-r : treat data-blocks as repeated measures (output in separate columns [%d]\n"
.LC24:
	.string	"EXAMPLES:\n"
	.align 8
.LC25:
	.string	"\t%s data.txt -s1 \"C:\" -s2 \"Z:\" \n"
	.align 8
.LC26:
	.string	"\tcat temp.txt | %s stdin -s1 \"C:\" -s2 \"Z:\"\n"
	.align 8
.LC27:
	.string	"OUTPUT: [block]\t[trial] [trialtype] [data]\n"
.LC28:
	.string	"%s"
	.align 8
.LC29:
	.string	"\n--- Error [%s]: missing value for argument \"%s\"\n\n"
.LC30:
	.string	"-h"
.LC31:
	.string	"-s1"
.LC32:
	.string	"-s2"
.LC33:
	.string	"-r"
	.align 8
.LC34:
	.string	"\n--- Error [%s]: invalid command line argument \"%s\"\n\n"
.LC35:
	.string	"stdin"
.LC36:
	.string	"r"
	.align 8
.LC37:
	.string	"\n--- Error [%s]: file \"%s\" not found\n\n"
	.align 8
.LC38:
	.string	"\n--- Error [%s]: insufficient memory\n\n"
.LC39:
	.string	"%lf"
.LC42:
	.string	"%d"
.LC43:
	.string	"block\ttrial\ttype\tdata"
.LC44:
	.string	"%ld\t%ld\t%d\t%g\n"
.LC45:
	.string	"trial\ttype"
.LC46:
	.string	"\tblock%ld"
.LC47:
	.string	"%ld\t%d"
.LC48:
	.string	"\t%g"
	.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
	sub	rsp, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	QWORD PTR -2096[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2056[rbp], 1
	mov	DWORD PTR -2052[rbp], 2
	mov	DWORD PTR -2048[rbp], 8
	mov	DWORD PTR -2044[rbp], 4
	mov	DWORD PTR -2040[rbp], 4
	mov	DWORD PTR -2036[rbp], 8
	mov	QWORD PTR -1976[rbp], 0
	mov	QWORD PTR -1968[rbp], 0
	mov	QWORD PTR -1960[rbp], 0
	mov	QWORD PTR -1952[rbp], 0
	mov	QWORD PTR -1944[rbp], -1
	mov	QWORD PTR -1920[rbp], 0
	mov	QWORD PTR -1912[rbp], 0
	mov	DWORD PTR -2064[rbp], 11
	mov	DWORD PTR -2060[rbp], 0
	lea	rax, -1392[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1328[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cmp	DWORD PTR -2084[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 61
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 63
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 63
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 52
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2064[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1392[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1328[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2060[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1264[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	QWORD PTR -2016[rbp], 2
	jmp	.L3
.L10:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L4
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	cmp	rdx, rax
	jl	.L5
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, .LC16[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	add	QWORD PTR -2016[rbp], 1
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2064[rbp], eax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	add	QWORD PTR -2016[rbp], 1
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1392[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	add	QWORD PTR -2016[rbp], 1
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1328[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	add	QWORD PTR -2016[rbp], 1
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2060[rbp], eax
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, .LC16[rip]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	add	QWORD PTR -2016[rbp], 1
.L3:
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	cmp	QWORD PTR -2016[rbp], rax
	jl	.L10
	lea	rax, -1264[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -1984[rbp], rax
	jmp	.L12
.L11:
	lea	rax, -1264[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1984[rbp], rax
	cmp	QWORD PTR -1984[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1264[rbp]
	mov	rcx, rdx
	lea	rdx, .LC16[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	QWORD PTR -1928[rbp], 0
	mov	rax, QWORD PTR -1928[rbp]
	mov	QWORD PTR -1992[rbp], rax
	jmp	.L13
.L26:
	lea	rdx, -2024[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	xf_lineparse1@PLT
	mov	QWORD PTR -1952[rbp], rax
	lea	rax, -1008[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	mov	QWORD PTR -1944[rbp], -1
	lea	rdx, -1392[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	QWORD PTR -1944[rbp], 1
	jmp	.L13
.L15:
	lea	rdx, -1328[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	mov	QWORD PTR -1944[rbp], 2
	jmp	.L13
.L14:
	cmp	QWORD PTR -1944[rbp], 1
	jne	.L16
	mov	QWORD PTR -2016[rbp], 1
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -1992[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -2036[rbp]
	cdqe
	imul	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1920[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1920[rbp], rax
	cmp	QWORD PTR -1920[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1952[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, -1008[rbp]
	lea	rcx, [rax+rdx]
	lea	rax, -2032[rbp]
	mov	rdx, rax
	lea	rsi, .LC39[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L16
	movsd	xmm0, QWORD PTR -2032[rbp]
	movq	xmm1, QWORD PTR .LC40[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC41[rip]
	ucomisd	xmm0, xmm1
	setb	al
	xor	eax, 1
	test	al, al
	je	.L16
	mov	rax, QWORD PTR -1992[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1920[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -2032[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -1992[rbp], 1
	add	QWORD PTR -2016[rbp], 1
.L17:
	mov	rax, QWORD PTR -2024[rbp]
	cmp	QWORD PTR -2016[rbp], rax
	jl	.L19
.L16:
	cmp	QWORD PTR -1944[rbp], 2
	jne	.L20
	mov	QWORD PTR -2016[rbp], 1
	jmp	.L21
.L25:
	mov	rax, QWORD PTR -1928[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -2044[rbp]
	cdqe
	imul	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1976[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1976[rbp], rax
	cmp	QWORD PTR -1976[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1952[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, -1008[rbp]
	lea	rcx, [rax+rdx]
	lea	rax, -2068[rbp]
	mov	rdx, rax
	lea	rsi, .LC42[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L53
	mov	rax, QWORD PTR -1928[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1976[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2068[rbp]
	mov	DWORD PTR [rdx], eax
	add	QWORD PTR -1928[rbp], 1
	add	QWORD PTR -2016[rbp], 1
.L21:
	mov	rax, QWORD PTR -2024[rbp]
	cmp	QWORD PTR -2016[rbp], rax
	jl	.L25
	jmp	.L20
.L53:
	nop
.L20:
	mov	rax, QWORD PTR -1952[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -1952[rbp], 0
.L13:
	mov	rdx, QWORD PTR -1984[rbp]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L26
	lea	rax, -1264[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -1984[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L27:
	mov	eax, DWORD PTR -2064[rbp]
	cdqe
	sal	rax, 3
	add	QWORD PTR -1920[rbp], rax
	mov	eax, DWORD PTR -2064[rbp]
	cdqe
	sub	QWORD PTR -1992[rbp], rax
	sub	QWORD PTR -1928[rbp], 1
	mov	QWORD PTR -1936[rbp], 0
	cmp	DWORD PTR -2060[rbp], 0
	jne	.L28
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	QWORD PTR -2008[rbp], 0
	mov	rax, QWORD PTR -2008[rbp]
	mov	QWORD PTR -2016[rbp], rax
	jmp	.L29
.L31:
	mov	rax, QWORD PTR -2008[rbp]
	cmp	rax, QWORD PTR -1928[rbp]
	jl	.L30
	mov	QWORD PTR -2008[rbp], 0
	add	QWORD PTR -1936[rbp], 1
.L30:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1920[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -2008[rbp]
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -1976[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -2008[rbp]
	lea	rdi, 1[rcx]
	mov	rcx, QWORD PTR -1936[rbp]
	lea	rsi, 1[rcx]
	movq	xmm0, rdx
	mov	ecx, eax
	mov	rdx, rdi
	lea	rdi, .LC44[rip]
	mov	eax, 1
	call	printf@PLT
	add	QWORD PTR -2016[rbp], 1
	add	QWORD PTR -2008[rbp], 1
.L29:
	mov	rax, QWORD PTR -2016[rbp]
	cmp	rax, QWORD PTR -1992[rbp]
	jl	.L31
.L28:
	cmp	DWORD PTR -2060[rbp], 1
	jne	.L32
	mov	rax, QWORD PTR -1992[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -2044[rbp]
	cdqe
	imul	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1968[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1968[rbp], rax
	cmp	QWORD PTR -1968[rbp], 0
	jne	.L33
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR -1992[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -2044[rbp]
	cdqe
	imul	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1960[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1960[rbp], rax
	cmp	QWORD PTR -1960[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC16[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	QWORD PTR -2008[rbp], 0
	mov	rax, QWORD PTR -2008[rbp]
	mov	QWORD PTR -2016[rbp], rax
	jmp	.L35
.L37:
	mov	rax, QWORD PTR -2008[rbp]
	cmp	rax, QWORD PTR -1928[rbp]
	jl	.L36
	mov	QWORD PTR -2008[rbp], 0
	add	QWORD PTR -1936[rbp], 1
.L36:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1968[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -2008[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1960[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -1936[rbp]
	mov	DWORD PTR [rax], edx
	add	QWORD PTR -2016[rbp], 1
	add	QWORD PTR -2008[rbp], 1
.L35:
	mov	rax, QWORD PTR -2016[rbp]
	cmp	rax, QWORD PTR -1992[rbp]
	jl	.L37
	add	QWORD PTR -1936[rbp], 1
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -2016[rbp], 0
	jmp	.L38
.L39:
	mov	rax, QWORD PTR -2016[rbp]
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -2016[rbp], 1
.L38:
	mov	rax, QWORD PTR -2016[rbp]
	cmp	rax, QWORD PTR -1936[rbp]
	jl	.L39
	mov	edi, 10
	call	putchar@PLT
	mov	QWORD PTR -2016[rbp], 0
	jmp	.L40
.L46:
	mov	rax, QWORD PTR -2016[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1976[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -2016[rbp]
	lea	rcx, 1[rdx]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -2008[rbp], 0
	jmp	.L41
.L45:
	mov	QWORD PTR -2000[rbp], 0
	jmp	.L42
.L44:
	mov	rax, QWORD PTR -2000[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1968[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	cmp	QWORD PTR -2016[rbp], rax
	jne	.L43
	mov	rax, QWORD PTR -2000[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1960[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	cmp	QWORD PTR -2008[rbp], rax
	jne	.L43
	mov	rax, QWORD PTR -2000[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1920[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC48[rip]
	mov	eax, 1
	call	printf@PLT
.L43:
	add	QWORD PTR -2000[rbp], 1
.L42:
	mov	rax, QWORD PTR -2000[rbp]
	cmp	rax, QWORD PTR -1992[rbp]
	jl	.L44
	add	QWORD PTR -2008[rbp], 1
.L41:
	mov	rax, QWORD PTR -2008[rbp]
	cmp	rax, QWORD PTR -1936[rbp]
	jl	.L45
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -2016[rbp], 1
.L40:
	mov	rax, QWORD PTR -2016[rbp]
	cmp	rax, QWORD PTR -1928[rbp]
	jl	.L46
.L32:
	cmp	QWORD PTR -1952[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -1952[rbp]
	mov	rdi, rax
	call	free@PLT
.L47:
	cmp	QWORD PTR -1976[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -1976[rbp]
	mov	rdi, rax
	call	free@PLT
.L48:
	cmp	QWORD PTR -1968[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -1968[rbp]
	mov	rdi, rax
	call	free@PLT
.L49:
	cmp	QWORD PTR -1960[rbp], 0
	je	.L50
	mov	rax, QWORD PTR -1960[rbp]
	mov	rdi, rax
	call	free@PLT
.L50:
	cmp	QWORD PTR -1920[rbp], 0
	je	.L51
	mov	eax, DWORD PTR -2064[rbp]
	cdqe
	sal	rax, 3
	neg	rax
	add	QWORD PTR -1920[rbp], rax
	mov	rax, QWORD PTR -1920[rbp]
	mov	rdi, rax
	call	free@PLT
.L51:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC40:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC41:
	.long	-1
	.long	2146435071
	.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	"573960.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"C:\000"
	.align	2
.LC1:
	.ascii	"Z:\000"
	.align	2
.LC2:
	.ascii	"---------------------------------------------------"
	.ascii	"-------------------\012\000"
	.align	2
.LC3:
	.ascii	"xe-O2-readmed2 v 4: 12.June.2018 [JRH]\000"
	.align	2
.LC4:
	.ascii	"%s\012\000"
	.align	2
.LC5:
	.ascii	"Convert a Med-Associates file for amperometry data\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"Assumes:\012\000"
	.align	2
.LC7:
	.ascii	"\011- input is white-space delimited file\012\000"
	.align	2
.LC8:
	.ascii	"\011- multiple consecutive delimiters are treated a"
	.ascii	"s one\012\000"
	.align	2
.LC9:
	.ascii	"\011- leading blank-spaces distinguish section labe"
	.ascii	"ls from data\012\000"
	.align	2
.LC10:
	.ascii	"\011- input has sections for trial data trial-type "
	.ascii	"definition\012\000"
	.align	2
.LC11:
	.ascii	"\011- data section has multiple fixed-length blocks"
	.ascii	" of trials\012\000"
	.align	2
.LC12:
	.ascii	"\011- trials-per-block is defined in the trial-defi"
	.ascii	"nition section\012\000"
	.align	2
.LC13:
	.ascii	"\011\011NOTE: trial definition section known to hav"
	.ascii	"e one extra entry\012\000"
	.align	2
.LC14:
	.ascii	"\011\011NOTE: this extra should always be trial-typ"
	.ascii	"e zero\012\000"
	.align	2
.LC15:
	.ascii	"USAGE:\012\000"
	.align	2
.LC16:
	.ascii	"xe-O2-readmed2\000"
	.align	2
.LC17:
	.ascii	"\011%s [input] [options]\012\000"
	.align	2
.LC18:
	.ascii	"\011[input]: Med-Associates input file (.txt) or \""
	.ascii	"stdin\"\012\000"
	.align	2
.LC19:
	.ascii	"VALID OPTIONS (defaults in []):\012\000"
	.align	2
.LC20:
	.ascii	"\011-h : number of header entries in data-section t"
	.ascii	"o ignore [%d]\012\000"
	.align	2
.LC21:
	.ascii	"\011-s1 : data section [%s]\012\000"
	.align	2
.LC22:
	.ascii	"\011-s2 : trial-definition section [%s]\012\000"
	.align	2
.LC23:
	.ascii	"\011-r : treat data-blocks as repeated measures (ou"
	.ascii	"tput in separate columns [%d]\012\000"
	.align	2
.LC24:
	.ascii	"EXAMPLES:\012\000"
	.align	2
.LC25:
	.ascii	"\011%s data.txt -s1 \"C:\" -s2 \"Z:\" \012\000"
	.align	2
.LC26:
	.ascii	"\011cat temp.txt | %s stdin -s1 \"C:\" -s2 \"Z:\"\012"
	.ascii	"\000"
	.align	2
.LC27:
	.ascii	"OUTPUT: [block]\011[trial] [trialtype] [data]\012\000"
	.align	2
.LC28:
	.ascii	"%s\000"
	.align	2
.LC29:
	.ascii	"\012--- Error [%s]: missing value for argument \"%s"
	.ascii	"\"\012\012\000"
	.align	2
.LC30:
	.ascii	"-h\000"
	.align	2
.LC31:
	.ascii	"-s1\000"
	.align	2
.LC32:
	.ascii	"-s2\000"
	.align	2
.LC33:
	.ascii	"-r\000"
	.align	2
.LC34:
	.ascii	"\012--- Error [%s]: invalid command line argument \""
	.ascii	"%s\"\012\012\000"
	.align	2
.LC35:
	.ascii	"stdin\000"
	.align	2
.LC36:
	.ascii	"r\000"
	.align	2
.LC37:
	.ascii	"\012--- Error [%s]: file \"%s\" not found\012\012\000"
	.align	2
.LC38:
	.ascii	"\012--- Error [%s]: insufficient memory\012\012\000"
	.align	2
.LC39:
	.ascii	"%lf\000"
	.global	__aeabi_dcmpun
	.global	__aeabi_dcmpgt
	.align	2
.LC40:
	.ascii	"%d\000"
	.align	2
.LC41:
	.ascii	"block\011trial\011type\011data\000"
	.align	2
.LC42:
	.ascii	"%ld\011%ld\011%d\011%g\012\000"
	.align	2
.LC43:
	.ascii	"trial\011type\000"
	.align	2
.LC44:
	.ascii	"\011block%ld\000"
	.align	2
.LC45:
	.ascii	"%ld\011%d\000"
	.align	2
.LC46:
	.ascii	"\011%g\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #2016
	sub	sp, sp, #12
	str	r0, [fp, #-2032]
	str	r1, [fp, #-2036]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-1960]
	mov	r3, #2
	str	r3, [fp, #-1956]
	mov	r3, #4
	str	r3, [fp, #-1952]
	mov	r3, #4
	str	r3, [fp, #-1948]
	mov	r3, #4
	str	r3, [fp, #-1944]
	mov	r3, #8
	str	r3, [fp, #-1940]
	mov	r3, #0
	str	r3, [fp, #-2000]
	mov	r3, #0
	str	r3, [fp, #-1996]
	mov	r3, #0
	str	r3, [fp, #-1992]
	mov	r3, #0
	str	r3, [fp, #-1988]
	mvn	r3, #0
	str	r3, [fp, #-1984]
	mov	r3, #0
	str	r3, [fp, #-1972]
	mov	r3, #0
	str	r3, [fp, #-1936]
	mov	r3, #11
	str	r3, [fp, #-1968]
	mov	r3, #0
	str	r3, [fp, #-1964]
	sub	r3, fp, #1392
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+8
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-2032]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L55+16
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+20
	ldr	r1, .L55+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L55+16
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L55+28
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L55+32
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L55+36
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L55+40
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, .L55+44
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L55+48
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L55+52
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #63
	mov	r1, #1
	ldr	r0, .L55+56
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #63
	mov	r1, #1
	ldr	r0, .L55+60
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #52
	mov	r1, #1
	ldr	r0, .L55+64
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L55+68
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+76
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L55+80
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L55+84
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-1968]
	ldr	r1, .L55+88
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r0, [r3]
	sub	r3, fp, #1392
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L55+92
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r0, [r3]
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L55+96
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-1964]
	ldr	r1, .L55+100
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L55+104
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+108
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+112
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L55+116
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L55+16
	bl	fwrite
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-2036]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1264
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+120
	mov	r0, r3
	bl	sprintf
	mov	r3, #2
	str	r3, [fp, #-2020]
	b	.L3
.L10:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L4
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	ldr	r2, [fp, #-2032]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, .L55+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+124
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L55+128
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1968]
	b	.L4
.L6:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L55+132
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1392
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+120
	mov	r0, r3
	bl	sprintf
	b	.L4
.L7:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L55+136
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+120
	mov	r0, r3
	bl	sprintf
	b	.L4
.L8:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L55+140
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1964]
	b	.L4
.L9:
	ldr	r3, .L55+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2036]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+144
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L3:
	ldr	r2, [fp, #-2020]
	ldr	r3, [fp, #-2032]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #1264
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+148
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L55+152
	ldr	r3, [r3]
	str	r3, [fp, #-2004]
	b	.L12
.L11:
	sub	r3, fp, #1264
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+156
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2004]
	ldr	r3, [fp, #-2004]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L55+12
	ldr	r0, [r3]
	sub	r3, fp, #1264
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L55+72
	ldr	r1, .L55+160
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	mov	r3, #0
	str	r3, [fp, #-1976]
	ldr	r3, [fp, #-1976]
	str	r3, [fp, #-2008]
	b	.L13
.L27:
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #1024
	mov	r1, r3
	mov	r0, r2
	bl	xf_lineparse1
	str	r0, [fp, #-1988]
	sub	r3, fp, #1024
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	mvn	r3, #0
	str	r3, [fp, #-1984]
	sub	r3, fp, #1392
	sub	r3, r3, #4
	sub	r3, r3, #12
	sub	r2, fp, #1024
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	mov	r3, #1
	str	r3, [fp, #-1984]
	b	.L13
.L15:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #12
	sub	r2, fp, #1024
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r3, #2
	str	r3, [fp, #-1984]
	b	.L13
.L14:
	ldr	r3, [fp, #-1984]
	cmp	r3, #1
	bne	.L16
	mov	r3, #1
	str	r3, [fp, #-2020]
	b	.L17
.L20:
	ldr	r3, [fp, #-2008]
	add	r3, r3, #1
	ldr	r2, [fp, #-1940]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-1972]
	bl	realloc
	str	r0, [fp, #-1972]
	ldr	r3, [fp, #-1972]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+164
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1988]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	sub	r3, fp, #1024
	add	r0, r3, r2
	sub	r3, fp, #1920
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L55+168
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L16
	ldr	r2, [fp, #-1932]
	ldr	r3, [fp, #-1928]
	mov	r4, r2
	bic	r5, r3, #-2147483648
	mov	r3, #1
	mov	r6, r3
	mvn	r2, #0
	ldr	r3, .L55+172
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpun
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mvn	r2, #0
	ldr	r3, .L55+172
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	mov	r6, r3
.L19:
	and	r3, r6, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-2008]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-1972]
	add	r1, r2, r3
	ldr	r2, [fp, #-1932]
	ldr	r3, [fp, #-1928]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-2008]
	add	r3, r3, #1
	str	r3, [fp, #-2008]
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L17:
	ldr	r3, [fp, #-2024]
	ldr	r2, [fp, #-2020]
	cmp	r2, r3
	blt	.L20
.L16:
	ldr	r3, [fp, #-1984]
	cmp	r3, #2
	bne	.L21
	mov	r3, #1
	str	r3, [fp, #-2020]
	b	.L22
.L26:
	ldr	r3, [fp, #-1976]
	add	r3, r3, #1
	ldr	r2, [fp, #-1948]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-2000]
	bl	realloc
	str	r0, [fp, #-2000]
	ldr	r3, [fp, #-2000]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+164
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1988]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	sub	r3, fp, #1024
	add	r0, r3, r2
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L55+176
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L54
	ldr	r3, [fp, #-1976]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2000]
	add	r3, r2, r3
	ldr	r2, [fp, #-2028]
	str	r2, [r3]
	ldr	r3, [fp, #-1976]
	add	r3, r3, #1
	str	r3, [fp, #-1976]
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L22:
	ldr	r3, [fp, #-2024]
	ldr	r2, [fp, #-2020]
	cmp	r2, r3
	blt	.L26
	b	.L21
.L54:
	nop
.L21:
	ldr	r0, [fp, #-1988]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-1988]
.L13:
	sub	r3, fp, #1024
	ldr	r2, [fp, #-2004]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	sub	r3, fp, #1264
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L55+148
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r0, [fp, #-2004]
	bl	fclose
.L28:
	ldr	r3, [fp, #-1968]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-1972]
	add	r3, r2, r3
	str	r3, [fp, #-1972]
	ldr	r2, [fp, #-2008]
	ldr	r3, [fp, #-1968]
	sub	r3, r2, r3
	str	r3, [fp, #-2008]
	ldr	r3, [fp, #-1976]
	sub	r3, r3, #1
	str	r3, [fp, #-1976]
	mov	r3, #0
	str	r3, [fp, #-1980]
	ldr	r3, [fp, #-1964]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L55+180
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-2016]
	ldr	r3, [fp, #-2016]
	str	r3, [fp, #-2020]
	b	.L30
.L32:
	ldr	r2, [fp, #-2016]
	ldr	r3, [fp, #-1976]
	cmp	r2, r3
	blt	.L31
	mov	r3, #0
	str	r3, [fp, #-2016]
	ldr	r3, [fp, #-1980]
	add	r3, r3, #1
	str	r3, [fp, #-1980]
.L31:
	ldr	r3, [fp, #-1980]
	add	r1, r3, #1
	ldr	r3, [fp, #-2016]
	add	r0, r3, #1
	ldr	r3, [fp, #-2016]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2000]
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-1972]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L55+184
	bl	printf
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
	ldr	r3, [fp, #-2016]
	add	r3, r3, #1
	str	r3, [fp, #-2016]
.L30:
	ldr	r2, [fp, #-2020]
	ldr	r3, [fp, #-2008]
	cmp	r2, r3
	blt	.L32
.L29:
	ldr	r3, [fp, #-1964]
	cmp	r3, #1
	bne	.L33
	ldr	r3, [fp, #-2008]
	add	r3, r3, #1
	ldr	r2, [fp, #-1948]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-1996]
	bl	realloc
	str	r0, [fp, #-1996]
	ldr	r3, [fp, #-1996]
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+164
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, [fp, #-2008]
	add	r3, r3, #1
	ldr	r2, [fp, #-1948]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-1992]
	bl	realloc
	str	r0, [fp, #-1992]
	ldr	r3, [fp, #-1992]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+72
	ldr	r1, .L55+164
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L35:
	mov	r3, #0
	str	r3, [fp, #-2016]
	ldr	r3, [fp, #-2016]
	str	r3, [fp, #-2020]
	b	.L36
.L38:
	ldr	r2, [fp, #-2016]
	ldr	r3, [fp, #-1976]
	cmp	r2, r3
	blt	.L37
	mov	r3, #0
	str	r3, [fp, #-2016]
	ldr	r3, [fp, #-1980]
	add	r3, r3, #1
	str	r3, [fp, #-1980]
.L37:
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1996]
	add	r3, r2, r3
	ldr	r2, [fp, #-2016]
	str	r2, [r3]
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1992]
	add	r3, r2, r3
	ldr	r2, [fp, #-1980]
	str	r2, [r3]
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
	ldr	r3, [fp, #-2016]
	add	r3, r3, #1
	str	r3, [fp, #-2016]
.L36:
	ldr	r2, [fp, #-2020]
	ldr	r3, [fp, #-2008]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-1980]
	add	r3, r3, #1
	str	r3, [fp, #-1980]
	ldr	r0, .L55+188
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-2020]
	b	.L39
.L40:
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L55+192
	bl	printf
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L39:
	ldr	r2, [fp, #-2020]
	ldr	r3, [fp, #-1980]
	cmp	r2, r3
	blt	.L40
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-2020]
	b	.L41
.L47:
	ldr	r3, [fp, #-2020]
	add	r1, r3, #1
	ldr	r3, [fp, #-2020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2000]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L55+196
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-2016]
	b	.L42
.L46:
	mov	r3, #0
	str	r3, [fp, #-2012]
	b	.L43
.L45:
	ldr	r3, [fp, #-2012]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1996]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-2020]
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-2012]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1992]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-2016]
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-2012]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-1972]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L55+200
	bl	printf
.L44:
	ldr	r3, [fp, #-2012]
	add	r3, r3, #1
	str	r3, [fp, #-2012]
.L43:
	ldr	r2, [fp, #-2012]
	ldr	r3, [fp, #-2008]
	cmp	r2, r3
	blt	.L45
	ldr	r3, [fp, #-2016]
	add	r3, r3, #1
	str	r3, [fp, #-2016]
.L42:
	ldr	r2, [fp, #-2016]
	ldr	r3, [fp, #-1980]
	cmp	r2, r3
	blt	.L46
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L41:
	ldr	r2, [fp, #-2020]
	ldr	r3, [fp, #-1976]
	cmp	r2, r3
	blt	.L47
.L33:
	ldr	r3, [fp, #-1988]
	cmp	r3, #0
	beq	.L48
	ldr	r0, [fp, #-1988]
	bl	free
.L48:
	ldr	r3, [fp, #-2000]
	cmp	r3, #0
	beq	.L49
	ldr	r0, [fp, #-2000]
	bl	free
.L49:
	ldr	r3, [fp, #-1996]
	cmp	r3, #0
	beq	.L50
	ldr	r0, [fp, #-1996]
	bl	free
.L50:
	ldr	r3, [fp, #-1992]
	cmp	r3, #0
	beq	.L51
	ldr	r0, [fp, #-1992]
	bl	free
.L51:
	ldr	r3, [fp, #-1972]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-1968]
	lsl	r3, r3, #3
	rsb	r3, r3, #0
	ldr	r2, [fp, #-1972]
	add	r3, r2, r3
	str	r3, [fp, #-1972]
	ldr	r0, [fp, #-1972]
	bl	free
.L52:
	mov	r0, #0
	bl	exit
.L56:
	.align	2
.L55:
	.word	.LC47
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	stdin
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	2146435071
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
