	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function check_external_clock_speed
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_check_external_clock_speed:            ## @check_external_clock_speed
	.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	(%rdi), %rax
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	32(%rbx), %rcx
	movq	_EXTERNAL_CLOCK_MIN_FRAMES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_4
LBB0_2:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_5
## %bb.3:
	movq	24(%rbx), %rdx
	movq	_EXTERNAL_CLOCK_MIN_FRAMES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_4
LBB0_5:
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movq	32(%rbx), %rax
	movq	_EXTERNAL_CLOCK_MAX_FRAMES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_10
LBB0_7:
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.8:
	movq	24(%rbx), %rax
	movq	_EXTERNAL_CLOCK_MAX_FRAMES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
LBB0_9:
	movq	_EXTERNAL_CLOCK_SPEED_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	addq	$16, %rbx
	movq	_EXTERNAL_CLOCK_SPEED_STEP@GOTPCREL(%rip), %rax
	addsd	(%rax), %xmm0
	callq	_FFMIN
	jmp	LBB0_12
LBB0_4:
	movq	_EXTERNAL_CLOCK_SPEED_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	addq	$16, %rbx
	movq	_EXTERNAL_CLOCK_SPEED_STEP@GOTPCREL(%rip), %rax
	subsd	(%rax), %xmm0
	callq	_FFMAX
	jmp	LBB0_12
LBB0_10:
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm1
	jne	LBB0_11
	jnp	LBB0_13
LBB0_11:
	addq	$16, %rbx
	movq	_EXTERNAL_CLOCK_SPEED_STEP@GOTPCREL(%rip), %rax
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm1, %xmm2
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	%xmm2, %xmm0
	andpd	LCPI0_1(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_clock_speed                ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTERNAL_CLOCK_MIN_FRAMES,8,3  ## @EXTERNAL_CLOCK_MIN_FRAMES
	.comm	_EXTERNAL_CLOCK_SPEED_MIN,4,2   ## @EXTERNAL_CLOCK_SPEED_MIN
	.comm	_EXTERNAL_CLOCK_SPEED_STEP,8,3  ## @EXTERNAL_CLOCK_SPEED_STEP
	.comm	_EXTERNAL_CLOCK_MAX_FRAMES,8,3  ## @EXTERNAL_CLOCK_MAX_FRAMES
	.comm	_EXTERNAL_CLOCK_SPEED_MAX,4,2   ## @EXTERNAL_CLOCK_SPEED_MAX
	.no_dead_strip	_check_external_clock_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_external_clock_speed
_check_external_clock_speed:            ; @check_external_clock_speed
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x10, _EXTERNAL_CLOCK_MIN_FRAMES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EXTERNAL_CLOCK_MIN_FRAMES@GOTPAGEOFF]
	tbnz	x8, #63, LBB0_2
; %bb.1:
	ldr	x9, [x19, #32]
	ldr	x11, [x10]
	cmp	x9, x11
	b.le	LBB0_9
LBB0_2:
	ldr	x9, [x19, #8]
	tbnz	x9, #63, LBB0_4
; %bb.3:
	ldr	x11, [x19, #24]
	ldr	x10, [x10]
	cmp	x11, x10
	b.le	LBB0_9
LBB0_4:
Lloh2:
	adrp	x10, _EXTERNAL_CLOCK_MAX_FRAMES@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EXTERNAL_CLOCK_MAX_FRAMES@GOTPAGEOFF]
	tbnz	x8, #63, LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x11, [x10]
	cmp	x8, x11
	b.le	LBB0_10
LBB0_6:
	tbnz	x9, #63, LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	x9, [x10]
	cmp	x8, x9
	b.le	LBB0_10
LBB0_8:
Lloh4:
	adrp	x8, _EXTERNAL_CLOCK_SPEED_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EXTERNAL_CLOCK_SPEED_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	d0, [x19, #16]!
Lloh7:
	adrp	x8, _EXTERNAL_CLOCK_SPEED_STEP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXTERNAL_CLOCK_SPEED_STEP@GOTPAGEOFF]
Lloh9:
	ldr	d1, [x8]
	fadd	d0, d0, d1
	bl	_FFMIN
	b	LBB0_12
LBB0_9:
Lloh10:
	adrp	x8, _EXTERNAL_CLOCK_SPEED_MIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXTERNAL_CLOCK_SPEED_MIN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	d0, [x19, #16]!
Lloh13:
	adrp	x8, _EXTERNAL_CLOCK_SPEED_STEP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXTERNAL_CLOCK_SPEED_STEP@GOTPAGEOFF]
Lloh15:
	ldr	d1, [x8]
	fsub	d0, d0, d1
	bl	_FFMAX
	b	LBB0_12
LBB0_10:
	ldr	d0, [x19, #16]!
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.eq	LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _EXTERNAL_CLOCK_SPEED_STEP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXTERNAL_CLOCK_SPEED_STEP@GOTPAGEOFF]
Lloh18:
	ldr	d2, [x8]
	fsub	d3, d1, d0
	fmul	d2, d3, d2
	fabd	d1, d1, d0
	fdiv	d1, d2, d1
	fadd	d0, d0, d1
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_clock_speed
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTERNAL_CLOCK_MIN_FRAMES,8,3  ; @EXTERNAL_CLOCK_MIN_FRAMES
	.comm	_EXTERNAL_CLOCK_SPEED_MIN,4,2   ; @EXTERNAL_CLOCK_SPEED_MIN
	.comm	_EXTERNAL_CLOCK_SPEED_STEP,8,3  ; @EXTERNAL_CLOCK_SPEED_STEP
	.comm	_EXTERNAL_CLOCK_MAX_FRAMES,8,3  ; @EXTERNAL_CLOCK_MAX_FRAMES
	.comm	_EXTERNAL_CLOCK_SPEED_MAX,4,2   ; @EXTERNAL_CLOCK_SPEED_MAX
	.no_dead_strip	_check_external_clock_speed
.subsections_via_symbols
