	.file	"extr_370.c_connect_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	connect_timeout
	.type	connect_timeout, @function
connect_timeout:
.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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR O_NONBLOCK[rip]
	mov	esi, DWORD PTR F_SETFL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	fcntl@PLT
	mov	edx, r13d
	mov	rsi, r12
	mov	edi, ebp
	call	connect@PLT
	test	eax, eax
	js	.L15
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	r13, 16[rsp]
	lea	r12, 20[rsp]
	mov	rdi, r13
	lea	r14, 8[rsp]
	call	FD_ZERO@PLT
	mov	rdi, r12
	call	FD_ZERO@PLT
	mov	rsi, r13
	mov	edi, ebp
	call	FD_SET@PLT
	mov	rsi, r12
	mov	edi, ebp
	call	FD_SET@PLT
	mov	esi, 4
	mov	rdi, r14
	call	bzero@PLT
	xor	ecx, ecx
	lea	edi, 1[rbp]
	mov	r8, r14
	mov	rdx, r12
	mov	rsi, r13
	mov	DWORD PTR 8[rsp], ebx
	call	select@PLT
	test	rax, rax
	jle	.L5
	mov	rsi, r12
	mov	edi, ebp
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L4
.L7:
	lea	rdx, 4[rsp]
	lea	rsi, 12[rsp]
	mov	edi, ebp
	mov	DWORD PTR 4[rsp], 4
	call	getpeername@PLT
	cmp	eax, -1
	je	.L5
	mov	esi, DWORD PTR F_GETFL[rip]
	xor	edx, edx
	mov	edi, ebp
	call	fcntl@PLT
	mov	edx, DWORD PTR O_NONBLOCK[rip]
	mov	esi, DWORD PTR F_SETFL[rip]
	mov	edi, ebp
	not	edx
	and	edx, eax
	call	fcntl@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, r13
	mov	edi, ebp
	call	FD_ISSET@PLT
	test	rax, rax
	jne	.L7
.L5:
	mov	eax, -1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	connect_timeout, .-connect_timeout
	.comm	O_NONBLOCK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,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_370.c_connect_timeout.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connect_timeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_timeout, %function
connect_timeout:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r4, r0
	ldr	r8, .L17
	ldr	r7, .L17+4
	mov	r9, r3
	ldr	r3, .L17+8
	sub	sp, sp, #36
	ldr	r2, [r8]
	ldr	r1, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	fcntl
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	connect
	cmp	r0, #0
	blt	.L15
.L1:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	add	r0, sp, #20
	bl	FD_ZERO
	add	r0, sp, #24
	bl	FD_ZERO
	add	r1, sp, #20
	mov	r0, r4
	bl	FD_SET
	add	r5, sp, #12
	add	r1, sp, #24
	mov	r0, r4
	bl	FD_SET
	mov	r1, #4
	mov	r0, r5
	bl	bzero
	mov	r3, #0
	str	r5, [sp]
	add	r2, sp, #24
	add	r1, sp, #20
	add	r0, r4, #1
	str	r9, [sp, #12]
	bl	select
	cmp	r0, #0
	ble	.L5
	mov	r0, r4
	add	r1, sp, #24
	bl	FD_ISSET
	cmp	r0, #0
	beq	.L4
.L7:
	mov	r3, #4
	mov	r0, r4
	add	r2, sp, #8
	add	r1, sp, #16
	str	r3, [sp, #8]
	bl	getpeername
	cmn	r0, #1
	beq	.L5
	ldr	r3, .L17+12
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	fcntl
	ldr	r2, [r8]
	ldr	r1, [r7]
	bic	r2, r0, r2
	mov	r0, r4
	bl	fcntl
	mov	r0, #0
	b	.L1
.L4:
	mov	r0, r4
	add	r1, sp, #20
	bl	FD_ISSET
	cmp	r0, #0
	bne	.L7
.L5:
	mvn	r0, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	O_NONBLOCK
	.word	F_SETFL
	.word	.LC0
	.word	F_GETFL
	.size	connect_timeout, .-connect_timeout
	.comm	O_NONBLOCK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
