	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lostpeer                       ## -- Begin function lostpeer
	.p2align	4, 0x90
_lostpeer:                              ## @lostpeer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	xorl	%edi, %edi
	callq	_alarmtimer
	movq	_connected@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.1:
	movq	_cout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_fileno
	movl	%eax, %edi
	movl	$2, %esi
	callq	_shutdown
	movq	(%rbx), %rdi
	callq	_fclose
	movq	$0, (%rbx)
LBB0_3:
	movq	_data@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_5
## %bb.4:
	movl	$2, %esi
	callq	_shutdown
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
LBB0_5:
	movq	$0, (%r12)
LBB0_6:
	movl	$1, %edi
	callq	_pswitch
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.7:
	movq	_cout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_fileno
	movl	%eax, %edi
	movl	$2, %esi
	callq	_shutdown
	movq	(%rbx), %rdi
	callq	_fclose
	movq	$0, (%rbx)
LBB0_9:
	movq	$0, (%r12)
LBB0_10:
	movq	_proxflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_pswitch
	xorl	%eax, %eax
	callq	_cleanuppeer
	movl	%r15d, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_connected,8,3                  ## @connected
	.comm	_cout,8,3                       ## @cout
	.comm	_data,4,2                       ## @data
	.comm	_proxflag,8,3                   ## @proxflag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lostpeer                       ; -- Begin function lostpeer
	.p2align	2
_lostpeer:                              ; @lostpeer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _errno@GOTPAGE
Lloh1:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
	mov	w0, #0
	bl	_alarmtimer
Lloh2:
	adrp	x21, _connected@GOTPAGE
Lloh3:
	ldr	x21, [x21, _connected@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x22, _cout@GOTPAGE
Lloh5:
	ldr	x22, [x22, _cout@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_fileno
	mov	w1, #2
	bl	_shutdown
	ldr	x0, [x22]
	bl	_fclose
	str	xzr, [x22]
LBB0_3:
Lloh6:
	adrp	x23, _data@GOTPAGE
Lloh7:
	ldr	x23, [x23, _data@GOTPAGEOFF]
	ldr	w0, [x23]
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	w1, #2
	bl	_shutdown
	ldr	w0, [x23]
	bl	_close
	mov	w8, #-1
	str	w8, [x23]
LBB0_5:
	str	xzr, [x21]
LBB0_6:
	mov	w0, #1
	bl	_pswitch
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x0, [x22]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_fileno
	mov	w1, #2
	bl	_shutdown
	ldr	x0, [x22]
	bl	_fclose
	str	xzr, [x22]
LBB0_9:
	str	xzr, [x21]
LBB0_10:
Lloh8:
	adrp	x8, _proxflag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _proxflag@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	mov	w0, #0
	bl	_pswitch
	bl	_cleanuppeer
	str	w20, [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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_connected,8,3                  ; @connected
	.comm	_cout,8,3                       ; @cout
	.comm	_data,4,2                       ; @data
	.comm	_proxflag,8,3                   ; @proxflag
.subsections_via_symbols
