	.file	"20449754.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"----------------------------------------------------------------------\n"
	.align 8
.LC1:
	.string	"xe-cut2 15.February.2019 [JRH]"
.LC2:
	.string	"%s\n"
	.align 8
.LC3:
	.string	"Extract blocks of lines from a text file\n"
	.align 8
.LC4:
	.string	"- must define a character-string marking the beginning of each block\n"
	.align 8
.LC5:
	.string	"- default behaviour is to extract this line and all subsequent lines\n"
	.align 8
.LC6:
	.string	"- override this by using any combination of stop-options (s1,s2,s3,s4)\n"
.LC7:
	.string	"USAGE:\n"
.LC8:
	.string	"xe-cut2"
.LC9:
	.string	"\t%s [input] [start]\n"
	.align 8
.LC10:
	.string	"\t[input]: file name or \"stdin\"\n"
	.align 8
.LC11:
	.string	"\t[start]: quoted text marking start of block to be extracted\n"
	.align 8
.LC12:
	.string	"VALID OPTIONS: defaults in []\n"
	.align 8
.LC13:
	.string	"- stop on line (and do not extract) if...\n"
	.align 8
.LC14:
	.string	"\t-s1 line is blank (0=NO 1=YES) [%d]\n"
	.align 8
.LC15:
	.string	"\t-s2 1st character matches that of start (eg. #,%%,/) (0=NO 1=YES) [%d]\n"
	.align 8
.LC16:
	.string	"\t-s3 line matches this quoted string of characters [unset]\n"
	.align 8
.LC17:
	.string	"\t-s4 line indentation is <= that of [start] (0=NO 1=YES) [%d]\n"
	.align 8
.LC18:
	.string	"\t-verb sets verbosity (0=simple, 1=verbose) [%d]\n"
.LC19:
	.string	"EXAMPLES:\n"
	.align 8
.LC20:
	.string	"\t%s data.txt \"# block1\" -s1 1 -s3 \"# block2\"\n"
	.align 8
.LC21:
	.string	"\tcat temp.txt | %s stdin \"%% START\" -s1 1\n"
.LC22:
	.string	"OUTPUT:\n"
	.align 8
.LC23:
	.string	"\tthe desired block of text, sent to stdout\n"
	.align 8
.LC24:
	.string	"\n--- Error [%s]: missing value for argument \"%s\"\n\n"
.LC25:
	.string	"-s1"
.LC26:
	.string	"-s2"
.LC27:
	.string	"-s3"
.LC28:
	.string	"-s4"
.LC29:
	.string	"-verb"
	.align 8
.LC30:
	.string	"\n*** %s [ERROR: invalid command line argument \"%s\"]\n\n"
	.align 8
.LC31:
	.string	"\n--- Error [%s]: invalid -s1 [%d] must be 0 or 1\n\n"
	.align 8
.LC32:
	.string	"\n--- Error [%s]: invalid -s2 [%d] must be 0 or 1\n\n"
	.align 8
.LC33:
	.string	"\n--- Error [%s]: invalid -s4 [%d] must be 0 or 1\n\n"
	.align 8
.LC34:
	.string	"\n--- Error [%s]: invalid -verb [%d] must be 0 or 1\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]: readline function encountered insufficient memory\n\n"
