	.file	"extr_url.c_vlc_uri_remove_dot_segments.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"../"
.LC1:
	.string	"./"
.LC2:
	.string	"/./"
.LC3:
	.string	"/."
.LC4:
	.string	"/../"
.LC5:
	.string	"/.."
.LC6:
	.string	"."
.LC7:
	.string	".."
.LC8:
	.string	"/"
	.text
	.p2align 4
	.type	vlc_uri_remove_dot_segments, @function
vlc_uri_remove_dot_segments:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	BYTE PTR [rdi], 0
	je	.L2
	mov	rbx, rdi
	lea	r12, .LC0[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	add	rbx, 3
.L4:
	cmp	BYTE PTR [rbx], 0
	je	.L2
.L14:
	xor	edi, edi
	cmp	rbp, rbx
	setbe	dil
	call	assert@PLT
	mov	edx, 3
	mov	rsi, r12
	mov	rdi, rbx
	call	strncmp@PLT
	test	rax, rax
	je	.L21
	mov	edx, 2
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	strncmp@PLT
	test	rax, rax
	je	.L18
	mov	edx, 3
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	strncmp@PLT
	test	rax, rax
	je	.L18
	lea	rsi, .LC3[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	jne	.L7
	cmp	BYTE PTR [rbx], 0
	mov	BYTE PTR 1[rbx], 0
	jne	.L14
.L2:
	mov	BYTE PTR 0[rbp], 0
	mov	rax, r13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	add	rbx, 2
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, 4
	lea	rsi, .LC4[rip]
	mov	rdi, rbx
	call	strncmp@PLT
	test	rax, rax
	je	.L22
	lea	rsi, .LC5[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	je	.L23
	lea	rsi, .LC6[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	je	.L24
	lea	rsi, .LC7[rip]
	mov	rdi, rbx
	call	strcmp@PLT
	test	rax, rax
	je	.L18
	cmp	BYTE PTR [rbx], 47
	jne	.L12
	mov	BYTE PTR 0[rbp], 47
	add	rbx, 1
	add	rbp, 1
.L12:
	lea	rsi, .LC8[rip]
	mov	rdi, rbx
	call	strcspn@PLT
	mov	r14, rax
	cmp	rbx, rbp
	je	.L13
	mov	rdx, rax
	mov	rsi, rbx
	mov	rdi, rbp
	call	memmove@PLT
.L13:
	add	rbx, r14
	add	rbp, r14
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	add	rbx, 3
.L19:
	mov	rdx, rbp
	mov	esi, 47
	mov	rdi, r13
	sub	rdx, r13
	call	memrchr@PLT
	mov	rbp, rax
	test	rax, rax
	cmove	rbp, r13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	add	rbx, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	BYTE PTR 1[rbx], 0
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	vlc_uri_remove_dot_segments, .-vlc_uri_remove_dot_segments
	.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_url.c_vlc_uri_remove_dot_segments.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/../\000"
	.align	2
.LC1:
	.ascii	"/..\000"
	.align	2
.LC2:
	.ascii	"/\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_uri_remove_dot_segments, %function
vlc_uri_remove_dot_segments:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r7, r0
	cmp	r3, #0
	mov	r6, r0
	beq	.L2
	mov	r4, r0
	ldr	r8, .L32
	ldr	r9, .L32+4
	ldr	r10, .L32+8
	b	.L20
.L26:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L4
	add	r4, r4, #3
.L5:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
.L20:
	cmp	r4, r6
	movcc	r0, #0
	movcs	r0, #1
	bl	assert
	ldrb	r5, [r4]	@ zero_extendqisi2
	cmp	r5, #46
	beq	.L26
.L4:
	ldrb	fp, [r4]	@ zero_extendqisi2
	cmp	fp, #46
	bne	.L7
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L7
.L24:
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	add	r4, r4, #2
	cmp	r3, #0
	bne	.L20
.L2:
	mov	r3, #0
	mov	r0, r7
	strb	r3, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	cmp	r5, #47
	beq	.L27
.L11:
	mov	r2, #4
	mov	r1, r8
	mov	r0, r4
	bl	strncmp
	cmp	r0, #0
	beq	.L28
	mov	r1, r9
	mov	r0, r4
	bl	strcmp
	cmp	r0, #0
	beq	.L29
	cmp	fp, #46
	bne	.L15
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #0
	addeq	r4, r4, #1
	beq	.L5
.L15:
	cmp	r5, #46
	beq	.L30
.L17:
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r1, r10
	cmp	r3, #47
	addeq	r4, r4, #1
	strbeq	r3, [r6], #1
	mov	r0, r4
	bl	strcspn
	cmp	r4, r6
	mov	r5, r0
	beq	.L19
	mov	r2, r0
	mov	r1, r4
	mov	r0, r6
	bl	memmove
.L19:
	add	r4, r4, r5
	add	r6, r6, r5
	b	.L5
.L27:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L31
.L9:
	cmp	r5, #47
	bne	.L11
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L11
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	strb	r3, [r4, #1]
	b	.L5
.L31:
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L24
	b	.L9
.L30:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L17
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	b	.L17
.L28:
	sub	r2, r6, r7
	mov	r1, #47
	mov	r0, r7
	bl	memrchr
	cmp	r0, #0
	movne	r6, r0
	moveq	r6, r7
	add	r4, r4, #3
	b	.L5
.L29:
	sub	r2, r6, r7
	strb	r0, [r4, #1]
	mov	r1, #47
	mov	r0, r7
	bl	memrchr
	cmp	r0, #0
	movne	r6, r0
	moveq	r6, r7
	b	.L5
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	vlc_uri_remove_dot_segments, .-vlc_uri_remove_dot_segments
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
