	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix_connect                   ## -- Begin function unix_connect
	.p2align	4, 0x90
_unix_connect:                          ## @unix_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_uflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_unix_dg_tmp_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unix_bind
	jmp	LBB0_3
LBB0_2:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_fcntl
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	cmpl	$4, %eax
	jb	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_close
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_6:
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	callq	_SUN_LEN
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movl	%ebx, %edi
	callq	_close
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uflag,8,3                      ## @uflag
	.comm	_unix_dg_tmp_socket,4,2         ## @unix_dg_tmp_socket
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix_connect                   ; -- Begin function unix_connect
	.p2align	2
_unix_connect:                          ; @unix_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _uflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uflag@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _unix_dg_tmp_socket@GOTPAGE
Lloh4:
	ldr	x8, [x8, _unix_dg_tmp_socket@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_unix_bind
	mov	x19, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_7
LBB0_2:
Lloh6:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
LBB0_3:
Lloh12:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fcntl
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh18:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [sp, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	cmp	w0, #4
	b.lo	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_close
Lloh21:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _errno@GOTPAGE
Lloh25:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
	b	LBB0_7
LBB0_5:
	add	x0, sp, #8
	bl	_SUN_LEN
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_connect
	tbz	x0, #63, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_close
LBB0_7:
	mov	w19, #-1
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_uflag,8,3                      ; @uflag
	.comm	_unix_dg_tmp_socket,4,2         ; @unix_dg_tmp_socket
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