.LC39:
	.string	"%s"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	cmp	DWORD PTR -116[rbp], 2
	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, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[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, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 69
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 69
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 61
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -84[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -80[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -76[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -88[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC0[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 -128[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -56[rbp], 3
	jmp	.L3
.L11:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L4
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	cmp	rdx, rax
	jl	.L5
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -80[rbp], eax
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -76[rbp], eax
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -88[rbp], eax
	jmp	.L4
.L10:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	add	QWORD PTR -56[rbp], 1
.L3:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	cmp	QWORD PTR -56[rbp], rax
	jl	.L11
	cmp	DWORD PTR -84[rbp], 0
	je	.L12
	cmp	DWORD PTR -84[rbp], 1
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -84[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	cmp	DWORD PTR -80[rbp], 0
	je	.L13
	cmp	DWORD PTR -80[rbp], 1
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	cmp	DWORD PTR -76[rbp], 0
	je	.L14
	cmp	DWORD PTR -76[rbp], 1
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -76[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	cmp	DWORD PTR -88[rbp], 0
	je	.L15
	cmp	DWORD PTR -88[rbp], 1
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -88[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	cmp	DWORD PTR -80[rbp], 1
	jne	.L16
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -100[rbp], eax
	jmp	.L17
.L16:
	mov	DWORD PTR -100[rbp], -1
.L17:
	mov	DWORD PTR -92[rbp], -1
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L20
.L18:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, -1
	jne	.L21
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L22
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], 0
	jmp	.L23
.L24:
	add	DWORD PTR -92[rbp], 1
.L23:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L24
	jmp	.L25
.L22:
	cmp	DWORD PTR -84[rbp], 1
	jne	.L26
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L26
	mov	DWORD PTR -96[rbp], 0
.L26:
	cmp	DWORD PTR -80[rbp], 1
	jne	.L27
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -100[rbp], eax
	jne	.L27
	mov	DWORD PTR -96[rbp], 0
.L27:
	cmp	QWORD PTR -32[rbp], 0
	je	.L28
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L28
	mov	DWORD PTR -96[rbp], 0
.L28:
	cmp	DWORD PTR -76[rbp], 1
	jne	.L25
	mov	QWORD PTR -48[rbp], 0
	jmp	.L29
.L30:
	add	QWORD PTR -48[rbp], 1
.L29:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L30
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	jg	.L25
	mov	DWORD PTR -96[rbp], 0
.L25:
	cmp	DWORD PTR -96[rbp], 1
	jne	.L20
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, -72[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	xf_lineread1@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L32:
	cmp	QWORD PTR -64[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
.L33:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"20449754.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"---------------------------------------------------"
	.ascii	"-------------------\012\000"
	.align	2
.LC1:
	.ascii	"xe-cut2 15.February.2019 [JRH]\000"
	.align	2
.LC2:
	.ascii	"%s\012\000"
	.align	2
.LC3:
	.ascii	"Extract blocks of lines from a text file\012\000"
	.align	2
.LC4:
	.ascii	"- must define a character-string marking the beginn"
	.ascii	"ing of each block\012\000"
	.align	2
.LC5:
	.ascii	"- default behaviour is to extract this line and all"
	.ascii	" subsequent lines\012\000"
	.align	2
.LC6:
	.ascii	"- override this by using any combination of stop-op"
	.ascii	"tions (s1,s2,s3,s4)\012\000"
	.align	2
.LC7:
	.ascii	"USAGE:\012\000"
	.align	2
.LC8:
	.ascii	"xe-cut2\000"
	.align	2
.LC9:
	.ascii	"\011%s [input] [start]\012\000"
	.align	2
.LC10:
	.ascii	"\011[input]: file name or \"stdin\"\012\000"
	.align	2
.LC11:
	.ascii	"\011[start]: quoted text marking start of block to "
	.ascii	"be extracted\012\000"
	.align	2
.LC12:
	.ascii	"VALID OPTIONS: defaults in []\012\000"
	.align	2
.LC13:
	.ascii	"- stop on line (and do not extract) if...\012\000"
	.align	2
.LC14:
	.ascii	"\011-s1 line is blank (0=NO 1=YES) [%d]\012\000"
	.align	2
.LC15:
	.ascii	"\011-s2 1st character matches that of start (eg. #,"
	.ascii	"%%,/) (0=NO 1=YES) [%d]\012\000"
	.align	2
.LC16:
	.ascii	"\011-s3 line matches this quoted string of characte"
	.ascii	"rs [unset]\012\000"
	.align	2
.LC17:
	.ascii	"\011-s4 line indentation is <= that of [start] (0=N"
	.ascii	"O 1=YES) [%d]\012\000"
	.align	2
.LC18:
	.ascii	"\011-verb sets verbosity (0=simple, 1=verbose) [%d]"
	.ascii	"\012\000"
	.align	2
.LC19:
	.ascii	"EXAMPLES:\012\000"
	.align	2
.LC20:
	.ascii	"\011%s data.txt \"# block1\" -s1 1 -s3 \"# block2\""
	.ascii	"\012\000"
	.align	2
.LC21:
	.ascii	"\011cat temp.txt | %s stdin \"%% START\" -s1 1\012\000"
	.align	2
.LC22:
	.ascii	"OUTPUT:\012\000"
	.align	2
.LC23:
	.ascii	"\011the desired block of text, sent to stdout\012\000"
	.align	2
.LC24:
	.ascii	"\012--- Error [%s]: missing value for argument \"%s"
	.ascii	"\"\012\012\000"
	.align	2
.LC25:
	.ascii	"-s1\000"
	.align	2
.LC26:
	.ascii	"-s2\000"
	.align	2
.LC27:
	.ascii	"-s3\000"
	.align	2
.LC28:
	.ascii	"-s4\000"
	.align	2
.LC29:
	.ascii	"-verb\000"
	.align	2
.LC30:
	.ascii	"\012*** %s [ERROR: invalid command line argument \""
	.ascii	"%s\"]\012\012\000"
	.align	2
.LC31:
	.ascii	"\012--- Error [%s]: invalid -s1 [%d] must be 0 or 1"
	.ascii	"\012\012\000"
	.align	2
.LC32:
	.ascii	"\012--- Error [%s]: invalid -s2 [%d] must be 0 or 1"
	.ascii	"\012\012\000"
	.align	2
.LC33:
	.ascii	"\012--- Error [%s]: invalid -s4 [%d] must be 0 or 1"
	.ascii	"\012\012\000"
	.align	2
.LC34:
	.ascii	"\012--- Error [%s]: invalid -verb [%d] must be 0 or"
	.ascii	" 1\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]: readline function encountered i"
	.ascii	"nsufficient memory\012\012\000"
	.align	2
.LC39:
	.ascii	"%s\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L35+8
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, .L35+12
	ldr	r1, .L35+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L35+8
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L35+20
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #69
	mov	r1, #1
	ldr	r0, .L35+24
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #69
	mov	r1, #1
	ldr	r0, .L35+28
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L35+32
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L35+36
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, .L35+40
	ldr	r1, .L35+44
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L35+48
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, .L35+52
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L35+56
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L35+60
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L35+64
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L35+68
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L35+72
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L35+76
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L35+80
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L35+84
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, .L35+40
	ldr	r1, .L35+88
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, .L35+40
	ldr	r1, .L35+92
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L35+96
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L35+100
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L35+8
	bl	fwrite
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	mov	r3, #3
	str	r3, [fp, #-60]
	b	.L3
.L11:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L4
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L35+40
	ldr	r1, .L35+104
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L35+108
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	b	.L4
.L6:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L35+112
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-24]
	b	.L4
.L7:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L35+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	b	.L4
.L8:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L35+120
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	b	.L4
.L9:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L35+124
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-32]
	b	.L4
.L10:
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L35+40
	ldr	r1, .L35+128
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L3:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L12
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, .L35+40
	ldr	r1, .L35+132
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L13
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, .L35+40
	ldr	r1, .L35+136
	bl	fprintf
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L14
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, .L35+40
	ldr	r1, .L35+140
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L15
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, .L35+40
	ldr	r1, .L35+144
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L16
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-48]
	b	.L17
.L16:
	mvn	r3, #0
	str	r3, [fp, #-48]
.L17:
	mvn	r3, #0
	str	r3, [fp, #-40]
	ldr	r1, .L35+148
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L35+152
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	b	.L20
.L18:
	ldr	r1, .L35+156
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, .L35+40
	ldr	r1, .L35+160
	bl	fprintf
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L21
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, .L35+40
	ldr	r1, .L35+164
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L21:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-64]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	mov	r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L23
.L24:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L23:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-64]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L24
	b	.L25
.L22:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L26
	ldr	r0, [fp, #-64]
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L26
	mov	r3, #0
	str	r3, [fp, #-44]
.L26:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	cmp	r3, r2
	bne	.L27
	mov	r3, #0
	str	r3, [fp, #-44]
.L27:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L28
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-64]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	str	r3, [fp, #-44]
.L28:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L25
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L29
.L30:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L29:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-64]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L30
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bgt	.L25
	mov	r3, #0
	str	r3, [fp, #-44]
.L25:
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L20
	ldr	r1, [fp, #-64]
	ldr	r0, .L35+168
	bl	printf
.L20:
	sub	r3, fp, #68
	ldr	r2, [fp, #-52]
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	xf_lineread1
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L31
	ldr	r1, .L35+148
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r0, [fp, #-52]
	bl	fclose
.L32:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-64]
	bl	free
.L33:
	mov	r0, #0
	bl	exit
.L36:
	.align	2
.L35:
	.word	.LC40
	.word	stderr
	.word	.LC0
	.word	.LC1
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
