	.file	"extr_mongoose.c_mg_http_parse_chunk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mg_http_parse_chunk, @function
mg_http_parse_chunk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
.L2:
	cmp	r13, rbx
	je	.L10
	movzx	edi, BYTE PTR [r14+r13]
	call	isxdigit@PLT
	test	rax, rax
	je	.L10
	movzx	edi, BYTE PTR [r14+r13]
	sal	r15, 4
	mov	eax, edi
	sub	eax, 48
	cmp	al, 9
	ja	.L3
	sub	edi, 48
.L4:
	movsx	rdi, edi
	add	r13, 1
	add	r15, rdi
	cmp	r13, 7
	jne	.L2
.L7:
	xor	eax, eax
.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
.L3:
	.cfi_restore_state
	call	tolower@PLT
	movsx	edi, al
	sub	edi, 87
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	test	r13, r13
	je	.L7
	lea	rax, 2[r13]
	cmp	rax, rbx
	ja	.L7
	cmp	BYTE PTR [r14+r13], 13
	jne	.L7
	cmp	BYTE PTR 1[r14+r13], 10
	jne	.L7
	lea	rdx, [r14+rax]
	add	rax, r15
	mov	QWORD PTR [r12], rdx
	mov	rdi, rax
	mov	QWORD PTR 0[rbp], r15
	je	.L7
	lea	rax, 2[rax]
	cmp	rax, rbx
	ja	.L7
	cmp	BYTE PTR [r14+rdi], 13
	jne	.L7
	cmp	BYTE PTR 1[r14+rdi], 10
	jne	.L7
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mg_http_parse_chunk, .-mg_http_parse_chunk
	.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_mongoose.c_mg_http_parse_chunk.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mg_http_parse_chunk, %function
mg_http_parse_chunk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, #0
	mov	r6, r0
	mov	r5, r1
	mov	r8, r2
	mov	r7, r3
	mov	r4, r9
	sub	r10, r0, #1
.L2:
	cmp	r9, r5
	beq	.L9
	ldrb	r0, [r10, #1]	@ zero_extendqisi2
	bl	isxdigit
	cmp	r0, #0
	beq	.L9
	ldrb	r0, [r10, #1]!	@ zero_extendqisi2
	lsl	r4, r4, #4
	sub	ip, r0, #48
	and	r3, ip, #255
	cmp	r3, #9
	bhi	.L26
.L4:
	add	r9, r9, #1
	cmp	r9, #7
	add	r4, ip, r4
	bne	.L2
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	bl	tolower
	sub	ip, r0, #87
	b	.L4
.L9:
	cmp	r9, #0
	beq	.L5
	add	r3, r9, #2
	cmp	r3, r5
	bhi	.L5
	ldrb	r2, [r6, r9]	@ zero_extendqisi2
	cmp	r2, #13
	bne	.L5
	add	r9, r6, r9
	ldrb	r2, [r9, #1]	@ zero_extendqisi2
	cmp	r2, #10
	bne	.L5
	add	r2, r6, r3
	adds	r3, r3, r4
	str	r2, [r8]
	str	r4, [r7]
	beq	.L5
	add	r0, r3, #2
	cmp	r0, r5
	bhi	.L5
	ldrb	r2, [r6, r3]	@ zero_extendqisi2
	cmp	r2, #13
	bne	.L5
	add	r6, r6, r3
	ldrb	r3, [r6, #1]	@ zero_extendqisi2
	cmp	r3, #10
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	b	.L5
	.size	mg_http_parse_chunk, .-mg_http_parse_chunk
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
