	.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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	incl	(%rdi)
	movq	_tcp_time_stamp@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpq	%rsi, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movl	%eax, %ecx
	subl	16(%r12), %ecx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	31(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$5, %esi
	cmpl	%esi, %ecx
	jle	LBB0_27
LBB0_2:
	movq	%r14, 8(%r12)
	movl	%eax, 16(%r12)
	cmpq	$0, 24(%r12)
	jne	LBB0_7
## %bb.3:
	cltq
	movq	%rax, 24(%r12)
	movl	$1, (%r12)
	movq	%r14, 32(%r12)
	movq	40(%r12), %rdi
	subq	%r14, %rdi
	jle	LBB0_4
## %bb.5:
	movq	_cube_factor@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdi
	callq	_cubic_root
	movq	%rax, 48(%r12)
	movq	40(%r12), %rax
	jmp	LBB0_6
LBB0_4:
	movq	$0, 48(%r12)
	movq	%r14, %rax
LBB0_6:
	movq	%rax, 56(%r12)
LBB0_7:
	movslq	(%r15), %r15
	movl	64(%r12), %edi
	sarl	$3, %edi
	callq	_msecs_to_jiffies
	cltq
	addq	%r15, %rax
	subq	24(%r12), %rax
	movq	_BICTCP_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shlq	%cl, %rax
	movq	_HZ@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.9:
	cqto
	idivq	%rsi
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movq	48(%r12), %rdx
	movl	%edx, %esi
	subl	%eax, %esi
	movl	%eax, %edi
	subl	%edx, %edi
	cmpq	%rdx, %rax
	cmovll	%esi, %edi
	movq	_cube_rtt_scale@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	imull	%edi, %esi
	imull	%edi, %edi
	imull	%esi, %edi
	leal	(%rcx,%rcx,2), %ecx
	addb	$10, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movslq	%edi, %rsi
	movq	%rsi, %rcx
	negq	%rcx
	cmpq	%rdx, %rax
	cmovgeq	%rsi, %rcx
	addq	56(%r12), %rcx
	subq	%r14, %rcx
	jle	LBB0_14
## %bb.11:
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.13:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_15
LBB0_14:
	imull	$100, %r14d, %eax
	jmp	LBB0_15
LBB0_12:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	cmpl	$21, %eax
	movl	$20, %esi
	cmovll	%eax, %esi
	cmpq	$0, 40(%r12)
	cmovnel	%eax, %esi
	movq	_tcp_friendliness@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.16:
	movq	_beta_scale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imulq	%r14, %rax
	sarq	$3, %rax
	movslq	(%r12), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_17
## %bb.18:
	movq	32(%r12), %rcx
	movl	%eax, %edi
	negl	%edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rdi,%rdx), %ebx
	subl	%eax, %edx
	incq	%rcx
	movslq	%ebx, %rbx
	cmpq	%rbx, %rax
	jl	LBB0_19
## %bb.20:
	movl	%edx, (%r12)
	movq	%rcx, 32(%r12)
	subq	%r14, %rcx
	jg	LBB0_22
	jmp	LBB0_26
LBB0_17:
	movq	32(%r12), %rcx
	subq	%r14, %rcx
	jle	LBB0_26
LBB0_22:
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_23
## %bb.24:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_25
LBB0_23:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_25:
	movslq	%esi, %rsi
	cmpq	%rsi, %rax
	cmovll	%eax, %esi
LBB0_26:
	movq	_ACK_RATIO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movl	%esi, %eax
	cltd
	idivl	72(%r12)
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 68(%r12)
LBB0_27:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcp_time_stamp,4,2             ## @tcp_time_stamp
	.comm	_HZ,4,2                         ## @HZ
	.comm	_cube_factor,8,3                ## @cube_factor
	.comm	_BICTCP_HZ,4,2                  ## @BICTCP_HZ
	.comm	_cube_rtt_scale,4,2             ## @cube_rtt_scale
	.comm	_tcp_friendliness,8,3           ## @tcp_friendliness
	.comm	_beta_scale,8,3                 ## @beta_scale
	.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:
	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	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x22, _tcp_time_stamp@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tcp_time_stamp@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _HZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HZ@GOTPAGEOFF]
	cmp	x9, x1
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x19, #16]
	sub	w9, w8, w9
	ldr	w10, [x21]
	add	w11, w10, #31
	cmp	w10, #0
	csel	w10, w11, w10, lt
	cmp	w9, w10, asr #5
	b.le	LBB0_18
