	.file	"98907.c"
	.intel_syntax noprefix
	.text
	.type	flush_wait, @function
flush_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 10000
	call	usleep@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	flush_wait, .-flush_wait
	.section	.rodata
	.align 8
.LC0:
	.string	"A simple implementation of a shell for testing termopen()."
.LC1:
	.string	""
.LC2:
	.string	"Usage:"
.LC3:
	.string	"  shell-test --help"
	.align 8
.LC4:
	.string	"    Prints this help to stdout."
.LC5:
	.string	"  shell-test"
.LC6:
	.string	"  shell-test EXE"
	.align 8
.LC7:
	.string	"    Prints \"ready $ \" to stderr."
.LC8:
	.string	"  shell-test -t {prompt text}"
	.align 8
.LC9:
	.string	"    Prints \"{prompt text} $ \" to stderr."
	.align 8
.LC10:
	.string	"  shell-test EXE \"prog args...\""
	.align 8
.LC11:
	.string	"    Prints \"ready $ prog args...\\n\" to stderr."
	.align 8
.LC12:
	.string	"  shell-test -t {prompt text} EXE \"prog args...\""
	.align 8
.LC13:
	.string	"    Prints \"{prompt text} $ progs args...\" to stderr."
.LC14:
	.string	"  shell-test REP N {text}"
	.align 8
.LC15:
	.string	"    Prints \"{lnr}: {text}\\n\" to stdout N times, taking N milliseconds."
.LC16:
	.string	"    Example:"
	.align 8
.LC17:
	.string	"      shell-test REP 97 \"foo bar\""
.LC18:
	.string	"      0: foo bar"
.LC19:
	.string	"      ..."
.LC20:
	.string	"      96: foo bar"
	.align 8
.LC21:
	.string	"  shell-test REP_NODELAY N {text}"
.LC22:
	.string	"  shell-test INTERACT"
	.align 8
.LC23:
	.string	"    Prints \"interact $ \" to stderr, and waits for \"exit\" input."
	.text
	.type	help, @function
help:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	help, .-help
	.section	.rodata
.LC24:
	.string	"--help"
.LC25:
	.string	"-t"
	.align 8
.LC26:
	.string	"Missing prompt text for -t option\n"
.LC27:
	.string	"%s $ "
.LC28:
	.string	"EXE"
.LC29:
	.string	"%s\n"
.LC30:
	.string	"ready $ "
.LC31:
	.string	"REP"
.LC32:
	.string	"REP_NODELAY"
	.align 8
.LC33:
	.string	"REP expects exactly 3 arguments\n"
.LC34:
	.string	"%d"
.LC35:
	.string	"Invalid count: %s\n"
.LC36:
	.string	"%d: %s\n"
.LC37:
	.string	"UTF-8"
.LC38:
	.string	"\245"
.LC39:
	.string	"ref: \303\245\314\262"
.LC40:
	.string	"1: \303"
.LC41:
	.string	"\245\314\262"
.LC42:
	.string	"2: \303\245"
.LC43:
	.string	"\314\262"
.LC44:
	.string	"3: \303\245\314"
.LC45:
	.string	"\262"
.LC46:
	.string	"INTERACT"
.LC47:
	.string	"interact $ "
.LC48:
	.string	"%99s %d"
.LC49:
	.string	"exit"
.LC50:
	.string	"command not found: %s\n"
.LC51:
	.string	"Unknown first argument: %s\n"
.LC52:
	.string	"Missing first argument\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, 416
	mov	DWORD PTR -404[rbp], edi
	mov	QWORD PTR -416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -404[rbp], 2
	jne	.L4
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	call	help
.L4:
	cmp	DWORD PTR -404[rbp], 1
	jle	.L5
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	cmp	DWORD PTR -404[rbp], 2
	jg	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	eax, 5
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -404[rbp], 4
	jle	.L9
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L9
.L6:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -404[rbp], 2
	jle	.L9
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
.L11:
	cmp	DWORD PTR -404[rbp], 4
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	eax, 4
	jmp	.L8
