	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_unix
_connect_unix:                          ## @connect_unix
	.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, %rbx
	movq	_AF_UNIX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -20(%rbp)
	movl	8(%rdi), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	%rax, %rdi
	callq	_rk_cloexec
	movq	(%rbx), %rdi
	leaq	-24(%rbp), %rsi
	movl	$8, %edx
	callq	_connect
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rdi
	callq	_close
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_connect_unix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_unix
_connect_unix:                          ; @connect_unix
	.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	x19, x0
Lloh0:
	adrp	x20, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AF_UNIX@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [sp, #12]
	ldr	w1, [x0, #8]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	x0, [x19]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	bl	_rk_cloexec
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #8
	bl	_connect
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	bl	_close
LBB0_3:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_connect_unix
.subsections_via_symbols
