	.file	"907642.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"PWD"
.LC1:
	.string	"."
	.text
	.globl	get_current_dir_name
	.type	get_current_dir_name, @function
get_current_dir_name:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -4408[rbp], rax
	cmp	QWORD PTR -4408[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -4408[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L2
	lea	rdx, -4400[rbp]
	mov	rax, QWORD PTR -4408[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L2
	lea	rax, -4256[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	stat@PLT
	test	eax, eax
	jne	.L2
	mov	rdx, QWORD PTR -4400[rbp]
	mov	rax, QWORD PTR -4256[rbp]
	cmp	rdx, rax
	jne	.L2
	mov	rdx, QWORD PTR -4392[rbp]
	mov	rax, QWORD PTR -4248[rbp]
	cmp	rdx, rax
	jne	.L2
	mov	rax, QWORD PTR -4408[rbp]
	mov	rdi, rax
	call	strdup@PLT
	jmp	.L5
.L2:
	lea	rax, -4112[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	getcwd@PLT
	test	rax, rax
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strdup@PLT
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_current_dir_name, .-get_current_dir_name
	.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	"907642.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PWD\000"
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_current_dir_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_current_dir_name, %function
get_current_dir_name:
	@ args = 0, pretend = 0, frame = 4288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4288
	sub	sp, sp, #4
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L7+4
	bl	getenv
	str	r0, [r4, #-188]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #56
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-188]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r1, r3
	ldr	r0, .L7+8
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r1, r3, #184
	ldmia	r1, {r0-r1}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #96
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-172]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-84]
	cmp	r2, r3
	bne	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-188]
	bl	strdup
	mov	r3, r0
	b	.L5
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #4096
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L5
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strdup
	mov	r3, r0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	get_current_dir_name, .-get_current_dir_name
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
