	.file	"extr_netcat.c_unix_connect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	unix_connect
	.type	unix_connect, @function
unix_connect:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR uflag[rip], 0
	je	.L2
	mov	edi, DWORD PTR unix_dg_tmp_socket[rip]
	call	unix_bind@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
.L3:
	mov	edx, DWORD PTR FD_CLOEXEC[rip]
	mov	esi, DWORD PTR F_SETFD[rip]
	mov	edi, r12d
	mov	r13, rsp
	call	fcntl@PLT
	xor	esi, esi
	mov	edx, 8
	mov	rdi, r13
	call	memset@PLT
	mov	edi, DWORD PTR [rsp]
	mov	edx, 4
	mov	rsi, rbp
	mov	eax, DWORD PTR AF_UNIX[rip]
	mov	DWORD PTR 4[rsp], eax
	call	strlcpy@PLT
	cmp	eax, 3
	ja	.L11
	mov	rdi, r13
	call	SUN_LEN@PLT
	mov	rsi, r13
	mov	edi, r12d
	mov	edx, eax
	call	connect@PLT
	test	rax, rax
	js	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_UNIX[rip]
	xor	edx, edx
	call	socket@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L3
.L9:
	mov	r12d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, r12d
	mov	r12d, -1
	call	close@PLT
	mov	eax, DWORD PTR ENAMETOOLONG[rip]
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
.L12:
	mov	edi, r12d
	call	close@PLT
	jmp	.L9
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	unix_connect, .-unix_connect
	.comm	unix_dg_tmp_socket,4,4
	.comm	uflag,8,8
	.comm	errno,4,4
	.comm	SOCK_STREAM,4,4
	.comm	F_SETFD,4,4
	.comm	FD_CLOEXEC,4,4
	.comm	ENAMETOOLONG,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_netcat.c_unix_connect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	unix_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	unix_connect, %function
unix_connect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	sub	sp, sp, #16
	ldr	r2, [r3]
	ldr	r3, .L15+4
	cmp	r2, #0
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L15+8
	ldr	r0, [r3]
	bl	unix_bind
	subs	r4, r0, #0
	blt	.L10
	ldr	r5, .L15+12
.L3:
	ldr	r3, .L15+16
	ldr	r2, .L15+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	fcntl
	mov	r0, #0
	ldr	r3, [r5]
	mov	r1, r6
	mov	r2, #4
	stmib	sp, {r0, r3}
	bl	strlcpy
	cmp	r0, #3
	bhi	.L12
	add	r0, sp, #4
	bl	SUN_LEN
	add	r1, sp, #4
	mov	r2, r0
	mov	r0, r4
	bl	connect
	cmp	r0, #0
	blt	.L13
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L15+24
	ldr	r5, .L15+12
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	socket
	subs	r4, r0, #0
	bge	.L3
.L10:
	mvn	r4, #0
	b	.L1
.L12:
	mov	r0, r4
	bl	close
	ldr	r2, .L15+28
	ldr	r3, .L15+32
	ldr	r2, [r2]
	mvn	r4, #0
	str	r2, [r3]
	b	.L1
.L13:
	mov	r0, r4
	bl	close
	b	.L10
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	uflag
	.word	.LC0
	.word	unix_dg_tmp_socket
	.word	AF_UNIX
	.word	F_SETFD
	.word	FD_CLOEXEC
	.word	SOCK_STREAM
	.word	ENAMETOOLONG
	.word	errno
	.size	unix_connect, .-unix_connect
	.comm	unix_dg_tmp_socket,4,4
	.comm	uflag,4,4
	.comm	errno,4,4
	.comm	SOCK_STREAM,4,4
	.comm	F_SETFD,4,4
	.comm	FD_CLOEXEC,4,4
	.comm	ENAMETOOLONG,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
