	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_rack_xmit_timer_commit
_tcp_rack_xmit_timer_commit:            ## @tcp_rack_xmit_timer_commit
	.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	_RACK_RTT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	jne	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_USE_RTT_LOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	12(%rdi), %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_USE_RTT_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	16(%rdi), %r14d
	jmp	LBB0_7
LBB0_5:
	movq	_USE_RTT_AVG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	movl	20(%rdi), %eax
	cltd
	idivl	24(%rdi)
	movl	%eax, %r14d
LBB0_7:
	testl	%r14d, %r14d
	movl	$1, %r13d
	cmovel	%r13d, %r14d
	movl	%r14d, %esi
	callq	_rack_log_rtt_sample
	movl	(%rbx), %r12d
	movl	4(%rbx), %r15d
	movq	48(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.8:
	leal	-1(%r14), %esi
	movq	_TCP_DELTA_SHIFT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	shll	%cl, %esi
	movq	_TCP_RTT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ecx, %eax
	movl	%r12d, %edi
	movl	%eax, %ecx
	sarl	%cl, %edi
	subl	%edi, %esi
	leal	(%rsi,%r12), %edi
	cmpl	$2, %edi
	cmovll	%r13d, %edi
	movl	%edi, (%rbx)
	movl	%esi, %eax
	negl	%eax
	cmovsl	%esi, %eax
	movq	_TCP_RTTVAR_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	(%rdx), %ecx
	movl	%r15d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	addl	%r15d, %eax
	subl	%edx, %eax
	cmpl	$2, %eax
	cmovll	%r13d, %eax
	movl	%eax, 4(%rbx)
	addl	%edi, %eax
	cmpl	%eax, 8(%rbx)
	jle	LBB0_11
## %bb.9:
	movl	%eax, 8(%rbx)
	jmp	LBB0_11
LBB0_10:
	movq	_TCP_RTT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	_TCP_RTTVAR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	decb	%cl
	movl	%r14d, %edx
	shll	%cl, %edx
	movl	%edx, 4(%rbx)
	addl	%eax, %edx
	movl	%edx, 8(%rbx)
LBB0_11:
	movq	_tcps_rttupdated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_rack_log_rtt_upd
	incl	44(%rbx)
	movq	$0, 32(%rbx)
	movl	24(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_TCP_REXMTVAL
	movl	%eax, %r12d
	movq	_rack_rto_min@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MSEC_2_TICKS
	addl	$2, %r14d
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_max
	movl	%eax, %r14d
	movq	_rack_rto_max@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MSEC_2_TICKS
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_TCPT_RANGESET
	movq	$0, 16(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RACK_RTT_EMPTY,4,2             ## @RACK_RTT_EMPTY
	.comm	_USE_RTT_LOW,8,3                ## @USE_RTT_LOW
	.comm	_USE_RTT_HIGH,8,3               ## @USE_RTT_HIGH
	.comm	_USE_RTT_AVG,8,3                ## @USE_RTT_AVG
	.comm	_TCP_DELTA_SHIFT,4,2            ## @TCP_DELTA_SHIFT
	.comm	_TCP_RTT_SHIFT,4,2              ## @TCP_RTT_SHIFT
	.comm	_TCP_RTTVAR_SHIFT,4,2           ## @TCP_RTTVAR_SHIFT
	.comm	_tcps_rttupdated,4,2            ## @tcps_rttupdated
	.comm	_rack_rto_min,4,2               ## @rack_rto_min
	.comm	_rack_rto_max,4,2               ## @rack_rto_max
	.comm	_VOI_TCP_RTT,4,2                ## @VOI_TCP_RTT
	.no_dead_strip	_tcp_rack_xmit_timer_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_rack_xmit_timer_commit
_tcp_rack_xmit_timer_commit:            ; @tcp_rack_xmit_timer_commit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _RACK_RTT_EMPTY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RACK_RTT_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.1:
	mov	x19, x1
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _USE_RTT_LOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USE_RTT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x0, #12]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x9, _USE_RTT_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USE_RTT_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x0, #16]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x9, _USE_RTT_AVG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USE_RTT_AVG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	ldp	w8, w9, [x0, #20]
	sdiv	w8, w8, w9
LBB0_7:
	cmp	w8, #0
	csinc	w20, w8, wzr, ne
	mov	x1, x20
	bl	_rack_log_rtt_sample
	ldp	w21, w22, [x19]
	ldr	x23, [x19, #48]
	cbz	w21, LBB0_9
; %bb.8:
	sub	w8, w20, #1
Lloh12:
	adrp	x9, _TCP_DELTA_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCP_DELTA_SHIFT@GOTPAGEOFF]
	ldr	w10, [x9]
	lsl	w8, w8, w10
Lloh14:
	adrp	x11, _TCP_RTT_SHIFT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _TCP_RTT_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	sub	w10, w11, w10
	asr	w10, w21, w10
	sub	w8, w8, w10
	add	w10, w8, w21
	cmp	w10, #1
	csinc	w10, w10, wzr, gt
	str	w10, [x19]
	cmp	w8, #0
	cneg	w8, w8, mi
Lloh17:
	adrp	x11, _TCP_RTTVAR_SHIFT@GOTPAGE
Lloh18:
	ldr	x11, [x11, _TCP_RTTVAR_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	ldr	w9, [x9]
	sub	w9, w11, w9
	asr	w9, w22, w9
	add	w8, w8, w22
	sub	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x19, #4]
	ldr	w9, [x19, #8]
	add	w8, w8, w10
	cmp	w9, w8
	b.gt	LBB0_10
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x8, _TCP_RTT_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCP_RTT_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	str	w8, [x19]
Lloh23:
	adrp	x9, _TCP_RTTVAR_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TCP_RTTVAR_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	sub	w9, w9, #1
	lsl	w9, w20, w9
	add	w8, w9, w8
	str	w9, [x19, #4]
LBB0_10:
	str	w8, [x19, #8]
LBB0_11:
Lloh26:
	adrp	x8, _tcps_rttupdated@GOTPAGE
Lloh27:
	ldr	x8, [x8, _tcps_rttupdated@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_rack_log_rtt_upd
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
	str	xzr, [x19, #32]
	ldr	w21, [x19, #24]
	mov	x0, x19
	bl	_TCP_REXMTVAL
	mov	x22, x0
Lloh29:
	adrp	x8, _rack_rto_min@GOTPAGE
Lloh30:
	ldr	x8, [x8, _rack_rto_min@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_MSEC_2_TICKS
	add	w1, w20, #2
	bl	_max
	mov	x20, x0
Lloh32:
	adrp	x8, _rack_rto_max@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rack_rto_max@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_MSEC_2_TICKS
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_TCPT_RANGESET
	str	xzr, [x19, #16]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RACK_RTT_EMPTY,4,2             ; @RACK_RTT_EMPTY
	.comm	_USE_RTT_LOW,8,3                ; @USE_RTT_LOW
	.comm	_USE_RTT_HIGH,8,3               ; @USE_RTT_HIGH
	.comm	_USE_RTT_AVG,8,3                ; @USE_RTT_AVG
	.comm	_TCP_DELTA_SHIFT,4,2            ; @TCP_DELTA_SHIFT
	.comm	_TCP_RTT_SHIFT,4,2              ; @TCP_RTT_SHIFT
	.comm	_TCP_RTTVAR_SHIFT,4,2           ; @TCP_RTTVAR_SHIFT
	.comm	_tcps_rttupdated,4,2            ; @tcps_rttupdated
	.comm	_rack_rto_min,4,2               ; @rack_rto_min
	.comm	_rack_rto_max,4,2               ; @rack_rto_max
	.comm	_VOI_TCP_RTT,4,2                ; @VOI_TCP_RTT
	.no_dead_strip	_tcp_rack_xmit_timer_commit
.subsections_via_symbols
