	.file	"extr_uri.c_xmlNormalizeURIPath.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xmlNormalizeURIPath
	.type	xmlNormalizeURIPath, @function
xmlNormalizeURIPath:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L40
	movzx	edx, BYTE PTR [rdi]
	mov	rax, rdi
	cmp	dl, 47
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	cmp	dl, 47
	je	.L4
.L3:
	test	dl, dl
	je	.L98
	movzx	edx, BYTE PTR [rax]
	mov	r8, rax
.L99:
	test	dl, dl
	je	.L6
	cmp	dl, 46
	jne	.L95
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L11:
	test	dl, dl
	je	.L6
	mov	BYTE PTR [r8], dl
	add	r8, 1
	add	rax, 1
.L95:
	movzx	edx, BYTE PTR [rax]
	cmp	dl, 47
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	movzx	edx, BYTE PTR 1[rax]
	mov	rcx, rax
	add	rax, 1
	cmp	dl, 47
	je	.L13
	mov	BYTE PTR [r8], 47
	add	r8, 1
	movzx	edx, BYTE PTR 1[rcx]
	jmp	.L99
.L93:
	mov	BYTE PTR [rsi], 0
	.p2align 4,,10
	.p2align 3
.L22:
	mov	BYTE PTR [r8], 0
	cmp	BYTE PTR [rdi], 47
	jne	.L98
	mov	rax, rdi
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L103:
	cmp	BYTE PTR 2[rax], 46
	jne	.L36
	movzx	edx, BYTE PTR 3[rax]
	cmp	dl, 47
	je	.L37
	test	dl, dl
	jne	.L36
.L37:
	add	rax, 3
	cmp	dl, 47
	jne	.L36
.L35:
	cmp	BYTE PTR 1[rax], 46
	je	.L103
.L36:
	cmp	rdi, rax
	jne	.L97
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L39:
	mov	BYTE PTR [rdi], dl
	add	rdi, 1
	add	rax, 1
.L97:
	movzx	edx, BYTE PTR [rax]
	test	dl, dl
	jne	.L39
	mov	BYTE PTR [rdi], 0
.L98:
	xor	eax, eax
	ret
.L102:
	movzx	edx, BYTE PTR 1[rax]
	cmp	dl, 47
	je	.L104
	test	dl, dl
	jne	.L95
	.p2align 4,,10
	.p2align 3
.L6:
	mov	BYTE PTR [r8], 0
	movzx	eax, BYTE PTR [rdi]
	mov	rsi, rdi
	cmp	al, 47
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	movzx	eax, BYTE PTR 1[rsi]
	add	rsi, 1
	cmp	al, 47
	je	.L16
.L15:
	test	al, al
	je	.L98
	movzx	ecx, BYTE PTR [rsi]
	cmp	cl, 47
	je	.L45
	.p2align 4,,10
	.p2align 3
.L107:
	test	cl, cl
	je	.L45
	mov	rax, rsi
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	cmp	dl, 47
	je	.L19
	.p2align 4,,10
	.p2align 3
.L105:
	test	dl, dl
	je	.L22
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	cmp	dl, 47
	jne	.L105
.L19:
	test	dl, dl
	je	.L22
	lea	rdx, 1[rax]
	cmp	cl, 46
	je	.L106
.L23:
	movzx	ecx, BYTE PTR 1[rax]
	cmp	cl, 46
	jne	.L25
	cmp	BYTE PTR 2[rax], 46
	jne	.L25
	movzx	r9d, BYTE PTR 3[rax]
	cmp	r9b, 47
	je	.L49
	test	r9b, r9b
	je	.L93
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, rdx
	cmp	cl, 47
	jne	.L107
.L45:
	mov	edx, ecx
	mov	rax, rsi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L106:
	cmp	BYTE PTR 1[rsi], 46
	jne	.L23
	lea	rcx, 3[rsi]
	cmp	rdx, rcx
	jne	.L23
	movzx	ecx, BYTE PTR 1[rax]
	jmp	.L25
.L49:
	test	r9b, r9b
	je	.L93
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L27:
	movzx	ecx, BYTE PTR 4[rax+rdx]
	mov	BYTE PTR [rsi+rdx], cl
	add	rdx, 1
	test	cl, cl
	jne	.L27
	mov	rdx, rsi
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L109:
	sub	rdx, 1
	cmp	BYTE PTR [rdx], 47
	jne	.L108
.L29:
	cmp	rdx, rdi
	ja	.L109
	jne	.L96
.L30:
	movzx	ecx, BYTE PTR [rsi]
	mov	rdx, rsi
	jmp	.L25
.L108:
	cmp	rdi, rdx
	je	.L30
	jb	.L33
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L34:
	sub	rdx, 1
	cmp	rdi, rdx
	je	.L25
.L33:
	movzx	ecx, BYTE PTR -1[rdx]
	cmp	cl, 47
	jne	.L34
.L96:
	movzx	ecx, BYTE PTR [rdx]
	jmp	.L25
.L104:
	movzx	edx, BYTE PTR 2[rax]
	lea	rcx, 2[rax]
	cmp	dl, 47
	jne	.L43
.L10:
	movzx	edx, BYTE PTR 1[rcx]
	add	rcx, 1
	cmp	dl, 47
	je	.L10
.L43:
	mov	rax, rcx
	jmp	.L99
