	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htcp_beta_update
_htcp_beta_update:                      ## @htcp_beta_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_use_bandwidth_switch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	movl	%eax, 4(%rbx)
	leal	(%rax,%rax,4), %edi
	leal	(,%rcx,4), %esi
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %edx
	callq	_between
	testl	%eax, %eax
	je	LBB0_8
LBB0_2:
	cmpl	$0, 12(%rbx)
	je	LBB0_7
## %bb.3:
	movl	$10, %edi
	callq	_msecs_to_jiffies
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.4:
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.5:
	shll	$7, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%r14d
	movl	%eax, 8(%rbx)
	cltq
	movq	_BETA_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	ja	LBB0_10
## %bb.9:
	movq	_BETA_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_11
LBB0_10:
	movl	%ecx, 8(%rbx)
	jmp	LBB0_11
LBB0_7:
	movq	_BETA_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 12(%rbx)
	jmp	LBB0_11
LBB0_8:
	movq	_BETA_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$0, 12(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_bandwidth_switch,8,3       ## @use_bandwidth_switch
	.comm	_BETA_MIN,8,3                   ## @BETA_MIN
	.comm	_BETA_MAX,8,3                   ## @BETA_MAX
	.no_dead_strip	_htcp_beta_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htcp_beta_update
_htcp_beta_update:                      ; @htcp_beta_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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _use_bandwidth_switch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_bandwidth_switch@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w8, w9, [x19]
	str	w8, [x19, #4]
	add	w0, w8, w8, lsl #2
	lsl	w1, w9, #2
	add	w8, w9, w9, lsl #1
	lsl	w2, w8, #1
	bl	_between
	cbz	w0, LBB0_9
LBB0_2:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w0, #10
	bl	_msecs_to_jiffies
	cbz	w20, LBB0_8
; %bb.4:
	cmp	w0, w21
	b.ge	LBB0_8
; %bb.5:
	lsl	w8, w21, #7
	sdiv	w8, w8, w20
	str	w8, [x19, #8]
	sxtw	x8, w8
Lloh3:
	adrp	x9, _BETA_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BETA_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.hi	LBB0_7
; %bb.6:
Lloh6:
	adrp	x9, _BETA_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BETA_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.hs	LBB0_10
LBB0_7:
	str	w9, [x19, #8]
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _BETA_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BETA_MIN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #1
	stp	w8, w9, [x19, #8]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _BETA_MIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BETA_MIN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	w8, wzr, [x19, #8]
LBB0_10:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_use_bandwidth_switch,8,3       ; @use_bandwidth_switch
	.comm	_BETA_MIN,8,3                   ; @BETA_MIN
	.comm	_BETA_MAX,8,3                   ; @BETA_MAX
	.no_dead_strip	_htcp_beta_update
.subsections_via_symbols
