	.file	"extr_path.c_git_path_resolve_relative.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cannot strip root component off url"
	.text
	.p2align 4
	.globl	git_path_resolve_relative
	.type	git_path_resolve_relative, @function
git_path_resolve_relative:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	GIT_ERROR_CHECK_ALLOC_BUF@PLT
	cmp	QWORD PTR 0[r13], r12
	cmovbe	r12, QWORD PTR 0[r13]
	test	r12, r12
	je	.L2
.L74:
	mov	r15, QWORD PTR 8[r13]
	add	r15, r12
	movzx	ecx, BYTE PTR [r15]
.L3:
	mov	rbp, r15
	mov	r14, r15
	test	cl, cl
	je	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, rbp
	mov	edx, 47
	xor	ebx, ebx
	cmp	cl, 47
	je	.L16
	.p2align 4,,10
	.p2align 3
.L12:
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	test	dl, dl
	je	.L37
	cmp	dl, 47
	jne	.L12
.L37:
	sub	rax, rbp
	mov	rbx, rax
	cmp	rax, 1
	je	.L77
	cmp	rax, 2
	jne	.L16
	cmp	cl, 46
	je	.L78
.L16:
	cmp	cl, 47
	je	.L26
	cmp	dl, 47
	sete	al
	cmp	al, 1
	sbb	rbx, -1
.L26:
	cmp	r15, rbp
	je	.L27
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r15
	call	memmove@PLT
.L27:
	add	r15, rbx
.L15:
	add	rbp, rbx
	movzx	ecx, BYTE PTR 0[rbp]
	cmp	cl, 47
	jne	.L28
	.p2align 4,,10
	.p2align 3
.L29:
	movzx	ecx, BYTE PTR 1[rbp]
	add	rbp, 1
	cmp	cl, 47
	je	.L29
.L28:
	test	cl, cl
	jne	.L11
.L6:
	mov	BYTE PTR [r15], 0
	sub	r15, QWORD PTR 8[r13]
	xor	eax, eax
	mov	QWORD PTR 0[r13], r15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L77:
	.cfi_restore_state
	cmp	cl, 46
	jne	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L78:
	cmp	BYTE PTR 1[rbp], 46
	jne	.L16
	cmp	r15, r14
	jne	.L17
	test	r12, r12
	jne	.L79
.L17:
	cmp	r15, r14
	jne	.L80
	xor	ebx, ebx
	cmp	dl, 47
	sete	bl
	add	rbx, 2
	cmp	r15, rbp
	je	.L23
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r15
	call	memmove@PLT
.L23:
	lea	r14, [r15+rbx]
	mov	r15, r14
	jmp	.L15
.L2:
	mov	rdi, QWORD PTR 8[r13]
	call	git_path_root@PLT
	lea	r12d, 1[rax]
	movsx	r12, r12d
	test	r12, r12
	jne	.L74
	mov	rbx, QWORD PTR 8[r13]
	movsx	edi, BYTE PTR [rbx]
	mov	r15, rbx
	test	dil, dil
	je	.L6
	call	git__isalpha@PLT
	test	rax, rax
	je	.L81
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	je	.L82
	call	git__isalpha@PLT
	test	rax, rax
	jne	.L7
.L81:
	cmp	BYTE PTR [rbx], 58
	mov	r15, QWORD PTR 8[r13]
	jne	.L75
	cmp	BYTE PTR 1[rbx], 47
	jne	.L75
	cmp	BYTE PTR 2[rbx], 47
	je	.L10
.L75:
	movzx	ecx, BYTE PTR [r15]
	jmp	.L3
.L80:
	ja	.L20
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L24:
	sub	r15, 1
	cmp	r15, r14
	je	.L35
.L20:
	cmp	BYTE PTR -1[r15], 47
	je	.L24
	cmp	r15, r14
	jbe	.L35
	.p2align 4,,10
	.p2align 3
.L25:
	sub	r15, 1
	cmp	r15, r14
	je	.L35
	cmp	BYTE PTR -1[r15], 47
	jne	.L25
.L35:
	mov	ebx, 2
	jmp	.L15
.L82:
	mov	r15, QWORD PTR 8[r13]
	movzx	ecx, BYTE PTR [r15]
	jmp	.L3
.L79:
	mov	edi, DWORD PTR GIT_ERROR_INVALID[rip]
	lea	rsi, .LC0[rip]
	call	git_error_set@PLT
	mov	eax, -1
	jmp	.L1
.L10:
	lea	rax, 3[rbx]
	movzx	ecx, BYTE PTR 3[rbx]
	mov	r12, rax
	sub	r12, r15
	mov	r15, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	git_path_resolve_relative, .-git_path_resolve_relative
	.comm	GIT_ERROR_INVALID,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_git_path_resolve_relative.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot strip root component off url\000"
	.text
	.align	2
	.global	git_path_resolve_relative
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_path_resolve_relative, %function
git_path_resolve_relative:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r5, r1
	bl	GIT_ERROR_CHECK_ALLOC_BUF
	ldr	r3, [r6]
	cmp	r5, r3
	movcs	r5, r3
	cmp	r5, #0
	beq	.L2
