	.file	"extr_sftp.c_connect_to_server.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socketpair: %s"
.LC1:
	.string	"fork: %s"
.LC2:
	.string	"dup2: %s\n"
.LC3:
	.string	"exec: %s: %s\n"
	.text
	.p2align 4
	.type	connect_to_server, @function
connect_to_server:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_UNIX[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rcx, rsp
	call	socketpair@PLT
	cmp	eax, -1
	je	.L14
.L2:
	mov	eax, DWORD PTR [rsp]
	mov	r12d, DWORD PTR 4[rsp]
	mov	DWORD PTR [rbx], eax
	mov	DWORD PTR 0[rbp], eax
	call	fork@PLT
	mov	DWORD PTR sshpid[rip], eax
	cmp	eax, -1
	je	.L15
	test	eax, eax
	je	.L16
.L4:
	mov	esi, DWORD PTR killchild[rip]
	mov	edi, DWORD PTR SIGTERM[rip]
	call	signal@PLT
	mov	esi, DWORD PTR killchild[rip]
	mov	edi, DWORD PTR SIGINT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR killchild[rip]
	mov	edi, DWORD PTR SIGHUP[rip]
	call	signal@PLT
	mov	esi, DWORD PTR suspchild[rip]
	mov	edi, DWORD PTR SIGTSTP[rip]
	call	signal@PLT
	mov	esi, DWORD PTR suspchild[rip]
	mov	edi, DWORD PTR SIGTTIN[rip]
	call	signal@PLT
	mov	esi, DWORD PTR suspchild[rip]
	mov	edi, DWORD PTR SIGTTOU[rip]
	call	signal@PLT
	mov	esi, DWORD PTR sigchld_handler[rip]
	mov	edi, DWORD PTR SIGCHLD[rip]
	call	signal@PLT
	mov	edi, r12d
	call	close@PLT
	mov	edi, r12d
	call	close@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.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
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR STDIN_FILENO[rip]
	mov	edi, r12d
	call	dup2@PLT
	cmp	eax, -1
	je	.L7
	mov	esi, DWORD PTR STDOUT_FILENO[rip]
	mov	edi, r12d
	call	dup2@PLT
	cmp	eax, -1
	je	.L7
.L6:
	mov	edi, DWORD PTR 0[rbp]
	call	close@PLT
	mov	edi, DWORD PTR [rbx]
	call	close@PLT
	mov	edi, r12d
	call	close@PLT
	mov	edi, r12d
	call	close@PLT
	mov	esi, DWORD PTR SIG_IGN[rip]
	mov	edi, DWORD PTR SIGINT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR SIG_DFL[rip]
	mov	edi, DWORD PTR SIGTERM[rip]
	call	signal@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	execvp@PLT
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r13
	lea	rsi, .LC3[rip]
	mov	rcx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	_exit@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	call	fatal@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	fatal@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	_exit@PLT
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	connect_to_server, .-connect_to_server
	.comm	suspchild,4,4
	.comm	stderr,4,4
	.comm	sshpid,4,4
	.comm	sigchld_handler,4,4
	.comm	killchild,4,4
	.comm	errno,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	STDIN_FILENO,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SIG_IGN,4,4
	.comm	SIG_DFL,4,4
	.comm	SIGTTOU,4,4
	.comm	SIGTTIN,4,4
	.comm	SIGTSTP,4,4
	.comm	SIGTERM,4,4
	.comm	SIGINT,4,4
	.comm	SIGHUP,4,4
	.comm	SIGCHLD,4,4
	.comm	AF_UNIX,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_sftp.c_connect_to_server.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socketpair: %s\000"
	.align	2
.LC1:
	.ascii	"fork: %s\000"
	.align	2
.LC2:
	.ascii	"dup2: %s\012\000"
	.align	2
.LC3:
	.ascii	"exec: %s: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_to_server, %function
connect_to_server:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r4, r3
	ldr	r2, .L19
	ldr	r3, .L19+4
	sub	sp, sp, #20
	ldr	ip, .L19+8
	mov	r7, r0
	mov	r8, r1
	ldr	r0, [r3]
	ldr	r1, [r2]
	add	r3, sp, #4
	mov	r2, #0
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	socketpair
	cmn	r0, #1
	beq	.L16
.L2:
	ldmib	sp, {r3, r6}
	str	r3, [r4]
	str	r3, [r5]
	bl	fork
	ldr	r3, .L19+12
	cmn	r0, #1
	str	r0, [r3]
	beq	.L17
	cmp	r0, #0
	beq	.L13
	ldr	r5, .L19+16
	ldr	r9, .L19+20
.L4:
	ldr	r4, .L19+24
	ldr	r0, [r9]
	ldr	r1, [r4]
	bl	signal
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	signal
	ldr	r3, .L19+28
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	signal
	ldr	r4, .L19+32
	ldr	r3, .L19+36
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	signal
	ldr	r3, .L19+40
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	signal
	ldr	r3, .L19+44
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	signal
	ldr	r2, .L19+48
	ldr	r3, .L19+52
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	signal
	mov	r0, r6
	bl	close
	mov	r0, r6
	bl	close
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L19+56
	mov	r0, r6
	ldr	r1, [r3]
	bl	dup2
	cmn	r0, #1
	beq	.L7
	ldr	r3, .L19+60
	mov	r0, r6
	ldr	r1, [r3]
	bl	dup2
	cmn	r0, #1
	beq	.L7
	ldr	fp, .L19+64
	ldr	r10, .L19+68
.L6:
	ldr	r0, [r5]
	bl	close
	ldr	r0, [r4]
	bl	close
	mov	r0, r6
	bl	close
	mov	r0, r6
	bl	close
	ldr	r5, .L19+16
	ldr	r3, .L19+72
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	signal
	ldr	r9, .L19+20
	ldr	r3, .L19+76
	ldr	r0, [r9]
	ldr	r1, [r3]
	bl	signal
	mov	r1, r8
	mov	r0, r7
	bl	execvp
	ldr	r0, [fp]
	ldr	r4, [r10]
	bl	strerror
	mov	r2, r7
	mov	r3, r0
	ldr	r1, .L19+80
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	_exit
	b	.L4
.L17:
	ldr	r3, .L19+64
	ldr	r5, .L19+16
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L19+84
	bl	fatal
	ldr	r9, .L19+20
	b	.L4
.L16:
	ldr	fp, .L19+64
	ldr	r0, [fp]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L19+88
	bl	fatal
	b	.L2
.L7:
	ldr	fp, .L19+64
	ldr	r10, .L19+68
	ldr	r0, [fp]
	ldr	r9, [r10]
	bl	strerror
	ldr	r1, .L19+92
	mov	r2, r0
	mov	r0, r9
	bl	fprintf
	mov	r0, #1
	bl	_exit
	b	.L6
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	SOCK_STREAM
	.word	AF_UNIX
	.word	.LC4
	.word	sshpid
	.word	SIGINT
	.word	SIGTERM
	.word	killchild
	.word	SIGHUP
	.word	suspchild
	.word	SIGTSTP
	.word	SIGTTIN
	.word	SIGTTOU
	.word	sigchld_handler
	.word	SIGCHLD
	.word	STDIN_FILENO
	.word	STDOUT_FILENO
	.word	errno
	.word	stderr
	.word	SIG_IGN
	.word	SIG_DFL
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	connect_to_server, .-connect_to_server
	.comm	suspchild,4,4
	.comm	stderr,4,4
	.comm	sshpid,4,4
	.comm	sigchld_handler,4,4
	.comm	killchild,4,4
	.comm	errno,4,4
	.comm	STDOUT_FILENO,4,4
	.comm	STDIN_FILENO,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SIG_IGN,4,4
	.comm	SIG_DFL,4,4
	.comm	SIGTTOU,4,4
	.comm	SIGTTIN,4,4
	.comm	SIGTSTP,4,4
	.comm	SIGTERM,4,4
	.comm	SIGINT,4,4
	.comm	SIGHUP,4,4
	.comm	SIGCHLD,4,4
	.comm	AF_UNIX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
