	.file	"229877.c"
	.intel_syntax noprefix
	.text
	.globl	builtin_list
	.section	.rodata
.LC0:
	.string	"cd"
.LC1:
	.string	"exit"
	.section	.data.rel.local,"aw"
	.align 32
	.type	builtin_list, @object
	.size	builtin_list, 48
builtin_list:
	.quad	.LC0
	.quad	my_cd
	.quad	.LC1
	.quad	my_exit
	.quad	0
	.quad	0
	.text
	.globl	is_builtin
	.type	is_builtin, @function
is_builtin:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, builtin_list[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, builtin_list[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L5
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_builtin, .-is_builtin
	.section	.rodata
.LC2:
	.string	"seashell: cd: OLDPWD not set"
.LC3:
	.string	"OLDPWD"
.LC4:
	.string	"setenv"
	.text
	.type	save_oldpwd, @function
save_oldpwd:
.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	lea	rdx, -256[rbp]
	mov	eax, 0
	mov	ecx, 29
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	lea	rax, -272[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L10
.L7:
	lea	rax, -272[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	setenv@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	save_oldpwd, .-save_oldpwd
	.section	.rodata
.LC5:
	.string	"-"
.LC6:
	.string	"~"
.LC7:
	.string	"HOME"
.LC8:
	.string	"seashell: cd: HOME not set\n"
.LC9:
	.string	"seashell: cd: %s: %s\n"
	.text
	.type	my_cd, @function
my_cd:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, BYTE PTR .LC5[rip]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L13
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	chdir@PLT
	mov	eax, 0
	jmp	.L14
.L13:
	mov	eax, 0
	call	save_oldpwd
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, BYTE PTR .LC6[rip]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L16
.L15:
	lea	rdi, .LC7[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	chdir@PLT
	cmp	eax, -1
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L14
.L17:
	mov	eax, 0
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	cmp	eax, -1
	jne	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L14
.L18:
	mov	eax, 0
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	my_cd, .-my_cd
	.section	.rodata
.LC10:
	.string	"builtin_exit"
	.text
	.type	my_exit, @function
my_exit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	my_exit, .-my_exit
	.globl	builtin_manager
	.type	builtin_manager, @function
builtin_manager:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	mov	rcx, rax
	lea	rax, builtin_list[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, builtin_list[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
.L23:
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, builtin_list[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	builtin_manager, .-builtin_manager
	.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	"229877.c"
	.text
	.global	builtin_list
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cd\000"
	.align	2
.LC1:
	.ascii	"exit\000"
	.data
	.align	2
	.type	builtin_list, %object
	.size	builtin_list, 24
builtin_list:
	.word	.LC0
	.word	my_cd
	.word	.LC1
	.word	my_exit
	.word	0
	.word	0
	.text
	.align	2
	.global	is_builtin
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_builtin, %function
is_builtin:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, .L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, .L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	builtin_list
	.size	is_builtin, .-is_builtin
	.section	.rodata
	.align	2
.LC2:
	.ascii	"seashell: cd: OLDPWD not set\000"
	.align	2
.LC3:
	.ascii	"OLDPWD\000"
	.align	2
.LC4:
	.ascii	"setenv\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_oldpwd, %function
save_oldpwd:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #251
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	mov	r1, #255
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L14+8
	bl	fwrite
	mvn	r3, #0
	b	.L12
.L9:
	sub	r3, fp, #264
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L14+12
	bl	setenv
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L14+16
	bl	perror
	mvn	r3, #0
	b	.L12
.L11:
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	save_oldpwd, .-save_oldpwd
	.section	.rodata
	.align	2
.LC6:
	.ascii	"-\000"
	.align	2
.LC7:
	.ascii	"~\000"
	.align	2
.LC8:
	.ascii	"HOME\000"
	.align	2
.LC9:
	.ascii	"seashell: cd: HOME not set\012\000"
	.align	2
.LC10:
	.ascii	"seashell: cd: %s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_cd, %function
my_cd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L23
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L23+4
	bl	getenv
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	puts
	ldr	r0, [fp, #-20]
	bl	chdir
	mov	r3, #0
	b	.L18
.L17:
	bl	save_oldpwd
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L23+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L20
.L19:
	ldr	r0, .L23+12
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	chdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r3, .L23+16
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L23+20
	bl	fwrite
	mvn	r3, #0
	b	.L18
.L21:
	mov	r3, #0
	b	.L18
.L20:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	ldr	r3, .L23+16
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L23+24
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L18
.L22:
	mov	r3, #0
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC6
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	my_cd, .-my_cd
	.section	.rodata
	.align	2
.LC11:
	.ascii	"builtin_exit\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_exit, %function
my_exit:
	@ 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	r0, .L27
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC11
	.size	my_exit, .-my_exit
	.align	2
	.global	builtin_manager
	.syntax unified
	.arm
	.fpu softvfp
	.type	builtin_manager, %function
builtin_manager:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L32:
	ldr	r2, .L33
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r2, .L33
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-16]
	blx	r3
.L31:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r2, .L33
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	cmp	r3, #0
	bne	.L32
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	builtin_list
	.size	builtin_manager, .-builtin_manager
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
