	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htcp_recalc_beta
_htcp_recalc_beta:                      ## @htcp_recalc_beta
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_V_htcp_adaptive_backoff@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %eax
	movq	_TCPTV_SRTTBASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.2:
	movl	4(%rbx), %esi
	cmpl	%ecx, %esi
	jne	LBB0_3
LBB0_4:
	movq	_HTCP_MINBETA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_HTCP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_HTCP_MINBETA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cltd
	idivl	%esi
	movl	%eax, %esi
	callq	_max
	movq	_HTCP_MAXBETA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_min
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_V_htcp_adaptive_backoff,8,3    ## @V_htcp_adaptive_backoff
	.comm	_TCPTV_SRTTBASE,4,2             ## @TCPTV_SRTTBASE
	.comm	_HTCP_MINBETA,4,2               ## @HTCP_MINBETA
	.comm	_HTCP_SHIFT,4,2                 ## @HTCP_SHIFT
	.comm	_HTCP_MAXBETA,4,2               ## @HTCP_MAXBETA
	.no_dead_strip	_htcp_recalc_beta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htcp_recalc_beta
_htcp_recalc_beta:                      ; @htcp_recalc_beta
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _V_htcp_adaptive_backoff@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_htcp_adaptive_backoff@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _TCPTV_SRTTBASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCPTV_SRTTBASE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	cmp	w8, w10
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x19, #4]
	cmp	w9, w10
	b.ne	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _HTCP_MINBETA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HTCP_MINBETA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_4:
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x10, _HTCP_MINBETA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HTCP_MINBETA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x10]
Lloh12:
	adrp	x10, _HTCP_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HTCP_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	sdiv	w1, w8, w9
	bl	_max
Lloh15:
	adrp	x8, _HTCP_MAXBETA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HTCP_MAXBETA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_min
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V_htcp_adaptive_backoff,8,3    ; @V_htcp_adaptive_backoff
	.comm	_TCPTV_SRTTBASE,4,2             ; @TCPTV_SRTTBASE
	.comm	_HTCP_MINBETA,4,2               ; @HTCP_MINBETA
	.comm	_HTCP_SHIFT,4,2                 ; @HTCP_SHIFT
	.comm	_HTCP_MAXBETA,4,2               ; @HTCP_MAXBETA
	.no_dead_strip	_htcp_recalc_beta
.subsections_via_symbols
