	.file	"extr_path.c_git__percent_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	git__percent_decode
	.type	git__percent_decode, @function
git__percent_decode:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	test	rdi, rdi
	setne	al
	xor	edi, edi
	test	rsi, rsi
	setne	dil
	xor	r15d, r15d
	and	edi, eax
	call	assert@PLT
	mov	rdi, rbx
	call	strlen@PLT
	mov	rdi, rbp
	mov	r14, rax
	mov	r12d, eax
	call	git_buf_clear@PLT
	lea	r13d, -2[r14]
	test	r14d, r14d
	jg	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	add	r15d, 1
	cmp	r12d, r15d
	jle	.L6
.L2:
	movsx	rdx, r15d
	movsx	esi, BYTE PTR [rbx+rdx]
	cmp	sil, 37
	jne	.L5
	mov	esi, 37
	cmp	r13d, r15d
	jle	.L5
	movsx	edi, BYTE PTR 1[rbx+rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	git__fromhex@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	r14d, eax
	movsx	edi, BYTE PTR 2[rbx+rdx]
	call	git__fromhex@PLT
	test	r14d, r14d
	js	.L9
	test	eax, eax
	js	.L9
	mov	esi, r14d
	add	r15d, 2
	sal	esi, 4
	or	esi, eax
	movsx	esi, sil
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	git_buf_putc@PLT
	test	rax, rax
	jns	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
.L9:
	.cfi_restore_state
	mov	esi, 37
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	git__percent_decode, .-git__percent_decode
	.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__percent_decode.c"
	.text
	.align	2
	.global	git__percent_decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	git__percent_decode, %function
git__percent_decode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r6, r1
	subs	r0, r1, #0
	movne	r0, #1
	cmp	r7, #0
	moveq	r0, #0
	bl	assert
	mov	r0, r6
	bl	strlen
	mov	r8, r0
	mov	r0, r7
	bl	git_buf_clear
	cmp	r8, #0
	beq	.L2
	mov	r4, #0
	sub	r9, r8, #2
	b	.L5
.L13:
	cmp	r8, r4
	ble	.L2
.L5:
	ldrb	r5, [r6, r4]	@ zero_extendqisi2
	cmp	r5, #37
	bne	.L3
	cmp	r9, r4
	add	fp, r6, r4
	ble	.L3
	ldrb	r0, [fp, #1]	@ zero_extendqisi2
	bl	git__fromhex
	mov	r10, r0
	ldrb	r0, [fp, #2]	@ zero_extendqisi2
	bl	git__fromhex
	orrs	r3, r10, r0
	orrpl	r0, r0, r10, lsl #4
	andpl	r5, r0, #255
	addpl	r4, r4, #2
.L3:
	mov	r1, r5
	mov	r0, r7
	bl	git_buf_putc
	cmp	r0, #0
	add	r4, r4, #1
	bge	.L13
	mvn	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	git__percent_decode, .-git__percent_decode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
