	.file	"extr_proto-http.c_http_change_field.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
.LC1:
	.string	"\r\n"
	.text
	.p2align 4
	.globl	http_change_field
	.type	http_change_field, @function
http_change_field:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbx, QWORD PTR [rdi]
	mov	QWORD PTR 32[rsp], rdi
	mov	rdi, rdx
	mov	QWORD PTR 40[rsp], rcx
	mov	DWORD PTR 20[rsp], r8d
	mov	QWORD PTR 24[rsp], rbx
	call	strlen@PLT
	mov	r13d, eax
	lea	eax, 3[r15]
	lea	edi, [rax+r12]
	mov	DWORD PTR 56[rsp], eax
	call	MALLOC@PLT
	mov	edx, r12d
	mov	rsi, rbx
	mov	rbp, rax
	mov	rdi, rax
	xor	eax, eax
	call	memcpy@PLT
	test	r12d, r12d
	je	.L10
	lea	eax, -1[r12]
	mov	ecx, ebp
	lea	rdi, 1[rbp]
	mov	QWORD PTR 48[rsp], rbp
	neg	ecx
	lea	r10, 2[rbp+rax]
	mov	DWORD PTR 60[rsp], r12d
	mov	rbx, rdi
	mov	r15d, ecx
	mov	rcx, r14
	mov	r14, r10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	r14, rbx
	je	.L18
.L9:
	cmp	BYTE PTR -1[rbx], 10
	mov	r12, rbx
	lea	ebp, [r15+rbx]
	jne	.L3
	mov	rsi, rcx
	mov	edx, r13d
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rcx
	call	memcasecmp@PLT
	mov	rcx, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L3
	mov	esi, ebp
	mov	r12d, DWORD PTR 60[rsp]
	mov	rbp, QWORD PTR 48[rsp]
	mov	r15, rbx
	mov	rdi, rbx
	mov	rbx, rsi
	mov	r14, rcx
	mov	eax, ebx
	lea	ecx, [r12+rsi]
	add	rsi, rbp
	cmp	r12d, ebx
	ja	.L6
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L7:
	add	eax, 1
	add	rsi, 1
	cmp	r12d, eax
	je	.L20
.L6:
	cmp	BYTE PTR [rsi], 10
	jne	.L7
	cmp	r12d, eax
	jbe	.L16
	lea	esi, 1[rax]
	mov	rax, rsi
	add	rsi, rbp
.L16:
	sub	ecx, eax
.L5:
	mov	edx, r12d
	mov	DWORD PTR 8[rsp], ecx
	sub	edx, eax
	call	memmove@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	edx, eax
	mov	BYTE PTR 0[rbp+rax], 0
	mov	r12d, eax
	sub	edx, ebx
	add	ebx, r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r15, r12
	mov	r12d, DWORD PTR 60[rsp]
	mov	ebx, ebp
	mov	rbp, QWORD PTR 48[rsp]
	mov	r14, rcx
	mov	edx, r12d
	sub	edx, ebx
	add	ebx, r13d
.L2:
	mov	eax, DWORD PTR 20[rsp]
	mov	rsi, r15
	lea	ecx, [rax+rbx]
	lea	edi, 3[rcx]
	mov	DWORD PTR 8[rsp], ecx
	add	rdi, rbp
	call	memmove@PLT
	mov	edx, r13d
	mov	rsi, r14
	mov	rdi, r15
	xor	eax, eax
	call	memcpy@PLT
	mov	edi, ebx
	mov	edx, 1
	xor	eax, eax
	add	rdi, rbp
	lea	rsi, .LC0[rip]
	call	memcpy@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	xor	eax, eax
	lea	edi, 1[rbx]
	add	rdi, rbp
	call	memcpy@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	edx, 2
	xor	eax, eax
	lea	rsi, .LC1[rip]
	lea	edi, 1[rcx]
	add	rdi, rbp
	call	memcpy@PLT
	mov	rdi, QWORD PTR 24[rsp]
	add	r13d, DWORD PTR 56[rsp]
	add	r12d, r13d
	call	free@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR [rax], rbp
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	mov	esi, r12d
	sub	ecx, r12d
	add	rsi, rbp
	jmp	.L5
