	.file	"extr_http.c_evhttp_connection_read_on_write_error.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	evhttp_connection_read_on_write_error, @function
evhttp_connection_read_on_write_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR [rdi]
	mov	eax, DWORD PTR EVHTTP_CON_READING_ERROR[rip]
	test	edx, eax
	jne	.L5
	mov	eax, DWORD PTR EVHTTP_RESPONSE[rip]
	mov	edi, DWORD PTR 4[rdi]
	mov	DWORD PTR [rsi], eax
	call	bufferevent_get_output@PLT
	mov	esi, 1
	mov	r12, rax
	mov	rdi, rax
	call	evbuffer_unfreeze@PLT
	mov	rdi, r12
	call	evbuffer_get_length@PLT
	mov	rdi, r12
	mov	esi, eax
	call	evbuffer_drain@PLT
	mov	rdi, r12
	mov	esi, 1
	call	evbuffer_freeze@PLT
	mov	rdi, rbp
	call	evhttp_start_read_@PLT
	mov	eax, DWORD PTR EVHTTP_CON_READING_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.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
	not	eax
	mov	esi, DWORD PTR EVREQ_HTTP_EOF[rip]
	and	eax, edx
	mov	DWORD PTR [rdi], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	evhttp_connection_fail_@PLT
	.cfi_endproc
.LFE0:
	.size	evhttp_connection_read_on_write_error, .-evhttp_connection_read_on_write_error
	.comm	EVREQ_HTTP_EOF,4,4
	.comm	EVHTTP_RESPONSE,4,4
	.comm	EVHTTP_CON_READING_ERROR,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_connection_read_on_write_error.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	evhttp_connection_read_on_write_error, %function
evhttp_connection_read_on_write_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L6
	ldr	r3, [r0]
	ldr	r2, [r6]
	mov	r4, r0
	tst	r3, r2
	bne	.L5
	ldr	r3, .L6+4
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [r1]
	bl	bufferevent_get_output
	mov	r5, r0
	mov	r1, #1
	bl	evbuffer_unfreeze
	mov	r0, r5
	bl	evbuffer_get_length
	mov	r1, r0
	mov	r0, r5
	bl	evbuffer_drain
	mov	r1, #1
	mov	r0, r5
	bl	evbuffer_freeze
	mov	r0, r4
	bl	evhttp_start_read_
	ldr	r2, [r6]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, .L6+8
	bic	r3, r3, r2
	ldr	r1, [r1]
	str	r3, [r0]
	pop	{r4, r5, r6, lr}
	b	evhttp_connection_fail_
.L7:
	.align	2
.L6:
	.word	EVHTTP_CON_READING_ERROR
	.word	EVHTTP_RESPONSE
	.word	EVREQ_HTTP_EOF
	.size	evhttp_connection_read_on_write_error, .-evhttp_connection_read_on_write_error
	.comm	EVREQ_HTTP_EOF,4,4
	.comm	EVHTTP_RESPONSE,4,4
	.comm	EVHTTP_CON_READING_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
