	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_threshold
_update_threshold:                      ## @update_threshold
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	subl	%edx, %r10d
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movq	_CMCI@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_6
## %bb.2:
	cmpl	%r9d, %r8d
	jge	LBB0_12
## %bb.3:
	cmpl	%r8d, %ecx
	jl	LBB0_12
## %bb.4:
	movq	_cmc_throttle@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r10d
	jge	LBB0_12
## %bb.5:
	addl	%r8d, %r8d
	movl	%r8d, %edi
	movl	%r9d, %esi
	popq	%rbp
	jmp	_min                            ## TAILCALL
LBB0_6:
	movq	_POLLED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_12
## %bb.7:
	movq	_cmc_throttle@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %eax
	cmpl	%edx, %r10d
	cmovll	%r8d, %eax
	jl	LBB0_10
## %bb.8:
	testl	%esi, %esi
	je	LBB0_10
## %bb.9:
	imull	%ecx, %edx
	movl	%edx, %eax
	cltd
	idivl	%r10d
	cmpl	%r9d, %eax
	cmovll	%eax, %r9d
	testl	%eax, %eax
	movl	$1, %eax
	cmovgl	%r9d, %eax
LBB0_10:
	popq	%rbp
	retq
LBB0_12:
	movl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_time_uptime,4,2                ## @time_uptime
	.comm	_CMCI,4,2                       ## @CMCI
	.comm	_cmc_throttle,4,2               ## @cmc_throttle
	.comm	_POLLED,4,2                     ## @POLLED
	.no_dead_strip	_update_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_threshold
_update_threshold:                      ; @update_threshold
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _time_uptime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, w2
	cbz	w1, LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _CMCI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMCI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_6
; %bb.2:
	cmp	w4, w5
	b.ge	LBB0_9
; %bb.3:
	cmp	w3, w4
	b.lt	LBB0_9
; %bb.4:
Lloh6:
	adrp	x9, _cmc_throttle@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cmc_throttle@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.5:
	lsl	w0, w4, #1
	mov	x1, x5
	b	_min
LBB0_6:
Lloh9:
	adrp	x9, _POLLED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_9
; %bb.7:
Lloh12:
	adrp	x9, _cmc_throttle@GOTPAGE
Lloh13:
	ldr	x9, [x9, _cmc_throttle@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	csinc	w4, w4, wzr, lt
	ccmp	w1, #0, #4, ge
	b.eq	LBB0_9
; %bb.8:
	mul	w9, w9, w3
	sdiv	w8, w9, w8
	cmp	w8, w5
	csel	w9, w8, w5, lt
	cmp	w8, #1
	csinc	w4, w9, wzr, ge
LBB0_9:
	mov	x0, x4
	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	_time_uptime,4,2                ; @time_uptime
	.comm	_CMCI,4,2                       ; @CMCI
	.comm	_cmc_throttle,4,2               ; @cmc_throttle
	.comm	_POLLED,4,2                     ; @POLLED
	.no_dead_strip	_update_threshold
.subsections_via_symbols
