	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bictcp_update
_bictcp_update:                         ## @bictcp_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tcp_time_stamp@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	%esi, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	8(%rdi), %ecx
	movl	%r8d, %edx
	subl	%ecx, %edx
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	31(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$5, %eax
	cmpl	%edx, %eax
	jge	LBB0_19
LBB0_2:
	movl	%esi, (%rdi)
	movq	%r8, 8(%rdi)
	cmpq	$0, 16(%rdi)
	jne	LBB0_4
## %bb.3:
	movq	%r8, 16(%rdi)
LBB0_4:
	movq	_low_window@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jae	LBB0_5
## %bb.6:
	movl	28(%rdi), %r8d
	movl	%r8d, %eax
	subl	%esi, %eax
	jbe	LBB0_12
## %bb.7:
	movq	_BICTCP_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %r9d
	movq	_max_increment@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r9d
	jbe	LBB0_9
## %bb.8:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
	jmp	LBB0_18
LBB0_5:
	movl	%esi, 24(%rdi)
	popq	%rbp
	retq
LBB0_12:
	movq	_BICTCP_B@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%r8), %eax
	cmpl	%esi, %eax
	jbe	LBB0_14
## %bb.13:
	movq	_smooth_part@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	jmp	LBB0_17
LBB0_9:
	cmpl	$1, %r9d
	ja	LBB0_11
## %bb.10:
	movq	_smooth_part@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %esi
	jmp	LBB0_18
LBB0_14:
	movq	_max_increment@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	decl	%ecx
	movl	%r9d, %eax
	imull	%ecx, %eax
	addl	%r8d, %eax
	cmpl	%esi, %eax
	jbe	LBB0_16
## %bb.15:
	imull	%esi, %ecx
	subl	%r8d, %esi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	jmp	LBB0_17
LBB0_11:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r9d
	movl	%eax, %esi
	jmp	LBB0_18
LBB0_16:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r9d
LBB0_17:
	cmpl	$21, %eax
	movl	$20, %esi
	cmovbl	%eax, %esi
	testl	%r8d, %r8d
	cmovnel	%eax, %esi
LBB0_18:
	movq	_ACK_RATIO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movl	32(%rdi), %ecx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	%esi, %ecx
	movl	$1, %ecx
	cmovbel	%eax, %ecx
	movl	%ecx, 24(%rdi)
LBB0_19:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcp_time_stamp,8,3             ## @tcp_time_stamp
	.comm	_HZ,4,2                         ## @HZ
	.comm	_low_window,4,2                 ## @low_window
	.comm	_BICTCP_B,4,2                   ## @BICTCP_B
	.comm	_max_increment,4,2              ## @max_increment
	.comm	_smooth_part,4,2                ## @smooth_part
	.comm	_ACK_RATIO_SHIFT,4,2            ## @ACK_RATIO_SHIFT
	.no_dead_strip	_bictcp_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bictcp_update
_bictcp_update:                         ; @bictcp_update
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _tcp_time_stamp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcp_time_stamp@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x0, #8]
Lloh3:
	adrp	x10, _HZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
	sub	w9, w8, w9
Lloh5:
	ldr	w10, [x10]
	add	w11, w10, #31
	cmp	w10, #0
	csel	w10, w11, w10, lt
	cmp	w9, w10, asr #5
	b.le	LBB0_16
LBB0_2:
	str	w1, [x0]
	str	x8, [x0, #8]
	ldr	x9, [x0, #16]
	cbnz	x9, LBB0_4
; %bb.3:
	str	x8, [x0, #16]
LBB0_4:
Lloh6:
	adrp	x8, _low_window@GOTPAGE
Lloh7:
	ldr	x8, [x8, _low_window@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hs	LBB0_8
; %bb.5:
	ldr	w8, [x0, #28]
	subs	w9, w8, w1
	b.ls	LBB0_9
; %bb.6:
Lloh9:
	adrp	x8, _BICTCP_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BICTCP_B@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	udiv	w9, w9, w8
Lloh12:
	adrp	x10, _max_increment@GOTPAGE
Lloh13:
	ldr	x10, [x10, _max_increment@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ls	LBB0_11
; %bb.7:
	udiv	w8, w1, w10
	b	LBB0_15
LBB0_8:
	str	w1, [x0, #24]
	ret
LBB0_9:
Lloh15:
	adrp	x9, _BICTCP_B@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BICTCP_B@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w10, w9, w8
	cmp	w10, w1
	b.ls	LBB0_13
; %bb.10:
Lloh18:
	adrp	x10, _smooth_part@GOTPAGE
Lloh19:
	ldr	x10, [x10, _smooth_part@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	mul	w10, w10, w1
	udiv	w9, w10, w9
	b	LBB0_14
LBB0_11:
	cmp	w9, #1
	b.hi	LBB0_17
; %bb.12:
Lloh21:
	adrp	x9, _smooth_part@GOTPAGE
Lloh22:
	ldr	x9, [x9, _smooth_part@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	mul	w9, w9, w1
	udiv	w8, w9, w8
	b	LBB0_15
LBB0_13:
Lloh24:
	adrp	x10, _max_increment@GOTPAGE
Lloh25:
	ldr	x10, [x10, _max_increment@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	sub	w9, w9, #1
	madd	w11, w10, w9, w8
	udiv	w10, w1, w10
	mul	w9, w9, w1
	sub	w12, w1, w8
	udiv	w9, w9, w12
	cmp	w11, w1
	csel	w9, w10, w9, ls
LBB0_14:
	cmp	w9, #20
	ccmp	w8, #0, #0, hi
	mov	w8, #20
	csel	w8, w8, w9, eq
LBB0_15:
Lloh27:
	adrp	x9, _ACK_RATIO_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ACK_RATIO_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x0, #32]
	udiv	w10, w8, w9
	cmp	w9, w8
	csinc	w8, w10, wzr, ls
	str	w8, [x0, #24]
LBB0_16:
	ret
LBB0_17:
	udiv	w8, w1, w9
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_tcp_time_stamp,8,3             ; @tcp_time_stamp
	.comm	_HZ,4,2                         ; @HZ
	.comm	_low_window,4,2                 ; @low_window
	.comm	_BICTCP_B,4,2                   ; @BICTCP_B
	.comm	_max_increment,4,2              ; @max_increment
	.comm	_smooth_part,4,2                ; @smooth_part
	.comm	_ACK_RATIO_SHIFT,4,2            ; @ACK_RATIO_SHIFT
	.no_dead_strip	_bictcp_update
.subsections_via_symbols
