	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_do_close_wait
_bbr_do_close_wait:                     ## @bbr_do_close_wait
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %r12d
	movl	24(%rbp), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r14d
	movl	%r9d, -48(%rbp)
	movq	32(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	movq	%rcx, %rsi
	callq	_ctf_calc_rwin
	movq	_TH_RST@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
LBB0_1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctf_process_rst                ## TAILCALL
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_TH_FIN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_1
LBB0_4:
	movq	_TH_SYN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	-44(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ctf_challenge_ack
	jmp	LBB0_12
LBB0_6:
	movq	_TOF_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.7:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_TSTMP_LT
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	-44(%rbp), %r9
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_ctf_ts_check
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movl	20(%rbx), %edi
	callq	_INP_WLOCK_ASSERT
	leaq	-44(%rbp), %rax
	leaq	-48(%rbp), %r10
	leaq	16(%rbp), %r8
	leaq	32(%rbp), %r9
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r12
	movq	%r15, %rdx
	movq	%rbx, %rcx
	pushq	%rax
	pushq	%r10
	callq	_ctf_drop_checks
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	movl	-44(%rbp), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_TOF_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_18
## %bb.15:
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_SEQ_LEQ
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movl	16(%rbp), %esi
	addl	(%r12), %esi
	movq	_TH_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TH_SYN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	andl	32(%rbp), %eax
	movl	(%rbx), %edi
	cmpl	$1, %eax
	sbbl	$-1, %esi
	callq	_SEQ_LEQ
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rdi
	callq	_tcp_tv_to_mssectick
	movl	%eax, 16(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
LBB0_18:
	movl	32(%rbp), %r11d
	movq	_TH_ACK@GOTPCREL(%rip), %rcx
	testl	%r11d, (%rcx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_21
## %bb.19:
	movl	16(%rbp), %r10d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%r11
	pushq	$0
	pushq	%r10
	callq	_bbr_process_ack
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.23:
	movq	%r13, %rdi
	callq	_sbavail
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_bbr_progress_timeout_check
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:
	movq	_BANDLIM_RST_OPENPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%rbp), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ctf_do_dropwithreset_conn
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_21:
	movl	4(%rbx), %ecx
	movq	_TF_NEEDSYN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_26
## %bb.22:
	movl	-48(%rbp), %r8d
	movl	16(%rbp), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r11
	jmp	LBB0_29
LBB0_28:
	movl	-48(%rbp), %r8d
	movl	16(%rbp), %r9d
	movl	32(%rbp), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
LBB0_29:
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_bbr_process_data
	addq	$32, %rsp
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_26:
	movq	_TF_ACKNOW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_30
## %bb.27:
	movl	16(%rbp), %r8d
	leaq	-44(%rbp), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r11d, %ecx
	callq	_ctf_do_dropafterack
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_12
LBB0_30:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ctf_do_drop
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_RST,4,2                     ## @TH_RST
	.comm	_TH_FIN,4,2                     ## @TH_FIN
	.comm	_TH_SYN,4,2                     ## @TH_SYN
	.comm	_TOF_TS,4,2                     ## @TOF_TS
	.comm	_TH_ACK,4,2                     ## @TH_ACK
	.comm	_TF_NEEDSYN,4,2                 ## @TF_NEEDSYN
	.comm	_TF_ACKNOW,4,2                  ## @TF_ACKNOW
	.comm	_BANDLIM_RST_OPENPORT,4,2       ## @BANDLIM_RST_OPENPORT
	.no_dead_strip	_bbr_do_close_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbr_do_close_wait
_bbr_do_close_wait:                     ; @bbr_do_close_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x26, x6
	mov	x25, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w27, w28, [x29, #16]
	stp	w6, w5, [sp, #24]
	ldr	x24, [x3, #32]
	mov	x0, x2
	mov	x1, x3
	bl	_ctf_calc_rwin
Lloh0:
	adrp	x8, _TH_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH_RST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ctf_process_rst
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _TH_FIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TH_FIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w27
	b.ne	LBB0_1
LBB0_4:
Lloh6:
	adrp	x8, _TH_SYN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TH_SYN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_6
; %bb.5:
	add	x3, sp, #20
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ctf_challenge_ack
	b	LBB0_11
LBB0_6:
	ldr	w8, [x25]
Lloh9:
	adrp	x9, _TOF_TS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TOF_TS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_10
; %bb.8:
	ldr	x0, [x25, #8]
	bl	_TSTMP_LT
	cbz	x0, LBB0_10
; %bb.9:
	add	x5, sp, #20
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x26
	mov	x4, x27
	bl	_ctf_ts_check
	cbnz	x0, LBB0_11
LBB0_10:
	ldr	w0, [x19, #20]
	bl	_INP_WLOCK_ASSERT
	add	x4, sp, #24
	add	x5, x29, #16
	add	x6, sp, #28
	add	x7, sp, #20
	mov	x0, x25
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ctf_drop_checks
	cbz	x0, LBB0_13
LBB0_11:
	ldr	w0, [sp, #20]
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	ldr	w8, [x25]
Lloh12:
	adrp	x9, _TOF_TS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TOF_TS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	ldr	w0, [x20]
	ldr	w1, [x19]
	bl	_SEQ_LEQ
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w0, [x19]
	ldr	w8, [x20]
	ldr	w9, [sp, #24]
	add	w8, w9, w8
	ldr	w9, [x29, #16]
Lloh15:
	adrp	x10, _TH_SYN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TH_SYN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _TH_FIN@GOTPAGE
Lloh19:
	ldr	x11, [x11, _TH_FIN@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	cinc	w1, w8, ne
	bl	_SEQ_LEQ
	cbz	x0, LBB0_17
; %bb.16:
	add	x0, x24, #4
	bl	_tcp_tv_to_mssectick
	str	w0, [x19, #16]
	ldr	x8, [x25, #8]
	str	x8, [x19, #8]
LBB0_17:
	ldr	w7, [x29, #16]
Lloh21:
	adrp	x8, _TH_ACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TH_ACK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w7
	b.eq	LBB0_22
; %bb.18:
	ldr	w6, [sp, #24]
	add	x8, sp, #20
	str	x8, [sp, #8]
	str	w7, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	mov	x4, x25
	mov	x5, x22
	mov	x7, #0
	bl	_bbr_process_ack
	cbnz	x0, LBB0_11
; %bb.19:
	mov	x0, x23
	bl	_sbavail
	cbz	x0, LBB0_24
; %bb.20:
	mov	x0, x24
	bl	_bbr_progress_timeout_check
	cbz	x0, LBB0_24
; %bb.21:
Lloh24:
	adrp	x8, _BANDLIM_RST_OPENPORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BANDLIM_RST_OPENPORT@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	ldr	w4, [sp, #24]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_ctf_do_dropwithreset_conn
	mov	w0, #1
	b	LBB0_12
LBB0_22:
	ldr	w8, [x19, #4]
Lloh27:
	adrp	x9, _TF_NEEDSYN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TF_NEEDSYN@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.23:
	ldp	w5, w4, [sp, #24]
	b	LBB0_25
LBB0_24:
	ldp	w5, w4, [sp, #24]
	ldr	w7, [x29, #16]
LBB0_25:
	str	w28, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	mov	x6, x22
	bl	_bbr_process_data
	b	LBB0_12
LBB0_26:
Lloh30:
	adrp	x9, _TF_ACKNOW@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TF_ACKNOW@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
	ldr	w4, [sp, #24]
	add	x5, sp, #20
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x7
	bl	_ctf_do_dropafterack
	mov	w8, #1
	str	w8, [x24]
	b	LBB0_11
LBB0_28:
	mov	x0, x21
	mov	x1, #0
	bl	_ctf_do_drop
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_RST,4,2                     ; @TH_RST
	.comm	_TH_FIN,4,2                     ; @TH_FIN
	.comm	_TH_SYN,4,2                     ; @TH_SYN
	.comm	_TOF_TS,4,2                     ; @TOF_TS
	.comm	_TH_ACK,4,2                     ; @TH_ACK
	.comm	_TF_NEEDSYN,4,2                 ; @TF_NEEDSYN
	.comm	_TF_ACKNOW,4,2                  ; @TF_ACKNOW
	.comm	_BANDLIM_RST_OPENPORT,4,2       ; @BANDLIM_RST_OPENPORT
	.no_dead_strip	_bbr_do_close_wait
.subsections_via_symbols
