	.file	"54715.c"
	.intel_syntax noprefix
	.text
	.globl	builtin_str
	.section	.rodata
.LC0:
	.string	"cd"
.LC1:
	.string	"help"
.LC2:
	.string	"exit"
	.section	.data.rel.local,"aw"
	.align 16
	.type	builtin_str, @object
	.size	builtin_str, 24
builtin_str:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.globl	builtin_func
	.align 16
	.type	builtin_func, @object
	.size	builtin_func, 24
builtin_func:
	.quad	lsh_cd
	.quad	lsh_help
	.quad	lsh_exit
	.text
	.globl	lsh_num_builtins
	.type	lsh_num_builtins, @function
lsh_num_builtins:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 3
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lsh_num_builtins, .-lsh_num_builtins
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	lsh_loop
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"SS> "
	.text
	.globl	lsh_loop
	.type	lsh_loop, @function
lsh_loop:
.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
.L6:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	lsh_read_line
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	lsh_split_line
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	lsh_execute
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -20[rbp], 0
	jne	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	lsh_loop, .-lsh_loop
	.section	.rodata
.LC4:
	.string	"lsh: allocation error\n"
	.text
	.globl	lsh_read_line
	.type	lsh_read_line, @function
lsh_read_line:
.LFB9:
	.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], 1024
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L9
	mov	edi, 0
	call	exit@PLT
.L9:
	cmp	DWORD PTR -12[rbp], 10
	jne	.L10
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L13
.L10:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L8
	add	DWORD PTR -20[rbp], 1024
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	lsh_read_line, .-lsh_read_line
	.section	.rodata
.LC5:
	.string	" \t\r\n\007"
	.text
	.globl	lsh_split_line
	.type	lsh_split_line, @function
