	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_done                       ## -- Begin function tcp_done
	.p2align	4, 0x90
_tcp_done:                              ## @tcp_done
	.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), %rax
	movq	_TCP_SYN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_TCP_SYN_RECV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	%rdi, %rbx
	callq	_sock_net
	movq	_TCP_MIB_ATTEMPTFAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TCP_INC_STATS_BH
	movq	%rbx, %rdi
LBB0_3:
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rbx
	callq	_tcp_set_state
	movq	%rbx, %rdi
	callq	_tcp_clear_xmit_timers
	movq	_SHUTDOWN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_sock_flag
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_inet_csk_destroy_sock          ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*8(%rdi)                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_SYN_SENT,8,3               ## @TCP_SYN_SENT
	.comm	_TCP_SYN_RECV,8,3               ## @TCP_SYN_RECV
	.comm	_TCP_MIB_ATTEMPTFAILS,4,2       ## @TCP_MIB_ATTEMPTFAILS
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_SHUTDOWN_MASK,4,2              ## @SHUTDOWN_MASK
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_done                       ; -- Begin function tcp_done
	.p2align	2
_tcp_done:                              ; @tcp_done
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TCP_SYN_SENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_SYN_SENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TCP_SYN_RECV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TCP_SYN_RECV@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sock_net
Lloh6:
	adrp	x8, _TCP_MIB_ATTEMPTFAILS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCP_MIB_ATTEMPTFAILS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_TCP_INC_STATS_BH
LBB0_2:
Lloh9:
	adrp	x8, _TCP_CLOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tcp_set_state
	mov	x0, x19
	bl	_tcp_clear_xmit_timers
Lloh12:
	adrp	x8, _SHUTDOWN_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SHUTDOWN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh15:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_inet_csk_destroy_sock
LBB0_4:
	ldr	x1, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_SYN_SENT,8,3               ; @TCP_SYN_SENT
	.comm	_TCP_SYN_RECV,8,3               ; @TCP_SYN_RECV
	.comm	_TCP_MIB_ATTEMPTFAILS,4,2       ; @TCP_MIB_ATTEMPTFAILS
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_SHUTDOWN_MASK,4,2              ; @SHUTDOWN_MASK
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
.subsections_via_symbols
