	.file	"extr_http_utils.c_http_utils_trim_whitespace.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	http_utils_trim_whitespace
	.type	http_utils_trim_whitespace, @function
http_utils_trim_whitespace:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L17
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rdi]
	test	rbp, rbp
	jne	.L3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbp, 1
.L3:
	movzx	edi, BYTE PTR 0[rbp]
	call	isspace@PLT
	test	rax, rax
	jne	.L4
	cmp	BYTE PTR 0[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR [r12]
	mov	BYTE PTR [rax], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	strlen@PLT
	cdqe
	lea	rbx, -1[rbp+rax]
	cmp	rbp, rbx
	jb	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rbx, 1
	cmp	rbp, rbx
	je	.L7
.L6:
	movzx	edi, BYTE PTR [rbx]
	call	isspace@PLT
	test	rax, rax
	jne	.L8
.L7:
	mov	BYTE PTR 1[rbx], 0
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, QWORD PTR [r12]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	lea	edx, 1[rax]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	memmove@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	ret
	.cfi_endproc
.LFE0:
	.size	http_utils_trim_whitespace, .-http_utils_trim_whitespace
	.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_http_utils.c_http_utils_trim_whitespace.c"
	.text
	.align	2
	.global	http_utils_trim_whitespace
	.syntax unified
	.arm
	.fpu softvfp
	.type	http_utils_trim_whitespace, %function
http_utils_trim_whitespace:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r4, [r7]
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L3:
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	mov	r5, r4
	mov	r8, r4
	add	r4, r4, #1
	bne	.L3
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	mov	r0, r5
	bl	strlen
	sub	r6, r0, #1
	add	r6, r5, r6
	cmp	r5, r6
	bcs	.L5
	mov	r4, r6
	b	.L6
.L7:
	cmp	r4, r8
	mov	r6, r4
	beq	.L5
.L6:
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	mov	r6, r4
	sub	r4, r4, #1
	bne	.L7
.L5:
	mov	r3, #0
	mov	r0, r5
	strb	r3, [r6, #1]
	bl	strlen
	mov	r1, r5
	add	r2, r0, #1
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	memmove
.L17:
	ldr	r2, [r7]
	strb	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	http_utils_trim_whitespace, .-http_utils_trim_whitespace
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
