	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_is_connected               ## -- Begin function tcp_is_connected
	.p2align	4, 0x90
_tcp_is_connected:                      ## @tcp_is_connected
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$4, -4(%rbp)
	movq	_g_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-8(%rbp), %rsi
	leaq	-4(%rbp), %rdx
	callq	_getpeername
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_False@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_True@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_sock,4,2                     ## @g_sock
	.comm	_True,4,2                       ## @True
	.comm	_False,4,2                      ## @False
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_is_connected               ; -- Begin function tcp_is_connected
	.p2align	2
_tcp_is_connected:                      ; @tcp_is_connected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #4
	str	w8, [sp, #4]
Lloh0:
	adrp	x8, _g_sock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_sock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getpeername
Lloh3:
	adrp	x8, _False@GOTPAGE
Lloh4:
	ldr	x8, [x8, _False@GOTPAGEOFF]
Lloh5:
	adrp	x9, _True@GOTPAGE
Lloh6:
	ldr	x9, [x9, _True@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g_sock,4,2                     ; @g_sock
	.comm	_True,4,2                       ; @True
	.comm	_False,4,2                      ; @False
.subsections_via_symbols
