	.file	"extr_smart_pkt.c_parse_len.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid hex digit in length: '%s'"
	.text
	.p2align 4
	.type	parse_len, @function
parse_len:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -40
	mov	r8d, DWORD PTR PKT_LEN_SIZE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rbx, rsp
	lea	eax, 1[r8]
	cdqe
	add	rax, 15
	mov	rcx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rcx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L23
	movsx	rax, r8d
	mov	r13, rsp
	cmp	rax, rdx
	jbe	.L5
.L25:
	mov	eax, DWORD PTR GIT_EBUFS[rip]
.L1:
	mov	rsi, QWORD PTR -40[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, r8d
	mov	rdi, rsp
	call	memcpy@PLT
	movsx	rax, DWORD PTR PKT_LEN_SIZE[rip]
	mov	BYTE PTR [rsp+rax], 0
	mov	rdx, rax
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR PKT_LEN_SIZE[rip]
	add	rbx, 1
	cmp	edx, ebx
	jle	.L7
.L12:
	movsx	edi, BYTE PTR 0[r13+rbx]
	call	isxdigit@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR PKT_LEN_SIZE[rip]
	test	eax, eax
	jle	.L9
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	movsx	edi, BYTE PTR 0[r13+rbx]
	call	isprint@PLT
	test	eax, eax
	jne	.L10
	mov	BYTE PTR 0[r13+rbx], 46
.L10:
	add	rbx, 1
	cmp	DWORD PTR PKT_LEN_SIZE[rip], ebx
	jg	.L11
.L9:
	mov	edi, DWORD PTR GIT_ERROR_NET[rip]
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	call	git_error_set@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rcx, -48[rbp]
	lea	rdi, -56[rbp]
	mov	r8d, 16
	mov	rsi, r13
	call	git__strntol32@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	js	.L14
	mov	QWORD PTR [r12], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	or	QWORD PTR -8[rsp+rcx], 0
	movsx	rax, r8d
	mov	r13, rsp
	cmp	rax, rdx
	ja	.L25
	jmp	.L5
.L14:
	mov	eax, -1
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_len, .-parse_len
	.comm	PKT_LEN_SIZE,4,4
	.comm	GIT_ERROR_NET,4,4
	.comm	GIT_EBUFS,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_smart_pkt.c_parse_len.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid hex digit in length: '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_len, %function
parse_len:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r6, .L17
	ldr	r3, .L17+4
	ldr	r10, [r6]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	add	r3, r10, #8
	bic	r3, r3, #7
	cmp	r10, r2
	sub	sp, sp, r3
	bls	.L2
	ldr	r3, .L17+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	add	r5, sp, #8
	mov	r8, r0
	mov	r2, r10
	mov	r0, r5
	bl	memcpy
	mov	r3, #0
	cmp	r10, r3
	strb	r3, [r5, r10]
	ble	.L4
	add	r7, sp, #7
	mov	r9, r7
	b	.L9
.L5:
	ldr	r10, [r6]
	add	r4, r4, #2
	sub	r4, r4, r5
	cmp	r10, r4
	ble	.L4
.L9:
	mov	r4, r9
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
	bl	isxdigit
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L6
	mov	r8, #46
.L8:
	mov	r4, r7
	ldrb	r0, [r7, #1]!	@ zero_extendqisi2
	bl	isprint
	add	r4, r4, #2
	ldr	r3, [r6]
	cmp	r0, #0
	sub	r4, r4, r5
	strbeq	r8, [r7]
	cmp	r3, r4
	bgt	.L8
.L6:
	ldr	r3, .L17+12
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L17+16
	bl	git_error_set
	mvn	r0, #0
	b	.L1
.L4:
	mov	r3, #16
	mov	r2, r10
	str	r3, [sp]
	mov	r1, r5
	sub	r3, fp, #44
	sub	r0, fp, #48
	bl	git__strntol32
	cmp	r0, #0
	blt	.L1
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	movge	r0, #0
	mvnlt	r0, #0
	strge	r3, [r8]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	PKT_LEN_SIZE
	.word	.LC1
	.word	GIT_EBUFS
	.word	GIT_ERROR_NET
	.word	.LC0
	.size	parse_len, .-parse_len
	.comm	PKT_LEN_SIZE,4,4
	.comm	GIT_ERROR_NET,4,4
	.comm	GIT_EBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
