	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_connect                     ## -- Begin function sm_connect
	.p2align	4, 0x90
_sm_connect:                            ## @sm_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	leaq	1(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	subq	%rbx, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strndup
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_sm_connect_tcp
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_6:
	addq	$5, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sm_connect_unix                ## TAILCALL
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unix:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_connect                     ; -- Begin function sm_connect
	.p2align	2
_sm_connect:                            ; @sm_connect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #58
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x0, x0, #1
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, x0
	sub	x1, x20, x19
	mov	x0, x19
	bl	_strndup
	mov	x19, x0
	mov	x1, x21
	bl	_sm_connect_tcp
	mov	x20, x0
	mov	x0, x19
	bl	_free
	mov	x0, x20
	b	LBB0_6
LBB0_4:
	add	x0, x19, #5
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sm_connect_unix
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unix:"

.subsections_via_symbols
