	.file	"extr_prot.c_conn_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	conn_timeout, @function
conn_timeout:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	conn_waiting@PLT
	test	rax, rax
	je	.L8
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r12
	call	connsched@PLT
.L8:
	mov	rdi, r12
	call	connsoonestjob@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	r13, QWORD PTR 0[rbp]
	xor	eax, eax
	call	nanoseconds@PLT
	cmp	r13, rax
	jge	.L10
	cmp	QWORD PTR 16[r12], rbp
	je	.L22
.L6:
	add	DWORD PTR 8[rbp], 1
	mov	rsi, rbp
	mov	rdi, r12
	add	DWORD PTR timeout_ct[rip], 1
	call	remove_this_reserved_job@PLT
	mov	edi, DWORD PTR 8[r12]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, eax
	call	enqueue_job@PLT
	test	eax, eax
	jg	.L7
	mov	edi, DWORD PTR 8[r12]
	xor	edx, edx
	mov	rsi, rbp
	call	bury_job@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	job_copy@PLT
	mov	QWORD PTR 16[r12], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	test	ebx, ebx
	je	.L23
	mov	rdi, r12
	call	remove_waiting_conn@PLT
	mov	esi, DWORD PTR MSG_DEADLINE_SOON[rip]
.L19:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	reply_msg@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, r12
	call	conn_waiting@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR [r12], 0
	jns	.L24
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L21:
	.cfi_restore_state
	mov	rdi, r12
	xor	ebx, ebx
	call	conndeadlinesoon@PLT
	test	rax, rax
	setne	bl
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	mov	QWORD PTR [r12], -1
	mov	rdi, r12
	call	remove_waiting_conn@PLT
	mov	esi, DWORD PTR MSG_TIMED_OUT[rip]
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	conn_timeout, .-conn_timeout
	.comm	timeout_ct,4,4
	.comm	MSG_TIMED_OUT,4,4
	.comm	MSG_DEADLINE_SOON,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_prot.c_conn_timeout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	conn_timeout, %function
conn_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	conn_waiting
	subs	r7, r0, #0
	bne	.L21
.L2:
	ldr	r6, .L23
	b	.L8
.L7:
	mov	r0, r5
	bl	connsched
.L8:
	mov	r0, r5
	bl	connsoonestjob
	subs	r4, r0, #0
	beq	.L10
	ldr	r8, [r4]
	bl	nanoseconds
	cmp	r8, r0
	bge	.L10
	ldr	r3, [r5, #8]
	cmp	r3, r4
	beq	.L22
.L6:
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	add	r2, r2, #1
	add	r3, r3, #1
	mov	r1, r4
	str	r2, [r4, #4]
	mov	r0, r5
	ldr	r8, [r5, #4]
	str	r3, [r6]
	bl	remove_this_reserved_job
	mov	r3, #0
	mov	r1, r0
	mov	r2, r3
	mov	r0, r8
	bl	enqueue_job
	cmp	r0, #0
	bgt	.L7
	mov	r1, r4
	mov	r2, #0
	ldr	r0, [r5, #4]
	bl	bury_job
	b	.L7
.L22:
	mov	r0, r4
	bl	job_copy
	str	r0, [r5, #8]
	b	.L6
.L10:
	cmp	r7, #0
	bne	.L4
	mov	r0, r5
	bl	conn_waiting
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r5]
	cmp	r3, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	mvn	r3, #0
	mov	r0, r5
	str	r3, [r5]
	bl	remove_waiting_conn
	ldr	r3, .L23+4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	reply_msg
.L4:
	mov	r0, r5
	bl	remove_waiting_conn
	ldr	r3, .L23+8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	reply_msg
.L21:
	mov	r0, r5
	bl	conndeadlinesoon
	subs	r7, r0, #0
	movne	r7, #1
	b	.L2
.L24:
	.align	2
.L23:
	.word	timeout_ct
	.word	MSG_TIMED_OUT
	.word	MSG_DEADLINE_SOON
	.size	conn_timeout, .-conn_timeout
	.comm	timeout_ct,4,4
	.comm	MSG_TIMED_OUT,4,4
	.comm	MSG_DEADLINE_SOON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
