	.file	"225142200.c"
	.intel_syntax noprefix
	.text
	.globl	realpath
	.type	realpath, @function
realpath:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 224
	mov	QWORD PTR -8408[rbp], rdi
	mov	QWORD PTR -8416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8400[rbp], 0
	mov	DWORD PTR -8396[rbp], 0
	cmp	QWORD PTR -8408[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
	jmp	.L32
.L2:
	cmp	QWORD PTR -8416[rbp], 0
	jne	.L4
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -8416[rbp], rax
	mov	rax, QWORD PTR -8416[rbp]
	mov	QWORD PTR -8376[rbp], rax
	cmp	QWORD PTR -8416[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L32
.L4:
	mov	QWORD PTR -8376[rbp], 0
.L5:
	mov	rax, QWORD PTR -8416[rbp]
	mov	QWORD PTR -8384[rbp], rax
	mov	rax, QWORD PTR -8408[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	rax, QWORD PTR -8384[rbp]
	mov	BYTE PTR [rax], 0
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 2
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8408[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L34
	cmp	QWORD PTR -8416[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -8416[rbp]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	getcwd@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -8384[rbp]
	mov	BYTE PTR [rax], 46
	mov	rax, QWORD PTR -8384[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -8416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8368[rbp], rax
	cmp	QWORD PTR -8368[rbp], 1
	jbe	.L34
	mov	rax, QWORD PTR -8368[rbp]
	add	QWORD PTR -8384[rbp], rax
	jmp	.L10
.L34:
	nop
.L8:
.L18:
	jmp	.L10
.L11:
	add	QWORD PTR -8408[rbp], 1
.L10:
	mov	rax, QWORD PTR -8408[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L11
	mov	rax, QWORD PTR -8408[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
	mov	rax, QWORD PTR -8384[rbp]
	cmp	rax, QWORD PTR -8416[rbp]
	jne	.L13
	mov	rax, QWORD PTR -8384[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8384[rbp], rdx
	mov	BYTE PTR [rax], 47
.L13:
	mov	rax, QWORD PTR -8384[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8416[rbp]
	jmp	.L32
.L12:
	mov	rax, QWORD PTR -8408[rbp]
	mov	QWORD PTR -8392[rbp], rax
.L15:
	add	QWORD PTR -8392[rbp], 1
	mov	rax, QWORD PTR -8392[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L14
	mov	rax, QWORD PTR -8392[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
.L14:
	mov	rax, QWORD PTR -8408[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L16
	mov	rax, QWORD PTR -8392[rbp]
	sub	rax, QWORD PTR -8408[rbp]
	cmp	rax, 1
	jne	.L17
	mov	rax, QWORD PTR -8392[rbp]
	mov	QWORD PTR -8408[rbp], rax
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -8408[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L16
	mov	rax, QWORD PTR -8392[rbp]
	sub	rax, QWORD PTR -8408[rbp]
	cmp	rax, 2
	jne	.L16
	mov	rax, QWORD PTR -8384[rbp]
	cmp	rax, QWORD PTR -8416[rbp]
	je	.L19
	jmp	.L20
.L21:
	nop
.L20:
	sub	QWORD PTR -8384[rbp], 1
	mov	rax, QWORD PTR -8384[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L21
.L19:
	mov	rax, QWORD PTR -8392[rbp]
	mov	QWORD PTR -8408[rbp], rax
	jmp	.L18
.L16:
	mov	rax, QWORD PTR -8384[rbp]
	sub	rax, QWORD PTR -8416[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8392[rbp]
	add	rax, rdx
	sub	rax, QWORD PTR -8408[rbp]
	cmp	rax, 4095
	jle	.L22
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 36
	mov	rax, QWORD PTR -8384[rbp]
	cmp	rax, QWORD PTR -8416[rbp]
	jne	.L23
	mov	rax, QWORD PTR -8384[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8384[rbp], rdx
	mov	BYTE PTR [rax], 47
.L23:
	mov	rax, QWORD PTR -8384[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L7
.L22:
	mov	rax, QWORD PTR -8384[rbp]
	mov	BYTE PTR [rax], 47
	mov	rax, QWORD PTR -8392[rbp]
	sub	rax, QWORD PTR -8408[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8384[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8408[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8392[rbp]
	add	rax, 1
	sub	rax, QWORD PTR -8408[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8384[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rdx, -8352[rbp]
	mov	rax, QWORD PTR -8416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	cmp	eax, -1
	je	.L35
	mov	eax, DWORD PTR -8328[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L25
	mov	eax, DWORD PTR -8396[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8396[rbp], edx
	cmp	eax, 19
	jle	.L26
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 40
	jmp	.L7
.L26:
	lea	rdx, -8208[rbp]
	mov	eax, DWORD PTR -8400[rbp]
	cdqe
	sal	rax, 12
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8416[rbp]
	mov	edx, 4095
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	readlink@PLT
	cdqe
	mov	QWORD PTR -8360[rbp], rax
	cmp	QWORD PTR -8360[rbp], 0
	js	.L36
	cmp	QWORD PTR -8360[rbp], 0
	jne	.L28
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 2
	jmp	.L7
.L28:
	mov	rax, QWORD PTR -8392[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8368[rbp], rax
	mov	rdx, QWORD PTR -8360[rbp]
	mov	rax, QWORD PTR -8368[rbp]
	add	rax, rdx
	add	rax, 1
	cmp	rax, 4096
	jbe	.L29
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 36
	jmp	.L7
.L29:
	mov	rax, QWORD PTR -8368[rbp]
	lea	rdx, 1[rax]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8400[rbp]
	cdqe
	sal	rax, 12
	mov	rsi, rax
	mov	rax, QWORD PTR -8360[rbp]
	add	rax, rsi
	add	rcx, rax
	mov	rax, QWORD PTR -8392[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	lea	rdx, -8208[rbp]
	mov	eax, DWORD PTR -8400[rbp]
	cdqe
	sal	rax, 12
	add	rax, rdx
	mov	QWORD PTR -8408[rbp], rax
	xor	DWORD PTR -8400[rbp], 1
	mov	rax, QWORD PTR -8408[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L18
	mov	rax, QWORD PTR -8416[rbp]
	mov	QWORD PTR -8384[rbp], rax
	jmp	.L18
.L25:
	mov	rax, QWORD PTR -8392[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L31
	mov	eax, DWORD PTR -8328[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L31
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 20
	jmp	.L7
.L31:
	mov	rax, QWORD PTR -8392[rbp]
	add	rax, 1
	sub	rax, QWORD PTR -8408[rbp]
	add	QWORD PTR -8384[rbp], rax
	mov	rax, QWORD PTR -8392[rbp]
	mov	QWORD PTR -8408[rbp], rax
	jmp	.L18
.L35:
	nop
	jmp	.L7
.L36:
	nop
.L7:
	mov	rax, QWORD PTR -8376[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L32:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	realpath, .-realpath
	.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	"225142200.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	realpath
	.syntax unified
	.arm
	.fpu softvfp
	.type	realpath, %function
realpath:
	@ args = 0, pretend = 0, frame = 8328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8320
	sub	sp, sp, #12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-136]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-124]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	cmp	r3, #0
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r3, #0
	b	.L32
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	str	r3, [r2, #-108]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L32
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-108]
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	str	r3, [r2, #-112]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	mov	r2, #0
	strb	r2, [r3]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #2
	str	r2, [r3]
	b	.L7
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L34
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #4096
	ldr	r0, [r3, #-136]
	bl	getcwd
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	mov	r2, #46
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	b	.L7
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-136]
	bl	strlen
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #1
	bls	.L34
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-112]
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	str	r3, [r1, #-112]
	b	.L10
.L34:
	nop
.L8:
.L18:
	b	.L10
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	add	r3, r3, #1
	str	r3, [r2, #-132]
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-112]
	ldr	r3, [r3, #-136]
	cmp	r2, r3
	bne	.L13
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-112]
	mov	r2, #47
	strb	r2, [r3]
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	b	.L32
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	str	r3, [r2, #-116]
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r3, r3, #1
	str	r3, [r2, #-116]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L14
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-116]
	ldr	r3, [r3, #-132]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L17
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	str	r3, [r2, #-132]
	b	.L18
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-116]
	ldr	r3, [r3, #-132]
	sub	r3, r2, r3
	cmp	r3, #2
	bne	.L16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-112]
	ldr	r3, [r3, #-136]
	cmp	r2, r3
	beq	.L19
	b	.L20
.L21:
	nop
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	sub	r3, r3, #1
	str	r3, [r2, #-112]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L21
.L19:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	str	r3, [r2, #-132]
	b	.L18
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-112]
	ldr	r3, [r3, #-136]
	sub	r3, r2, r3
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-116]
	add	r2, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	sub	r3, r2, r3
	cmp	r3, #4096
	blt	.L22
	bl	__errno_location
	mov	r3, r0
	mov	r2, #36
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-112]
	ldr	r3, [r3, #-136]
	cmp	r2, r3
	bne	.L23
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-112]
	mov	r2, #47
	strb	r2, [r3]
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	mov	r2, #0
	strb	r2, [r3]
	b	.L7
.L22:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	mov	r2, #47
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r0, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-116]
	ldr	r3, [r3, #-132]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-132]
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-136]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	beq	.L35
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L25
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-120]
	cmp	r3, #19
	ble	.L26
	bl	__errno_location
	mov	r3, r0
	mov	r2, #40
	str	r2, [r3]
	b	.L7
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-124]
	lsl	r2, r2, #12
	add	r3, r3, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L37+4
	mov	r1, r3
	ldr	r0, [r0, #-136]
	bl	readlink
	str	r0, [r4, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	blt	.L36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bne	.L28
	bl	__errno_location
	mov	r3, r0
	mov	r2, #2
	str	r2, [r3]
	b	.L7
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	strlen
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r2, r3
	add	r3, r3, #1
	cmp	r3, #4096
	bls	.L29
	bl	__errno_location
	mov	r3, r0
	mov	r2, #36
	str	r2, [r3]
	b	.L7
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-124]
	lsl	r1, r2, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-100]
	add	r2, r1, r2
	add	r0, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-116]
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-124]
	lsl	r2, r2, #12
	add	r3, r3, r2
	str	r3, [r1, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	eor	r3, r3, #1
	str	r3, [r2, #-124]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L18
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	str	r3, [r2, #-112]
	b	.L18
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L31
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L31
	bl	__errno_location
	mov	r3, r0
	mov	r2, #20
	str	r2, [r3]
	b	.L7
.L31:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	sub	r3, r2, r3
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r3, r1
	str	r3, [r2, #-112]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	str	r3, [r2, #-132]
	b	.L18
.L35:
	nop
	b	.L7
.L36:
	nop
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-108]
	bl	free
	mov	r3, #0
.L32:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	4095
	.size	realpath, .-realpath
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
