	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_hc_update                  ## -- Begin function tcp_hc_update
	.p2align	4, 0x90
_tcp_hc_update:                         ## @tcp_hc_update
	.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
	movq	_V_tcp_use_hostcache@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_28
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_tcp_hc_lookup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_tcp_hc_insert
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_28
LBB0_3:
	incl	60(%r15)
	movq	_V_tcp_hostcache@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
LBB0_6:
	movq	%rax, (%r15)
	movq	_tcps_cachedrtt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
LBB0_7:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
LBB0_10:
	movq	%rax, 8(%r15)
	movq	_tcps_cachedrttvar@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
LBB0_11:
	movl	16(%r14), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	16(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
LBB0_14:
	movl	%eax, 16(%r15)
	movq	_tcps_cachedssthresh@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
LBB0_15:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
LBB0_18:
	movq	%rax, 24(%r15)
LBB0_19:
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.21:
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
LBB0_22:
	movq	%rax, 32(%r15)
LBB0_23:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movq	40(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.25:
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
LBB0_26:
	movq	%rax, 40(%r15)
LBB0_27:
	movq	48(%r15), %rdi
	addq	$4, %rdi
	movq	_rmx_q@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_TAILQ_REMOVE
	movq	48(%r15), %rdi
	addq	$4, %rdi
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	48(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_THC_UNLOCK                     ## TAILCALL
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_use_hostcache,4,2        ## @V_tcp_use_hostcache
	.comm	_V_tcp_hostcache,4,2            ## @V_tcp_hostcache
	.comm	_tcps_cachedrtt,4,2             ## @tcps_cachedrtt
	.comm	_tcps_cachedrttvar,4,2          ## @tcps_cachedrttvar
	.comm	_tcps_cachedssthresh,4,2        ## @tcps_cachedssthresh
	.comm	_rmx_q,4,2                      ## @rmx_q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_hc_update                  ; -- Begin function tcp_hc_update
	.p2align	2
_tcp_hc_update:                         ; @tcp_hc_update
	.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
Lloh0:
	adrp	x8, _V_tcp_use_hostcache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_tcp_use_hostcache@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	bl	_tcp_hc_lookup
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_tcp_hc_insert
	mov	x19, x0
	cbz	x0, LBB0_16
LBB0_3:
	ldr	w8, [x19, #60]
	add	w8, w8, #1
Lloh3:
	adrp	x9, _V_tcp_hostcache@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V_tcp_hostcache@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x9, [x19]
	add	w10, w9, w8
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x9, #0
	csel	x8, x8, x10, eq
	str	x8, [x19]
Lloh6:
	adrp	x8, _tcps_cachedrtt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tcps_cachedrtt@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x9, [x19, #8]
	add	w10, w9, w8
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x9, #0
	csel	x8, x8, x10, eq
	str	x8, [x19, #8]
Lloh9:
	adrp	x8, _tcps_cachedrttvar@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tcps_cachedrttvar@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
LBB0_7:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w9, [x19, #16]
	add	w10, w9, w8
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	cmp	w9, #0
	csel	w8, w8, w10, eq
	str	w8, [x19, #16]
Lloh12:
	adrp	x8, _tcps_cachedssthresh@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tcps_cachedssthresh@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
LBB0_9:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x9, [x19, #24]
	add	w10, w9, w8
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x9, #0
	csel	x8, x8, x10, eq
	str	x8, [x19, #24]
LBB0_11:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x9, [x19, #32]
	add	w10, w9, w8
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x9, #0
	csel	x8, x8, x10, eq
	str	x8, [x19, #32]
LBB0_13:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x9, [x19, #40]
	add	w10, w9, w8
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x9, #0
	csel	x8, x8, x10, eq
	str	x8, [x19, #40]
LBB0_15:
	ldr	x8, [x19, #48]
	add	x0, x8, #4
Lloh15:
	adrp	x20, _rmx_q@GOTPAGE
Lloh16:
	ldr	x20, [x20, _rmx_q@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	x8, [x19, #48]
	add	x0, x8, #4
	ldr	w2, [x20]
	mov	x1, x19
	bl	_TAILQ_INSERT_HEAD
	ldr	x0, [x19, #48]
	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
	b	_THC_UNLOCK
LBB0_16:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_use_hostcache,4,2        ; @V_tcp_use_hostcache
	.comm	_V_tcp_hostcache,4,2            ; @V_tcp_hostcache
	.comm	_tcps_cachedrtt,4,2             ; @tcps_cachedrtt
	.comm	_tcps_cachedrttvar,4,2          ; @tcps_cachedrttvar
	.comm	_tcps_cachedssthresh,4,2        ; @tcps_cachedssthresh
	.comm	_rmx_q,4,2                      ; @rmx_q
.subsections_via_symbols
