	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_incoming_link             ## -- Begin function read_incoming_link
	.p2align	4, 0x90
_read_incoming_link:                    ## @read_incoming_link
	.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
	movq	_PERF_READ_IN_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_perf_push
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	leaq	12(%rbx), %r14
	movl	%eax, 12(%rbx)
	leaq	16(%rbx), %rdi
	movq	_FRAME_HEADROOM_MARKER_READ_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FRAME_HEADROOM_ADJ
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_buf_init
	movl	%eax, %edi
	callq	_ASSERT
	movl	(%rbx), %edi
	leaq	8(%rbx), %rdx
	movq	%r14, %rsi
	callq	_link_socket_read
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_socket_connection_reset
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 32(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	cmoveq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_register_signal
	movq	_D_STREAM_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_msg
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	callq	_check_status
	movq	%rbx, %rdi
	callq	_socks_postprocess_incoming_link
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perf_pop                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_READ_IN_LINK,4,2          ## @PERF_READ_IN_LINK
	.comm	_FRAME_HEADROOM_MARKER_READ_LINK,4,2 ## @FRAME_HEADROOM_MARKER_READ_LINK
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connection-reset-inetd"

	.comm	_D_STREAM_ERRORS,4,2            ## @D_STREAM_ERRORS
L_.str.1:                               ## @.str.1
	.asciz	"Connection reset, inetd/xinetd exit [%d]"

	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
L_.str.2:                               ## @.str.2
	.asciz	"connection-reset"

L_.str.3:                               ## @.str.3
	.asciz	"Connection reset, restarting [%d]"

L_.str.4:                               ## @.str.4
	.asciz	"read"

	.comm	_port_share,8,3                 ## @port_share
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_incoming_link             ; -- Begin function read_incoming_link
	.p2align	2
_read_incoming_link:                    ; @read_incoming_link
	.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	x8, _PERF_READ_IN_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_READ_IN_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_perf_push
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	mov	x20, x19
	str	w8, [x20, #12]!
	add	x0, x19, #16
Lloh3:
	adrp	x8, _FRAME_HEADROOM_MARKER_READ_LINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAME_HEADROOM_MARKER_READ_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FRAME_HEADROOM_ADJ
	mov	x1, x0
	mov	x0, x20
	bl	_buf_init
	bl	_ASSERT
	ldr	w0, [x19]
	add	x2, x19, #8
	mov	x1, x20
	bl	_link_socket_read
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_socket_connection_reset
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh12:
	adrp	x9, l_.str.3@PAGE
Lloh13:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x21, x9, x8, eq
Lloh14:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh16:
	adrp	x9, _SIGTERM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SIGTERM@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_signal
Lloh18:
	adrp	x8, _D_STREAM_ERRORS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D_STREAM_ERRORS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_msg
	b	LBB0_3
LBB0_2:
	ldr	w2, [x19]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x3, #0
	bl	_check_status
	mov	x0, x19
	bl	_socks_postprocess_incoming_link
LBB0_3:
	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	_perf_pop
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_READ_IN_LINK,4,2          ; @PERF_READ_IN_LINK
	.comm	_FRAME_HEADROOM_MARKER_READ_LINK,4,2 ; @FRAME_HEADROOM_MARKER_READ_LINK
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connection-reset-inetd"

	.comm	_D_STREAM_ERRORS,4,2            ; @D_STREAM_ERRORS
l_.str.1:                               ; @.str.1
	.asciz	"Connection reset, inetd/xinetd exit [%d]"

	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
l_.str.2:                               ; @.str.2
	.asciz	"connection-reset"

l_.str.3:                               ; @.str.3
	.asciz	"Connection reset, restarting [%d]"

l_.str.4:                               ; @.str.4
	.asciz	"read"

	.comm	_port_share,8,3                 ; @port_share
.subsections_via_symbols
