	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_usr_shutdown
_tcp_usr_shutdown:                      ## @tcp_usr_shutdown
	.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, %r12
	callq	_NET_EPOCH_ENTER
	movq	%r12, %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
	movq	_INP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_INP_DROPPED@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_intotcpcb
	movq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TCPDEBUG1
	movq	%r12, %rdi
	callq	_socantsendmore
	movq	%r15, %rdi
	callq	_tcp_usrclosed
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
LBB0_4:
	movq	_PRU_SHUTDOWN@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
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"inp == NULL"

	.comm	_INP_TIMEWAIT,4,2               ## @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ## @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_PRU_SHUTDOWN,4,2               ## @PRU_SHUTDOWN
	.comm	_debug__user,4,2                ## @debug__user
	.no_dead_strip	_tcp_usr_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_usr_shutdown
_tcp_usr_shutdown:                      ; @tcp_usr_shutdown
	.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	x21, x0
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x21
	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]
Lloh5:
	adrp	x22, _INP_DROPPED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _INP_DROPPED@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, #0
Lloh7:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_intotcpcb
	mov	x20, x0
	bl	_TCPDEBUG1
	mov	x0, x21
	bl	_socantsendmore
	mov	x0, x20
	bl	_tcp_usrclosed
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
LBB0_5:
Lloh10:
	adrp	x22, _PRU_SHUTDOWN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _PRU_SHUTDOWN@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TCPDEBUG2
Lloh12:
	adrp	x8, _debug__user@GOTPAGE
Lloh13:
	ldr	x8, [x8, _debug__user@GOTPAGEOFF]
Lloh14:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TCPDEBUG0,4,2                  ; @TCPDEBUG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inp == NULL"

	.comm	_INP_TIMEWAIT,4,2               ; @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ; @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_PRU_SHUTDOWN,4,2               ; @PRU_SHUTDOWN
	.comm	_debug__user,4,2                ; @debug__user
	.no_dead_strip	_tcp_usr_shutdown
.subsections_via_symbols
