	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_notify
_tcp_notify:                            ## @tcp_notify
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_V_tcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_LOCK_ASSERT
	movq	%rbx, %rdi
	callq	_INP_WLOCK_ASSERT
	movl	(%rbx), %eax
	movq	_INP_TIMEWAIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.1:
	movq	_INP_DROPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.2:
	movq	%rbx, %rdi
	callq	_intotcpcb
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%r15), %rax
	movq	_TCPS_ESTABLISHED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.3:
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	je	LBB0_6
## %bb.4:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	je	LBB0_6
LBB0_8:
	cmpq	%rcx, %rax
	jge	LBB0_12
## %bb.9:
	cmpl	$4, 8(%r15)
	jl	LBB0_12
## %bb.10:
	cmpl	$0, 12(%r15)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_tcp_drop
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	jmp	LBB0_13
LBB0_12:
	movl	%r14d, 12(%r15)
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.7:
	callq	_RTFREE
	movq	$0, 8(%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcbinfo,4,2                  ## @V_tcbinfo
	.comm	_INP_TIMEWAIT,4,2               ## @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ## @INP_DROPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_notify: tp == NULL"

	.comm	_TCPS_ESTABLISHED,8,3           ## @TCPS_ESTABLISHED
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_EHOSTDOWN,4,2                  ## @EHOSTDOWN
	.comm	_so,8,3                         ## @so
	.no_dead_strip	_tcp_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_notify
_tcp_notify:                            ; @tcp_notify
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _V_tcbinfo@GOTPAGE
Lloh1:
	ldr	x0, [x0, _V_tcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_LOCK_ASSERT
	mov	x0, x19
	bl	_INP_WLOCK_ASSERT
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _INP_TIMEWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INP_TIMEWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.1:
Lloh5:
	adrp	x9, _INP_DROPPED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INP_DROPPED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_intotcpcb
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _TCPS_ESTABLISHED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TCPS_ESTABLISHED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh13:
	adrp	x10, _EHOSTUNREACH@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EHOSTUNREACH@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _ENETUNREACH@GOTPAGE
Lloh17:
	ldr	x11, [x11, _ENETUNREACH@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
Lloh19:
	adrp	x12, _EHOSTDOWN@GOTPAGE
Lloh20:
	ldr	x12, [x12, _EHOSTDOWN@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	cmp	w10, w20
	ccmp	w11, w20, #4, ne
	ccmp	w12, w20, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.5:
	bl	_RTFREE
	str	xzr, [x19, #8]
	b	LBB0_11
LBB0_6:
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.7:
	ldr	w8, [x21, #8]
	cmp	w8, #4
	b.lt	LBB0_10
; %bb.8:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	bl	_tcp_drop
	cmp	x0, #0
	csel	x19, xzr, x19, eq
	b	LBB0_11
LBB0_10:
	str	w20, [x21, #12]
LBB0_11:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcbinfo,4,2                  ; @V_tcbinfo
	.comm	_INP_TIMEWAIT,4,2               ; @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ; @INP_DROPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_notify: tp == NULL"

	.comm	_TCPS_ESTABLISHED,8,3           ; @TCPS_ESTABLISHED
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.comm	_so,8,3                         ; @so
	.no_dead_strip	_tcp_notify
.subsections_via_symbols
