	.file	"142326716.c"
	.intel_syntax noprefix
	.text
	.local	argv0
	.comm	argv0,8,8
	.section	.rodata
.LC0:
	.string	"fork"
	.align 8
.LC1:
	.string	"%s: error: command `%s` does not exist\n"
.LC2:
	.string	"wait"
	.align 8
.LC3:
	.string	"%s: warning: command `%s` (PID %d) exited with a non-zero status code (%d)\n"
	.text
	.type	fork_exec, @function
fork_exec:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	je	.L2
	cmp	DWORD PTR -16[rbp], 0
	je	.L3
	jmp	.L4
.L2:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L4
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR argv0[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -20[rbp]
	mov	rdi, rax
	call	wait@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR argv0[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	edi, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L6:
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fork_exec, .-fork_exec
	.section	.rodata
.LC4:
	.string	"$ "
.LC5:
	.string	" "
.LC6:
	.string	"exit"
.LC7:
	.string	"quit"
.LC8:
	.string	"&&"
.LC9:
	.string	"||"
	.text
	.type	sh, @function
sh:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1680
	mov	QWORD PTR -1672[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L26:
	mov	rax, QWORD PTR stdin[rip]
	cmp	QWORD PTR -1672[rbp], rax
	jne	.L10
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	QWORD PTR -1640[rbp], 0
	mov	QWORD PTR -1632[rbp], 0
	mov	rdx, QWORD PTR -1672[rbp]
	lea	rcx, -1632[rbp]
	lea	rax, -1640[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -1624[rbp], rax
	cmp	QWORD PTR -1624[rbp], -1
	jne	.L11
	mov	rax, QWORD PTR stdin[rip]
	cmp	QWORD PTR -1672[rbp], rax
	jne	.L12
	jmp	.L28
.L11:
	mov	rdx, QWORD PTR -1640[rbp]
	mov	rax, QWORD PTR -1624[rbp]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -1640[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -816[rbp], rax
	mov	DWORD PTR -1664[rbp], 0
.L14:
	add	DWORD PTR -1664[rbp], 1
	lea	rsi, .LC5[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	edx, DWORD PTR -1664[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -816[rbp+rdx*8], rax
	mov	eax, DWORD PTR -1664[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR -816[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -816[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
.L15:
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	DWORD PTR -1660[rbp], 0
	mov	eax, DWORD PTR -1660[rbp]
	cdqe
	mov	DWORD PTR -1616[rbp+rax*4], 0
	mov	DWORD PTR -1216[rbp], 0
	mov	DWORD PTR -1656[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -1656[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	add	DWORD PTR -1660[rbp], 1
	mov	eax, DWORD PTR -1660[rbp]
	cdqe
	mov	DWORD PTR -1616[rbp+rax*4], 1
	mov	eax, DWORD PTR -1656[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -1660[rbp]
	cdqe
	mov	DWORD PTR -1216[rbp+rax*4], edx
	mov	eax, DWORD PTR -1656[rbp]
	cdqe
	mov	QWORD PTR -816[rbp+rax*8], 0
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -1656[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	add	DWORD PTR -1660[rbp], 1
	mov	eax, DWORD PTR -1660[rbp]
	cdqe
	mov	DWORD PTR -1616[rbp+rax*4], 2
	mov	eax, DWORD PTR -1656[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -1660[rbp]
	cdqe
	mov	DWORD PTR -1216[rbp+rax*4], edx
	mov	eax, DWORD PTR -1656[rbp]
	cdqe
	mov	QWORD PTR -816[rbp+rax*8], 0
.L19:
	add	DWORD PTR -1656[rbp], 1
.L17:
	mov	eax, DWORD PTR -1656[rbp]
	cmp	eax, DWORD PTR -1664[rbp]
	jl	.L20
	add	DWORD PTR -1660[rbp], 1
	mov	DWORD PTR -1652[rbp], 0
	mov	DWORD PTR -1648[rbp], 0
	jmp	.L21
.L25:
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	eax, DWORD PTR -1616[rbp+rax*4]
	cmp	eax, 1
	jne	.L22
	cmp	DWORD PTR -1652[rbp], 0
	jne	.L23
.L22:
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	eax, DWORD PTR -1616[rbp+rax*4]
	cmp	eax, 2
	jne	.L24
	cmp	DWORD PTR -1652[rbp], 0
	je	.L23
.L24:
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	eax, DWORD PTR -1216[rbp+rax*4]
	mov	DWORD PTR -1644[rbp], eax
	mov	eax, DWORD PTR -1644[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, -816[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	fork_exec
	mov	DWORD PTR -1652[rbp], eax
	add	DWORD PTR -1648[rbp], 1
.L21:
	mov	eax, DWORD PTR -1648[rbp]
	cmp	eax, DWORD PTR -1660[rbp]
	jl	.L25
.L23:
	mov	rax, QWORD PTR -1640[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L26
.L12:
	mov	rax, QWORD PTR -1672[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L28:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sh, .-sh
	.section	.rodata
.LC10:
	.string	"r"
.LC11:
	.string	"fopen"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR argv0[rip], rax
	cmp	DWORD PTR -20[rbp], 1
	jle	.L30
	mov	DWORD PTR -12[rbp], 1
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L32
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sh
	add	DWORD PTR -12[rbp], 1
.L31:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L33
	jmp	.L34
.L30:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	sh
.L34:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"142326716.c"
	.text
	.local	argv0
	.comm	argv0,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fork\000"
	.align	2
.LC1:
	.ascii	"%s: error: command `%s` does not exist\012\000"
	.align	2
.LC2:
	.ascii	"wait\000"
	.align	2
.LC3:
	.ascii	"%s: warning: command `%s` (PID %d) exited with a no"
	.ascii	"n-zero status code (%d)\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fork_exec, %function
fork_exec:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L3
	b	.L4
.L2:
	ldr	r0, .L9+4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L9+8
	ldr	r0, [r3]
	ldr	r3, .L9+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, .L9+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #20
	mov	r0, r3
	bl	wait
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L9+20
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L9+8
	ldr	r0, [r3]
	ldr	r3, .L9+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L9+24
	bl	fprintf
.L6:
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	stderr
	.word	argv0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	fork_exec, .-fork_exec
	.section	.rodata
	.align	2
.LC5:
	.ascii	"$ \000"
	.align	2
.LC6:
	.ascii	" \000"
	.align	2
.LC7:
	.ascii	"exit\000"
	.align	2
.LC8:
	.ascii	"quit\000"
	.align	2
.LC9:
	.ascii	"&&\000"
	.align	2
.LC10:
	.ascii	"||\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh, %function
sh:
	@ args = 0, pretend = 0, frame = 1248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1248
	str	r0, [fp, #-1248]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L28:
	ldr	r3, .L31+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1248]
	cmp	r2, r3
	bne	.L12
	ldr	r0, .L31+8
	bl	printf
.L12:
	mov	r3, #0
	str	r3, [fp, #-1244]
	mov	r3, #0
	str	r3, [fp, #-1240]
	sub	r1, fp, #1232
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1232
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1248]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-1216]
	ldr	r3, [fp, #-1216]
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L31+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1248]
	cmp	r2, r3
	bne	.L14
	b	.L30
.L13:
	ldr	r2, [fp, #-1244]
	ldr	r3, [fp, #-1216]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1244]
	ldr	r1, .L31+12
	mov	r0, r3
	bl	strtok
	mov	r3, r0
	str	r3, [fp, #-1208]
	mov	r3, #0
	str	r3, [fp, #-1236]
.L16:
	ldr	r3, [fp, #-1236]
	add	r3, r3, #1
	str	r3, [fp, #-1236]
	ldr	r1, .L31+12
	mov	r0, #0
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-1236]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1204]
	ldr	r3, [fp, #-1236]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1204]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-1208]
	ldr	r1, .L31+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-1208]
	ldr	r1, .L31+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
.L17:
	mov	r0, #0
	bl	exit
.L18:
	mov	r3, #0
	str	r3, [fp, #-1232]
	ldr	r3, [fp, #-1232]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-804]
	mov	r3, #0
	str	r3, [fp, #-408]
	mov	r3, #0
	str	r3, [fp, #-1228]
	b	.L19
.L22:
	ldr	r3, [fp, #-1228]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1204]
	ldr	r1, .L31+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-1232]
	add	r3, r3, #1
	str	r3, [fp, #-1232]
	ldr	r3, [fp, #-1232]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-1228]
	add	r2, r3, #1
	ldr	r3, [fp, #-1232]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-1228]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1204]
	b	.L21
.L20:
	ldr	r3, [fp, #-1228]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1204]
	ldr	r1, .L31+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-1232]
	add	r3, r3, #1
	str	r3, [fp, #-1232]
	ldr	r3, [fp, #-1232]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #2
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-1228]
	add	r2, r3, #1
	ldr	r3, [fp, #-1232]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-1228]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1204]
.L21:
	ldr	r3, [fp, #-1228]
	add	r3, r3, #1
	str	r3, [fp, #-1228]
.L19:
	ldr	r2, [fp, #-1228]
	ldr	r3, [fp, #-1236]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-1232]
	add	r3, r3, #1
	str	r3, [fp, #-1232]
	mov	r3, #0
	str	r3, [fp, #-1224]
	mov	r3, #0
	str	r3, [fp, #-1220]
	b	.L23
.L27:
	ldr	r3, [fp, #-1220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	cmp	r3, #1
	bne	.L24
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	bne	.L25
.L24:
	ldr	r3, [fp, #-1220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	cmp	r3, #2
	bne	.L26
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L25
.L26:
	ldr	r3, [fp, #-1220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	str	r3, [fp, #-1212]
	ldr	r3, [fp, #-1212]
	lsl	r2, r3, #2
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r0, r3
	bl	fork_exec
	str	r0, [fp, #-1224]
	ldr	r3, [fp, #-1220]
	add	r3, r3, #1
	str	r3, [fp, #-1220]
.L23:
	ldr	r2, [fp, #-1220]
	ldr	r3, [fp, #-1232]
	cmp	r2, r3
	blt	.L27
.L25:
	ldr	r3, [fp, #-1244]
	mov	r0, r3
	bl	free
	b	.L28
.L14:
	ldr	r0, [fp, #-1248]
	bl	fclose
.L30:
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC11
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	sh, .-sh
	.section	.rodata
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"fopen\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L40
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L34
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L35
.L37:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L40+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L40+8
	bl	perror
	mov	r0, #1
	bl	exit
.L36:
	ldr	r0, [fp, #-8]
	bl	sh
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L35:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L37
	b	.L38
.L34:
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sh
.L38:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	argv0
	.word	.LC12
	.word	.LC13
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
