	.file	"extr_evrpc.c_evrpc_pool_add_connection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evrpc_pool_add_connection
	.type	evrpc_pool_add_connection, @function
evrpc_pool_add_connection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	QWORD PTR 8[rsi], 0
	mov	rbp, rsi
	sete	dil
	call	EVUTIL_ASSERT@PLT
	mov	edx, DWORD PTR next[rip]
	mov	rsi, rbp
	lea	rdi, 16[r12]
	call	TAILQ_INSERT_TAIL@PLT
	mov	rsi, QWORD PTR 8[r12]
	test	rsi, rsi
	je	.L2
	mov	rdi, rbp
	call	evhttp_connection_set_base@PLT
.L2:
	mov	rdi, rbp
	call	evutil_timerisset@PLT
	test	eax, eax
	je	.L10
.L3:
	mov	rdi, r12
	call	TAILQ_FIRST@PLT
	test	rax, rax
	je	.L1
	mov	rdi, r12
	call	TAILQ_FIRST@PLT
	mov	edx, DWORD PTR next[rip]
	mov	rdi, r12
	mov	r13, rax
	mov	rsi, rax
	call	TAILQ_REMOVE@PLT
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	evrpc_schedule_request@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, rbp
	call	evhttp_connection_set_timeout@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	evrpc_pool_add_connection, .-evrpc_pool_add_connection
	.comm	next,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_evrpc.c_evrpc_pool_add_connection.c"
	.text
	.align	2
	.global	evrpc_pool_add_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	evrpc_pool_add_connection, %function
evrpc_pool_add_connection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	clz	r0, r3
	mov	r4, r1
	ldr	r7, .L11
	lsr	r0, r0, #5
	bl	EVUTIL_ASSERT
	mov	r1, r4
	ldr	r2, [r7]
	add	r0, r5, #12
	bl	TAILQ_INSERT_TAIL
	ldr	r1, [r5, #8]
	cmp	r1, #0
	beq	.L2
	mov	r0, r4
	bl	evhttp_connection_set_base
.L2:
	mov	r0, r4
	bl	evutil_timerisset
	cmp	r0, #0
	beq	.L10
.L3:
	mov	r0, r5
	bl	TAILQ_FIRST
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	TAILQ_FIRST
	mov	r6, r0
	ldr	r2, [r7]
	mov	r1, r6
	mov	r0, r5
	bl	TAILQ_REMOVE
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	evrpc_schedule_request
.L10:
	mov	r0, r4
	ldr	r1, [r5, #4]
	bl	evhttp_connection_set_timeout
	b	.L3
.L12:
	.align	2
.L11:
	.word	next
	.size	evrpc_pool_add_connection, .-evrpc_pool_add_connection
	.comm	next,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