.L13:
	mov	DWORD PTR -400[rbp], 0
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -400[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L15
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 4
	jmp	.L8
.L15:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	DWORD PTR -396[rbp], 0
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -396[rbp], 1
.L17:
	mov	eax, DWORD PTR -400[rbp]
	cmp	DWORD PTR -396[rbp], eax
	jl	.L18
	jmp	.L9
.L16:
	mov	DWORD PTR -392[rbp], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -392[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1000
	call	usleep@PLT
	add	DWORD PTR -392[rbp], 1
.L20:
	mov	eax, DWORD PTR -400[rbp]
	cmp	DWORD PTR -392[rbp], eax
	jl	.L21
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	edi, -61
	call	putchar@PLT
	call	flush_wait
	lea	rdi, .LC38[rip]
	call	puts@PLT
	call	flush_wait
	lea	rdi, .LC39[rip]
	call	puts@PLT
	call	flush_wait
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	call	flush_wait
	lea	rdi, .LC41[rip]
	call	puts@PLT
	call	flush_wait
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	call	flush_wait
	lea	rdi, .LC43[rip]
	call	puts@PLT
	call	flush_wait
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	call	flush_wait
	lea	rdi, .LC45[rip]
	call	puts@PLT
	call	flush_wait
	jmp	.L9
.L22:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
.L28:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC47[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L31
	lea	rcx, -400[rbp]
	lea	rdx, -384[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 1
	jne	.L26
	mov	DWORD PTR -400[rbp], 0
.L26:
	lea	rax, -384[rbp]
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR -400[rbp]
	jmp	.L8
.L27:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -384[rbp]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L28
.L23:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 3
	jmp	.L8
.L31:
	nop
.L9:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	jmp	.L8
.L5:
	cmp	DWORD PTR -404[rbp], 1
	jne	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L8
.L29:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC52[rip]
	call	fwrite@PLT
	mov	eax, 2
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"98907.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_wait, %function
flush_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L2+4
	bl	usleep
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stdout
	.word	10000
	.size	flush_wait, .-flush_wait
	.section	.rodata
	.align	2
.LC0:
	.ascii	"A simple implementation of a shell for testing term"
	.ascii	"open().\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Usage:\000"
	.align	2
.LC3:
	.ascii	"  shell-test --help\000"
	.align	2
.LC4:
	.ascii	"    Prints this help to stdout.\000"
	.align	2
.LC5:
	.ascii	"  shell-test\000"
	.align	2
.LC6:
	.ascii	"  shell-test EXE\000"
	.align	2
.LC7:
	.ascii	"    Prints \"ready $ \" to stderr.\000"
	.align	2
.LC8:
	.ascii	"  shell-test -t {prompt text}\000"
	.align	2
.LC9:
	.ascii	"    Prints \"{prompt text} $ \" to stderr.\000"
	.align	2
.LC10:
	.ascii	"  shell-test EXE \"prog args...\"\000"
	.align	2
.LC11:
	.ascii	"    Prints \"ready $ prog args...\\n\" to stderr.\000"
	.align	2
.LC12:
	.ascii	"  shell-test -t {prompt text} EXE \"prog args...\"\000"
	.align	2
.LC13:
	.ascii	"    Prints \"{prompt text} $ progs args...\" to std"
	.ascii	"err.\000"
	.align	2
.LC14:
	.ascii	"  shell-test REP N {text}\000"
	.align	2
.LC15:
	.ascii	"    Prints \"{lnr}: {text}\\n\" to stdout N times, "
	.ascii	"taking N milliseconds.\000"
	.align	2
.LC16:
	.ascii	"    Example:\000"
	.align	2
.LC17:
	.ascii	"      shell-test REP 97 \"foo bar\"\000"
	.align	2
.LC18:
	.ascii	"      0: foo bar\000"
	.align	2
.LC19:
	.ascii	"      ...\000"
	.align	2
.LC20:
	.ascii	"      96: foo bar\000"
	.align	2
.LC21:
	.ascii	"  shell-test REP_NODELAY N {text}\000"
	.align	2
.LC22:
	.ascii	"  shell-test INTERACT\000"
	.align	2
.LC23:
	.ascii	"    Prints \"interact $ \" to stderr, and waits for"
	.ascii	" \"exit\" input.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	puts
	ldr	r0, .L5+4
	bl	puts
	ldr	r0, .L5+8
	bl	puts
	ldr	r0, .L5+12
	bl	puts
	ldr	r0, .L5+16
	bl	puts
	ldr	r0, .L5+20
	bl	puts
	ldr	r0, .L5+24
	bl	puts
	ldr	r0, .L5+28
	bl	puts
	ldr	r0, .L5+32
	bl	puts
	ldr	r0, .L5+36
	bl	puts
	ldr	r0, .L5+40
	bl	puts
	ldr	r0, .L5+44
	bl	puts
	ldr	r0, .L5+48
	bl	puts
	ldr	r0, .L5+52
	bl	puts
	ldr	r0, .L5+56
	bl	puts
	ldr	r0, .L5+60
	bl	puts
	ldr	r0, .L5+64
	bl	puts
	ldr	r0, .L5+68
	bl	puts
	ldr	r0, .L5+72
	bl	puts
	ldr	r0, .L5+76
	bl	puts
	ldr	r0, .L5+80
	bl	puts
	ldr	r0, .L5+84
	bl	puts
	ldr	r0, .L5+88
	bl	puts
	ldr	r0, .L5+92
	bl	puts
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.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
	.size	help, .-help
	.section	.rodata
	.align	2
.LC24:
	.ascii	"--help\000"
	.align	2
.LC25:
	.ascii	"-t\000"
	.align	2
.LC26:
	.ascii	"Missing prompt text for -t option\012\000"
	.align	2
.LC27:
	.ascii	"%s $ \000"
	.align	2
.LC28:
	.ascii	"EXE\000"
	.align	2
.LC29:
	.ascii	"%s\012\000"
	.align	2
.LC30:
	.ascii	"ready $ \000"
	.align	2
.LC31:
	.ascii	"REP\000"
	.align	2
.LC32:
	.ascii	"REP_NODELAY\000"
	.align	2
.LC33:
	.ascii	"REP expects exactly 3 arguments\012\000"
	.align	2
.LC34:
	.ascii	"%d\000"
	.align	2
.LC35:
	.ascii	"Invalid count: %s\012\000"
	.align	2
.LC36:
	.ascii	"%d: %s\012\000"
	.align	2
.LC37:
	.ascii	"UTF-8\000"
	.align	2
.LC38:
	.ascii	"\245\000"
	.align	2
.LC39:
	.ascii	"ref: \303\245\314\262\000"
	.align	2
.LC40:
	.ascii	"1: \303\000"
	.align	2
.LC41:
	.ascii	"\245\314\262\000"
	.align	2
.LC42:
	.ascii	"2: \303\245\000"
	.align	2
.LC43:
	.ascii	"\314\262\000"
	.align	2
.LC44:
	.ascii	"3: \303\245\314\000"
	.align	2
.LC45:
	.ascii	"\262\000"
	.align	2
.LC46:
	.ascii	"INTERACT\000"
	.align	2
.LC47:
	.ascii	"interact $ \000"
	.align	2
.LC48:
	.ascii	"%99s %d\000"
	.align	2
.LC49:
	.ascii	"exit\000"
	.align	2
.LC50:
	.ascii	"command not found: %s\012\000"
	.align	2
.LC51:
	.ascii	"Unknown first argument: %s\012\000"
	.align	2
.LC52:
	.ascii	"Missing first argument\012\000"
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #384
	str	r0, [fp, #-384]
	str	r1, [fp, #-388]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-384]
	cmp	r3, #2
	bne	.L8
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	bl	help
.L8:
	ldr	r3, [fp, #-384]
	cmp	r3, #1
	ble	.L9
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-384]
	cmp	r3, #2
	bgt	.L11
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L36+16
	bl	fwrite
	mov	r3, #5
	b	.L12
.L11:
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+20
	bl	fprintf
	ldr	r3, [fp, #-384]
	cmp	r3, #4
	ble	.L13
	ldr	r3, [fp, #-388]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L36+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+28
	bl	fprintf
	b	.L13
.L10:
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L36+32
	bl	fwrite
	ldr	r3, [fp, #-384]
	cmp	r3, #2
	ble	.L13
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+28
	bl	fprintf
	b	.L13
.L14:
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r3, [fp, #-384]
	cmp	r3, #4
	beq	.L17
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L36+44
	bl	fwrite
	mov	r3, #4
	b	.L12
.L17:
	mov	r3, #0
	str	r3, [fp, #-380]
	ldr	r3, [fp, #-388]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #380
	ldr	r1, .L36+48
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L19
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+52
	bl	fprintf
	mov	r3, #4
	b	.L12
.L19:
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L21
.L22:
	ldr	r3, [fp, #-388]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-376]
	ldr	r0, .L36+56
	bl	printf
	ldr	r3, .L36+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L21:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-376]
	cmp	r2, r3
	blt	.L22
	b	.L13
.L20:
	mov	r3, #0
	str	r3, [fp, #-372]
	b	.L24
.L25:
	ldr	r3, [fp, #-388]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-372]
	ldr	r0, .L36+56
	bl	printf
	ldr	r3, .L36+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1000
	bl	usleep
	ldr	r3, [fp, #-372]
	add	r3, r3, #1
	str	r3, [fp, #-372]
.L24:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-372]
	cmp	r2, r3
	blt	.L25
	b	.L13
.L16:
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	mvn	r0, #60
	bl	putchar
	bl	flush_wait
	ldr	r0, .L36+68
	bl	puts
	bl	flush_wait
	ldr	r0, .L36+72
	bl	puts
	bl	flush_wait
	ldr	r0, .L36+76
	bl	printf
	bl	flush_wait
	ldr	r0, .L36+80
	bl	puts
	bl	flush_wait
	ldr	r0, .L36+84
	bl	printf
	bl	flush_wait
	ldr	r0, .L36+88
	bl	puts
	bl	flush_wait
	ldr	r0, .L36+92
	bl	printf
	bl	flush_wait
	ldr	r0, .L36+96
	bl	puts
	bl	flush_wait
	b	.L13
.L26:
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+100
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
.L32:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L36+104
	bl	fwrite
	ldr	r3, .L36+108
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	sub	r3, fp, #380
	sub	r2, fp, #364
	sub	r0, fp, #264
	ldr	r1, .L36+112
	bl	__isoc99_sscanf
	str	r0, [fp, #-368]
	ldr	r3, [fp, #-368]
	cmp	r3, #1
	bne	.L30
	mov	r3, #0
	str	r3, [fp, #-380]
.L30:
	sub	r3, fp, #364
	ldr	r1, .L36+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-380]
	b	.L12
.L31:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	sub	r2, fp, #364
	ldr	r1, .L36+120
	mov	r0, r3
	bl	fprintf
	b	.L32
.L27:
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+124
	bl	fprintf
	mov	r3, #3
	b	.L12
.L35:
	nop
.L13:
	ldr	r3, .L36+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	b	.L12
.L9:
	ldr	r3, [fp, #-384]
	cmp	r3, #1
	bne	.L33
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L36+32
	bl	fwrite
	mov	r3, #0
	b	.L12
.L33:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L36+128
	bl	fwrite
	mov	r3, #2
.L12:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC53
	.word	.LC24
	.word	.LC25
	.word	stderr
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	stdout
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	stdin
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
