	.file	"extr_path.c_clean.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"./"
.LC1:
	.string	"../"
	.text
	.p2align 4
	.type	clean, @function
clean:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	BYTE PTR [rbx], 47
	sete	dil
	call	assert@PLT
	movsx	rax, DWORD PTR PATH_MAX[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L4:
	mov	BYTE PTR [rsp], 47
	lea	r14, 1[rsp]
	mov	r15, rsp
	lea	r13, .LC0[rip]
	mov	r12, r14
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	BYTE PTR [rbx], 47
	je	.L36
.L6:
	mov	edx, 2
	mov	rsi, rbx
	mov	rdi, r13
	call	memcmp@PLT
	test	eax, eax
	je	.L37
	mov	edx, 3
	mov	rsi, rbx
	lea	rdi, .LC1[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L9
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L12
	cmp	al, 47
	je	.L31
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbx, 1
	mov	BYTE PTR [r12], al
	add	r12, 1
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	je	.L31
	test	al, al
	jne	.L10
.L12:
	cmp	al, 47
	je	.L31
	mov	BYTE PTR [r12], 0
	mov	rdi, r15
	call	strdup@PLT
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L38
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	rbx, 3
	cmp	r12, r14
	je	.L5
	lea	rax, -1[r12]
	cmp	BYTE PTR -2[r12], 47
	mov	r12, rax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	sub	r12, 1
	cmp	BYTE PTR -1[r12], 47
	jne	.L13
	cmp	BYTE PTR [rbx], 47
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L36:
	add	rbx, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	add	rbx, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	mov	BYTE PTR [r12], 47
	add	rbx, 1
	add	r12, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	clean, .-clean
	.comm	PATH_MAX,4,4
	.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_path.c_clean.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean, %function
clean:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	mov	r4, r0
	ldrb	r0, [r0]	@ zero_extendqisi2
	ldr	r3, .L23
	sub	r0, r0, #47
	clz	r0, r0
	lsr	r0, r0, #5
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	assert
	ldr	r3, .L23+4
	mov	r2, #47
	ldr	r3, [r3]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	lr, sp
	strb	r2, [lr], #1
	mov	r2, lr
	mov	r0, sp
.L2:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	addeq	r4, r4, #1
	beq	.L2
	cmp	r3, #46
	bne	.L6
	ldrb	r1, [r4, #1]	@ zero_extendqisi2
	cmp	r1, #47
	addeq	r4, r4, #2
	beq	.L2
.L6:
	ldrb	r1, [r4]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L16
	ldrb	r1, [r4, #1]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L16
	ldrb	r1, [r4, #2]	@ zero_extendqisi2
	cmp	r1, #47
	bne	.L16
	cmp	r2, lr
	add	r4, r4, #3
	beq	.L2
	ldrb	r3, [r2, #-2]	@ zero_extendqisi2
	sub	r1, r2, #1
	cmp	r3, #47
	beq	.L15
	sub	r3, r2, #2
.L11:
	mov	r2, r3
	ldrb	r1, [r3, #-1]!	@ zero_extendqisi2
	cmp	r1, #47
	bne	.L11
	b	.L2
.L16:
	cmp	r3, #0
	beq	.L10
	mov	r1, r4
.L12:
	mov	ip, r2
	mov	r4, r1
	strb	r3, [r2], #1
	ldrb	r3, [r1, #1]!	@ zero_extendqisi2
	cmp	r3, #47
	cmpne	r3, #0
	bne	.L12
	cmp	r3, #47
	beq	.L21
.L10:
	mov	r3, #0
	strb	r3, [r2]
	bl	strdup
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	strb	r3, [r2]
	add	r4, r4, #2
	add	r2, ip, #2
	b	.L2
.L15:
	mov	r2, r1
	b	.L2
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	PATH_MAX
	.size	clean, .-clean
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
