	.file	"extr_bufferevent.c_bufferevent_decref_and_unlock_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bufferevent_decref_and_unlock_
	.type	bufferevent_decref_and_unlock_, @function
bufferevent_decref_and_unlock_:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 144
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	call	BEV_UPCAST@PLT
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	mov	rbx, rax
	setg	dil
	call	EVUTIL_ASSERT@PLT
	sub	QWORD PTR [rbx], 1
	jne	.L17
	mov	rax, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	rax
.L4:
	lea	rax, 16[rbp]
	mov	QWORD PTR [rsp], rax
	lea	rax, 12[rbp]
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 16[rbx]
	mov	rbx, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rsp], rax
	test	rbx, rbx
	je	.L7
	mov	rdi, rbx
	call	event_initialized@PLT
	test	rax, rax
	je	.L7
	mov	QWORD PTR 24[rsp], rbx
	mov	esi, 32
	mov	ebx, 4
	mov	edx, 12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ebx, 3
	mov	esi, 24
	mov	edx, 13
.L6:
	mov	r12, rsp
	mov	edi, DWORD PTR 8[rbp]
	add	rsi, r12
	call	evbuffer_get_callbacks_@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, 16
	add	ebx, eax
	movsx	rax, ebx
	sub	edx, ebx
	lea	rsi, [r12+rax*8]
	call	evbuffer_get_callbacks_@PLT
	mov	ecx, DWORD PTR bufferevent_finalize_cb_[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r12
	lea	esi, [rbx+rax]
	call	event_callback_finalize_many_@PLT
	mov	rdi, rbp
	call	BEV_UNLOCK@PLT
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 136[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 144
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	call	BEV_UNLOCK@PLT
	xor	eax, eax
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bufferevent_decref_and_unlock_, .-bufferevent_decref_and_unlock_
	.comm	bufferevent_finalize_cb_,4,4
	.comm	MAX_CBS,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.c_bufferevent_decref_and_unlock_.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bufferevent_decref_and_unlock_
	.syntax unified
	.arm
	.fpu softvfp
	.type	bufferevent_decref_and_unlock_, %function
bufferevent_decref_and_unlock_:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L19
	sub	sp, sp, #72
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	mov	r4, r0
	bl	BEV_UPCAST
	mov	r5, r0
	ldr	r0, [r0]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	EVUTIL_ASSERT
	ldr	r3, [r5]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r5]
	bne	.L17
	ldr	r3, [r4, #20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	mov	r0, r4
	blx	r3
.L4:
	ldr	r6, [r5, #4]
	add	r2, r4, #16
	add	r5, r5, #8
	add	r3, r4, #12
	cmp	r6, #0
	stmib	sp, {r2, r3, r5}
	beq	.L7
	mov	r0, r6
	bl	event_initialized
	cmp	r0, #0
	beq	.L7
	mov	r2, #12
	mov	r1, #16
	mov	r5, #4
	str	r6, [sp, #16]
	b	.L6
.L7:
	mov	r2, #13
	mov	r1, #12
	mov	r5, #3
.L6:
	add	r3, sp, #4
	add	r1, r3, r1
	ldr	r0, [r4, #8]
	bl	evbuffer_get_callbacks_
	add	r3, sp, #4
	add	r5, r5, r0
	add	r1, r3, r5, lsl #2
	rsb	r2, r5, #16
	ldr	r0, [r4, #4]
	bl	evbuffer_get_callbacks_
	ldr	r3, .L19+4
	add	r1, r5, r0
	ldr	r3, [r3]
	add	r2, sp, #4
	ldr	r0, [r4]
	bl	event_callback_finalize_many_
	mov	r0, r4
	bl	BEV_UNLOCK
	mov	r0, #1
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	mov	r0, r4
	bl	BEV_UNLOCK
	mov	r0, #0
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	bufferevent_finalize_cb_
	.size	bufferevent_decref_and_unlock_, .-bufferevent_decref_and_unlock_
	.comm	bufferevent_finalize_cb_,4,4
	.comm	MAX_CBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
