	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix_stream_connect            ## -- Begin function unix_stream_connect
	.p2align	4, 0x90
_unix_stream_connect:                   ## @unix_stream_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rdx
	callq	_unix_sockaddr_init
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_unix_stream_socket
	movl	%eax, %ebx
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_connect
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rdi
	callq	_unix_sockaddr_cleanup
	jmp	LBB0_4
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	leaq	-32(%rbp), %rdi
	callq	_unix_sockaddr_cleanup
	movl	%ebx, %edi
	callq	_close
	movl	%r15d, (%r14)
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_stream_connect            ; -- Begin function unix_stream_connect
	.p2align	2
_unix_stream_connect:                   ; @unix_stream_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x1, x0
	add	x0, sp, #8
	mov	x2, sp
	bl	_unix_sockaddr_init
	tbnz	x0, #63, LBB0_4
; %bb.1:
	bl	_unix_stream_socket
	mov	x19, x0
	add	x1, sp, #8
	mov	w2, #4
	bl	_connect
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, sp
	bl	_unix_sockaddr_cleanup
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, sp
	bl	_unix_sockaddr_cleanup
	mov	x0, x19
	bl	_close
	str	w21, [x20]
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
