	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_usr_disconnect
_tcp_usr_disconnect:                    ## @tcp_usr_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_NET_EPOCH_ENTER
	movq	%rbx, %rdi
	callq	_sotoinpcb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_INP_WLOCK
	movl	(%rbx), %eax
	movq	_INP_TIMEWAIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_INP_DROPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_intotcpcb
	movq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TCPDEBUG1
	movq	%r15, %rdi
	callq	_tcp_disconnect
LBB0_5:
	movq	_PRU_DISCONNECT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_TCPDEBUG2
	movq	_debug__user@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movq	%r15, %rsi
	callq	_TCP_PROBE2
	movq	%rbx, %rdi
	callq	_INP_WUNLOCK
	callq	_NET_EPOCH_EXIT
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCPDEBUG0,4,2                  ## @TCPDEBUG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_usr_disconnect: inp == NULL"

	.comm	_INP_TIMEWAIT,4,2               ## @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ## @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_PRU_DISCONNECT,4,2             ## @PRU_DISCONNECT
	.comm	_debug__user,4,2                ## @debug__user
	.no_dead_strip	_tcp_usr_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_usr_disconnect
_tcp_usr_disconnect:                    ; @tcp_usr_disconnect
	.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
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x19
	bl	_sotoinpcb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _INP_TIMEWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INP_TIMEWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:
	mov	w21, #0
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x9, _INP_DROPPED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INP_DROPPED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x20, #0
Lloh8:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
LBB0_5:
Lloh11:
	adrp	x22, _PRU_DISCONNECT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _PRU_DISCONNECT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TCPDEBUG2
Lloh13:
	adrp	x8, _debug__user@GOTPAGE
Lloh14:
	ldr	x8, [x8, _debug__user@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_TCP_PROBE2
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	x0, #0
	bl	_NET_EPOCH_EXIT
	mov	x0, x21
	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
	ret
LBB0_6:
	mov	x0, x19
	bl	_intotcpcb
	mov	x20, x0
	bl	_TCPDEBUG1
	mov	x0, x20
	bl	_tcp_disconnect
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TCPDEBUG0,4,2                  ; @TCPDEBUG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_usr_disconnect: inp == NULL"

	.comm	_INP_TIMEWAIT,4,2               ; @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ; @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_PRU_DISCONNECT,4,2             ; @PRU_DISCONNECT
	.comm	_debug__user,4,2                ; @debug__user
	.no_dead_strip	_tcp_usr_disconnect
.subsections_via_symbols
