	.file	"717059.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"working"
.LC1:
	.string	"the_stack_data/717059.c"
.LC2:
	.string	"mkdir(\"working\", 0777) != -1"
.LC3:
	.string	"/working/test"
	.align 8
.LC4:
	.string	"mkdir(\"/working/test\", 0777) != -1"
.LC5:
	.string	"Current working dir: %s\n"
.LC6:
	.string	"/"
.LC7:
	.string	"Errno: %s\n"
.LC8:
	.string	"errno == ENOENT"
	.align 8
.LC9:
	.string	"Current working dir is still: %s\n"
.LC10:
	.string	"/working"
.LC11:
	.string	"errno == 0"
	.align 8
.LC12:
	.string	"Current working dir is now: %s\n"
.LC13:
	.string	"/foobar"
.LC14:
	.string	"/dev"
.LC15:
	.string	"/dev/stdout"
.LC16:
	.string	"errno == ENOTDIR"
.LC17:
	.string	"errno == EINVAL"
.LC18:
	.string	"errno == ERANGE"
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 511
	lea	rdi, .LC0[rip]
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 20
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L2:
	mov	esi, 511
	lea	rdi, .LC3[rip]
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 21
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L3:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	call	chdir@PLT
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	chdir@PLT
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	chdir@PLT
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	call	chdir@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 47
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L4:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rdi, .LC10[rip]
	call	chdir@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 55
	lea	rsi, .LC1[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L5:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rdi, .LC13[rip]
	call	chdir@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 63
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L6:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	chdir@PLT
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	call	chdir@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 75
	lea	rsi, .LC1[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L7:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getcwd@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 83
	lea	rsi, .LC1[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L8:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rax, -113[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	getcwd@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 92
	lea	rsi, .LC1[rip]
	lea	rdi, .LC18[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"717059.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"working\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/717059.c\000"
	.align	2
.LC2:
	.ascii	"mkdir(\"working\", 0777) != -1\000"
	.align	2
.LC3:
	.ascii	"/working/test\000"
	.align	2
.LC4:
	.ascii	"mkdir(\"/working/test\", 0777) != -1\000"
	.align	2
.LC5:
	.ascii	"Current working dir: %s\012\000"
	.align	2
.LC6:
	.ascii	"/\000"
	.align	2
.LC7:
	.ascii	"Errno: %s\012\000"
	.align	2
.LC8:
	.ascii	"errno == ENOENT\000"
	.align	2
.LC9:
	.ascii	"Current working dir is still: %s\012\000"
	.align	2
.LC10:
	.ascii	"/working\000"
	.align	2
.LC11:
	.ascii	"errno == 0\000"
	.align	2
.LC12:
	.ascii	"Current working dir is now: %s\012\000"
	.align	2
.LC13:
	.ascii	"/foobar\000"
	.align	2
.LC14:
	.ascii	"/dev\000"
	.align	2
.LC15:
	.ascii	"/dev/stdout\000"
	.align	2
.LC16:
	.ascii	"errno == ENOTDIR\000"
	.align	2
.LC17:
	.ascii	"errno == EINVAL\000"
	.align	2
.LC18:
	.ascii	"errno == ERANGE\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L12+12
	mov	r2, #20
	ldr	r1, .L12+16
	ldr	r0, .L12+20
	bl	__assert_fail
.L2:
	ldr	r1, .L12+4
	ldr	r0, .L12+24
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L12+12
	mov	r2, #21
	ldr	r1, .L12+16
	ldr	r0, .L12+28
	bl	__assert_fail
.L3:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r0, .L12+8
	bl	chdir
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r0, .L12+36
	bl	chdir
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r0, .L12+24
	bl	chdir
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r0, .L12+8
	bl	chdir
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L4
	ldr	r3, .L12+12
	mov	r2, #47
	ldr	r1, .L12+16
	ldr	r0, .L12+44
	bl	__assert_fail
.L4:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L12+52
	bl	chdir
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L12+12
	mov	r2, #55
	ldr	r1, .L12+16
	ldr	r0, .L12+56
	bl	__assert_fail
.L5:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+60
	bl	printf
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L12+64
	bl	chdir
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L6
	ldr	r3, .L12+12
	mov	r2, #63
	ldr	r1, .L12+16
	ldr	r0, .L12+44
	bl	__assert_fail
.L6:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
	ldr	r0, .L12+68
	bl	chdir
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r0, .L12+72
	bl	chdir
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L7
	ldr	r3, .L12+12
	mov	r2, #75
	ldr	r1, .L12+16
	ldr	r0, .L12+76
	bl	__assert_fail
.L7:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #0
	mov	r0, r3
	bl	getcwd
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L8
	ldr	r3, .L12+12
	mov	r2, #83
	ldr	r1, .L12+16
	ldr	r0, .L12+80
	bl	__assert_fail
.L8:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #112
	mov	r1, #1
	mov	r0, r3
	bl	getcwd
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L9
	ldr	r3, .L12+12
	mov	r2, #92
	ldr	r1, .L12+16
	ldr	r0, .L12+84
	bl	__assert_fail
.L9:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC19
	.word	511
	.word	.LC0
	.word	__PRETTY_FUNCTION__.6398
	.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
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6398, %object
	.size	__PRETTY_FUNCTION__.6398, 5
__PRETTY_FUNCTION__.6398:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