lsh_split_line:
.LFB10:
	.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	DWORD PTR -32[rbp], 64
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L17
	add	DWORD PTR -32[rbp], 64
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rsi, .LC5[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
.L16:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L18
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	lsh_split_line, .-lsh_split_line
	.globl	lsh_execute
	.type	lsh_execute, @function
lsh_execute:
.LFB11:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L21
	mov	eax, 1
	jmp	.L22
.L21:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, builtin_str[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, builtin_func[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L22
.L24:
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, 0
	call	lsh_num_builtins
	cmp	DWORD PTR -4[rbp], eax
	jl	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	lsh_launch
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	lsh_execute, .-lsh_execute
	.section	.rodata
	.align 8
.LC6:
	.string	"lsh: expected argument to \"cd\"\n"
.LC7:
	.string	"lsh"
	.text
	.globl	lsh_cd
	.type	lsh_cd, @function
lsh_cd:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L28
	lea	rdi, .LC7[rip]
	call	perror@PLT
.L28:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	lsh_cd, .-lsh_cd
	.section	.rodata
.LC8:
	.string	"Stephen Brennan's LSH"
	.align 8
.LC9:
	.string	"Type program names and arguments, and hit enter."
.LC10:
	.string	"The following are built in:"
.LC11:
	.string	"  %s\n"
	.align 8
.LC12:
	.string	"Use the man command for information on other programs."
	.text
	.globl	lsh_help
	.type	lsh_help, @function
lsh_help:
.LFB13:
	.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	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, builtin_str[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, 0
	call	lsh_num_builtins
	cmp	DWORD PTR -4[rbp], eax
	jl	.L32
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	lsh_help, .-lsh_help
	.globl	lsh_exit
	.type	lsh_exit, @function
lsh_exit:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	lsh_exit, .-lsh_exit
	.globl	lsh_launch
	.type	lsh_launch, @function
lsh_launch:
.LFB15:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L37
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L38
	lea	rdi, .LC7[rip]
	call	perror@PLT
.L38:
	mov	edi, 1
	call	exit@PLT
.L37:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L39
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L40
.L39:
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 127
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L39
.L40:
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	lsh_launch, .-lsh_launch
	.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	"54715.c"
	.text
	.global	builtin_str
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cd\000"
	.align	2
.LC1:
	.ascii	"help\000"
	.align	2
.LC2:
	.ascii	"exit\000"
	.data
	.align	2
	.type	builtin_str, %object
	.size	builtin_str, 12
builtin_str:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.global	builtin_func
	.align	2
	.type	builtin_func, %object
	.size	builtin_func, 12
builtin_func:
	.word	lsh_cd
	.word	lsh_help
	.word	lsh_exit
	.text
	.align	2
	.global	lsh_num_builtins
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_num_builtins, %function
lsh_num_builtins:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lsh_num_builtins, .-lsh_num_builtins
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	lsh_loop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"SS> \000"
	.text
	.align	2
	.global	lsh_loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_loop, %function
lsh_loop:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
.L6:
	ldr	r0, .L7
	bl	printf
	bl	lsh_read_line
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	lsh_split_line
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	lsh_execute
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.size	lsh_loop, .-lsh_loop
	.section	.rodata
	.align	2
.LC4:
	.ascii	"lsh: allocation error\012\000"
	.text
	.align	2
	.global	lsh_read_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_read_line, %function
lsh_read_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1024
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L16+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L10:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L11
	mov	r0, #0
	bl	exit
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L12
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	b	.L15
.L12:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-20]
	add	r3, r3, #1024
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	realloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L16+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stderr
	.word	.LC4
	.size	lsh_read_line, .-lsh_read_line
	.section	.rodata
	.align	2
.LC5:
	.ascii	" \011\015\012\007\000"
	.text
	.align	2
	.global	lsh_split_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_split_line, %function
lsh_split_line:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #64
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L19:
	ldr	r1, .L24+8
	ldr	r0, [fp, #-32]
	bl	strtok
	str	r0, [fp, #-12]
	b	.L20
.L22:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-24]
	add	r3, r3, #64
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L21:
	ldr	r1, .L24+8
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC4
	.word	.LC5
	.size	lsh_split_line, .-lsh_split_line
	.align	2
	.global	lsh_execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_execute, %function
lsh_execute:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	mov	r3, #1
	b	.L28
.L27:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L31:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r1, .L32
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r2, .L32+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, r0
	b	.L28
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	bl	lsh_num_builtins
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L31
	ldr	r0, [fp, #-16]
	bl	lsh_launch
	mov	r3, r0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	builtin_str
	.word	builtin_func
	.size	lsh_execute, .-lsh_execute
	.section	.rodata
	.align	2
.LC6:
	.ascii	"lsh: expected argument to \"cd\"\012\000"
	.align	2
.LC7:
	.ascii	"lsh\000"
	.text
	.align	2
	.global	lsh_cd
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_cd, %function
lsh_cd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L38
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L38+4
	bl	fwrite
	b	.L36
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r0, .L38+8
	bl	perror
.L36:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	stderr
	.word	.LC6
	.word	.LC7
	.size	lsh_cd, .-lsh_cd
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Stephen Brennan's LSH\000"
	.align	2
.LC9:
	.ascii	"Type program names and arguments, and hit enter.\000"
	.align	2
.LC10:
	.ascii	"The following are built in:\000"
	.align	2
.LC11:
	.ascii	"  %s\012\000"
	.align	2
.LC12:
	.ascii	"Use the man command for information on other progra"
	.ascii	"ms.\000"
	.text
	.align	2
	.global	lsh_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_help, %function
lsh_help:
	@ 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]
	ldr	r0, .L44
	bl	puts
	ldr	r0, .L44+4
	bl	puts
	ldr	r0, .L44+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r2, .L44+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L44+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	bl	lsh_num_builtins
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L42
	ldr	r0, .L44+20
	bl	puts
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	builtin_str
	.word	.LC11
	.word	.LC12
	.size	lsh_help, .-lsh_help
	.align	2
	.global	lsh_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_exit, %function
lsh_exit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lsh_exit, .-lsh_exit
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lsh_launch
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsh_launch, %function
lsh_launch:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L50
	ldr	r0, .L55+4
	bl	perror
.L50:
	mov	r0, #1
	bl	exit
.L49:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L55+4
	bl	perror
	b	.L52
.L51:
	sub	r3, fp, #16
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	waitpid
	ldr	r3, [fp, #-16]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L51
.L52:
	mov	r3, #1
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC13
	.word	.LC7
	.size	lsh_launch, .-lsh_launch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
