	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_mclock
_set_mclock:                            ## @set_mclock
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movslq	(%rax), %rax
	imulq	$1125899907, %rax, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$50, %rbx
	addl	%eax, %ebx
	movslq	%esi, %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	shll	$2, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ebx
	movl	%eax, %r15d
	leal	-7(%r15), %eax
	movl	$57, %edx
	cmpl	$65, %eax
	jb	LBB0_4
## %bb.1:
	leal	-72(%r15), %edx
	cmpl	$152, %edx
	jae	LBB0_2
## %bb.3:
	andl	$-8, %edx
	addl	$65, %edx
	jmp	LBB0_4
LBB0_2:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$224, %eax
	movl	$217, %eax
	movl	$57, %edx
	cmovel	%eax, %edx
LBB0_4:
	movq	_RSTV0910_NCOARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_write_reg
	movq	_RSTV0910_NCOARSE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_write_reg
	movq	_RSTV0910_NCOARSE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_write_reg
	imull	%r15d, %ebx
	movl	%ebx, %eax
	addl	%ebx, %eax
	leal	7(%rbx,%rbx), %ecx
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	imull	$1000000, %ecx, %eax            ## imm = 0xF4240
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSTV0910_NCOARSE,4,2           ## @RSTV0910_NCOARSE
	.comm	_RSTV0910_NCOARSE2,4,2          ## @RSTV0910_NCOARSE2
	.comm	_RSTV0910_NCOARSE1,4,2          ## @RSTV0910_NCOARSE1
	.no_dead_strip	_set_mclock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_mclock
_set_mclock:                            ; @set_mclock
	.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	x19, x0
	mov	w21, #16960
	movk	w21, #15, lsl #16
	ldr	x8, [x0]
	ldrsw	x8, [x8]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x10, x8, #63
	asr	x8, x8, #50
	add	w22, w8, w10
	smull	x8, w1, w9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	lsl	w8, w8, #2
	sdiv	w20, w8, w22
	sub	w8, w20, #7
	mov	w9, #57
	sub	w10, w20, #72
	and	w11, w10, #0xfffffff8
	add	w11, w11, #65
	and	w12, w20, #0xfffffffe
	mov	w13, #217
	cmp	w12, #224
	csel	w12, w13, w9, eq
	cmp	w10, #152
	csel	w10, w11, w12, lo
	cmp	w8, #65
	csel	w2, w9, w10, lo
Lloh0:
	adrp	x8, _RSTV0910_NCOARSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSTV0910_NCOARSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_write_reg
Lloh3:
	adrp	x8, _RSTV0910_NCOARSE2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSTV0910_NCOARSE2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_write_reg
Lloh6:
	adrp	x8, _RSTV0910_NCOARSE1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSTV0910_NCOARSE1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_write_reg
	mul	w8, w22, w20
	lsl	w8, w8, #1
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	mul	w8, w8, w21
	ldr	x9, [x19]
	str	w8, [x9, #4]
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSTV0910_NCOARSE,4,2           ; @RSTV0910_NCOARSE
	.comm	_RSTV0910_NCOARSE2,4,2          ; @RSTV0910_NCOARSE2
	.comm	_RSTV0910_NCOARSE1,4,2          ; @RSTV0910_NCOARSE1
	.no_dead_strip	_set_mclock
.subsections_via_symbols
