	.file	"extr_bufferevent.c_bufferevent_run_deferred_callbacks_unlocked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bufferevent_run_deferred_callbacks_unlocked, @function
bufferevent_run_deferred_callbacks_unlocked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, 24[rsi]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	BEV_LOCK@PLT
	movzx	edx, WORD PTR [rbx]
	movzx	eax, WORD PTR BEV_EVENT_CONNECTED[rip]
	test	dx, ax
	je	.L2
	mov	rbp, QWORD PTR 32[rbx]
	test	rbp, rbp
	je	.L2
	not	eax
	mov	r13, QWORD PTR 24[rbx]
	mov	rdi, r12
	and	eax, edx
	mov	WORD PTR [rbx], ax
	xor	eax, eax
	call	BEV_UNLOCK@PLT
	mov	rdi, r12
	movsx	esi, WORD PTR BEV_EVENT_CONNECTED[rip]
	mov	rdx, r13
	call	rbp
	mov	rdi, r12
	call	BEV_LOCK@PLT
.L2:
	cmp	QWORD PTR 16[rbx], 0
	je	.L3
	mov	rbp, QWORD PTR 48[rbx]
	test	rbp, rbp
	je	.L3
	mov	QWORD PTR 16[rbx], 0
	mov	r13, QWORD PTR 24[rbx]
	mov	rdi, r12
	xor	eax, eax
	call	BEV_UNLOCK@PLT
	mov	rdi, r12
	mov	rsi, r13
	call	rbp
	mov	rdi, r12
	call	BEV_LOCK@PLT
.L3:
	cmp	QWORD PTR 8[rbx], 0
	je	.L4
	mov	rbp, QWORD PTR 40[rbx]
	test	rbp, rbp
	je	.L4
	mov	QWORD PTR 8[rbx], 0
	mov	r13, QWORD PTR 24[rbx]
	mov	rdi, r12
	xor	eax, eax
	call	BEV_UNLOCK@PLT
	mov	rdi, r12
	mov	rsi, r13
	call	rbp
	mov	rdi, r12
	call	BEV_LOCK@PLT
.L4:
	movzx	ebp, WORD PTR [rbx]
	test	bp, bp
	je	.L5
	mov	r13, QWORD PTR 32[rbx]
	test	r13, r13
	je	.L5
	xor	eax, eax
	mov	edi, DWORD PTR 4[rbx]
	mov	r14, QWORD PTR 24[rbx]
	mov	DWORD PTR 4[rbx], 0
	mov	WORD PTR [rbx], ax
	call	EVUTIL_SET_SOCKET_ERROR@PLT
	mov	rdi, r12
	xor	eax, eax
	call	BEV_UNLOCK@PLT
	mov	rdi, r12
	movsx	esi, bp
	mov	rdx, r14
	call	r13
	mov	rdi, r12
	call	BEV_LOCK@PLT
.L5:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	bufferevent_decref_and_unlock_@PLT
	.cfi_endproc
.LFE0:
	.size	bufferevent_run_deferred_callbacks_unlocked, .-bufferevent_run_deferred_callbacks_unlocked
	.comm	BEV_EVENT_CONNECTED,2,2
	.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_run_deferred_callbacks_unlocked.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bufferevent_run_deferred_callbacks_unlocked, %function
bufferevent_run_deferred_callbacks_unlocked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	add	r5, r1, #16
	ldr	r6, .L32
	mov	r0, r5
	bl	BEV_LOCK
	ldrsh	r3, [r4]
	ldrsh	r2, [r6]
	tst	r3, r2
	beq	.L2
	ldr	r7, [r4, #20]
	cmp	r7, #0
	beq	.L2
	bic	r3, r3, r2
	ldr	r8, [r4, #16]
	strh	r3, [r4]	@ movhi
	mov	r0, r5
	bl	BEV_UNLOCK
	mov	r2, r8
	mov	r0, r5
	ldrsh	r1, [r6]
	blx	r7
	mov	r0, r5
	bl	BEV_LOCK
.L2:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L3
	ldr	r6, [r4, #28]
	cmp	r6, #0
	beq	.L3
	mov	r3, #0
	ldr	r7, [r4, #16]
	str	r3, [r4, #12]
	mov	r0, r5
	bl	BEV_UNLOCK
	mov	r1, r7
	mov	r0, r5
	blx	r6
	mov	r0, r5
	bl	BEV_LOCK
.L3:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r6, [r4, #24]
	cmp	r6, #0
	beq	.L4
	mov	r3, #0
	ldr	r7, [r4, #16]
	str	r3, [r4, #8]
	mov	r0, r5
	bl	BEV_UNLOCK
	mov	r1, r7
	mov	r0, r5
	blx	r6
	mov	r0, r5
	bl	BEV_LOCK
.L4:
	ldrsh	r6, [r4]
	cmp	r6, #0
	beq	.L5
	ldr	r7, [r4, #20]
	cmp	r7, #0
	beq	.L5
	mov	r3, #0
	ldr	r0, [r4, #4]
	strh	r3, [r4]	@ movhi
	str	r3, [r4, #4]
	ldr	r4, [r4, #16]
	bl	EVUTIL_SET_SOCKET_ERROR
	mov	r0, r5
	bl	BEV_UNLOCK
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	blx	r7
	mov	r0, r5
	bl	BEV_LOCK
.L5:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	bufferevent_decref_and_unlock_
.L33:
	.align	2
.L32:
	.word	BEV_EVENT_CONNECTED
	.size	bufferevent_run_deferred_callbacks_unlocked, .-bufferevent_run_deferred_callbacks_unlocked
	.comm	BEV_EVENT_CONNECTED,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
