	.file	"extr_20380.c_check_proc_cwdwalk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cwdwalk test:\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"  Error: Couldn't get working directory while performing cwdwalk test.\n"
	.section	.rodata.str1.1
.LC2:
	.string	"/proc/self"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"  Error: Couldn't chdir to /proc/self while performing cwdwalk test.\n"
	.section	.rodata.str1.1
.LC4:
	.string	"cwd"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	" Error: Couldn't chdir to /proc/self/cwd while performing cwdwalk test.\n"
	.align 8
.LC6:
	.string	"  ManTrap? getwd() failed after chdir to /proc/self/cwd.\n"
	.align 8
.LC7:
	.string	"  Normal: getwd() succeeded after chdir to /proc/self/cwd.\n"
	.text
	.p2align 4
	.globl	check_proc_cwdwalk
	.type	check_proc_cwdwalk, @function
check_proc_cwdwalk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 4096
	.cfi_def_cfa_offset 4112
	or	QWORD PTR [rsp], 0
	sub	rsp, 16
	.cfi_def_cfa_offset 4128
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4104[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	call	printf@PLT
	mov	rdi, rbp
	call	getwd@PLT
	test	rax, rax
	je	.L11
	lea	rdi, .LC2[rip]
	call	chdir@PLT
	test	eax, eax
	jne	.L12
	lea	rdi, .LC4[rip]
	call	chdir@PLT
	test	eax, eax
	jne	.L13
	lea	rdi, 2048[rsp]
	call	getwd@PLT
	test	rax, rax
	je	.L14
	lea	rdi, .LC7[rip]
	call	printf@PLT
.L7:
	mov	rdi, rbp
	call	chdir@PLT
.L1:
	mov	rax, QWORD PTR 4104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 4112
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC5[rip]
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC1[rip]
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC6[rip]
	call	printf@PLT
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_proc_cwdwalk, .-check_proc_cwdwalk
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_20380.c_check_proc_cwdwalk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cwdwalk test:\012\000"
	.align	2
.LC1:
	.ascii	"  Error: Couldn't get working directory while perfo"
	.ascii	"rming cwdwalk test.\012\000"
	.align	2
.LC2:
	.ascii	"/proc/self\000"
	.align	2
.LC3:
	.ascii	"  Error: Couldn't chdir to /proc/self while perform"
	.ascii	"ing cwdwalk test.\012\000"
	.align	2
.LC4:
	.ascii	"cwd\000"
	.align	2
.LC5:
	.ascii	" Error: Couldn't chdir to /proc/self/cwd while perf"
	.ascii	"orming cwdwalk test.\012\000"
	.align	2
.LC6:
	.ascii	"  ManTrap? getwd() failed after chdir to /proc/self"
	.ascii	"/cwd.\012\000"
	.align	2
.LC7:
	.ascii	"  Normal: getwd() succeeded after chdir to /proc/se"
	.ascii	"lf/cwd.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	check_proc_cwdwalk
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_proc_cwdwalk, %function
check_proc_cwdwalk:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	sub	sp, sp, #4096
	sub	sp, sp, #12
	ldr	r2, .L15
	add	r3, sp, #4096
	ldr	r0, .L15+4
	add	r3, r3, #4
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	bl	printf
	add	r0, sp, #4
	bl	getwd
	cmp	r0, #0
	beq	.L11
	ldr	r0, .L15+8
	bl	chdir
	cmp	r0, #0
	bne	.L12
	ldr	r0, .L15+12
	bl	chdir
	cmp	r0, #0
	bne	.L13
	add	r0, sp, #2048
	add	r0, r0, #4
	bl	getwd
	cmp	r0, #0
	ldreq	r0, .L15+16
	ldrne	r0, .L15+20
	bl	printf
	add	r0, sp, #4
	bl	chdir
.L1:
	add	r3, sp, #4096
	ldr	r2, .L15
	add	r3, r3, #4
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L14
	add	sp, sp, #4096
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L12:
	ldr	r0, .L15+24
	bl	printf
	b	.L1
.L13:
	ldr	r0, .L15+28
	bl	printf
	b	.L1
.L11:
	ldr	r0, .L15+32
	bl	printf
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.word	.LC6
	.word	.LC7
	.word	.LC3
	.word	.LC5
	.word	.LC1
	.size	check_proc_cwdwalk, .-check_proc_cwdwalk
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