.L40:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	xmlNormalizeURIPath, .-xmlNormalizeURIPath
	.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_uri.c_xmlNormalizeURIPath.c"
	.text
	.align	2
	.global	xmlNormalizeURIPath
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmlNormalizeURIPath, %function
xmlNormalizeURIPath:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	lr, r0, #0
	beq	.L41
	ldrb	r2, [lr]	@ zero_extendqisi2
	mov	r3, lr
	cmp	r2, #47
	bne	.L3
.L4:
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, #47
	beq	.L4
.L3:
	cmp	r2, #0
	beq	.L18
	ldrb	r2, [r3]	@ zero_extendqisi2
	mov	ip, r3
	cmp	r2, #0
	beq	.L6
	cmp	r2, #46
	mov	r0, #47
	beq	.L86
.L7:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #47
	addne	r1, r3, #1
	bne	.L13
	b	.L14
.L87:
	strb	r2, [ip], #1
	mov	r3, r1
	ldrb	r2, [r1], #1	@ zero_extendqisi2
	cmp	r2, #47
	beq	.L14
.L13:
	cmp	r2, #0
	bne	.L87
.L6:
	mov	r3, #0
	strb	r3, [ip]
	ldrb	r3, [lr]	@ zero_extendqisi2
	mov	r0, lr
	cmp	r3, #47
	bne	.L16
.L17:
	ldrb	r3, [r0, #1]!	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L17
.L16:
	cmp	r3, #0
	beq	.L18
	ldrb	r1, [r0]	@ zero_extendqisi2
	cmp	r1, #47
	cmpne	r1, #0
	beq	.L46
.L90:
	mov	r2, r0
.L21:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #47
	cmpne	r3, #0
	bne	.L21
	cmp	r3, #0
	beq	.L22
.L91:
	cmp	r1, #46
	add	r3, r2, #1
	beq	.L88
.L23:
	ldrb	r1, [r2, #1]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L25
	ldrb	r4, [r2, #2]	@ zero_extendqisi2
	cmp	r4, #46
	bne	.L25
	ldrb	r4, [r2, #3]	@ zero_extendqisi2
	cmp	r4, #47
	cmpne	r4, #0
	beq	.L89
.L25:
	cmp	r1, #47
	cmpne	r1, #0
	mov	r0, r3
	bne	.L90
.L46:
	mov	r3, r1
	cmp	r3, #0
	mov	r2, r0
	bne	.L91
.L22:
	mov	r3, #0
	strb	r3, [ip]
	ldrb	r3, [lr]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L92
.L18:
	mov	r0, #0
	pop	{r4, pc}
.L14:
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	mov	r1, r3
	cmp	r2, #47
	add	r3, r3, #1
	beq	.L14
	strb	r0, [ip], #1
	ldrb	r2, [r1, #1]	@ zero_extendqisi2
.L9:
	cmp	r2, #0
	beq	.L6
	cmp	r2, #46
	bne	.L7
.L86:
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #47
	beq	.L93
	cmp	r2, #0
	bne	.L7
	b	.L6
.L88:
	ldrb	r1, [r0, #1]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L23
	add	r1, r0, #3
	cmp	r3, r1
	bne	.L23
	ldrb	r1, [r2, #1]	@ zero_extendqisi2
	b	.L25
.L89:
	cmp	r4, #0
	beq	.L94
	add	r2, r2, #4
	sub	r1, r0, #1
.L27:
	ldrb	r3, [r2], #1	@ zero_extendqisi2
	cmp	r3, #0
	strb	r3, [r1, #1]!
	bne	.L27
	mov	r3, r0
	b	.L29
.L96:
	ldrb	r2, [r3, #-1]!	@ zero_extendqisi2
	cmp	r2, #47
	bne	.L95
.L29:
	cmp	r3, lr
	bhi	.L96
	bne	.L83
.L30:
	mov	r3, r0
	ldrb	r1, [r0]	@ zero_extendqisi2
	b	.L25
.L95:
	cmp	lr, r3
	beq	.L30
	movcc	r2, r3
	bcc	.L34
	b	.L83
.L35:
	cmp	lr, r2
	beq	.L97
.L34:
	ldrb	r1, [r2, #-1]	@ zero_extendqisi2
	mov	r3, r2
	cmp	r1, #47
	sub	r2, r2, #1
	bne	.L35
.L83:
	ldrb	r1, [r3]	@ zero_extendqisi2
	b	.L25
.L97:
	ldrb	r1, [r3, #-1]	@ zero_extendqisi2
	mov	r3, lr
	b	.L25
.L92:
	mov	r3, lr
	b	.L36
.L98:
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	cmp	r2, #46
	bne	.L37
	ldrb	r2, [r3, #3]	@ zero_extendqisi2
	cmp	r2, #0
	cmpne	r2, #47
	bne	.L37
	cmp	r2, #47
	add	r3, r3, #3
	bne	.L37
.L36:
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #46
	beq	.L98
.L37:
	cmp	lr, r3
	beq	.L18
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L39
.L40:
	strb	r2, [lr], #1
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L40
.L39:
	mov	r0, #0
	strb	r0, [lr]
	pop	{r4, pc}
.L93:
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	add	r3, r3, #2
	cmp	r2, #47
	bne	.L9
.L10:
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, #47
	beq	.L10
	b	.L9
.L94:
	strb	r4, [r0]
	b	.L22
.L41:
	mvn	r0, #0
	pop	{r4, pc}
	.size	xmlNormalizeURIPath, .-xmlNormalizeURIPath
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
