	.file	"extr_bufferevent_filter.c_be_filter_process_input.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	be_filter_process_input, @function
be_filter_process_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	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
	mov	r13d, r15d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	downcast@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR BEV_NORMAL[rip]
	cmp	eax, r15d
	je	.L27
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, -1
	cmp	eax, r15d
	je	.L28
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	r8d, DWORD PTR 8[rbx]
	mov	ecx, r13d
	mov	edi, DWORD PTR [rax]
	call	[QWORD PTR [rbx]]
	cmp	eax, DWORD PTR BEV_OK[rip]
	mov	r12d, eax
	je	.L29
.L7:
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jne	.L8
.L1:
	add	rsp, 8
	.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
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	DWORD PTR [r14], 1
	cmp	eax, DWORD PTR BEV_OK[rip]
	jne	.L8
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR EV_READ[rip], eax
	je	.L8
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	evbuffer_get_length@PLT
	test	eax, eax
	je	.L7
	mov	esi, r13d
	mov	rdi, rbx
	call	be_readbuf_full@PLT
	test	rax, rax
	jne	.L7
.L11:
	mov	eax, DWORD PTR BEV_NORMAL[rip]
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, -1
	cmp	eax, r15d
	jne	.L6
.L28:
	mov	r12d, DWORD PTR 8[rbp]
	test	r12d, r12d
	je	.L6
	mov	edi, esi
	call	evbuffer_get_length@PLT
	mov	edx, r12d
	mov	esi, DWORD PTR 4[rbp]
	sub	edx, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR EV_READ[rip], edx
	jne	.L30
.L3:
	mov	r12d, DWORD PTR BEV_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	call	BEV_RESET_GENERIC_READ_TIMEOUT@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, eax
	mov	rdi, rbx
	mov	r13d, eax
	call	be_readbuf_full@PLT
	test	rax, rax
	je	.L11
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	be_filter_process_input, .-be_filter_process_input
	.comm	EV_READ,4,4
	.comm	BEV_OK,4,4
	.comm	BEV_NORMAL,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_bufferevent_filter.c_be_filter_process_input.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_filter_process_input, %function
be_filter_process_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r1
	sub	sp, sp, #12
	mov	r7, r2
	mov	r4, r0
	bl	downcast
	ldr	r3, .L32
	mov	r6, r0
	ldr	r1, [r3]
	cmp	r1, r10
	movne	r9, r10
	beq	.L28
.L4:
	cmp	r1, r10
	ldr	r8, .L32+4
	ldr	fp, .L32+8
	ldr	r1, [r6, #4]
	beq	.L29
.L14:
	mvn	r2, #0
.L6:
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r0, [r0]
	str	r3, [sp]
	ldr	r5, [r4]
	mov	r3, r9
	blx	r5
	ldr	r3, [r8]
	mov	r5, r0
	cmp	r0, r3
	beq	.L30
.L7:
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L8
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r3, #1
	str	r3, [r7]
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L8
	ldr	r2, [r6]
	ldr	r3, [fp]
	tst	r2, r3
	beq	.L8
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	evbuffer_get_length
	cmp	r0, #0
	beq	.L7
	mov	r1, r9
	mov	r0, r4
	bl	be_readbuf_full
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L32
	ldr	r1, [r3]
	cmp	r1, r10
	ldr	r1, [r6, #4]
	bne	.L14
.L29:
	ldr	r5, [r6, #8]
	cmp	r5, #0
	beq	.L14
	mov	r0, r1
	bl	evbuffer_get_length
	ldr	r1, [r6, #4]
	sub	r2, r5, r0
	b	.L6
.L28:
	ldr	r3, .L32+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L31
.L3:
	ldr	r3, .L32+4
	ldr	r5, [r3]
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, r6
	bl	BEV_RESET_GENERIC_READ_TIMEOUT
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	mov	r0, r4
	mov	r9, r1
	bl	be_readbuf_full
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L32
	ldr	r1, [r3]
	b	.L4
.L33:
	.align	2
.L32:
	.word	BEV_NORMAL
	.word	BEV_OK
	.word	EV_READ
	.size	be_filter_process_input, .-be_filter_process_input
	.comm	EV_READ,4,4
	.comm	BEV_OK,4,4
	.comm	BEV_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
