	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_connection_reset
_socket_connection_reset:               ## @socket_connection_reset
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_link_socket_connection_oriented
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movl	$1, %eax
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.3:
	movl	$0, %eax
	testl	%r14d, %r14d
	jns	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_openvpn_errno
	movl	%eax, %ecx
	movq	_ECONNRESET@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	sete	%al
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_WSAECONNABORTED,4,2            ## @WSAECONNABORTED
	.comm	_WSAECONNRESET,4,2              ## @WSAECONNRESET
	.no_dead_strip	_socket_connection_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_connection_reset
_socket_connection_reset:               ; @socket_connection_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_link_socket_connection_oriented
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	tbnz	w19, #31, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_4
LBB0_7:
	bl	_openvpn_errno
Lloh0:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_WSAECONNABORTED,4,2            ; @WSAECONNABORTED
	.comm	_WSAECONNRESET,4,2              ; @WSAECONNRESET
	.no_dead_strip	_socket_connection_reset
.subsections_via_symbols
