	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_disconnect                 ## -- Begin function tcp_disconnect
	.p2align	4, 0x90
_tcp_disconnect:                        ## @tcp_disconnect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_inet_sk
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_inet_csk
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_tcp_sk
	movq	%rax, %r12
	movl	(%rbx), %r13d
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %r13d
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_tcp_set_state
LBB0_2:
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_inet_csk_listen_stop
	jmp	LBB0_10
LBB0_4:
	movl	%r13d, %edi
	callq	_tcp_need_reset
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	callq	_gfp_any
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tcp_send_active_reset
LBB0_9:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	callq	_tcp_clear_xmit_timers
	leaq	28(%rbx), %rdi
	callq	___skb_queue_purge
	movq	%rbx, %rdi
	callq	_tcp_write_queue_purge
	leaq	64(%r12), %rdi
	callq	___skb_queue_purge
	movq	$0, 8(%r15)
	movq	_SOCK_BINDADDR_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_inet_reset_saddr
LBB0_12:
	movq	$0, 16(%rbx)
	movq	_SOCK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_reset_flag
	movl	4(%r12), %eax
	movl	8(%r12), %ecx
	addl	%ecx, %eax
	addl	$2, %eax
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 4(%r12)
	movl	$2, 16(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movups	%xmm0, 48(%r12)
	movq	_TCP_INFINITE_SSTHRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movups	%xmm0, 24(%r12)
	movq	_TCP_CA_Open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tcp_set_ca_state
	movq	%r12, %rdi
	callq	_tcp_clear_retrans
	movq	%rbx, %rdi
	callq	_inet_csk_delack_init
	movq	%rbx, %rdi
	callq	_tcp_init_send_head
	addq	$20, %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	___sk_dst_reset
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.13:
	xorl	%r13d, %r13d
	cmpl	$0, (%r14)
	sete	%r13b
LBB0_14:
	movl	%r13d, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	*8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %eax
	cmpl	4(%r12), %eax
	je	LBB0_8
## %bb.6:
	movq	_TCPF_CLOSING@GOTPCREL(%rip), %rax
	movq	_TCPF_LAST_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	btl	%r13d, %ecx
	jb	LBB0_7
LBB0_8:
	movq	_TCP_SYN_SENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_TCP_LISTEN,4,2                 ## @TCP_LISTEN
	.comm	_TCPF_CLOSING,4,2               ## @TCPF_CLOSING
	.comm	_TCPF_LAST_ACK,4,2              ## @TCPF_LAST_ACK
	.comm	_ECONNRESET,8,3                 ## @ECONNRESET
	.comm	_TCP_SYN_SENT,4,2               ## @TCP_SYN_SENT
	.comm	_SOCK_BINDADDR_LOCK,4,2         ## @SOCK_BINDADDR_LOCK
	.comm	_SOCK_DONE,4,2                  ## @SOCK_DONE
	.comm	_TCP_INFINITE_SSTHRESH,4,2      ## @TCP_INFINITE_SSTHRESH
	.comm	_TCP_CA_Open,4,2                ## @TCP_CA_Open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_disconnect                 ; -- Begin function tcp_disconnect
	.p2align	2
_tcp_disconnect:                        ; @tcp_disconnect
	.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
	mov	x19, x0
	bl	_inet_sk
	mov	x20, x0
	mov	x0, x19
	bl	_inet_csk
	mov	x21, x0
	mov	x0, x19
	bl	_tcp_sk
	mov	x22, x0
	ldr	w23, [x19]
Lloh0:
	adrp	x8, _TCP_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w23, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tcp_set_state
LBB0_2:
Lloh3:
	adrp	x8, _TCP_LISTEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_LISTEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_inet_csk_listen_stop
	b	LBB0_7
LBB0_4:
	mov	x0, x23
	bl	_tcp_need_reset
	cbz	x0, LBB0_13
LBB0_5:
	bl	_gfp_any
	mov	x1, x0
	mov	x0, x19
	bl	_tcp_send_active_reset
LBB0_6:
Lloh6:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_7:
	mov	x0, x19
	bl	_tcp_clear_xmit_timers
	add	x0, x19, #28
	bl	___skb_queue_purge
	mov	x0, x19
	bl	_tcp_write_queue_purge
	add	x0, x22, #64
	bl	___skb_queue_purge
	str	xzr, [x20, #8]
	ldr	w8, [x19, #4]
Lloh9:
	adrp	x9, _SOCK_BINDADDR_LOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCK_BINDADDR_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_inet_reset_saddr
LBB0_9:
	str	xzr, [x19, #16]
Lloh12:
	adrp	x8, _SOCK_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCK_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_reset_flag
	ldp	w9, w8, [x22, #4]
	add	w8, w8, w9
	adds	w8, w8, #2
	csinc	w8, w8, wzr, ne
	str	w8, [x22, #4]
	mov	w8, #2
	str	w8, [x22, #16]
	movi.2d	v0, #0000000000000000
	stur	q0, [x21, #8]
	str	q0, [x22, #48]
Lloh15:
	adrp	x8, _TCP_INFINITE_SSTHRESH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TCP_INFINITE_SSTHRESH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #40]
	stur	q0, [x22, #24]
Lloh18:
	adrp	x8, _TCP_CA_Open@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TCP_CA_Open@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tcp_set_ca_state
	mov	x0, x22
	bl	_tcp_clear_retrans
	mov	x0, x19
	bl	_inet_csk_delack_init
	mov	x0, x19
	bl	_tcp_init_send_head
	add	x0, x22, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	___sk_dst_reset
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	bl	_WARN_ON
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	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
LBB0_13:
	ldp	w8, w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.14:
Lloh21:
	adrp	x8, _TCPF_CLOSING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TCPF_CLOSING@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _TCPF_LAST_ACK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TCPF_LAST_ACK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsr	w8, w8, w23
	tbnz	w8, #0, LBB0_5
LBB0_15:
Lloh27:
	adrp	x8, _TCP_SYN_SENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TCP_SYN_SENT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_TCP_LISTEN,4,2                 ; @TCP_LISTEN
	.comm	_TCPF_CLOSING,4,2               ; @TCPF_CLOSING
	.comm	_TCPF_LAST_ACK,4,2              ; @TCPF_LAST_ACK
	.comm	_ECONNRESET,8,3                 ; @ECONNRESET
	.comm	_TCP_SYN_SENT,4,2               ; @TCP_SYN_SENT
	.comm	_SOCK_BINDADDR_LOCK,4,2         ; @SOCK_BINDADDR_LOCK
	.comm	_SOCK_DONE,4,2                  ; @SOCK_DONE
	.comm	_TCP_INFINITE_SSTHRESH,4,2      ; @TCP_INFINITE_SSTHRESH
	.comm	_TCP_CA_Open,4,2                ; @TCP_CA_Open
.subsections_via_symbols
