	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_xmit_timer                 ## -- Begin function tcp_xmit_timer
	.p2align	4, 0x90
_tcp_xmit_timer:                        ## @tcp_xmit_timer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	52(%rdi), %edi
	callq	_INP_WLOCK_ASSERT
	movq	_tcps_rttupdated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
	incl	48(%rbx)
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_TCP_RTT_INVALIDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
LBB0_4:
	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, 16(%rbx)
	addl	%eax, %edx
	movl	%edx, 20(%rbx)
LBB0_5:
	movq	$0, 40(%rbx)
	movq	$0, 8(%rbx)
	movl	36(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_TCP_REXMTVAL
	movl	%eax, %r12d
	movl	32(%rbx), %edi
	addl	$2, %r14d
	movl	%r14d, %esi
	callq	_max
	movq	_TCPTV_REXMTMAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_TCPT_RANGESET
	movq	$0, 24(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leal	-1(%r14), %edi
	movq	_TCP_DELTA_SHIFT@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	shll	%cl, %edi
	movq	_TCP_RTT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %ecx
	sarl	%cl, %esi
	subl	%esi, %edi
	addl	%edi, %edx
	cmpl	$2, %edx
	movl	$1, %esi
	cmovll	%esi, %edx
	movl	%edx, (%rbx)
	movl	%edi, %eax
	negl	%eax
	cmovsl	%edi, %eax
	movq	_TCP_RTTVAR_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	(%r8), %ecx
	movl	16(%rbx), %edi
	addl	%edi, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	subl	%edi, %eax
	cmpl	$2, %eax
	cmovll	%esi, %eax
	movl	20(%rbx), %ecx
	movl	%eax, 16(%rbx)
	addl	%edx, %eax
	cmpl	%eax, %ecx
	jle	LBB0_5
## %bb.3:
	movl	%eax, 20(%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_tcps_rttupdated,4,2            ## @tcps_rttupdated
	.comm	_TCP_RTT_INVALIDATE,8,3         ## @TCP_RTT_INVALIDATE
	.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	_TCPTV_REXMTMAX,4,2             ## @TCPTV_REXMTMAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_xmit_timer                 ; -- Begin function tcp_xmit_timer
	.p2align	2
_tcp_xmit_timer:                        ; @tcp_xmit_timer
	.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
	ldr	w0, [x0, #52]
	bl	_INP_WLOCK_ASSERT
Lloh0:
	adrp	x8, _tcps_rttupdated@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcps_rttupdated@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _TCP_RTT_INVALIDATE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TCP_RTT_INVALIDATE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _TCP_RTT_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCP_RTT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	str	w8, [x19]
Lloh9:
	adrp	x9, _TCP_RTTVAR_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCP_RTTVAR_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w9, w9, #1
	lsl	w9, w20, w9
	add	w8, w9, w8
	str	w9, [x19, #16]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x9, _TCP_DELTA_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCP_DELTA_SHIFT@GOTPAGEOFF]
	sub	w10, w20, #1
	ldr	w11, [x9]
	lsl	w10, w10, w11
Lloh14:
	adrp	x12, _TCP_RTT_SHIFT@GOTPAGE
Lloh15:
	ldr	x12, [x12, _TCP_RTT_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	sub	w11, w12, w11
	asr	w11, w8, w11
	sub	w10, w10, w11
	add	w8, w10, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x19]
	cmp	w10, #0
	cneg	w10, w10, 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
	ldp	w11, w12, [x19, #16]
	asr	w9, w11, w9
	add	w10, w10, w11
	sub	w9, w10, w9
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	str	w9, [x19, #16]
	add	w8, w9, w8
	cmp	w12, w8
	b.le	LBB0_5
LBB0_4:
	str	w8, [x19, #20]
LBB0_5:
	str	xzr, [x19, #40]
	str	xzr, [x19, #8]
	ldr	w21, [x19, #36]
	mov	x0, x19
	bl	_TCP_REXMTVAL
	mov	x22, x0
	ldr	w0, [x19, #32]
	add	w1, w20, #2
	bl	_max
	mov	x2, x0
Lloh20:
	adrp	x8, _TCPTV_REXMTMAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCPTV_REXMTMAX@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_TCPT_RANGESET
	str	xzr, [x19, #24]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_tcps_rttupdated,4,2            ; @tcps_rttupdated
	.comm	_TCP_RTT_INVALIDATE,8,3         ; @TCP_RTT_INVALIDATE
	.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	_TCPTV_REXMTMAX,4,2             ; @TCPTV_REXMTMAX
.subsections_via_symbols