.L56:
	ldr	r3, [r6, #4]
	ldrb	ip, [r3, r5]	@ zero_extendqisi2
	add	r8, r3, r5
.L3:
	cmp	ip, #0
	movne	r9, r8
	movne	r7, r8
	beq	.L6
.L11:
	cmp	ip, #47
	moveq	r3, ip
	moveq	r4, #0
	beq	.L15
	mov	r2, r9
.L12:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #47
	bne	.L12
	sub	r4, r2, r9
	cmp	r4, #1
	beq	.L59
	cmp	r4, #2
	cmpeq	ip, #46
	beq	.L60
.L15:
	subs	ip, ip, #47
	movne	ip, #1
	cmp	r3, #47
	movne	ip, #0
	cmp	ip, #0
	addne	r4, r4, #1
	cmp	r8, r9
	beq	.L27
	mov	r2, r4
	mov	r1, r9
	mov	r0, r8
	bl	memmove
.L27:
	add	r8, r8, r4
.L14:
	ldrb	ip, [r9, r4]!	@ zero_extendqisi2
	cmp	ip, #47
	bne	.L28
.L29:
	ldrb	ip, [r9, #1]!	@ zero_extendqisi2
	cmp	ip, #47
	beq	.L29
.L28:
	cmp	ip, #0
	bne	.L11
.L6:
	mov	r0, #0
	strb	r0, [r8]
	ldr	r3, [r6, #4]
	sub	r8, r8, r3
	str	r8, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L59:
	cmp	ip, #46
	bne	.L15
	b	.L14
.L60:
	ldrb	r2, [r9, #1]	@ zero_extendqisi2
	cmp	r2, #46
	movne	r4, #2
	bne	.L15
	sub	r2, r8, r7
	clz	r2, r2
	cmp	r5, #0
	lsr	r2, r2, #5
	moveq	r2, #0
	cmp	r2, #0
	bne	.L61
	cmp	r8, r7
	bne	.L62
	cmp	r3, #47
	movne	r4, #2
	moveq	r4, #3
	cmp	r8, r9
	beq	.L22
	mov	r2, r4
	mov	r1, r9
	mov	r0, r8
	bl	memmove
.L22:
	add	r8, r8, r4
	mov	r7, r8
	b	.L14
.L2:
	ldr	r0, [r6, #4]
	bl	git_path_root
	adds	r5, r0, #1
	bne	.L56
	ldr	r4, [r6, #4]
	ldrb	r0, [r4]	@ zero_extendqisi2
	cmp	r0, #0
	moveq	r8, r4
	beq	.L6
	bl	git__isalpha
	cmp	r0, #0
	beq	.L63
.L7:
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L64
	bl	git__isalpha
	cmp	r0, #0
	bne	.L7
.L63:
	ldrb	r3, [r4]	@ zero_extendqisi2
	ldr	r8, [r6, #4]
	cmp	r3, #58
	bne	.L57
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L57
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L10
.L57:
	ldrb	ip, [r8]	@ zero_extendqisi2
	b	.L3
.L62:
	bls	.L34
	mov	r2, r8
	b	.L20
.L23:
	cmp	r7, r2
	beq	.L34
.L20:
	mov	r3, r2
	ldrb	r1, [r2, #-1]	@ zero_extendqisi2
	sub	r2, r2, #1
	cmp	r1, #47
	mov	r8, r2
	beq	.L23
	cmp	r3, r7
	bls	.L33
	mov	r3, r2
	b	.L24
.L25:
	cmp	r7, r3
	mov	r8, r3
	beq	.L34
	ldrb	r1, [r3, #-1]!	@ zero_extendqisi2
.L24:
	cmp	r1, #47
	add	r8, r3, #1
	bne	.L25
.L34:
	mov	r4, #2
	b	.L14
.L64:
	ldr	r8, [r6, #4]
	ldrb	ip, [r8]	@ zero_extendqisi2
	b	.L3
.L10:
	add	r3, r4, #3
	sub	r5, r3, r8
	ldrb	ip, [r4, #3]	@ zero_extendqisi2
	mov	r8, r3
	b	.L3
.L61:
	ldr	r3, .L65
	ldr	r1, .L65+4
	ldr	r0, [r3]
	bl	git_error_set
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L33:
	mov	r8, r3
	mov	r4, #2
	b	.L14
.L66:
	.align	2
.L65:
	.word	GIT_ERROR_INVALID
	.word	.LC0
	.size	git_path_resolve_relative, .-git_path_resolve_relative
	.comm	GIT_ERROR_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
