	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_usrclosed
_tcp_usrclosed:                         ## @tcp_usrclosed
	.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
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_NET_EPOCH_ASSERT
	movq	8(%rbx), %rdi
	callq	_INP_WLOCK_ASSERT
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_TF_NEEDFIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	movl	$133, %esi
	callq	_tcp_state_change
LBB0_3:
	movq	%rbx, %rdi
	callq	_tcp_close
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	jmp	LBB0_8
LBB0_5:
	movq	_TCPS_FIN_WAIT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_TCPS_LAST_ACK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tcp_state_change
LBB0_8:
	movl	(%rbx), %eax
	movq	_TCPS_FIN_WAIT_2@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jl	LBB0_14
## %bb.9:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_soisdisconnected
	movl	(%rbx), %eax
	cmpl	(%r14), %eax
	jne	LBB0_14
## %bb.10:
	movq	_tcp_fast_finwait2_recycle@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_tcp_finwait2_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_13
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	callq	_TP_MAXIDLE
	movl	%eax, %edx
LBB0_13:
	movq	_TT_2MSL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tcp_timer_activate             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_usrclosed: tcp_close() returned NULL"

	.comm	_TF_NEEDFIN,4,2                 ## @TF_NEEDFIN
	.comm	_TCPS_FIN_WAIT_1,4,2            ## @TCPS_FIN_WAIT_1
	.comm	_TCPS_LAST_ACK,4,2              ## @TCPS_LAST_ACK
	.comm	_TCPS_FIN_WAIT_2,4,2            ## @TCPS_FIN_WAIT_2
	.comm	_tcp_fast_finwait2_recycle,8,3  ## @tcp_fast_finwait2_recycle
	.comm	_tcp_finwait2_timeout,4,2       ## @tcp_finwait2_timeout
	.comm	_TT_2MSL,4,2                    ## @TT_2MSL
	.no_dead_strip	_tcp_usrclosed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_usrclosed
_tcp_usrclosed:                         ; @tcp_usrclosed
	.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, x0
	bl	_NET_EPOCH_ASSERT
	ldr	x0, [x19, #8]
	bl	_INP_WLOCK_ASSERT
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _TF_NEEDFIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TF_NEEDFIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	mov	w1, #133
	bl	_tcp_state_change
LBB0_4:
	mov	x0, x19
	bl	_tcp_close
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _TCPS_FIN_WAIT_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TCPS_FIN_WAIT_1@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _TCPS_LAST_ACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCPS_LAST_ACK@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tcp_state_change
LBB0_8:
	ldr	w8, [x19]
Lloh11:
	adrp	x20, _TCPS_FIN_WAIT_2@GOTPAGE
Lloh12:
	ldr	x20, [x20, _TCPS_FIN_WAIT_2@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.lt	LBB0_12
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_soisdisconnected
	ldr	w8, [x19]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.10:
Lloh13:
	adrp	x8, _tcp_fast_finwait2_recycle@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tcp_fast_finwait2_recycle@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _tcp_finwait2_timeout@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tcp_finwait2_timeout@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	b	LBB0_14
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	bl	_TP_MAXIDLE
	mov	x2, x0
LBB0_14:
Lloh19:
	adrp	x8, _TT_2MSL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TT_2MSL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tcp_timer_activate
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_usrclosed: tcp_close() returned NULL"

	.comm	_TF_NEEDFIN,4,2                 ; @TF_NEEDFIN
	.comm	_TCPS_FIN_WAIT_1,4,2            ; @TCPS_FIN_WAIT_1
	.comm	_TCPS_LAST_ACK,4,2              ; @TCPS_LAST_ACK
	.comm	_TCPS_FIN_WAIT_2,4,2            ; @TCPS_FIN_WAIT_2
	.comm	_tcp_fast_finwait2_recycle,8,3  ; @tcp_fast_finwait2_recycle
	.comm	_tcp_finwait2_timeout,4,2       ; @tcp_finwait2_timeout
	.comm	_TT_2MSL,4,2                    ; @TT_2MSL
	.no_dead_strip	_tcp_usrclosed
.subsections_via_symbols
