	.file	"extr_http.c_evhttp_maybe_add_content_length_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Transfer-Encoding"
.LC1:
	.string	"Content-Length"
	.text
	.p2align 4
	.type	evhttp_maybe_add_content_length_header, @function
evhttp_maybe_add_content_length_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	evhttp_find_header@PLT
	test	rax, rax
	je	.L8
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 40
	.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
.L8:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	evhttp_find_header@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, r12
	mov	r12, rsp
	call	EV_SIZE_ARG@PLT
	mov	edx, DWORD PTR EV_SIZE_FMT[rip]
	mov	rdi, r12
	mov	esi, 22
	mov	ecx, eax
	call	evutil_snprintf@PLT
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	evhttp_add_header@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	evhttp_maybe_add_content_length_header, .-evhttp_maybe_add_content_length_header
	.comm	EV_SIZE_FMT,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_http.c_evhttp_maybe_add_content_length_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Transfer-Encoding\000"
	.align	2
.LC1:
	.ascii	"Content-Length\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	evhttp_maybe_add_content_length_header, %function
evhttp_maybe_add_content_length_header:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L10
	sub	sp, sp, #36
	mov	r5, r1
	ldr	r1, .L10+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r4, r0
	bl	evhttp_find_header
	cmp	r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	mov	r0, r4
	ldr	r1, .L10+8
	bl	evhttp_find_header
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L10+12
	mov	r0, r5
	ldr	r5, [r3]
	bl	EV_SIZE_ARG
	mov	r2, r5
	mov	r3, r0
	mov	r1, #22
	add	r0, sp, #4
	bl	evutil_snprintf
	mov	r0, r4
	ldr	r1, .L10+8
	add	r2, sp, #4
	bl	evhttp_add_header
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	EV_SIZE_FMT
	.size	evhttp_maybe_add_content_length_header, .-evhttp_maybe_add_content_length_header
	.comm	EV_SIZE_FMT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