LBB0_2:
	str	x20, [x19, #8]
	str	w8, [x19, #16]
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_7
; %bb.3:
	sxtw	x8, w8
	mov	w9, #1
	str	w9, [x19]
	stp	x8, x20, [x19, #24]
	ldr	x8, [x19, #40]
	subs	x8, x8, x20
	b.le	LBB0_5
; %bb.4:
Lloh4:
	adrp	x9, _cube_factor@GOTPAGE
Lloh5:
	ldr	x9, [x9, _cube_factor@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	mul	x0, x9, x8
	bl	_cubic_root
	str	x0, [x19, #48]
	ldr	x8, [x19, #40]
	b	LBB0_6
LBB0_5:
	str	xzr, [x19, #48]
	mov	x8, x20
LBB0_6:
	str	x8, [x19, #56]
LBB0_7:
	ldrsw	x22, [x22]
	ldr	w8, [x19, #64]
	asr	w0, w8, #3
	bl	_msecs_to_jiffies
	add	x8, x22, w0, sxtw
	ldr	x9, [x19, #24]
	sub	x8, x8, x9
Lloh7:
	adrp	x9, _BICTCP_HZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BICTCP_HZ@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	x8, x8, x9
	ldrsw	x10, [x21]
	sdiv	x8, x8, x10
	ldp	x10, x11, [x19, #48]
	sub	w12, w10, w8
	sub	w13, w8, w10
	cmp	x10, x8
	csel	w12, w12, w13, gt
Lloh10:
	adrp	x13, _cube_rtt_scale@GOTPAGE
Lloh11:
	ldr	x13, [x13, _cube_rtt_scale@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x13]
	mul	w13, w13, w12
	mul	w13, w13, w12
	mul	w12, w13, w12
	add	w9, w9, w9, lsl #1
	add	w9, w9, #10
	asr	w9, w12, w9
	sxtw	x9, w9
	cmp	x8, x10
	cneg	x8, x9, lt
	add	x8, x11, x8
	subs	x8, x8, x20
	b.le	LBB0_9
; %bb.8:
	sdiv	x8, x20, x8
	b	LBB0_10
LBB0_9:
	mov	w8, #100
	mul	w8, w20, w8
LBB0_10:
	ldr	x9, [x19, #40]
	cmp	w8, #20
	ccmp	x9, #0, #0, gt
	mov	w9, #20
	csel	w8, w9, w8, eq
Lloh13:
	adrp	x9, _tcp_friendliness@GOTPAGE
Lloh14:
	ldr	x9, [x9, _tcp_friendliness@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cbz	x9, LBB0_17
; %bb.11:
Lloh16:
	adrp	x9, _beta_scale@GOTPAGE
Lloh17:
	ldr	x9, [x9, _beta_scale@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	mul	x9, x9, x20
	asr	x10, x9, #3
	ldrsw	x11, [x19]
	cmp	x10, x11
	b.ge	LBB0_15
; %bb.12:
	lsr	x12, x9, #3
	ldr	x9, [x19, #32]
	neg	w13, w12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
                                        ; kill: def $w11 killed $w11 killed $x11
	add	w14, w13, w11
	sub	w11, w11, w12
	add	x9, x9, #1
	cmp	x10, w14, sxtw
	b.lt	LBB0_13
; %bb.14:
	str	w11, [x19]
	str	x9, [x19, #32]
	subs	x9, x9, x20
	b.gt	LBB0_16
	b	LBB0_17
LBB0_15:
	ldr	x9, [x19, #32]
	subs	x9, x9, x20
	b.le	LBB0_17
LBB0_16:
	sdiv	x9, x20, x9
	cmp	x9, w8, sxtw
	csel	w8, w9, w8, lt
LBB0_17:
Lloh19:
	adrp	x9, _ACK_RATIO_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ACK_RATIO_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19, #72]
	sdiv	w8, w8, w9
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	str	w8, [x19, #68]
LBB0_18:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_tcp_time_stamp,4,2             ; @tcp_time_stamp
	.comm	_HZ,4,2                         ; @HZ
	.comm	_cube_factor,8,3                ; @cube_factor
	.comm	_BICTCP_HZ,4,2                  ; @BICTCP_HZ
	.comm	_cube_rtt_scale,4,2             ; @cube_rtt_scale
	.comm	_tcp_friendliness,8,3           ; @tcp_friendliness
	.comm	_beta_scale,8,3                 ; @beta_scale
	.comm	_ACK_RATIO_SHIFT,4,2            ; @ACK_RATIO_SHIFT
	.no_dead_strip	_bictcp_update
.subsections_via_symbols