.L10:
	mov	ebx, r13d
	mov	r15, rbp
	xor	edx, edx
	jmp	.L2
.L19:
	mov	ecx, r12d
	mov	rsi, r15
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	http_change_field, .-http_change_field
	.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_proto-http.c_http_change_field.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"\015\012\000"
	.text
	.align	2
	.global	http_change_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	http_change_field, %function
http_change_field:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r2
	mov	r2, r0
	sub	sp, sp, #20
	mov	r0, r9
	mov	r5, r1
	mov	r4, r2
	stmib	sp, {r2, r3}
	bl	strlen
	ldr	r3, [sp, #56]
	mov	r8, r0
	add	r3, r3, #3
	add	r0, r3, r5
	ldr	fp, [r4]
	str	r3, [sp]
	bl	MALLOC
	mov	r1, fp
	mov	r2, r5
	mov	r7, r0
	bl	memcpy
	cmp	r5, #0
	beq	.L10
	mov	r10, r7
	mov	r4, #0
	b	.L9
.L3:
	cmp	r5, r4
	beq	.L16
.L9:
	ldrb	r3, [r10], #1	@ zero_extendqisi2
	add	r4, r4, #1
	cmp	r3, #10
	mov	r6, r10
	bne	.L3
	mov	r2, r8
	mov	r1, r9
	mov	r0, r10
	bl	memcasecmp
	cmp	r0, #0
	bne	.L3
	cmp	r5, r4
	add	r3, r5, r4
	movls	r1, r10
	movls	r3, r5
	movls	r2, r4
	bls	.L5
	mov	r2, r4
	add	r0, r7, r4
	b	.L6
.L7:
	add	r2, r2, #1
	cmp	r5, r2
	bls	.L14
.L6:
	mov	r1, r0
	ldrb	ip, [r0], #1	@ zero_extendqisi2
	cmp	ip, #10
	bne	.L7
	cmp	r5, r2
	subls	r3, r3, r2
	bls	.L5
	add	r2, r2, #1
.L14:
	sub	r3, r3, r2
	add	r1, r7, r2
.L5:
	sub	r2, r5, r2
	mov	r0, r10
	str	r3, [sp, #12]
	bl	memmove
	mov	r2, #0
	ldr	r3, [sp, #12]
	add	r10, r8, r4
	sub	r5, r3, r4
	strb	r2, [r7, r3]
	mov	r4, r3
	b	.L2
.L16:
	add	r10, r8, r5
	mov	r5, #0
.L2:
	ldr	r3, [sp, #56]
	mov	r2, r5
	add	r3, r3, r10
	add	r0, r3, #3
	mov	r1, r6
	add	r0, r7, r0
	str	r3, [sp, #12]
	bl	memmove
	mov	r2, r8
	mov	r1, r9
	mov	r0, r6
	bl	memcpy
	mov	r2, #1
	ldr	r1, .L17
	add	r0, r7, r10
	bl	memcpy
	add	r0, r10, #1
	ldr	r2, [sp, #56]
	ldr	r1, [sp, #8]
	add	r0, r7, r0
	bl	memcpy
	ldr	r3, [sp, #12]
	mov	r2, #2
	add	r0, r3, #1
	ldr	r1, .L17+4
	add	r0, r7, r0
	bl	memcpy
	ldr	r3, [sp]
	mov	r0, fp
	add	r8, r3, r8
	add	r4, r8, r4
	bl	free
	mov	r0, r4
	ldr	r3, [sp, #4]
	str	r7, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r6, r7
	mov	r10, r8
	mov	r4, r5
	b	.L2
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.size	http_change_field, .-http_change_field
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
