	.file	"extr_socket.c_tipc_wait_for_connect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tipc_wait_for_connect, @function
tipc_wait_for_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	esi, DWORD PTR woken_wake_function[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, wait[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR wait[rip]
	call	DEFINE_WAIT_FUNC@PLT
	mov	rbx, QWORD PTR [rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	QWORD PTR [r14], 0
	je	.L10
	mov	edi, DWORD PTR current[rip]
	call	signal_pending@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, rbx
	call	sk_sleep@PLT
	mov	rsi, r13
	mov	edi, eax
	call	add_wait_queue@PLT
	xor	edx, edx
	mov	rsi, r14
	mov	rcx, r13
	mov	rax, QWORD PTR TIPC_CONNECTING[rip]
	cmp	QWORD PTR [rbx], rax
	mov	rdi, rbx
	setne	dl
	call	sk_wait_event@PLT
	mov	rdi, rbx
	mov	ebp, eax
	call	sk_sleep@PLT
	mov	rsi, r13
	mov	edi, eax
	call	remove_wait_queue@PLT
	test	ebp, ebp
	jne	.L1
.L5:
	mov	rdi, rbx
	call	sock_error@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r14]
	pop	rbx
	.cfi_def_cfa_offset 40
	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	sock_intr_errno@PLT
	.cfi_endproc
.LFE0:
	.size	tipc_wait_for_connect, .-tipc_wait_for_connect
	.comm	woken_wake_function,4,4
	.comm	wait,4,4
	.comm	current,4,4
	.comm	TIPC_CONNECTING,8,8
	.comm	ETIMEDOUT,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_socket.c_tipc_wait_for_connect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tipc_wait_for_connect, %function
tipc_wait_for_connect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r3, .L13
	ldr	r2, .L13+4
	mov	r7, r1
	ldr	r0, [r3]
	ldr	r1, [r2]
	mov	r6, r3
	ldr	r8, .L13+8
	bl	DEFINE_WAIT_FUNC
	ldr	r9, .L13+12
	ldr	r5, [r4]
	b	.L5
.L12:
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L10
	ldr	r0, [r8]
	bl	signal_pending
	subs	r10, r0, #0
	bne	.L11
	mov	r0, r5
	bl	sk_sleep
	mov	r1, r6
	bl	add_wait_queue
	ldr	r1, [r5]
	ldr	r2, [r9]
	mov	r3, r6
	subs	r2, r1, r2
	movne	r2, #1
	mov	r1, r7
	mov	r0, r5
	bl	sk_wait_event
	mov	r4, r0
	mov	r0, r5
	bl	sk_sleep
	mov	r1, r6
	bl	remove_wait_queue
	cmp	r4, #0
	bne	.L1
.L5:
	mov	r0, r5
	bl	sock_error
	subs	r10, r0, #0
	beq	.L12
.L1:
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	rsb	r10, r0, #0
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	sock_intr_errno
.L14:
	.align	2
.L13:
	.word	wait
	.word	woken_wake_function
	.word	current
	.word	TIPC_CONNECTING
	.word	ETIMEDOUT
	.size	tipc_wait_for_connect, .-tipc_wait_for_connect
	.comm	woken_wake_function,4,4
	.comm	wait,4,4
	.comm	current,4,4
	.comm	TIPC_CONNECTING,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
